X-Git-Url: https://scm.lunaixsky.com/lunaix-os.git/blobdiff_plain/35a7d633d3f16c1e0539af6ca5d8e7482926cd93..9daf4fcdae88f72af60aeb0c7722841af02233d4:/lunaix-os/tests/units/device-tree/samples/basic.dts diff --git a/lunaix-os/tests/units/device-tree/samples/basic.dts b/lunaix-os/tests/units/device-tree/samples/basic.dts new file mode 100644 index 0000000..076e17d --- /dev/null +++ b/lunaix-os/tests/units/device-tree/samples/basic.dts @@ -0,0 +1,31 @@ +/dts-v1/; + +/ { + compatible = "root"; + #address-cells = <1>; + #size-cells = <2>; + + C1: child@1 { + compatible = "child,simple-fields"; + + field-str = "field"; + field-u32 = <32>; + field-u64 = <0xf 0x1>; + field-strlst = "str1", "str2", "str3"; + }; + + C2: child@2 { + compatible = "child,encoded-array"; + reg = <0x12345 0x1 0x2>; + + mixed_array = <&C1 1 3 5 7>, <&C3 2 4 6 8>; + }; + + C3: child@3 { + compatible = "child,flags"; + dma-coherent; + + status = "disabled"; + interrupt-controller; + }; +}; \ No newline at end of file