mirror of
https://github.com/dgibson/dtc.git
synced 2025-10-13 16:27:39 -04:00
In device trees in the world, properties consisting of a single 64-bit integer are not as common as those consisting of a single 32-bit, cell sized integer, but they're common enough that they're worth including convenience functions for. This patch adds helper wrappers of fdt_setprop_inplace(), fdt_setprop() and fdt_appendprop() for handling 64-bit integer quantities in properties. For better consistency with the names of these new *_u64() functions we also add *_u32() functions as alternative names for the existing *_cell() functions handling 32-bit integers. Signed-off-by: David Gibson <david@gibson.dropbear.id.au>
27 lines
470 B
Text
27 lines
470 B
Text
/dts-v1/;
|
|
|
|
/include/ "include2.dts"
|
|
/memreserve/ /include/ "include3.dts";
|
|
|
|
/ {
|
|
/include/ "include4.dts"
|
|
/include/ "include5.dts" = <0xdeadbeef>;
|
|
prop-int64 /include/ "include5a.dts";
|
|
prop-str = /include/ "include6.dts";
|
|
|
|
/include/ "include7.dts"
|
|
|
|
subnode@2 {
|
|
linux,phandle = <0x2000>;
|
|
prop-int = <123456789>;
|
|
|
|
/include/ "include8.dts"
|
|
phandle = <0x2001>;
|
|
compatible = "subsubnode2", "subsubnode";
|
|
prop-int = <0726746425>;
|
|
};
|
|
|
|
ss2 {
|
|
};
|
|
};
|
|
};
|