设备树基本语法

设备树也是基于平台总线模型的


根节点
image

子节点
image

节点名称
image

reg属性
image
reg = < 内容由#address-cells和#size-cells决定 >
控制的是子节点
示例1
image
示例2
image

model属性
image

status属性
image

compatible属性
image


定义别名

image
&节点名称 或者 "节点路径"
通过别名给节点排序;

image
根节点/下面的某个节点

给内核传递参数
image

对cpu节点或者memory节点进行描述
image

自定义属性
image
至于怎么用是驱动程序driver的事;

设备树spec
image


posted @ 2023-03-16 22:11  我爱茜茜公主  阅读(61)  评论(0)    收藏  举报