完善资料让更多小伙伴认识你,还能领取20积分哦, 立即完善>
2. 查看 Soc 框图
rk3399 大致包括 7 个部分:
阅读设备树时,Soc 框图可以协助我们确定好每个节点的定位和功能。 3. 确定 dts 文件关系 dts 文件关系图: rk3399-nanopi4-rev00.dts 和 rk3399-nanopi4-common.dtsi 用于描述板级信息; rk3399.dtsi 等剩下的文件用于描述 Soc 信息; 4. 汇总完整的 dts 节点 完整的 dts 节点图: 5. 查看 Soc 基础设施 5.1 cpus 节点 cpus { #address-cells = <2>; #size-cells = <0>; cpu-map { cluster0 { core0 { cpu = <&cpu_l0>; }; ... core3 { cpu = <&cpu_l3>; }; }; cluster1 { core0 { cpu = <&cpu_b0>; }; core1 { cpu = <&cpu_b1>; }; }; }; cpu_l0: cpu@0 { device_type = "cpu"; compatible = "arm,cortex-a53", "arm,armv8"; ... }; ... cpu_b0: cpu@100 { device_type = "cpu"; compatible = "arm,cortex-a72", "arm,armv8"; }; ... } 简单说明:
相关文档:
相关接口:
5.2 clock controller 节点 /arch/arm64/boot/dts/rockchip/rk3399.dtsi cru: clock-controller@ff760000 { compatible = "rockchip,rk3399-cru"; reg = <0x0 0xff760000 0x0 0x1000>; #clock-cells = <1>; #reset-cells = <1>; assigned-clocks = ...; assigned-clock-rates = ...; }; /arch/arm64/boot/dts/rockchip/rk3399.dtsi pmucru: pmu-clock-controller@ff750000 { compatible = "rockchip,rk3399-pmucru"; reg = <0x0 0xff750000 0x0 0x1000>; #clock-cells = <1>; #reset-cells = <1>; assigned-clocks = ...; assigned-clock-rates = ...; }; 简单说明:
相关代码:
5.3 interrupt controller 节点 gic: interrupt-controller@fee00000 { compatible = "arm,gic-v3"; ... its: interrupt-controller@fee20000 { compatible = "arm,gic-v3-its"; #interrupt-cells = <4>; ... interrupt-controller; ... }; ppi-partitions { ppi_cluster0: interrupt-partition-0 { affinity = <&cpu_l0 &cpu_l1 &cpu_l2 &cpu_l3>; }; ppi_cluster1: interrupt-partition-1 { affinity = <&cpu_b0 &cpu_b1>; }; }; }; 简单说明:
相关代码:
相关文档:
相关接口:
5.4 pin controller 节点 pinctrl: pinctrl { compatible = "rockchip,rk3399-pinctrl"; ... // 4 x gpio controller gpio0: gpio0@ff720000 { compatible = "rockchip,gpio-bank"; ... }; ... // lots of pin configuration nodes ... i2c0 { i2c0_xfer: i2c0-xfer { rockchip,pins = <1 15 RK_FUNC_2 &pcfg_pull_none>, <1 16 RK_FUNC_2 &pcfg_pull_none>; }; }; ... } 简单说明:
相关接口: $ tree /sys/kernel/debug/pinctrl /sys/kernel/debug/pinctrl ├── pinctrl-devices ├── pinctrl-handles ├── pinctrl-maps └── pinctrl-rockchip-pinctrl ├── gpio-ranges ├── pinconf-config ├── pinconf-groups ├── pinconf-pins ├── pingroups ├── pinmux-functions ├── pinmux-pins └── pins 5.5 gpio controller 节点 gpio0: gpio0@ff720000 { compatible = "rockchip,gpio-bank"; reg = <0x0 0xff720000 0x0 0x100>; clocks = <&pmucru PCLK_GPIO0_PMU>; interrupts = gpio-controller; #gpio-cells = <0x2>; interrupt-controller; #interrupt-cells = <0x2>; }; ... gpio4: gpio4@ff790000 { compatible = "rockchip,gpio-bank"; ... }; 简单说明:
相关代码:
相关文档:
efuse 节点 efuse0: efuse@ff690000 { compatible = "rockchip,rk3399-efuse"; ... /* Data cells */ specification_serial_number: specification-serial-number@6 { reg = <0x06 0x1>; bits = <0 5>; }; cpu_id: cpu-id@7 { reg = <0x07 0x10>; }; ... }; 简单说明:
cpuinfo 节点 cpuinfo { compatible = "rockchip,cpuinfo"; nvmem-cells = <&cpu_id>; nvmem-cell-names = "id"; }; 简单说明:
相关文档:
|
|
|
|
你正在撰写答案
如果你是对答案或其他答案精选点评或询问,请使用“评论”功能。
1443 浏览 1 评论
synopsys 的design ware:DW_fpv_div,浮点数除法器,默认32位下,想提升覆盖率(TMAX),如果用功能case去提升覆盖率呢?
1570 浏览 1 评论
RK3588 GStreamer调试四路鱼眼摄像头四宫格显示报错
3581 浏览 1 评论
【飞凌嵌入式OK3576-C开发板体验】RKNN神经网络-YOLO图像识别
254 浏览 0 评论
【飞凌嵌入式OK3576-C开发板体验】SSH远程登录网络配置及CAN通讯
1336 浏览 0 评论
小黑屋| 手机版| Archiver| 电子发烧友 ( 湘ICP备2023018690号 )
GMT+8, 2024-11-6 01:25 , Processed in 0.626007 second(s), Total 71, Slave 55 queries .
Powered by 电子发烧友网
© 2015 bbs.elecfans.com
关注我们的微信
下载发烧友APP
电子发烧友观察
版权所有 © 湖南华秋数字科技有限公司
电子发烧友 (电路图) 湘公网安备 43011202000918 号 电信与信息服务业务经营许可证:合字B2-20210191 工商网监 湘ICP备2023018690号