ft3329831 发表于 2012-10-10 19:30

DTS设备树的 '#' 符号含义求解!


bootbus: bootbus@1180000000000 {
+                compatible = "cavium,octeon-3860-bootbus";
+                reg = <0x11800 0x00000000 0x0 0x200>;
+                /* The chip select number and offset */
+                #address-cells = <2>;
+                /* The size of the chip select region */
+                #size-cells = <1>;
+                ranges = <0 00x0 0x1f4000000xc00000>,
+                       <1 00x10000 0x300000000>,
+                       <2 00x10000 0x400000000>,
+                       <3 00x10000 0x500000000>,
+                       <4 00x0 0x1d0200000x10000>,
+                       <5 00x0 0x1d0400000x10000>,
+                       <6 00x0 0x1d0500000x10000>,
+                       <7 00x10000 0x900000000>;
代码如上,想请问:
#address-cells = <2>;
前面的井号‘#’ 表示什么意思?为什么要加这个井号?
页: [1]
查看完整版本: DTS设备树的 '#' 符号含义求解!