mirror of
https://github.com/dgibson/dtc.git
synced 2025-10-13 16:27:39 -04:00
At present each property definition in a dts file must give as the value either a string ("abc..."), a bytestring ([12abcd...]) or a cell list (<1 2 3 ...>). This patch allows a property value to be given as several of these, comma-separated. The final property value is just the components appended together. So a property could have a list of cells followed by a string, or a bytestring followed by some cells. Cells are always aligned, so if cells are given following a string or bytestring which is not a multiple of 4 bytes long, zero bytes are inserted to align the following cells. The primary motivation for this feature, however, is to allow defining a property as a list of several strings. This is what's needed for defining OF 'compatible' properties, and is less ugly and fiddly than using embedded \0s in the strings. Signed-off-by: David Gibson <dwg@au1.ibm.com> Signed-off-by: Jon Loeliger <jdl@freescale.com>
55 lines
1.1 KiB
Text
55 lines
1.1 KiB
Text
/memreserve/ 1000000000000000 0000000002000000;
|
|
/memreserve/ 2000000000000000-20ffffffffffffff;
|
|
/memreserve/ 0-13;
|
|
|
|
/ {
|
|
model = "MyBoardName";
|
|
compatible = "MyBoardName", "MyBoardFamilyName";
|
|
#address-cells = <2>;
|
|
#size-cells = <2>;
|
|
|
|
cpus {
|
|
linux,phandle = <1>;
|
|
#address-cells = <1>;
|
|
#size-cells = <0>;
|
|
PowerPC,970@0 {
|
|
name = "PowerPC,970";
|
|
device_type = "cpu";
|
|
reg = <0>;
|
|
clock-frequency = <5f5e1000>;
|
|
timebase-frequency = <1FCA055>;
|
|
linux,boot-cpu;
|
|
i-cache-size = <10000>;
|
|
d-cache-size = <8000>;
|
|
};
|
|
|
|
PowerPC,970@1 {
|
|
name = "PowerPC,970";
|
|
device_type = "cpu";
|
|
reg = <1>;
|
|
clock-frequency = <5f5e1000>;
|
|
timebase-frequency = <1FCA055>;
|
|
i-cache-size = <10000>;
|
|
d-cache-size = <8000>;
|
|
};
|
|
|
|
};
|
|
|
|
randomnode {
|
|
string = "\xff\0stuffstuff\t\t\t\n\n\n";
|
|
blob = [0a 0b 0c 0d de ea ad be ef];
|
|
ref = < &/memory@0 >;
|
|
mixed = "abc", [1234], <a b c>;
|
|
};
|
|
|
|
memory@0 {
|
|
device_type = "memory";
|
|
memreg: reg = <00000000 00000000 00000000 20000000>;
|
|
};
|
|
|
|
chosen {
|
|
bootargs = "root=/dev/sda2";
|
|
linux,platform = <00000600>;
|
|
};
|
|
|
|
};
|