引用: uweuewyfydsf 发表于 2018-5-15 09:18
基本我理解是说两个文件是合并一起的,am33xx.dtsi里面的内容是基础模块的配置,和am335x-evm.dts配合生成最后的dtb文件。但是在dtsi中的下面这个段是用来做什么的?其中没有mmc,mmc也可以工作。
aliases [
i2c0 = &i2c0;
http://stackoverflow.com/questions/17738709/dts-file-explanation-aliases
In the
aliases section of a DTS, we see entries of the format
property = &label;
Each of the entries consists of :
a. property -- A new
property defined here.
b. &label --
Complete DTS path to the node referenced by the label.
It basically assigns the value of
b to
a. Henceforth, the long-name to the node identified by the label can be accessed using the shorthand property.
Note that the RHS of this assignment is using labels and
NOT the short-names of the individual nodes. Just like a label in C code refers to an instruction on the line where it is defined, a labelin DTS refers to the individual node (using its complete long path) that is defined on that line.
For example, considering the following DTS,
lxr.free-electrons.com/source/arch/powerpc/boot/dts/mpc8313erdb.dts
引用: uweuewyfydsf 发表于 2018-5-15 09:18
基本我理解是说两个文件是合并一起的,am33xx.dtsi里面的内容是基础模块的配置,和am335x-evm.dts配合生成最后的dtb文件。但是在dtsi中的下面这个段是用来做什么的?其中没有mmc,mmc也可以工作。
aliases [
i2c0 = &i2c0;
http://stackoverflow.com/questions/17738709/dts-file-explanation-aliases
In the
aliases section of a DTS, we see entries of the format
property = &label;
Each of the entries consists of :
a. property -- A new
property defined here.
b. &label --
Complete DTS path to the node referenced by the label.
It basically assigns the value of
b to
a. Henceforth, the long-name to the node identified by the label can be accessed using the shorthand property.
Note that the RHS of this assignment is using labels and
NOT the short-names of the individual nodes. Just like a label in C code refers to an instruction on the line where it is defined, a labelin DTS refers to the individual node (using its complete long path) that is defined on that line.
For example, considering the following DTS,
lxr.free-electrons.com/source/arch/powerpc/boot/dts/mpc8313erdb.dts
举报