User Tools

Site Tools


library:rk3568:dtsguide

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
Next revision
Previous revision
library:rk3568:dtsguide [2022/11/01 00:08]
lhaosen [1.1 一般属性]
library:rk3568:dtsguide [2023/06/05 23:30] (current)
lhaosen [1. DTS文件]
Line 1: Line 1:
 ====== DTS简述 ====== ====== DTS简述 ======
 +参考:
 +  * [[https://blog.csdn.net/qq_53144843/article/details/123829747|Linux DTS(Device Tree Source)]]
 +  * [[http://kernel.meizu.com/device-tree.html|Device Tree 详解]]
  
  
 +===== - DTS文件 =====
 +
 +DTS文件引用树:
 +
 +kernel/arch/arm64/boot/dts/rockchip/
 +
 +<code>
 +./rk3568-firefly-mplayer.dts
 +├─./rk3568-firefly-mplayer.dtsi
 +│ └─./rk3568-firefly-port.dtsi
 +│   ├─./rk3568-firefly-core.dtsi
 +│   │ └─./rk3568.dtsi
 +│   │   ├─./rk3568-dram-default-timing.dtsi
 +│   │   └─./rk3568-pinctrl.dtsi
 +│   │     └─./rockchip-pinconf.dtsi
 +│   ├─./rk356x-firefly-demo.dtsi
 +│   └─./rk3568-linux.dtsi
 +└─./rk3568-firefly-aioj-cam-8ms1m.dtsi
 +</code>
 ===== - node节点 ===== ===== - node节点 =====
  
Line 105: Line 127:
 这有点类似于函数:在哪定义不重要,重要的是在哪调用。 这有点类似于函数:在哪定义不重要,重要的是在哪调用。
          
 +===== - DTS相关工具 =====
 +
 +==== - devicetree(linux) ====
 +
 +工具主页:https://gitee.com/yuwenhai/device-tree-tools
 +
 +  * 安装:
 +
 +  wget https://gitee.com/yuwenhai/device-tree-tools/raw/master/devicetree/dt.py;mv dt.py ~/bin/dt;chmod 755 ~/bin/dt
 +
 +  * 参数
 +
 +<code>
 +usage: 从设置的根节点预览或搜索指定关键字
 +
 +设备树查看器(0.9)
 +
 +options:
 +  -s SET_CONF, -set SET_CONF, --set SET_CONF
 +                        设置dtv.conf文件
 +  -c, -config, --config
 +                        显示当前使用的dtv.conf文件路径
 +  -r, -root, --root     显示当前的根节点路径
 +  -z, -hp, --hidePath, -short, --short
 +                        按照最短路径显示
 +  -f FIND_KEYWORD, -find FIND_KEYWORD, --find FIND_KEYWORD
 +                        搜索指定内容
 +  -x {re,all}, -flag {re,all}, --flag {re,all}
 +                        re:启用正则表达式搜索 all:在所有树中显示
 +  -d, -debug, --debug   Debug模式运行
 +  -no-color, --no-color
 +                        禁用颜色显示
 +  -v, --version         显示当前版本
 +  --history             显示历史变更记录
 +  -h, --help            显示帮助页
 +</code>
 +
 +  * 设置:
 +
 +  dt -set ~/linux_sdk/kernel/arch/arm64/boot/dts/rockchip/rk3568-firefly-mplayer.dts
 +
 +  * 运行:
 +
 +  dt -h
 +  dt -z
 +  
 +  dt -z -find pinctrl
 +
 +
library/rk3568/dtsguide.1667232519.txt.gz · Last modified: 2022/11/01 00:08 by lhaosen