Commit 52d3bc5d18ea0e3ef78715d9c0c703e458f260a0

Authored by Simon Glass
1 parent f4d84576a4

sandbox: dts: Add the real-time-clock test nodes back in

These were lost when the PMIC series was applied. Add them back so that the
tests pass again.

Reported-by: Joe Hershberger <joe.hershberger@gmail.com>
Signed-off-by: Simon Glass <sjg@chromium.org>
Acked-by: Joe Hershberger <joe.hershberger@ni.com>

Showing 1 changed file with 18 additions and 0 deletions Inline Diff

arch/sandbox/dts/test.dts
1 /dts-v1/; 1 /dts-v1/;
2 2
3 / { 3 / {
4 model = "sandbox"; 4 model = "sandbox";
5 compatible = "sandbox"; 5 compatible = "sandbox";
6 #address-cells = <1>; 6 #address-cells = <1>;
7 #size-cells = <0>; 7 #size-cells = <0>;
8 8
9 aliases { 9 aliases {
10 console = &uart0; 10 console = &uart0;
11 eth0 = "/eth@10002000"; 11 eth0 = "/eth@10002000";
12 eth5 = &eth_5; 12 eth5 = &eth_5;
13 i2c0 = "/i2c@0"; 13 i2c0 = "/i2c@0";
14 pci0 = &pci; 14 pci0 = &pci;
15 rtc0 = &rtc_0;
16 rtc1 = &rtc_1;
15 spi0 = "/spi@0"; 17 spi0 = "/spi@0";
16 testfdt6 = "/e-test"; 18 testfdt6 = "/e-test";
17 testbus3 = "/some-bus"; 19 testbus3 = "/some-bus";
18 testfdt0 = "/some-bus/c-test@0"; 20 testfdt0 = "/some-bus/c-test@0";
19 testfdt1 = "/some-bus/c-test@1"; 21 testfdt1 = "/some-bus/c-test@1";
20 testfdt3 = "/b-test"; 22 testfdt3 = "/b-test";
21 testfdt5 = "/some-bus/c-test@5"; 23 testfdt5 = "/some-bus/c-test@5";
22 testfdt8 = "/a-test"; 24 testfdt8 = "/a-test";
23 usb0 = &usb_0; 25 usb0 = &usb_0;
24 usb1 = &usb_1; 26 usb1 = &usb_1;
25 usb2 = &usb_2; 27 usb2 = &usb_2;
26 }; 28 };
27 29
28 a-test { 30 a-test {
29 reg = <0>; 31 reg = <0>;
30 compatible = "denx,u-boot-fdt-test"; 32 compatible = "denx,u-boot-fdt-test";
31 ping-expect = <0>; 33 ping-expect = <0>;
32 ping-add = <0>; 34 ping-add = <0>;
33 u-boot,dm-pre-reloc; 35 u-boot,dm-pre-reloc;
34 test-gpios = <&gpio_a 1>, <&gpio_a 4>, <&gpio_b 5 0 3 2 1>, 36 test-gpios = <&gpio_a 1>, <&gpio_a 4>, <&gpio_b 5 0 3 2 1>,
35 <0>, <&gpio_a 12>; 37 <0>, <&gpio_a 12>;
36 test2-gpios = <&gpio_a 1>, <&gpio_a 4>, <&gpio_b 6 1 3 2 1>, 38 test2-gpios = <&gpio_a 1>, <&gpio_a 4>, <&gpio_b 6 1 3 2 1>,
37 <&gpio_b 7 2 3 2 1>, <&gpio_b 8 4 3 2 1>, 39 <&gpio_b 7 2 3 2 1>, <&gpio_b 8 4 3 2 1>,
38 <&gpio_b 9 0xc 3 2 1>; 40 <&gpio_b 9 0xc 3 2 1>;
39 }; 41 };
40 42
41 junk { 43 junk {
42 reg = <1>; 44 reg = <1>;
43 compatible = "not,compatible"; 45 compatible = "not,compatible";
44 }; 46 };
45 47
46 no-compatible { 48 no-compatible {
47 reg = <2>; 49 reg = <2>;
48 }; 50 };
49 51
50 b-test { 52 b-test {
51 reg = <3>; 53 reg = <3>;
52 compatible = "denx,u-boot-fdt-test"; 54 compatible = "denx,u-boot-fdt-test";
53 ping-expect = <3>; 55 ping-expect = <3>;
54 ping-add = <3>; 56 ping-add = <3>;
55 }; 57 };
56 58
57 some-bus { 59 some-bus {
58 #address-cells = <1>; 60 #address-cells = <1>;
59 #size-cells = <0>; 61 #size-cells = <0>;
60 compatible = "denx,u-boot-test-bus"; 62 compatible = "denx,u-boot-test-bus";
61 reg = <3>; 63 reg = <3>;
62 ping-expect = <4>; 64 ping-expect = <4>;
63 ping-add = <4>; 65 ping-add = <4>;
64 c-test@5 { 66 c-test@5 {
65 compatible = "denx,u-boot-fdt-test"; 67 compatible = "denx,u-boot-fdt-test";
66 reg = <5>; 68 reg = <5>;
67 ping-expect = <5>; 69 ping-expect = <5>;
68 ping-add = <5>; 70 ping-add = <5>;
69 }; 71 };
70 c-test@0 { 72 c-test@0 {
71 compatible = "denx,u-boot-fdt-test"; 73 compatible = "denx,u-boot-fdt-test";
72 reg = <0>; 74 reg = <0>;
73 ping-expect = <6>; 75 ping-expect = <6>;
74 ping-add = <6>; 76 ping-add = <6>;
75 }; 77 };
76 c-test@1 { 78 c-test@1 {
77 compatible = "denx,u-boot-fdt-test"; 79 compatible = "denx,u-boot-fdt-test";
78 reg = <1>; 80 reg = <1>;
79 ping-expect = <7>; 81 ping-expect = <7>;
80 ping-add = <7>; 82 ping-add = <7>;
81 }; 83 };
82 }; 84 };
83 85
84 d-test { 86 d-test {
85 reg = <3>; 87 reg = <3>;
86 ping-expect = <6>; 88 ping-expect = <6>;
87 ping-add = <6>; 89 ping-add = <6>;
88 compatible = "google,another-fdt-test"; 90 compatible = "google,another-fdt-test";
89 }; 91 };
90 92
91 e-test { 93 e-test {
92 reg = <3>; 94 reg = <3>;
93 ping-expect = <6>; 95 ping-expect = <6>;
94 ping-add = <6>; 96 ping-add = <6>;
95 compatible = "google,another-fdt-test"; 97 compatible = "google,another-fdt-test";
96 }; 98 };
97 99
98 f-test { 100 f-test {
99 compatible = "denx,u-boot-fdt-test"; 101 compatible = "denx,u-boot-fdt-test";
100 }; 102 };
101 103
102 g-test { 104 g-test {
103 compatible = "denx,u-boot-fdt-test"; 105 compatible = "denx,u-boot-fdt-test";
104 }; 106 };
105 107
106 eth@10002000 { 108 eth@10002000 {
107 compatible = "sandbox,eth"; 109 compatible = "sandbox,eth";
108 reg = <0x10002000 0x1000>; 110 reg = <0x10002000 0x1000>;
109 fake-host-hwaddr = <0x00 0x00 0x66 0x44 0x22 0x00>; 111 fake-host-hwaddr = <0x00 0x00 0x66 0x44 0x22 0x00>;
110 }; 112 };
111 113
112 eth_5: eth@10003000 { 114 eth_5: eth@10003000 {
113 compatible = "sandbox,eth"; 115 compatible = "sandbox,eth";
114 reg = <0x10003000 0x1000>; 116 reg = <0x10003000 0x1000>;
115 fake-host-hwaddr = <0x00 0x00 0x66 0x44 0x22 0x11>; 117 fake-host-hwaddr = <0x00 0x00 0x66 0x44 0x22 0x11>;
116 }; 118 };
117 119
118 eth@10004000 { 120 eth@10004000 {
119 compatible = "sandbox,eth"; 121 compatible = "sandbox,eth";
120 reg = <0x10004000 0x1000>; 122 reg = <0x10004000 0x1000>;
121 fake-host-hwaddr = <0x00 0x00 0x66 0x44 0x22 0x22>; 123 fake-host-hwaddr = <0x00 0x00 0x66 0x44 0x22 0x22>;
122 }; 124 };
123 125
124 gpio_a: base-gpios { 126 gpio_a: base-gpios {
125 compatible = "sandbox,gpio"; 127 compatible = "sandbox,gpio";
126 gpio-controller; 128 gpio-controller;
127 #gpio-cells = <1>; 129 #gpio-cells = <1>;
128 gpio-bank-name = "a"; 130 gpio-bank-name = "a";
129 num-gpios = <20>; 131 num-gpios = <20>;
130 }; 132 };
131 133
132 gpio_b: extra-gpios { 134 gpio_b: extra-gpios {
133 compatible = "sandbox,gpio"; 135 compatible = "sandbox,gpio";
134 gpio-controller; 136 gpio-controller;
135 #gpio-cells = <5>; 137 #gpio-cells = <5>;
136 gpio-bank-name = "b"; 138 gpio-bank-name = "b";
137 num-gpios = <10>; 139 num-gpios = <10>;
138 }; 140 };
139 141
140 i2c@0 { 142 i2c@0 {
141 #address-cells = <1>; 143 #address-cells = <1>;
142 #size-cells = <0>; 144 #size-cells = <0>;
143 reg = <0>; 145 reg = <0>;
144 compatible = "sandbox,i2c"; 146 compatible = "sandbox,i2c";
145 clock-frequency = <100000>; 147 clock-frequency = <100000>;
146 eeprom@2c { 148 eeprom@2c {
147 reg = <0x2c>; 149 reg = <0x2c>;
148 compatible = "i2c-eeprom"; 150 compatible = "i2c-eeprom";
149 emul { 151 emul {
150 compatible = "sandbox,i2c-eeprom"; 152 compatible = "sandbox,i2c-eeprom";
151 sandbox,filename = "i2c.bin"; 153 sandbox,filename = "i2c.bin";
152 sandbox,size = <256>; 154 sandbox,size = <256>;
155 };
156 };
157
158 rtc_0: rtc@43 {
159 reg = <0x43>;
160 compatible = "sandbox-rtc";
161 emul {
162 compatible = "sandbox,i2c-rtc";
163 };
164 };
165
166 rtc_1: rtc@61 {
167 reg = <0x61>;
168 compatible = "sandbox-rtc";
169 emul {
170 compatible = "sandbox,i2c-rtc";
153 }; 171 };
154 }; 172 };
155 173
156 sandbox_pmic: sandbox_pmic { 174 sandbox_pmic: sandbox_pmic {
157 reg = <0x40>; 175 reg = <0x40>;
158 }; 176 };
159 }; 177 };
160 178
161 pci: pci-controller { 179 pci: pci-controller {
162 compatible = "sandbox,pci"; 180 compatible = "sandbox,pci";
163 device_type = "pci"; 181 device_type = "pci";
164 #address-cells = <3>; 182 #address-cells = <3>;
165 #size-cells = <2>; 183 #size-cells = <2>;
166 ranges = <0x02000000 0 0x10000000 0x10000000 0 0x2000 184 ranges = <0x02000000 0 0x10000000 0x10000000 0 0x2000
167 0x01000000 0 0x20000000 0x20000000 0 0x2000>; 185 0x01000000 0 0x20000000 0x20000000 0 0x2000>;
168 pci@1f,0 { 186 pci@1f,0 {
169 compatible = "pci-generic"; 187 compatible = "pci-generic";
170 reg = <0xf800 0 0 0 0>; 188 reg = <0xf800 0 0 0 0>;
171 emul@1f,0 { 189 emul@1f,0 {
172 compatible = "sandbox,swap-case"; 190 compatible = "sandbox,swap-case";
173 }; 191 };
174 }; 192 };
175 }; 193 };
176 194
177 spi@0 { 195 spi@0 {
178 #address-cells = <1>; 196 #address-cells = <1>;
179 #size-cells = <0>; 197 #size-cells = <0>;
180 reg = <0>; 198 reg = <0>;
181 compatible = "sandbox,spi"; 199 compatible = "sandbox,spi";
182 cs-gpios = <0>, <&gpio_a 0>; 200 cs-gpios = <0>, <&gpio_a 0>;
183 spi.bin@0 { 201 spi.bin@0 {
184 reg = <0>; 202 reg = <0>;
185 compatible = "spansion,m25p16", "spi-flash"; 203 compatible = "spansion,m25p16", "spi-flash";
186 spi-max-frequency = <40000000>; 204 spi-max-frequency = <40000000>;
187 sandbox,filename = "spi.bin"; 205 sandbox,filename = "spi.bin";
188 }; 206 };
189 }; 207 };
190 208
191 uart0: serial { 209 uart0: serial {
192 compatible = "sandbox,serial"; 210 compatible = "sandbox,serial";
193 u-boot,dm-pre-reloc; 211 u-boot,dm-pre-reloc;
194 }; 212 };
195 213
196 usb_0: usb@0 { 214 usb_0: usb@0 {
197 compatible = "sandbox,usb"; 215 compatible = "sandbox,usb";
198 status = "disabled"; 216 status = "disabled";
199 hub { 217 hub {
200 compatible = "sandbox,usb-hub"; 218 compatible = "sandbox,usb-hub";
201 #address-cells = <1>; 219 #address-cells = <1>;
202 #size-cells = <0>; 220 #size-cells = <0>;
203 flash-stick { 221 flash-stick {
204 reg = <0>; 222 reg = <0>;
205 compatible = "sandbox,usb-flash"; 223 compatible = "sandbox,usb-flash";
206 }; 224 };
207 }; 225 };
208 }; 226 };
209 227
210 usb_1: usb@1 { 228 usb_1: usb@1 {
211 compatible = "sandbox,usb"; 229 compatible = "sandbox,usb";
212 hub { 230 hub {
213 compatible = "usb-hub"; 231 compatible = "usb-hub";
214 usb,device-class = <9>; 232 usb,device-class = <9>;
215 hub-emul { 233 hub-emul {
216 compatible = "sandbox,usb-hub"; 234 compatible = "sandbox,usb-hub";
217 #address-cells = <1>; 235 #address-cells = <1>;
218 #size-cells = <0>; 236 #size-cells = <0>;
219 flash-stick { 237 flash-stick {
220 reg = <0>; 238 reg = <0>;
221 compatible = "sandbox,usb-flash"; 239 compatible = "sandbox,usb-flash";
222 sandbox,filepath = "testflash.bin"; 240 sandbox,filepath = "testflash.bin";
223 }; 241 };
224 242
225 }; 243 };
226 }; 244 };
227 }; 245 };
228 246
229 usb_2: usb@2 { 247 usb_2: usb@2 {
230 compatible = "sandbox,usb"; 248 compatible = "sandbox,usb";
231 status = "disabled"; 249 status = "disabled";
232 }; 250 };
233 251
234 }; 252 };
235 253
236 #include "sandbox_pmic.dtsi" 254 #include "sandbox_pmic.dtsi"
237 255