]> Git Repo - J-u-boot.git/blame - test/dm/test.dts
dm: gpio: Add better functions to request GPIOs
[J-u-boot.git] / test / dm / test.dts
CommitLineData
2e7d35d2
SG
1/dts-v1/;
2
3/ {
4 model = "sandbox";
5 compatible = "sandbox";
6 #address-cells = <1>;
7 #size-cells = <0>;
8
00606d7e
SG
9 aliases {
10 console = &uart0;
5a66a8ff 11 testfdt6 = "/e-test";
00606d7e
SG
12 };
13
14 uart0: serial {
15 compatible = "sandbox,serial";
16 u-boot,dm-pre-reloc;
17 };
18
2e7d35d2
SG
19 a-test {
20 reg = <0>;
21 compatible = "denx,u-boot-fdt-test";
eb9ef5fe 22 ping-expect = <0>;
2e7d35d2 23 ping-add = <0>;
00606d7e 24 u-boot,dm-pre-reloc;
3669e0e7
SG
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>;
2e7d35d2
SG
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";
eb9ef5fe 44 ping-expect = <3>;
2e7d35d2
SG
45 ping-add = <3>;
46 };
47
48 some-bus {
49 #address-cells = <1>;
50 #size-cells = <0>;
1ca7e206 51 compatible = "denx,u-boot-test-bus";
5a66a8ff 52 reg = <3>;
eb9ef5fe 53 ping-expect = <4>;
2e7d35d2 54 ping-add = <4>;
1ca7e206 55 c-test@5 {
2e7d35d2
SG
56 compatible = "denx,u-boot-fdt-test";
57 reg = <5>;
1ca7e206 58 ping-expect = <5>;
2e7d35d2
SG
59 ping-add = <5>;
60 };
1ca7e206
SG
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 };
2e7d35d2
SG
73 };
74
75 d-test {
5a66a8ff
SG
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>;
eb9ef5fe 84 ping-expect = <6>;
2e7d35d2
SG
85 ping-add = <6>;
86 compatible = "google,another-fdt-test";
87 };
88
0ae0cb7b 89 gpio_a: base-gpios {
2e7d35d2 90 compatible = "sandbox,gpio";
3669e0e7
SG
91 gpio-controller;
92 #gpio-cells = <1>;
2e7d35d2
SG
93 gpio-bank-name = "a";
94 num-gpios = <20>;
95 };
96
3669e0e7 97 gpio_b: extra-gpios {
2e7d35d2 98 compatible = "sandbox,gpio";
3669e0e7
SG
99 gpio-controller;
100 #gpio-cells = <5>;
2e7d35d2
SG
101 gpio-bank-name = "b";
102 num-gpios = <10>;
103 };
0ae0cb7b 104
ecc2ed55
SG
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
0ae0cb7b
SG
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
2e7d35d2 136};
This page took 0.132031 seconds and 4 git commands to generate.