Unit testing framework and devicetree framework refactoring (#50)
[lunaix-os.git] / lunaix-os / tests / units / device-tree / samples / basic.dts
1 /dts-v1/;
2
3 / {
4     compatible = "root";
5     #address-cells = <1>;
6     #size-cells = <2>;  
7
8     C1: child@1 {
9         compatible = "child,simple-fields";
10
11         field-str = "field";
12         field-u32 = <32>;
13         field-u64 = <0xf 0x1>;
14         field-strlst = "str1", "str2", "str3";
15     };
16
17     C2: child@2 {
18         compatible = "child,encoded-array";
19         reg = <0x12345 0x1 0x2>;
20
21         mixed_array = <&C1 1 3 5 7>, <&C3 2 4 6 8>;
22     };
23
24     C3: child@3 {
25         compatible = "child,flags";
26         dma-coherent;
27
28         status = "disabled";
29         interrupt-controller;
30     };
31 };