]> git.karo-electronics.de Git - karo-tx-uboot.git/blob - test/dm/test.dts
33f2c00747d86fa61b5beefca6a11a8179570bfe
[karo-tx-uboot.git] / test / dm / test.dts
1 /dts-v1/;
2
3 / {
4         model = "sandbox";
5         compatible = "sandbox";
6         #address-cells = <1>;
7         #size-cells = <0>;
8
9         aliases {
10                 console = &uart0;
11                 testfdt6 = "/e-test";
12         };
13
14         uart0: serial {
15                 compatible = "sandbox,serial";
16                 u-boot,dm-pre-reloc;
17         };
18
19         a-test {
20                 reg = <0>;
21                 compatible = "denx,u-boot-fdt-test";
22                 ping-expect = <0>;
23                 ping-add = <0>;
24                 u-boot,dm-pre-reloc;
25                 test-gpios = <&gpio_a 1>, <&gpio_a 4>, <&gpio_b 5 0 3 2 1>,
26                         <0>, <&gpio_a 12>;
27                 test2-gpios = <&gpio_a 1>, <&gpio_a 4>, <&gpio_b 6 1 3 2 1>,
28                         <&gpio_b 7 2 3 2 1>, <&gpio_b 8 4 3 2 1>,
29                         <&gpio_b 9 0xc 3 2 1>;
30         };
31
32         junk {
33                 reg = <1>;
34                 compatible = "not,compatible";
35         };
36
37         no-compatible {
38                 reg = <2>;
39         };
40
41         b-test {
42                 reg = <3>;
43                 compatible = "denx,u-boot-fdt-test";
44                 ping-expect = <3>;
45                 ping-add = <3>;
46         };
47
48         some-bus {
49                 #address-cells = <1>;
50                 #size-cells = <0>;
51                 compatible = "denx,u-boot-test-bus";
52                 reg = <3>;
53                 ping-expect = <4>;
54                 ping-add = <4>;
55                 c-test@5 {
56                         compatible = "denx,u-boot-fdt-test";
57                         reg = <5>;
58                         ping-expect = <5>;
59                         ping-add = <5>;
60                 };
61                 c-test@0 {
62                         compatible = "denx,u-boot-fdt-test";
63                         reg = <0>;
64                         ping-expect = <6>;
65                         ping-add = <6>;
66                 };
67                 c-test@1 {
68                         compatible = "denx,u-boot-fdt-test";
69                         reg = <1>;
70                         ping-expect = <7>;
71                         ping-add = <7>;
72                 };
73         };
74
75         d-test {
76                 reg = <3>;
77                 ping-expect = <6>;
78                 ping-add = <6>;
79                 compatible = "google,another-fdt-test";
80         };
81
82         e-test {
83                 reg = <3>;
84                 ping-expect = <6>;
85                 ping-add = <6>;
86                 compatible = "google,another-fdt-test";
87         };
88
89         gpio_a: base-gpios {
90                 compatible = "sandbox,gpio";
91                 gpio-controller;
92                 #gpio-cells = <1>;
93                 gpio-bank-name = "a";
94                 num-gpios = <20>;
95         };
96
97         gpio_b: extra-gpios {
98                 compatible = "sandbox,gpio";
99                 gpio-controller;
100                 #gpio-cells = <5>;
101                 gpio-bank-name = "b";
102                 num-gpios = <10>;
103         };
104
105         i2c@0 {
106                 #address-cells = <1>;
107                 #size-cells = <0>;
108                 reg = <0>;
109                 compatible = "sandbox,i2c";
110                 clock-frequency = <100000>;
111                 eeprom@2c {
112                         reg = <0x2c>;
113                         compatible = "i2c-eeprom";
114                         emul {
115                                 compatible = "sandbox,i2c-eeprom";
116                                 sandbox,filename = "i2c.bin";
117                                 sandbox,size = <256>;
118                         };
119                 };
120         };
121
122         spi@0 {
123                 #address-cells = <1>;
124                 #size-cells = <0>;
125                 reg = <0>;
126                 compatible = "sandbox,spi";
127                 cs-gpios = <0>, <&gpio_a 0>;
128                 spi.bin@0 {
129                         reg = <0>;
130                         compatible = "spansion,m25p16", "spi-flash";
131                         spi-max-frequency = <40000000>;
132                         sandbox,filename = "spi.bin";
133                 };
134         };
135
136 };