blob: c7fffa2da2715b180867a9ab53a2f140eb5fe2f3 [file] [log] [blame]
Simon Glass7dcc2f72021-08-18 21:40:25 -06001// SPDX-License-Identifier: GPL-2.0+
2/*
3 * Devicetree file for running sandbox tests
4 *
5 * This includes lots of extra devices used by various tests.
6 *
7 * Note that SPL use the main sandbox.dts file
8 */
9
Simon Glass2e7d35d2014-02-26 15:59:21 -070010/dts-v1/;
11
Patrick Delaunay2c0f7822020-01-13 11:35:13 +010012#include <dt-bindings/gpio/gpio.h>
13#include <dt-bindings/gpio/sandbox-gpio.h>
Marek Szyprowski289d0ea2021-02-18 11:33:18 +010014#include <dt-bindings/input/input.h>
Sean Anderson7f0f1802020-09-14 11:01:57 -040015#include <dt-bindings/pinctrl/sandbox-pinmux.h>
Jean-Jacques Hiblot739592c2020-10-16 16:16:34 +053016#include <dt-bindings/mux/mux.h>
Patrick Delaunay2c0f7822020-01-13 11:35:13 +010017
Simon Glass2e7d35d2014-02-26 15:59:21 -070018/ {
19 model = "sandbox";
20 compatible = "sandbox";
21 #address-cells = <1>;
Simon Glass0503e822015-07-06 12:54:36 -060022 #size-cells = <1>;
Simon Glass2e7d35d2014-02-26 15:59:21 -070023
Simon Glass00606d72014-07-23 06:55:03 -060024 aliases {
25 console = &uart0;
Michael Walle82a3c9e2021-02-25 16:51:11 +010026 ethernet0 = "/eth@10002000";
27 ethernet2 = &swp_0;
28 ethernet3 = &eth_3;
29 ethernet4 = &dsa_eth0;
30 ethernet5 = &eth_5;
Sean Andersonbedb1822022-05-05 13:11:30 -040031 ethernet6 = "/eth@10004000";
32 ethernet7 = &swp_1;
33 ethernet8 = &phy_eth0;
Simon Glass5d9a88f2018-10-01 12:22:40 -060034 gpio1 = &gpio_a;
35 gpio2 = &gpio_b;
Patrick Delaunayff526652020-01-13 11:35:14 +010036 gpio3 = &gpio_c;
Simon Glass9cc36a22015-01-25 08:27:05 -070037 i2c0 = "/i2c@0";
Simon Glasse48eeb92017-04-23 20:02:07 -060038 mmc0 = "/mmc0";
39 mmc1 = "/mmc1";
Bin Mengdee4d752018-08-03 01:14:41 -070040 pci0 = &pci0;
41 pci1 = &pci1;
Bin Meng3ed214a2018-08-03 01:14:50 -070042 pci2 = &pci2;
Michael Wallebe1a6e92020-06-02 01:47:09 +020043 remoteproc0 = &rproc_1;
44 remoteproc1 = &rproc_2;
Simon Glass52d3bc52015-05-22 15:42:17 -060045 rtc0 = &rtc_0;
46 rtc1 = &rtc_1;
Simon Glass171e9912015-05-22 15:42:15 -060047 spi0 = "/spi@0";
Przemyslaw Marczakf64000c2015-05-13 13:38:34 +020048 testfdt6 = "/e-test";
Simon Glass9cc36a22015-01-25 08:27:05 -070049 testbus3 = "/some-bus";
50 testfdt0 = "/some-bus/c-test@0";
Simon Glass981426e2020-12-16 21:20:26 -070051 testfdt12 = "/some-bus/c-test@1";
Simon Glass9cc36a22015-01-25 08:27:05 -070052 testfdt3 = "/b-test";
53 testfdt5 = "/some-bus/c-test@5";
54 testfdt8 = "/a-test";
Simon Glass93f44e82020-12-16 21:20:27 -070055 testfdtm1 = &testfdtm1;
Eugeniu Rosca507cef32018-05-19 14:13:55 +020056 fdt-dummy0 = "/translation-test@8000/dev@0,0";
57 fdt-dummy1 = "/translation-test@8000/dev@1,100";
58 fdt-dummy2 = "/translation-test@8000/dev@2,200";
59 fdt-dummy3 = "/translation-test@8000/noxlatebus@3,300/dev@42";
Simon Glasse00cb222015-03-25 12:23:05 -060060 usb0 = &usb_0;
61 usb1 = &usb_1;
62 usb2 = &usb_2;
Mario Six957983e2018-08-09 14:51:19 +020063 axi0 = &axi;
Mario Six4eea5312018-09-27 09:19:31 +020064 osd0 = "/osd";
Simon Glass00606d72014-07-23 06:55:03 -060065 };
66
Philippe Reynes059df562022-03-28 22:56:53 +020067 binman {
68 };
69
Rasmus Villemoes8c728422021-04-21 11:06:55 +020070 config {
Simon Glass7de8bd02021-08-07 07:24:01 -060071 testing-bool;
72 testing-int = <123>;
73 testing-str = "testing";
Rasmus Villemoes8c728422021-04-21 11:06:55 +020074 environment {
75 from_fdt = "yes";
76 fdt_env_path = "";
77 };
78 };
79
Simon Glassfb1451b2022-04-24 23:31:24 -060080 bootstd {
81 compatible = "u-boot,boot-std";
82
83 filename-prefixes = "/", "/boot/";
84 bootdev-order = "mmc2", "mmc1";
85
86 syslinux {
87 compatible = "u-boot,distro-syslinux";
88 };
89
90 efi {
91 compatible = "u-boot,distro-efi";
92 };
93 };
94
Andrew Scull0518e7a2022-05-30 10:00:12 +000095 fuzzing-engine {
96 compatible = "sandbox,fuzzing-engine";
97 };
98
Nandor Hanf9db2f12021-06-10 16:56:44 +030099 reboot-mode0 {
100 compatible = "reboot-mode-gpio";
101 gpios = <&gpio_c 0 GPIO_ACTIVE_HIGH>, <&gpio_c 1 GPIO_ACTIVE_HIGH>;
102 u-boot,env-variable = "bootstatus";
103 mode-test = <0x01>;
104 mode-download = <0x03>;
105 };
106
Nandor Hanc74675b2021-06-10 16:56:45 +0300107 reboot_mode1: reboot-mode@14 {
108 compatible = "reboot-mode-rtc";
109 rtc = <&rtc_0>;
110 reg = <0x30 4>;
111 u-boot,env-variable = "bootstatus";
112 big-endian;
113 mode-test = <0x21969147>;
114 mode-download = <0x51939147>;
115 };
116
Simon Glassce6d99a2018-12-10 10:37:33 -0700117 audio: audio-codec {
118 compatible = "sandbox,audio-codec";
119 #sound-dai-cells = <1>;
120 };
121
Philippe Reynesa6c6f0f2020-07-24 18:19:51 +0200122 buttons {
123 compatible = "gpio-keys";
124
Heinrich Schuchardt39916bb2020-09-14 12:50:54 +0200125 btn1 {
Philippe Reynesa6c6f0f2020-07-24 18:19:51 +0200126 gpios = <&gpio_a 3 0>;
Heinrich Schuchardt39916bb2020-09-14 12:50:54 +0200127 label = "button1";
Philippe Reynesa6c6f0f2020-07-24 18:19:51 +0200128 };
129
Heinrich Schuchardt39916bb2020-09-14 12:50:54 +0200130 btn2 {
Philippe Reynesa6c6f0f2020-07-24 18:19:51 +0200131 gpios = <&gpio_a 4 0>;
Heinrich Schuchardt39916bb2020-09-14 12:50:54 +0200132 label = "button2";
Philippe Reynesa6c6f0f2020-07-24 18:19:51 +0200133 };
134 };
135
Marek Szyprowski289d0ea2021-02-18 11:33:18 +0100136 buttons2 {
137 compatible = "adc-keys";
138 io-channels = <&adc 3>;
139 keyup-threshold-microvolt = <3000000>;
140
141 button-up {
142 label = "button3";
143 linux,code = <KEY_F3>;
144 press-threshold-microvolt = <1500000>;
145 };
146
147 button-down {
148 label = "button4";
149 linux,code = <KEY_F4>;
150 press-threshold-microvolt = <1000000>;
151 };
152
153 button-enter {
154 label = "button5";
155 linux,code = <KEY_F5>;
156 press-threshold-microvolt = <500000>;
157 };
158 };
159
Simon Glasse96fa6c2018-12-10 10:37:34 -0700160 cros_ec: cros-ec {
Simon Glasse6c5c942018-10-01 12:22:08 -0600161 reg = <0 0>;
162 compatible = "google,cros-ec-sandbox";
163
164 /*
165 * This describes the flash memory within the EC. Note
166 * that the STM32L flash erases to 0, not 0xff.
167 */
168 flash {
169 image-pos = <0x08000000>;
170 size = <0x20000>;
171 erase-value = <0>;
172
173 /* Information for sandbox */
174 ro {
175 image-pos = <0>;
176 size = <0xf000>;
177 };
178 wp-ro {
179 image-pos = <0xf000>;
180 size = <0x1000>;
Simon Glassff5fa7d2021-01-21 13:57:14 -0700181 used = <0x884>;
182 compress = "lz4";
183 uncomp-size = <0xcf8>;
184 hash {
185 algo = "sha256";
186 value = [00 01 02 03 04 05 06 07
187 08 09 0a 0b 0c 0d 0e 0f
188 10 11 12 13 14 15 16 17
189 18 19 1a 1b 1c 1d 1e 1f];
190 };
Simon Glasse6c5c942018-10-01 12:22:08 -0600191 };
192 rw {
193 image-pos = <0x10000>;
194 size = <0x10000>;
195 };
196 };
Alper Nebi Yasake7122452021-05-19 19:33:31 +0300197
198 cros_ec_pwm: cros-ec-pwm {
199 compatible = "google,cros-ec-pwm";
200 #pwm-cells = <1>;
201 };
202
Simon Glasse6c5c942018-10-01 12:22:08 -0600203 };
204
Yannick Fertré23f965a2019-10-07 15:29:05 +0200205 dsi_host: dsi_host {
206 compatible = "sandbox,dsi-host";
207 };
208
Simon Glass2e7d35d2014-02-26 15:59:21 -0700209 a-test {
Simon Glass0503e822015-07-06 12:54:36 -0600210 reg = <0 1>;
Simon Glass2e7d35d2014-02-26 15:59:21 -0700211 compatible = "denx,u-boot-fdt-test";
Simon Glasseb9ef5f2014-07-23 06:54:57 -0600212 ping-expect = <0>;
Simon Glass2e7d35d2014-02-26 15:59:21 -0700213 ping-add = <0>;
Simon Glass00606d72014-07-23 06:55:03 -0600214 u-boot,dm-pre-reloc;
Patrick Delaunay2c0f7822020-01-13 11:35:13 +0100215 test-gpios = <&gpio_a 1>, <&gpio_a 4>,
216 <&gpio_b 5 GPIO_ACTIVE_HIGH 3 2 1>,
Simon Glass3669e0e2015-01-05 20:05:29 -0700217 <0>, <&gpio_a 12>;
Patrick Delaunay2c0f7822020-01-13 11:35:13 +0100218 test2-gpios = <&gpio_a 1>, <&gpio_a 4>,
219 <&gpio_b 6 GPIO_ACTIVE_LOW 3 2 1>,
220 <&gpio_b 7 GPIO_IN 3 2 1>,
221 <&gpio_b 8 GPIO_OUT 3 2 1>,
222 <&gpio_b 9 (GPIO_OUT|GPIO_OUT_ACTIVE) 3 2 1>;
Patrick Delaunayff526652020-01-13 11:35:14 +0100223 test3-gpios =
224 <&gpio_c 0 (GPIO_OUT|GPIO_OPEN_DRAIN)>,
225 <&gpio_c 1 (GPIO_OUT|GPIO_OPEN_SOURCE)>,
226 <&gpio_c 2 GPIO_OUT>,
227 <&gpio_c 3 (GPIO_IN|GPIO_PULL_UP)>,
228 <&gpio_c 4 (GPIO_IN|GPIO_PULL_DOWN)>,
Neil Armstrong9bf87e22020-05-05 10:43:18 +0200229 <&gpio_c 5 GPIO_IN>,
230 <&gpio_c 6 (GPIO_ACTIVE_LOW|GPIO_OUT|GPIO_OPEN_DRAIN)>,
231 <&gpio_c 7 (GPIO_ACTIVE_LOW|GPIO_OUT|GPIO_OPEN_SOURCE)>;
Jean-Jacques Hiblot88e6a602020-09-11 13:43:35 +0530232 test4-gpios = <&gpio_a 14>, <&gpio_b 4 1 3 2 1>;
233 test5-gpios = <&gpio_a 19>;
234
Simon Glassfb933d02021-10-23 17:26:04 -0600235 bool-value;
Stefan Herbrechtsmeierb471bdc2022-06-14 15:21:30 +0200236 int8-value = /bits/ 8 <0x12>;
237 int16-value = /bits/ 16 <0x1234>;
Simon Glassa1b17e42018-12-10 10:37:37 -0700238 int-value = <1234>;
239 uint-value = <(-1234)>;
Dario Binacchi70573c62020-03-29 18:04:40 +0200240 int64-value = /bits/ 64 <0x1111222233334444>;
Dario Binacchi4bb70752020-03-29 18:04:41 +0200241 int-array = <5678 9123 4567>;
Simon Glass06679002020-07-07 13:11:58 -0600242 str-value = "test string";
Simon Glass02554352020-02-06 09:55:00 -0700243 interrupts-extended = <&irq 3 0>;
Simon Glassfefac0b2020-07-07 13:12:11 -0600244 acpi,name = "GHIJ";
Patrick Delaunaycc72f3e2020-09-25 09:41:16 +0200245 phandle-value = <&gpio_c 10>, <0xFFFFFFFF 20>, <&gpio_a 30>;
Jean-Jacques Hiblot739592c2020-10-16 16:16:34 +0530246
247 mux-controls = <&muxcontroller0 0>, <&muxcontroller0 1>,
248 <&muxcontroller0 2>, <&muxcontroller0 3>,
249 <&muxcontroller1>;
250 mux-control-names = "mux0", "mux1", "mux2", "mux3", "mux4";
251 mux-syscon = <&syscon3>;
Dario Binacchi15daa482020-12-30 00:16:26 +0100252 display-timings {
253 timing0: 240x320 {
254 clock-frequency = <6500000>;
255 hactive = <240>;
256 vactive = <320>;
257 hfront-porch = <6>;
258 hback-porch = <7>;
259 hsync-len = <1>;
260 vback-porch = <5>;
261 vfront-porch = <8>;
262 vsync-len = <2>;
263 hsync-active = <1>;
264 vsync-active = <0>;
265 de-active = <1>;
266 pixelclk-active = <1>;
267 interlaced;
268 doublescan;
269 doubleclk;
270 };
271 timing1: 480x800 {
272 clock-frequency = <9000000>;
273 hactive = <480>;
274 vactive = <800>;
275 hfront-porch = <10>;
276 hback-porch = <59>;
277 hsync-len = <12>;
278 vback-porch = <15>;
279 vfront-porch = <17>;
280 vsync-len = <16>;
281 hsync-active = <0>;
282 vsync-active = <1>;
283 de-active = <0>;
284 pixelclk-active = <0>;
285 };
286 timing2: 800x480 {
287 clock-frequency = <33500000>;
288 hactive = <800>;
289 vactive = <480>;
290 hback-porch = <89>;
291 hfront-porch = <164>;
292 vback-porch = <23>;
293 vfront-porch = <10>;
294 hsync-len = <11>;
295 vsync-len = <13>;
296 };
297 };
Simon Glass2e7d35d2014-02-26 15:59:21 -0700298 };
299
300 junk {
Simon Glass0503e822015-07-06 12:54:36 -0600301 reg = <1 1>;
Simon Glass2e7d35d2014-02-26 15:59:21 -0700302 compatible = "not,compatible";
303 };
304
305 no-compatible {
Simon Glass0503e822015-07-06 12:54:36 -0600306 reg = <2 1>;
Simon Glass2e7d35d2014-02-26 15:59:21 -0700307 };
308
Simon Glass5d9a88f2018-10-01 12:22:40 -0600309 backlight: backlight {
310 compatible = "pwm-backlight";
311 enable-gpios = <&gpio_a 1>;
312 power-supply = <&ldo_1>;
313 pwms = <&pwm 0 1000>;
314 default-brightness-level = <5>;
315 brightness-levels = <0 16 32 64 128 170 202 234 255>;
316 };
317
Jean-Jacques Hiblot49c752c2018-08-09 16:17:46 +0200318 bind-test {
Patrice Chotard1f0d5882020-07-28 09:13:33 +0200319 compatible = "simple-bus";
Jean-Jacques Hiblot49c752c2018-08-09 16:17:46 +0200320 bind-test-child1 {
321 compatible = "sandbox,phy";
322 #phy-cells = <1>;
323 };
324
325 bind-test-child2 {
326 compatible = "simple-bus";
327 };
328 };
329
Simon Glass2e7d35d2014-02-26 15:59:21 -0700330 b-test {
Simon Glass0503e822015-07-06 12:54:36 -0600331 reg = <3 1>;
Simon Glass2e7d35d2014-02-26 15:59:21 -0700332 compatible = "denx,u-boot-fdt-test";
Simon Glasseb9ef5f2014-07-23 06:54:57 -0600333 ping-expect = <3>;
Simon Glass2e7d35d2014-02-26 15:59:21 -0700334 ping-add = <3>;
Jean-Jacques Hiblot739592c2020-10-16 16:16:34 +0530335
336 mux-controls = <&muxcontroller0 0>;
337 mux-control-names = "mux0";
Simon Glass2e7d35d2014-02-26 15:59:21 -0700338 };
339
Jean-Jacques Hiblot86322f52017-04-24 11:51:28 +0200340 phy_provider0: gen_phy@0 {
341 compatible = "sandbox,phy";
342 #phy-cells = <1>;
343 };
344
345 phy_provider1: gen_phy@1 {
346 compatible = "sandbox,phy";
347 #phy-cells = <0>;
348 broken;
349 };
350
Chunfeng Yun00c82ac2020-05-02 11:35:12 +0200351 phy_provider2: gen_phy@2 {
352 compatible = "sandbox,phy";
353 #phy-cells = <0>;
354 };
355
Jean-Jacques Hiblot86322f52017-04-24 11:51:28 +0200356 gen_phy_user: gen_phy_user {
357 compatible = "simple-bus";
358 phys = <&phy_provider0 0>, <&phy_provider0 1>, <&phy_provider1>;
359 phy-names = "phy1", "phy2", "phy3";
360 };
361
Chunfeng Yun00c82ac2020-05-02 11:35:12 +0200362 gen_phy_user1: gen_phy_user1 {
363 compatible = "simple-bus";
364 phys = <&phy_provider0 0>, <&phy_provider2>;
365 phy-names = "phy1", "phy2";
366 };
367
Simon Glass2e7d35d2014-02-26 15:59:21 -0700368 some-bus {
369 #address-cells = <1>;
370 #size-cells = <0>;
Simon Glass1ca7e202014-07-23 06:55:18 -0600371 compatible = "denx,u-boot-test-bus";
Simon Glass0503e822015-07-06 12:54:36 -0600372 reg = <3 1>;
Simon Glasseb9ef5f2014-07-23 06:54:57 -0600373 ping-expect = <4>;
Simon Glass2e7d35d2014-02-26 15:59:21 -0700374 ping-add = <4>;
Simon Glass1ca7e202014-07-23 06:55:18 -0600375 c-test@5 {
Simon Glass2e7d35d2014-02-26 15:59:21 -0700376 compatible = "denx,u-boot-fdt-test";
377 reg = <5>;
Simon Glass1ca7e202014-07-23 06:55:18 -0600378 ping-expect = <5>;
Simon Glass2e7d35d2014-02-26 15:59:21 -0700379 ping-add = <5>;
380 };
Simon Glass1ca7e202014-07-23 06:55:18 -0600381 c-test@0 {
382 compatible = "denx,u-boot-fdt-test";
383 reg = <0>;
384 ping-expect = <6>;
385 ping-add = <6>;
386 };
387 c-test@1 {
388 compatible = "denx,u-boot-fdt-test";
389 reg = <1>;
390 ping-expect = <7>;
391 ping-add = <7>;
392 };
Simon Glass2e7d35d2014-02-26 15:59:21 -0700393 };
394
395 d-test {
Simon Glass0503e822015-07-06 12:54:36 -0600396 reg = <3 1>;
Simon Glass5a66a8f2014-07-23 06:55:12 -0600397 ping-expect = <6>;
398 ping-add = <6>;
399 compatible = "google,another-fdt-test";
400 };
401
402 e-test {
Simon Glass0503e822015-07-06 12:54:36 -0600403 reg = <3 1>;
Simon Glasseb9ef5f2014-07-23 06:54:57 -0600404 ping-expect = <6>;
Simon Glass2e7d35d2014-02-26 15:59:21 -0700405 ping-add = <6>;
406 compatible = "google,another-fdt-test";
407 };
408
Simon Glass9cc36a22015-01-25 08:27:05 -0700409 f-test {
410 compatible = "denx,u-boot-fdt-test";
411 };
412
413 g-test {
414 compatible = "denx,u-boot-fdt-test";
415 };
416
Bin Meng2786cd72018-10-10 22:07:01 -0700417 h-test {
418 compatible = "denx,u-boot-fdt-test1";
419 };
420
Chunfeng Yunbf6ad912020-05-02 11:35:10 +0200421 i-test {
422 compatible = "mediatek,u-boot-fdt-test";
423 #address-cells = <1>;
424 #size-cells = <0>;
425
426 subnode@0 {
427 reg = <0>;
428 };
429
430 subnode@1 {
431 reg = <1>;
432 };
433
434 subnode@2 {
435 reg = <2>;
436 };
437 };
438
Simon Glassdc12ebb2019-12-29 21:19:25 -0700439 devres-test {
440 compatible = "denx,u-boot-devres-test";
441 };
442
Jean-Jacques Hiblot88e6a602020-09-11 13:43:35 +0530443 another-test {
444 reg = <0 2>;
445 compatible = "denx,u-boot-fdt-test";
446 test4-gpios = <&gpio_a 14>, <&gpio_b 4 1 3 2 1>;
447 test5-gpios = <&gpio_a 19>;
448 };
449
Nicolas Saenz Julienne283628c2021-01-12 13:55:23 +0100450 mmio-bus@0 {
451 #address-cells = <1>;
452 #size-cells = <1>;
453 compatible = "denx,u-boot-test-bus";
454 dma-ranges = <0x10000000 0x00000000 0x00040000>;
455
456 subnode@0 {
457 compatible = "denx,u-boot-fdt-test";
458 };
459 };
460
461 mmio-bus@1 {
462 #address-cells = <1>;
463 #size-cells = <1>;
464 compatible = "denx,u-boot-test-bus";
Nicolas Saenz Juliennee8801872021-01-12 13:55:25 +0100465
466 subnode@0 {
467 compatible = "denx,u-boot-fdt-test";
468 };
Nicolas Saenz Julienne283628c2021-01-12 13:55:23 +0100469 };
470
Simon Glass0f7b1112020-07-07 13:12:06 -0600471 acpi_test1: acpi-test {
Simon Glassf50cc952020-04-08 16:57:34 -0600472 compatible = "denx,u-boot-acpi-test";
Simon Glassb5183172020-07-07 13:12:03 -0600473 acpi-ssdt-test-data = "ab";
Simon Glass01694582020-07-07 13:12:08 -0600474 acpi-dsdt-test-data = "hi";
Simon Glass1361a532020-07-07 13:11:39 -0600475 child {
476 compatible = "denx,u-boot-acpi-test";
477 };
Simon Glassf50cc952020-04-08 16:57:34 -0600478 };
479
Simon Glass0f7b1112020-07-07 13:12:06 -0600480 acpi_test2: acpi-test2 {
Simon Glass93f7f822020-04-26 09:19:46 -0600481 compatible = "denx,u-boot-acpi-test";
Simon Glassb5183172020-07-07 13:12:03 -0600482 acpi-ssdt-test-data = "cd";
Simon Glass01694582020-07-07 13:12:08 -0600483 acpi-dsdt-test-data = "jk";
Simon Glass93f7f822020-04-26 09:19:46 -0600484 };
485
Patrice Chotardee87a092017-09-04 14:55:57 +0200486 clocks {
487 clk_fixed: clk-fixed {
488 compatible = "fixed-clock";
489 #clock-cells = <0>;
490 clock-frequency = <1234>;
491 };
Anup Patelb630d572019-02-25 08:14:55 +0000492
493 clk_fixed_factor: clk-fixed-factor {
494 compatible = "fixed-factor-clock";
495 #clock-cells = <0>;
496 clock-div = <3>;
497 clock-mult = <2>;
498 clocks = <&clk_fixed>;
499 };
Lukasz Majewski4ab8e782019-06-24 15:50:47 +0200500
501 osc {
502 compatible = "fixed-clock";
503 #clock-cells = <0>;
504 clock-frequency = <20000000>;
505 };
Stephen Warren135aa952016-06-17 09:44:00 -0600506 };
507
508 clk_sandbox: clk-sbox {
Simon Glass6a1c7ce2015-07-06 12:54:24 -0600509 compatible = "sandbox,clk";
Stephen Warren135aa952016-06-17 09:44:00 -0600510 #clock-cells = <1>;
Jean-Jacques Hiblot9a52be12019-10-22 14:00:07 +0200511 assigned-clocks = <&clk_sandbox 3>;
512 assigned-clock-rates = <321>;
Stephen Warren135aa952016-06-17 09:44:00 -0600513 };
514
515 clk-test {
516 compatible = "sandbox,clk-test";
517 clocks = <&clk_fixed>,
518 <&clk_sandbox 1>,
Jean-Jacques Hiblotdd2e0ce2019-10-22 14:00:05 +0200519 <&clk_sandbox 0>,
520 <&clk_sandbox 3>,
521 <&clk_sandbox 2>;
522 clock-names = "fixed", "i2c", "spi", "uart2", "uart1";
Simon Glass6a1c7ce2015-07-06 12:54:24 -0600523 };
524
Lukasz Majewski87e460c2019-06-24 15:50:50 +0200525 ccf: clk-ccf {
526 compatible = "sandbox,clk-ccf";
527 };
528
Simon Glass42b7f422021-12-04 08:56:31 -0700529 efi-media {
530 compatible = "sandbox,efi-media";
531 };
532
Simon Glass171e9912015-05-22 15:42:15 -0600533 eth@10002000 {
534 compatible = "sandbox,eth";
535 reg = <0x10002000 0x1000>;
Simon Glass171e9912015-05-22 15:42:15 -0600536 };
537
538 eth_5: eth@10003000 {
539 compatible = "sandbox,eth";
540 reg = <0x10003000 0x1000>;
Sean Anderson3f51ba92022-05-05 13:11:44 -0400541 nvmem-cells = <&eth5_addr>;
542 nvmem-cell-names = "mac-address";
Simon Glass171e9912015-05-22 15:42:15 -0600543 };
544
Bin Meng71d79712015-08-27 22:25:53 -0700545 eth_3: sbe5 {
546 compatible = "sandbox,eth";
547 reg = <0x10005000 0x1000>;
Sean Anderson472caa62022-05-05 13:11:42 -0400548 nvmem-cells = <&eth3_addr>;
549 nvmem-cell-names = "mac-address";
Bin Meng71d79712015-08-27 22:25:53 -0700550 };
551
Simon Glass171e9912015-05-22 15:42:15 -0600552 eth@10004000 {
553 compatible = "sandbox,eth";
554 reg = <0x10004000 0x1000>;
Simon Glass171e9912015-05-22 15:42:15 -0600555 };
556
Marek BehĂșnf3dd2132022-04-07 00:32:57 +0200557 phy_eth0: phy-test-eth {
558 compatible = "sandbox,eth";
559 reg = <0x10007000 0x1000>;
Sean Andersone844e5d2022-05-05 13:11:35 -0400560 mac-address = [ 02 00 11 22 33 49 ];
Marek BehĂșnf3dd2132022-04-07 00:32:57 +0200561 phy-handle = <&ethphy1>;
Marek BehĂșn123ca112022-04-07 00:33:01 +0200562 phy-mode = "2500base-x";
Marek BehĂșnf3dd2132022-04-07 00:32:57 +0200563 };
564
Claudiu Manoilff98da02021-03-14 20:14:57 +0800565 dsa_eth0: dsa-test-eth {
566 compatible = "sandbox,eth";
567 reg = <0x10006000 0x1000>;
Sean Andersond3f72872022-05-05 13:11:43 -0400568 nvmem-cells = <&eth4_addr>;
569 nvmem-cell-names = "mac-address";
Claudiu Manoilff98da02021-03-14 20:14:57 +0800570 };
571
572 dsa-test {
573 compatible = "sandbox,dsa";
574
575 ports {
576 #address-cells = <1>;
577 #size-cells = <0>;
578 swp_0: port@0 {
579 reg = <0>;
580 label = "lan0";
581 phy-mode = "rgmii-rxid";
582
583 fixed-link {
584 speed = <100>;
585 full-duplex;
586 };
587 };
588
589 swp_1: port@1 {
590 reg = <1>;
591 label = "lan1";
592 phy-mode = "rgmii-txid";
Bin Meng534c69b2021-03-14 20:14:58 +0800593 fixed-link = <0 1 100 0 0>;
Claudiu Manoilff98da02021-03-14 20:14:57 +0800594 };
595
596 port@2 {
597 reg = <2>;
598 ethernet = <&dsa_eth0>;
599
600 fixed-link {
601 speed = <1000>;
602 full-duplex;
603 };
604 };
605 };
606 };
607
Rajan Vaja31b82172018-09-19 03:43:46 -0700608 firmware {
609 sandbox_firmware: sandbox-firmware {
610 compatible = "sandbox,firmware";
611 };
Etienne Carriere358599e2020-09-09 18:44:00 +0200612
Etienne Carriere41d62e22022-02-21 09:22:39 +0100613 scmi {
Etienne Carriere358599e2020-09-09 18:44:00 +0200614 compatible = "sandbox,scmi-agent";
615 #address-cells = <1>;
616 #size-cells = <0>;
Etienne Carriere87d4f272020-09-09 18:44:05 +0200617
Etienne Carriere41d62e22022-02-21 09:22:39 +0100618 protocol@10 {
619 reg = <0x10>;
620 };
621
622 clk_scmi: protocol@14 {
Etienne Carriere87d4f272020-09-09 18:44:05 +0200623 reg = <0x14>;
624 #clock-cells = <1>;
625 };
Etienne Carrierec0dd1772020-09-09 18:44:07 +0200626
Etienne Carriere41d62e22022-02-21 09:22:39 +0100627 reset_scmi: protocol@16 {
Etienne Carrierec0dd1772020-09-09 18:44:07 +0200628 reg = <0x16>;
629 #reset-cells = <1>;
630 };
Etienne Carriere01242182021-03-08 22:38:07 +0100631
632 protocol@17 {
633 reg = <0x17>;
634
635 regulators {
636 #address-cells = <1>;
637 #size-cells = <0>;
638
Etienne Carriere41d62e22022-02-21 09:22:39 +0100639 regul0_scmi: reg@0 {
Etienne Carriere01242182021-03-08 22:38:07 +0100640 reg = <0>;
641 regulator-name = "sandbox-voltd0";
642 regulator-min-microvolt = <1100000>;
643 regulator-max-microvolt = <3300000>;
644 };
Etienne Carriere41d62e22022-02-21 09:22:39 +0100645 regul1_scmi: reg@1 {
Etienne Carriere01242182021-03-08 22:38:07 +0100646 reg = <0x1>;
647 regulator-name = "sandbox-voltd1";
648 regulator-min-microvolt = <1800000>;
649 };
650 };
651 };
Etienne Carriere358599e2020-09-09 18:44:00 +0200652 };
Rajan Vaja31b82172018-09-19 03:43:46 -0700653 };
654
Patrick Delaunaye5301ba2020-01-13 11:35:15 +0100655 pinctrl-gpio {
656 compatible = "sandbox,pinctrl-gpio";
Simon Glass2e7d35d2014-02-26 15:59:21 -0700657
Patrick Delaunaye5301ba2020-01-13 11:35:15 +0100658 gpio_a: base-gpios {
659 compatible = "sandbox,gpio";
660 gpio-controller;
661 #gpio-cells = <1>;
662 gpio-bank-name = "a";
663 sandbox,gpio-count = <20>;
Heiko Schocher9ba84322020-05-22 11:08:58 +0200664 hog_input_active_low {
665 gpio-hog;
666 input;
Philippe Reynes037a56d2020-07-24 15:51:53 +0200667 gpios = <10 GPIO_ACTIVE_LOW>;
Heiko Schocher9ba84322020-05-22 11:08:58 +0200668 };
669 hog_input_active_high {
670 gpio-hog;
671 input;
Philippe Reynes037a56d2020-07-24 15:51:53 +0200672 gpios = <11 GPIO_ACTIVE_HIGH>;
Heiko Schocher9ba84322020-05-22 11:08:58 +0200673 };
674 hog_output_low {
675 gpio-hog;
676 output-low;
Philippe Reynes037a56d2020-07-24 15:51:53 +0200677 gpios = <12 GPIO_ACTIVE_HIGH>;
Heiko Schocher9ba84322020-05-22 11:08:58 +0200678 };
679 hog_output_high {
680 gpio-hog;
681 output-high;
Philippe Reynes037a56d2020-07-24 15:51:53 +0200682 gpios = <13 GPIO_ACTIVE_HIGH>;
Heiko Schocher9ba84322020-05-22 11:08:58 +0200683 };
Patrick Delaunaye5301ba2020-01-13 11:35:15 +0100684 };
Simon Glass0ae0cb72014-10-13 23:42:11 -0600685
Patrick Delaunaye5301ba2020-01-13 11:35:15 +0100686 gpio_b: extra-gpios {
687 compatible = "sandbox,gpio";
688 gpio-controller;
689 #gpio-cells = <5>;
690 gpio-bank-name = "b";
691 sandbox,gpio-count = <10>;
692 };
693
694 gpio_c: pinmux-gpios {
695 compatible = "sandbox,gpio";
696 gpio-controller;
697 #gpio-cells = <2>;
698 gpio-bank-name = "c";
699 sandbox,gpio-count = <10>;
700 };
Patrick Delaunayff526652020-01-13 11:35:14 +0100701 };
702
Simon Glassecc2ed52014-12-10 08:55:55 -0700703 i2c@0 {
704 #address-cells = <1>;
705 #size-cells = <0>;
Simon Glass0503e822015-07-06 12:54:36 -0600706 reg = <0 1>;
Simon Glassecc2ed52014-12-10 08:55:55 -0700707 compatible = "sandbox,i2c";
708 clock-frequency = <100000>;
Dario Binacchi55322622021-04-11 09:39:50 +0200709 pinctrl-names = "default";
710 pinctrl-0 = <&pinmux_i2c0_pins>;
711
Simon Glassecc2ed52014-12-10 08:55:55 -0700712 eeprom@2c {
Sean Anderson472caa62022-05-05 13:11:42 -0400713 #address-cells = <1>;
714 #size-cells = <1>;
Simon Glassecc2ed52014-12-10 08:55:55 -0700715 reg = <0x2c>;
716 compatible = "i2c-eeprom";
Simon Glass031a6502018-11-18 08:14:34 -0700717 sandbox,emul = <&emul_eeprom>;
Michal Simekf692b472020-05-28 11:48:55 +0200718 partitions {
719 compatible = "fixed-partitions";
720 #address-cells = <1>;
721 #size-cells = <1>;
722 bootcount_i2c: bootcount@10 {
723 reg = <10 2>;
724 };
725 };
Sean Anderson472caa62022-05-05 13:11:42 -0400726
727 eth3_addr: mac-address@24 {
728 reg = <24 6>;
729 };
Simon Glassecc2ed52014-12-10 08:55:55 -0700730 };
Przemyslaw Marczak9038cd52015-05-13 13:38:35 +0200731
Simon Glass52d3bc52015-05-22 15:42:17 -0600732 rtc_0: rtc@43 {
Sean Andersond3f72872022-05-05 13:11:43 -0400733 #address-cells = <1>;
734 #size-cells = <1>;
Simon Glass52d3bc52015-05-22 15:42:17 -0600735 reg = <0x43>;
736 compatible = "sandbox-rtc";
Simon Glass031a6502018-11-18 08:14:34 -0700737 sandbox,emul = <&emul0>;
Sean Andersond3f72872022-05-05 13:11:43 -0400738
739 eth4_addr: mac-address@40 {
740 reg = <0x40 6>;
741 };
Simon Glass52d3bc52015-05-22 15:42:17 -0600742 };
743
744 rtc_1: rtc@61 {
745 reg = <0x61>;
746 compatible = "sandbox-rtc";
Simon Glass031a6502018-11-18 08:14:34 -0700747 sandbox,emul = <&emul1>;
748 };
749
750 i2c_emul: emul {
751 reg = <0xff>;
752 compatible = "sandbox,i2c-emul-parent";
753 emul_eeprom: emul-eeprom {
754 compatible = "sandbox,i2c-eeprom";
755 sandbox,filename = "i2c.bin";
756 sandbox,size = <256>;
757 };
758 emul0: emul0 {
Simon Glassc4085d72021-02-03 06:01:17 -0700759 compatible = "sandbox,i2c-rtc-emul";
Simon Glass031a6502018-11-18 08:14:34 -0700760 };
761 emul1: emull {
Simon Glassc4085d72021-02-03 06:01:17 -0700762 compatible = "sandbox,i2c-rtc-emul";
Simon Glass52d3bc52015-05-22 15:42:17 -0600763 };
764 };
765
Przemyslaw Marczak9038cd52015-05-13 13:38:35 +0200766 sandbox_pmic: sandbox_pmic {
767 reg = <0x40>;
Simon Glass031a6502018-11-18 08:14:34 -0700768 sandbox,emul = <&emul_pmic0>;
Przemyslaw Marczak9038cd52015-05-13 13:38:35 +0200769 };
Lukasz Majewski686df492018-05-15 16:26:40 +0200770
771 mc34708: pmic@41 {
772 reg = <0x41>;
Simon Glass031a6502018-11-18 08:14:34 -0700773 sandbox,emul = <&emul_pmic1>;
Lukasz Majewski686df492018-05-15 16:26:40 +0200774 };
Simon Glassecc2ed52014-12-10 08:55:55 -0700775 };
776
Philipp Tomsich6f2d59c2018-12-14 21:14:29 +0100777 bootcount@0 {
778 compatible = "u-boot,bootcount-rtc";
779 rtc = <&rtc_1>;
780 offset = <0x13>;
781 };
782
Michal Simekf692b472020-05-28 11:48:55 +0200783 bootcount {
784 compatible = "u-boot,bootcount-i2c-eeprom";
785 i2c-eeprom = <&bootcount_i2c>;
786 };
787
Nandor Hanc50b21b2021-06-10 15:40:38 +0300788 bootcount_4@0 {
789 compatible = "u-boot,bootcount-syscon";
790 syscon = <&syscon0>;
791 reg = <0x0 0x04>, <0x0 0x04>;
792 reg-names = "syscon_reg", "offset";
793 };
794
795 bootcount_2@0 {
796 compatible = "u-boot,bootcount-syscon";
797 syscon = <&syscon0>;
798 reg = <0x0 0x04>, <0x0 0x02> ;
799 reg-names = "syscon_reg", "offset";
800 };
801
Marek Szyprowski289d0ea2021-02-18 11:33:18 +0100802 adc: adc@0 {
Przemyslaw Marczak08d63002015-10-27 13:08:06 +0100803 compatible = "sandbox,adc";
Marek Szyprowski289d0ea2021-02-18 11:33:18 +0100804 #io-channel-cells = <1>;
Przemyslaw Marczak08d63002015-10-27 13:08:06 +0100805 vdd-supply = <&buck2>;
806 vss-microvolts = <0>;
807 };
808
Mark Kettenisfb574622021-10-23 16:58:02 +0200809 iommu: iommu@0 {
810 compatible = "sandbox,iommu";
811 #iommu-cells = <0>;
812 };
813
Simon Glass02554352020-02-06 09:55:00 -0700814 irq: irq {
Simon Glassfbb0efd2019-12-06 21:41:59 -0700815 compatible = "sandbox,irq";
Simon Glass02554352020-02-06 09:55:00 -0700816 interrupt-controller;
817 #interrupt-cells = <2>;
Simon Glassfbb0efd2019-12-06 21:41:59 -0700818 };
819
Simon Glass3c97c4f2016-01-18 19:52:26 -0700820 lcd {
821 u-boot,dm-pre-reloc;
822 compatible = "sandbox,lcd-sdl";
Dario Binacchi55322622021-04-11 09:39:50 +0200823 pinctrl-names = "default";
824 pinctrl-0 = <&pinmux_lcd_pins>;
Simon Glass3c97c4f2016-01-18 19:52:26 -0700825 xres = <1366>;
826 yres = <768>;
827 };
828
Simon Glass3c43fba2015-07-06 12:54:34 -0600829 leds {
830 compatible = "gpio-leds";
831
832 iracibble {
833 gpios = <&gpio_a 1 0>;
834 label = "sandbox:red";
835 };
836
837 martinet {
838 gpios = <&gpio_a 2 0>;
839 label = "sandbox:green";
840 };
Patrick Bruenn274fb462018-04-11 11:16:29 +0200841
842 default_on {
843 gpios = <&gpio_a 5 0>;
844 label = "sandbox:default_on";
845 default-state = "on";
846 };
847
848 default_off {
849 gpios = <&gpio_a 6 0>;
Sean Anderson3e41c7b2020-09-14 11:02:03 -0400850 /* label intentionally omitted */
Patrick Bruenn274fb462018-04-11 11:16:29 +0200851 default-state = "off";
852 };
Simon Glass3c43fba2015-07-06 12:54:34 -0600853 };
854
Paul Doelle1fc45d62022-07-04 09:00:25 +0000855 wdt-gpio-toggle {
Rasmus Villemoesa9346b92021-08-19 11:57:05 +0200856 gpios = <&gpio_a 7 0>;
857 compatible = "linux,wdt-gpio";
Rasmus Villemoes4171c572021-08-19 11:57:06 +0200858 hw_margin_ms = <100>;
Paul Doelle1fc45d62022-07-04 09:00:25 +0000859 hw_algo = "toggle";
860 always-running;
861 };
862
863 wdt-gpio-level {
864 gpios = <&gpio_a 7 0>;
865 compatible = "linux,wdt-gpio";
866 hw_margin_ms = <100>;
867 hw_algo = "level";
Rasmus Villemoesa9346b92021-08-19 11:57:05 +0200868 always-running;
869 };
870
Stephen Warren8961b522016-05-16 17:41:37 -0600871 mbox: mbox {
872 compatible = "sandbox,mbox";
873 #mbox-cells = <1>;
874 };
875
876 mbox-test {
877 compatible = "sandbox,mbox-test";
878 mboxes = <&mbox 100>, <&mbox 1>;
879 mbox-names = "other", "test";
880 };
881
AKASHI Takahiro073e6d62019-08-27 17:17:03 +0900882 cpus {
Heinrich Schuchardt8ae8da12021-08-28 11:42:08 +0200883 #address-cells = <1>;
884 #size-cells = <0>;
Sean Anderson7616e362020-09-28 10:52:23 -0400885 timebase-frequency = <2000000>;
Heinrich Schuchardt8ae8da12021-08-28 11:42:08 +0200886 cpu1: cpu@1 {
887 device_type = "cpu";
888 reg = <0x1>;
Sean Anderson7616e362020-09-28 10:52:23 -0400889 timebase-frequency = <3000000>;
AKASHI Takahiro073e6d62019-08-27 17:17:03 +0900890 compatible = "sandbox,cpu_sandbox";
891 u-boot,dm-pre-reloc;
892 };
Mario Sixfa44b532018-08-06 10:23:44 +0200893
Heinrich Schuchardt8ae8da12021-08-28 11:42:08 +0200894 cpu2: cpu@2 {
895 device_type = "cpu";
896 reg = <0x2>;
AKASHI Takahiro073e6d62019-08-27 17:17:03 +0900897 compatible = "sandbox,cpu_sandbox";
898 u-boot,dm-pre-reloc;
899 };
Mario Sixfa44b532018-08-06 10:23:44 +0200900
Heinrich Schuchardt8ae8da12021-08-28 11:42:08 +0200901 cpu3: cpu@3 {
902 device_type = "cpu";
903 reg = <0x3>;
AKASHI Takahiro073e6d62019-08-27 17:17:03 +0900904 compatible = "sandbox,cpu_sandbox";
905 u-boot,dm-pre-reloc;
906 };
Mario Sixfa44b532018-08-06 10:23:44 +0200907 };
908
Dave Gerlach21e3c212020-07-15 23:39:58 -0500909 chipid: chipid {
910 compatible = "sandbox,soc";
911 };
912
Simon Glasse96fa6c2018-12-10 10:37:34 -0700913 i2s: i2s {
914 compatible = "sandbox,i2s";
915 #sound-dai-cells = <1>;
Simon Glassecc79732019-02-16 20:24:56 -0700916 sandbox,silent; /* Don't emit sounds while testing */
Simon Glasse96fa6c2018-12-10 10:37:34 -0700917 };
918
Jean-Jacques Hiblot07e33712019-07-05 09:33:57 +0200919 nop-test_0 {
920 compatible = "sandbox,nop_sandbox1";
921 nop-test_1 {
922 compatible = "sandbox,nop_sandbox2";
923 bind = "True";
924 };
925 nop-test_2 {
926 compatible = "sandbox,nop_sandbox2";
927 bind = "False";
928 };
929 };
930
Mario Six004e67c2018-07-31 14:24:14 +0200931 misc-test {
Sean Anderson3f51ba92022-05-05 13:11:44 -0400932 #address-cells = <1>;
933 #size-cells = <1>;
Mario Six004e67c2018-07-31 14:24:14 +0200934 compatible = "sandbox,misc_sandbox";
Sean Anderson3f51ba92022-05-05 13:11:44 -0400935
936 eth5_addr: mac-address@10 {
937 reg = <0x10 6>;
938 };
Mario Six004e67c2018-07-31 14:24:14 +0200939 };
940
Simon Glasse48eeb92017-04-23 20:02:07 -0600941 mmc2 {
942 compatible = "sandbox,mmc";
Simon Glass6b165ab2021-07-05 16:32:58 -0600943 non-removable;
Simon Glasse48eeb92017-04-23 20:02:07 -0600944 };
945
Simon Glassfb1451b2022-04-24 23:31:24 -0600946 /* This is used for the bootdev tests */
Simon Glasse48eeb92017-04-23 20:02:07 -0600947 mmc1 {
948 compatible = "sandbox,mmc";
Simon Glassfb1451b2022-04-24 23:31:24 -0600949 filename = "mmc1.img";
Simon Glasse48eeb92017-04-23 20:02:07 -0600950 };
951
Simon Glassfb1451b2022-04-24 23:31:24 -0600952 /* This is used for the fastboot tests */
Simon Glasse48eeb92017-04-23 20:02:07 -0600953 mmc0 {
Simon Glass8e6cc462015-07-06 12:54:32 -0600954 compatible = "sandbox,mmc";
955 };
956
Simon Glassb45c8332019-02-16 20:24:50 -0700957 pch {
958 compatible = "sandbox,pch";
959 };
960
Tom Rini42c64d12020-02-11 12:41:23 -0500961 pci0: pci@0 {
Simon Glassd3b7ff12015-03-05 12:25:34 -0700962 compatible = "sandbox,pci";
963 device_type = "pci";
Tom Rini42c64d12020-02-11 12:41:23 -0500964 bus-range = <0x00 0xff>;
Simon Glassd3b7ff12015-03-05 12:25:34 -0700965 #address-cells = <3>;
966 #size-cells = <2>;
Simon Glassb0e2c232019-09-25 08:56:08 -0600967 ranges = <0x02000000 0 0x10000000 0x10000000 0 0x2000000
Simon Glassd3b7ff12015-03-05 12:25:34 -0700968 0x01000000 0 0x20000000 0x20000000 0 0x2000>;
Bin Meng2db7f2b2018-08-03 01:14:39 -0700969 pci@0,0 {
970 compatible = "pci-generic";
971 reg = <0x0000 0 0 0 0>;
Simon Glass9b69ba42019-09-25 08:56:10 -0600972 sandbox,emul = <&swap_case_emul0_0>;
Bin Meng2db7f2b2018-08-03 01:14:39 -0700973 };
Alex Marginean21ebbaf2019-06-07 11:24:24 +0300974 pci@1,0 {
975 compatible = "pci-generic";
Simon Glass33c215a2019-09-15 12:08:58 -0600976 /* reg 0 is at 0x14, using FDT_PCI_SPACE_MEM32 */
977 reg = <0x02000814 0 0 0 0
978 0x01000810 0 0 0 0>;
Simon Glass9b69ba42019-09-25 08:56:10 -0600979 sandbox,emul = <&swap_case_emul0_1>;
Alex Marginean21ebbaf2019-06-07 11:24:24 +0300980 };
Simon Glass3e17ffb2019-12-06 21:41:57 -0700981 p2sb-pci@2,0 {
982 compatible = "sandbox,p2sb";
983 reg = <0x02001010 0 0 0 0>;
984 sandbox,emul = <&p2sb_emul>;
985
986 adder {
987 intel,p2sb-port-id = <3>;
988 compatible = "sandbox,adder";
989 };
990 };
Simon Glass3b65ee32019-12-06 21:41:54 -0700991 pci@1e,0 {
992 compatible = "sandbox,pmc";
993 reg = <0xf000 0 0 0 0>;
994 sandbox,emul = <&pmc_emul1e>;
995 acpi-base = <0x400>;
996 gpe0-dwx-mask = <0xf>;
997 gpe0-dwx-shift-base = <4>;
998 gpe0-dw = <6 7 9>;
999 gpe0-sts = <0x20>;
1000 gpe0-en = <0x30>;
1001 };
Simon Glassd3b7ff12015-03-05 12:25:34 -07001002 pci@1f,0 {
1003 compatible = "pci-generic";
Simon Glass33c215a2019-09-15 12:08:58 -06001004 /* reg 0 is at 0x10, using FDT_PCI_SPACE_IO */
1005 reg = <0x0100f810 0 0 0 0>;
Simon Glass9b69ba42019-09-25 08:56:10 -06001006 sandbox,emul = <&swap_case_emul0_1f>;
1007 };
1008 };
1009
1010 pci-emul0 {
1011 compatible = "sandbox,pci-emul-parent";
1012 swap_case_emul0_0: emul0@0,0 {
1013 compatible = "sandbox,swap-case";
1014 };
1015 swap_case_emul0_1: emul0@1,0 {
1016 compatible = "sandbox,swap-case";
1017 use-ea;
1018 };
1019 swap_case_emul0_1f: emul0@1f,0 {
1020 compatible = "sandbox,swap-case";
Simon Glassd3b7ff12015-03-05 12:25:34 -07001021 };
Simon Glass3e17ffb2019-12-06 21:41:57 -07001022 p2sb_emul: emul@2,0 {
1023 compatible = "sandbox,p2sb-emul";
1024 };
Simon Glass3b65ee32019-12-06 21:41:54 -07001025 pmc_emul1e: emul@1e,0 {
1026 compatible = "sandbox,pmc-emul";
1027 };
Simon Glassd3b7ff12015-03-05 12:25:34 -07001028 };
1029
Tom Rini42c64d12020-02-11 12:41:23 -05001030 pci1: pci@1 {
Bin Mengdee4d752018-08-03 01:14:41 -07001031 compatible = "sandbox,pci";
1032 device_type = "pci";
Tom Rini42c64d12020-02-11 12:41:23 -05001033 bus-range = <0x00 0xff>;
Bin Mengdee4d752018-08-03 01:14:41 -07001034 #address-cells = <3>;
1035 #size-cells = <2>;
Suneel Garapati4cf56ec2019-10-19 17:10:20 -07001036 ranges = <0x02000000 0 0x30000000 0x30000000 0 0x2000 // MEM0
Andrew Scull55e6adb2022-04-21 16:11:09 +00001037 0x02000000 0 0x31000000 0x3e000000 0 0x2000 // MEM1
Suneel Garapati4cf56ec2019-10-19 17:10:20 -07001038 0x01000000 0 0x40000000 0x40000000 0 0x2000>;
Bin Meng490d13a2018-08-03 01:14:47 -07001039 sandbox,dev-info = <0x08 0x00 0x1234 0x5678
Marek Vasutb59349a2018-10-10 21:27:08 +02001040 0x0c 0x00 0x1234 0x5678
1041 0x10 0x00 0x1234 0x5678>;
1042 pci@10,0 {
1043 reg = <0x8000 0 0 0 0>;
1044 };
Bin Mengdee4d752018-08-03 01:14:41 -07001045 };
1046
Tom Rini42c64d12020-02-11 12:41:23 -05001047 pci2: pci@2 {
Bin Meng3ed214a2018-08-03 01:14:50 -07001048 compatible = "sandbox,pci";
1049 device_type = "pci";
Tom Rini42c64d12020-02-11 12:41:23 -05001050 bus-range = <0x00 0xff>;
Bin Meng3ed214a2018-08-03 01:14:50 -07001051 #address-cells = <3>;
1052 #size-cells = <2>;
1053 ranges = <0x02000000 0 0x50000000 0x50000000 0 0x2000
1054 0x01000000 0 0x60000000 0x60000000 0 0x2000>;
1055 sandbox,dev-info = <0x08 0x00 0x1234 0x5678>;
1056 pci@1f,0 {
1057 compatible = "pci-generic";
1058 reg = <0xf800 0 0 0 0>;
Simon Glass9b69ba42019-09-25 08:56:10 -06001059 sandbox,emul = <&swap_case_emul2_1f>;
1060 };
1061 };
1062
1063 pci-emul2 {
1064 compatible = "sandbox,pci-emul-parent";
1065 swap_case_emul2_1f: emul2@1f,0 {
1066 compatible = "sandbox,swap-case";
Bin Meng3ed214a2018-08-03 01:14:50 -07001067 };
1068 };
1069
Ramon Friedbb413332019-04-27 11:15:23 +03001070 pci_ep: pci_ep {
1071 compatible = "sandbox,pci_ep";
1072 };
1073
Simon Glass98561572017-04-23 20:10:44 -06001074 probing {
1075 compatible = "simple-bus";
1076 test1 {
1077 compatible = "denx,u-boot-probe-test";
1078 };
1079
1080 test2 {
1081 compatible = "denx,u-boot-probe-test";
1082 };
1083
1084 test3 {
1085 compatible = "denx,u-boot-probe-test";
1086 };
1087
1088 test4 {
1089 compatible = "denx,u-boot-probe-test";
Jean-Jacques Hiblot6c3af1f2018-11-29 10:57:37 +01001090 first-syscon = <&syscon0>;
1091 second-sys-ctrl = <&another_system_controller>;
Patrick Delaunaya442e612019-03-07 09:57:13 +01001092 third-syscon = <&syscon2>;
Simon Glass98561572017-04-23 20:10:44 -06001093 };
1094 };
1095
Stephen Warren61f5ddc2016-07-13 13:45:31 -06001096 pwrdom: power-domain {
1097 compatible = "sandbox,power-domain";
1098 #power-domain-cells = <1>;
1099 };
1100
1101 power-domain-test {
1102 compatible = "sandbox,power-domain-test";
1103 power-domains = <&pwrdom 2>;
1104 };
1105
Simon Glass5d9a88f2018-10-01 12:22:40 -06001106 pwm: pwm {
Simon Glass43b41562017-04-16 21:01:11 -06001107 compatible = "sandbox,pwm";
Simon Glass5d9a88f2018-10-01 12:22:40 -06001108 #pwm-cells = <2>;
Dario Binacchi55322622021-04-11 09:39:50 +02001109 pinctrl-names = "default";
1110 pinctrl-0 = <&pinmux_pwm_pins>;
Simon Glass43b41562017-04-16 21:01:11 -06001111 };
1112
1113 pwm2 {
1114 compatible = "sandbox,pwm";
Simon Glass5d9a88f2018-10-01 12:22:40 -06001115 #pwm-cells = <2>;
Simon Glass43b41562017-04-16 21:01:11 -06001116 };
1117
Simon Glass64ce0ca2015-07-06 12:54:31 -06001118 ram {
1119 compatible = "sandbox,ram";
1120 };
1121
Simon Glass5010d982015-07-06 12:54:29 -06001122 reset@0 {
1123 compatible = "sandbox,warm-reset";
1124 };
1125
1126 reset@1 {
1127 compatible = "sandbox,reset";
1128 };
1129
Stephen Warren4581b712016-06-17 09:43:59 -06001130 resetc: reset-ctl {
1131 compatible = "sandbox,reset-ctl";
1132 #reset-cells = <1>;
1133 };
1134
1135 reset-ctl-test {
1136 compatible = "sandbox,reset-ctl-test";
Neil Armstrongbdfe6902021-04-20 10:42:25 +02001137 resets = <&resetc 100>, <&resetc 2>, <&resetc 20>, <&resetc 40>;
1138 reset-names = "other", "test", "test2", "test3";
Stephen Warren4581b712016-06-17 09:43:59 -06001139 };
1140
Sughosh Ganuff0dada2019-12-28 23:58:31 +05301141 rng {
1142 compatible = "sandbox,sandbox-rng";
1143 };
1144
Nishanth Menon52159402015-09-17 15:42:41 -05001145 rproc_1: rproc@1 {
1146 compatible = "sandbox,test-processor";
1147 remoteproc-name = "remoteproc-test-dev1";
1148 };
1149
1150 rproc_2: rproc@2 {
1151 compatible = "sandbox,test-processor";
1152 internal-memory-mapped;
1153 remoteproc-name = "remoteproc-test-dev2";
1154 };
1155
Simon Glass5d9a88f2018-10-01 12:22:40 -06001156 panel {
1157 compatible = "simple-panel";
1158 backlight = <&backlight 0 100>;
1159 };
1160
Ramon Fried7fd7e2c2018-07-02 02:57:59 +03001161 smem@0 {
1162 compatible = "sandbox,smem";
1163 };
1164
Simon Glassd4901892018-12-10 10:37:36 -07001165 sound {
1166 compatible = "sandbox,sound";
1167 cpu {
1168 sound-dai = <&i2s 0>;
1169 };
1170
1171 codec {
1172 sound-dai = <&audio 0>;
1173 };
1174 };
1175
Simon Glass0ae0cb72014-10-13 23:42:11 -06001176 spi@0 {
1177 #address-cells = <1>;
1178 #size-cells = <0>;
Simon Glass0503e822015-07-06 12:54:36 -06001179 reg = <0 1>;
Simon Glass0ae0cb72014-10-13 23:42:11 -06001180 compatible = "sandbox,spi";
Ovidiu Panait1dc53ce2020-12-14 19:06:47 +02001181 cs-gpios = <0>, <0>, <&gpio_a 0>;
Dario Binacchi55322622021-04-11 09:39:50 +02001182 pinctrl-names = "default";
1183 pinctrl-0 = <&pinmux_spi0_pins>;
1184
Simon Glass0ae0cb72014-10-13 23:42:11 -06001185 spi.bin@0 {
1186 reg = <0>;
Neil Armstrongffd4c7c2019-02-10 10:16:20 +00001187 compatible = "spansion,m25p16", "jedec,spi-nor";
Simon Glass0ae0cb72014-10-13 23:42:11 -06001188 spi-max-frequency = <40000000>;
1189 sandbox,filename = "spi.bin";
1190 };
Ovidiu Panait1dc53ce2020-12-14 19:06:47 +02001191 spi.bin@1 {
1192 reg = <1>;
1193 compatible = "spansion,m25p16", "jedec,spi-nor";
1194 spi-max-frequency = <50000000>;
1195 sandbox,filename = "spi.bin";
1196 spi-cpol;
1197 spi-cpha;
1198 };
Simon Glass0ae0cb72014-10-13 23:42:11 -06001199 };
1200
Jean-Jacques Hiblot6c3af1f2018-11-29 10:57:37 +01001201 syscon0: syscon@0 {
Simon Glass04035fd2015-07-06 12:54:35 -06001202 compatible = "sandbox,syscon0";
Mario Six82744c22018-10-04 09:00:40 +02001203 reg = <0x10 16>;
Simon Glass04035fd2015-07-06 12:54:35 -06001204 };
1205
Jean-Jacques Hiblot6c3af1f2018-11-29 10:57:37 +01001206 another_system_controller: syscon@1 {
Simon Glass04035fd2015-07-06 12:54:35 -06001207 compatible = "sandbox,syscon1";
Simon Glass0503e822015-07-06 12:54:36 -06001208 reg = <0x20 5
1209 0x28 6
1210 0x30 7
1211 0x38 8>;
Simon Glass04035fd2015-07-06 12:54:35 -06001212 };
1213
Patrick Delaunaya442e612019-03-07 09:57:13 +01001214 syscon2: syscon@2 {
Masahiro Yamada99552c32018-04-23 13:26:53 +09001215 compatible = "simple-mfd", "syscon";
1216 reg = <0x40 5
1217 0x48 6
1218 0x50 7
1219 0x58 8>;
1220 };
1221
Jean-Jacques Hiblot739592c2020-10-16 16:16:34 +05301222 syscon3: syscon@3 {
1223 compatible = "simple-mfd", "syscon";
1224 reg = <0x000100 0x10>;
1225
1226 muxcontroller0: a-mux-controller {
1227 compatible = "mmio-mux";
1228 #mux-control-cells = <1>;
1229
1230 mux-reg-masks = <0x0 0x30>, /* 0: reg 0x0, bits 5:4 */
1231 <0xc 0x1E>, /* 1: reg 0xc, bits 4:1 */
1232 <0x4 0xFF>; /* 2: reg 0x4, bits 7:0 */
1233 idle-states = <MUX_IDLE_AS_IS>, <0x02>, <0x73>;
1234 u-boot,mux-autoprobe;
1235 };
1236 };
1237
1238 muxcontroller1: emul-mux-controller {
1239 compatible = "mux-emul";
1240 #mux-control-cells = <0>;
1241 u-boot,mux-autoprobe;
1242 idle-state = <0xabcd>;
1243 };
1244
Simon Glass93f44e82020-12-16 21:20:27 -07001245 testfdtm0 {
1246 compatible = "denx,u-boot-fdtm-test";
1247 };
1248
1249 testfdtm1: testfdtm1 {
1250 compatible = "denx,u-boot-fdtm-test";
1251 };
1252
1253 testfdtm2 {
1254 compatible = "denx,u-boot-fdtm-test";
1255 };
1256
Sean Anderson7616e362020-09-28 10:52:23 -04001257 timer@0 {
Thomas Choue7cc8d12015-12-11 16:27:34 +08001258 compatible = "sandbox,timer";
1259 clock-frequency = <1000000>;
1260 };
1261
Sean Anderson7616e362020-09-28 10:52:23 -04001262 timer@1 {
1263 compatible = "sandbox,timer";
1264 sandbox,timebase-frequency-fallback;
1265 };
1266
Miquel Raynalb91ad162018-05-15 11:57:27 +02001267 tpm2 {
1268 compatible = "sandbox,tpm2";
1269 };
1270
Simon Glass171e9912015-05-22 15:42:15 -06001271 uart0: serial {
1272 compatible = "sandbox,serial";
1273 u-boot,dm-pre-reloc;
Dario Binacchi55322622021-04-11 09:39:50 +02001274 pinctrl-names = "default";
1275 pinctrl-0 = <&pinmux_uart0_pins>;
Joe Hershbergerbfacad72015-03-22 17:09:15 -05001276 };
1277
Simon Glasse00cb222015-03-25 12:23:05 -06001278 usb_0: usb@0 {
1279 compatible = "sandbox,usb";
1280 status = "disabled";
1281 hub {
1282 compatible = "sandbox,usb-hub";
1283 #address-cells = <1>;
1284 #size-cells = <0>;
1285 flash-stick {
1286 reg = <0>;
1287 compatible = "sandbox,usb-flash";
1288 };
1289 };
1290 };
1291
1292 usb_1: usb@1 {
1293 compatible = "sandbox,usb";
Mark Kettenisfb574622021-10-23 16:58:02 +02001294 iommus = <&iommu>;
Simon Glasse00cb222015-03-25 12:23:05 -06001295 hub {
1296 compatible = "usb-hub";
1297 usb,device-class = <9>;
Michael Wallec03b7612020-06-02 01:47:07 +02001298 #address-cells = <1>;
1299 #size-cells = <0>;
Simon Glasse00cb222015-03-25 12:23:05 -06001300 hub-emul {
1301 compatible = "sandbox,usb-hub";
1302 #address-cells = <1>;
1303 #size-cells = <0>;
Simon Glass431cbd62015-11-08 23:48:01 -07001304 flash-stick@0 {
Simon Glasse00cb222015-03-25 12:23:05 -06001305 reg = <0>;
1306 compatible = "sandbox,usb-flash";
1307 sandbox,filepath = "testflash.bin";
1308 };
1309
Simon Glass431cbd62015-11-08 23:48:01 -07001310 flash-stick@1 {
1311 reg = <1>;
1312 compatible = "sandbox,usb-flash";
1313 sandbox,filepath = "testflash1.bin";
1314 };
1315
1316 flash-stick@2 {
1317 reg = <2>;
1318 compatible = "sandbox,usb-flash";
1319 sandbox,filepath = "testflash2.bin";
1320 };
1321
Simon Glassbff1a712015-11-08 23:48:08 -07001322 keyb@3 {
1323 reg = <3>;
1324 compatible = "sandbox,usb-keyb";
1325 };
1326
Simon Glasse00cb222015-03-25 12:23:05 -06001327 };
Michael Wallec03b7612020-06-02 01:47:07 +02001328
1329 usbstor@1 {
1330 reg = <1>;
1331 };
1332 usbstor@3 {
1333 reg = <3>;
1334 };
Simon Glasse00cb222015-03-25 12:23:05 -06001335 };
1336 };
1337
1338 usb_2: usb@2 {
1339 compatible = "sandbox,usb";
1340 status = "disabled";
1341 };
1342
Mateusz Kulikowskid33776e2016-03-31 23:12:28 +02001343 spmi: spmi@0 {
1344 compatible = "sandbox,spmi";
1345 #address-cells = <0x1>;
1346 #size-cells = <0x1>;
Simon Glassa605b0f2019-09-25 08:55:59 -06001347 ranges;
Mateusz Kulikowskid33776e2016-03-31 23:12:28 +02001348 pm8916@0 {
1349 compatible = "qcom,spmi-pmic";
1350 reg = <0x0 0x1>;
1351 #address-cells = <0x1>;
1352 #size-cells = <0x1>;
Simon Glassa605b0f2019-09-25 08:55:59 -06001353 ranges;
Mateusz Kulikowskid33776e2016-03-31 23:12:28 +02001354
1355 spmi_gpios: gpios@c000 {
1356 compatible = "qcom,pm8916-gpio";
1357 reg = <0xc000 0x400>;
1358 gpio-controller;
1359 gpio-count = <4>;
1360 #gpio-cells = <2>;
1361 gpio-bank-name="spmi";
1362 };
1363 };
1364 };
maxims@google.com0753bc22017-04-17 12:00:21 -07001365
1366 wdt0: wdt@0 {
1367 compatible = "sandbox,wdt";
Rasmus Villemoes4171c572021-08-19 11:57:06 +02001368 hw_margin_ms = <200>;
maxims@google.com0753bc22017-04-17 12:00:21 -07001369 };
Rob Clarkf2006802018-01-10 11:33:30 +01001370
Mario Six957983e2018-08-09 14:51:19 +02001371 axi: axi@0 {
1372 compatible = "sandbox,axi";
1373 #address-cells = <0x1>;
1374 #size-cells = <0x1>;
1375 store@0 {
1376 compatible = "sandbox,sandbox_store";
1377 reg = <0x0 0x400>;
1378 };
1379 };
1380
Rob Clarkf2006802018-01-10 11:33:30 +01001381 chosen {
Simon Glass7e878162018-02-03 10:36:58 -07001382 #address-cells = <1>;
1383 #size-cells = <1>;
Simon Glass14ca9f72020-01-27 08:49:43 -07001384 setting = "sunrise ohoka";
1385 other-node = "/some-bus/c-test@5";
Simon Glassbd933bf2020-01-27 08:49:46 -07001386 int-values = <0x1937 72993>;
Simon Glass0f7b1112020-07-07 13:12:06 -06001387 u-boot,acpi-ssdt-order = <&acpi_test2 &acpi_test1>;
Rob Clarkf2006802018-01-10 11:33:30 +01001388 chosen-test {
1389 compatible = "denx,u-boot-fdt-test";
1390 reg = <9 1>;
1391 };
Simon Glass0917f772022-07-30 15:52:34 -06001392
1393 fwupd {
1394 compatible = "simple-bus";
1395 firmware0 {
1396 compatible = "fwupd,vbe-simple";
1397 storage = "mmc1";
1398 area-start = <0x400>;
1399 area-size = <0x1000>;
1400 skip-offset = <0x200>;
1401 state-offset = <0x400>;
1402 state-size = <0x40>;
1403 version-offset = <0x800>;
1404 version-size = <0x100>;
1405 };
1406 };
Rob Clarkf2006802018-01-10 11:33:30 +01001407 };
Mario Sixe8d52912018-03-12 14:53:33 +01001408
1409 translation-test@8000 {
1410 compatible = "simple-bus";
1411 reg = <0x8000 0x4000>;
1412
1413 #address-cells = <0x2>;
1414 #size-cells = <0x1>;
1415
1416 ranges = <0 0x0 0x8000 0x1000
1417 1 0x100 0x9000 0x1000
1418 2 0x200 0xA000 0x1000
1419 3 0x300 0xB000 0x1000
1420 >;
1421
Fabien Dessenne641067f2019-05-31 15:11:30 +02001422 dma-ranges = <0 0x000 0x10000000 0x1000
1423 1 0x100 0x20000000 0x1000
1424 >;
1425
Mario Sixe8d52912018-03-12 14:53:33 +01001426 dev@0,0 {
1427 compatible = "denx,u-boot-fdt-dummy";
1428 reg = <0 0x0 0x1000>;
Álvaro Fernåndez Rojas79598822018-12-03 19:37:09 +01001429 reg-names = "sandbox-dummy-0";
Mario Sixe8d52912018-03-12 14:53:33 +01001430 };
1431
1432 dev@1,100 {
1433 compatible = "denx,u-boot-fdt-dummy";
1434 reg = <1 0x100 0x1000>;
1435
1436 };
1437
1438 dev@2,200 {
1439 compatible = "denx,u-boot-fdt-dummy";
1440 reg = <2 0x200 0x1000>;
1441 };
1442
1443
1444 noxlatebus@3,300 {
1445 compatible = "simple-bus";
1446 reg = <3 0x300 0x1000>;
1447
1448 #address-cells = <0x1>;
1449 #size-cells = <0x0>;
1450
1451 dev@42 {
1452 compatible = "denx,u-boot-fdt-dummy";
1453 reg = <0x42>;
1454 };
1455 };
1456 };
Mario Six4eea5312018-09-27 09:19:31 +02001457
1458 osd {
1459 compatible = "sandbox,sandbox_osd";
1460 };
Tom Rinid24c1d02018-09-30 18:16:51 -04001461
Jens Wiklanderfa830ae2018-09-25 16:40:16 +02001462 sandbox_tee {
1463 compatible = "sandbox,tee";
1464 };
Bin Meng4f89d492018-10-15 02:21:26 -07001465
1466 sandbox_virtio1 {
1467 compatible = "sandbox,virtio1";
1468 };
1469
1470 sandbox_virtio2 {
1471 compatible = "sandbox,virtio2";
1472 };
Patrice Chotardf41a8242018-10-24 14:10:23 +02001473
Etienne Carriere87d4f272020-09-09 18:44:05 +02001474 sandbox_scmi {
1475 compatible = "sandbox,scmi-devices";
Etienne Carriere10d3e5d2022-02-21 09:22:41 +01001476 clocks = <&clk_scmi 2>, <&clk_scmi 0>;
Etienne Carriere41d62e22022-02-21 09:22:39 +01001477 resets = <&reset_scmi 3>;
1478 regul0-supply = <&regul0_scmi>;
1479 regul1-supply = <&regul1_scmi>;
Etienne Carriere87d4f272020-09-09 18:44:05 +02001480 };
1481
Patrice Chotardf41a8242018-10-24 14:10:23 +02001482 pinctrl {
1483 compatible = "sandbox,pinctrl";
Patrick Delaunayd15c05b2020-01-13 11:35:12 +01001484
Sean Anderson7f0f1802020-09-14 11:01:57 -04001485 pinctrl-names = "default", "alternate";
1486 pinctrl-0 = <&pinctrl_gpios>, <&pinctrl_i2s>;
1487 pinctrl-1 = <&pinctrl_spi>, <&pinctrl_i2c>;
Patrick Delaunayd15c05b2020-01-13 11:35:12 +01001488
Sean Anderson7f0f1802020-09-14 11:01:57 -04001489 pinctrl_gpios: gpios {
Patrick Delaunayd15c05b2020-01-13 11:35:12 +01001490 gpio0 {
Sean Anderson7f0f1802020-09-14 11:01:57 -04001491 pins = "P5";
1492 function = "GPIO";
Patrick Delaunayd15c05b2020-01-13 11:35:12 +01001493 bias-pull-up;
1494 input-disable;
1495 };
1496 gpio1 {
Sean Anderson7f0f1802020-09-14 11:01:57 -04001497 pins = "P6";
1498 function = "GPIO";
Patrick Delaunayd15c05b2020-01-13 11:35:12 +01001499 output-high;
1500 drive-open-drain;
1501 };
1502 gpio2 {
Sean Anderson7f0f1802020-09-14 11:01:57 -04001503 pinmux = <SANDBOX_PINMUX(7, SANDBOX_PINMUX_GPIO)>;
Patrick Delaunayd15c05b2020-01-13 11:35:12 +01001504 bias-pull-down;
1505 input-enable;
1506 };
1507 gpio3 {
Sean Anderson7f0f1802020-09-14 11:01:57 -04001508 pinmux = <SANDBOX_PINMUX(8, SANDBOX_PINMUX_GPIO)>;
Patrick Delaunayd15c05b2020-01-13 11:35:12 +01001509 bias-disable;
1510 };
1511 };
Sean Anderson7f0f1802020-09-14 11:01:57 -04001512
1513 pinctrl_i2c: i2c {
1514 groups {
1515 groups = "I2C_UART";
1516 function = "I2C";
1517 };
1518
1519 pins {
1520 pins = "P0", "P1";
1521 drive-open-drain;
1522 };
1523 };
1524
1525 pinctrl_i2s: i2s {
1526 groups = "SPI_I2S";
1527 function = "I2S";
1528 };
1529
1530 pinctrl_spi: spi {
1531 groups = "SPI_I2S";
1532 function = "SPI";
1533
1534 cs {
1535 pinmux = <SANDBOX_PINMUX(5, SANDBOX_PINMUX_CS)>,
1536 <SANDBOX_PINMUX(6, SANDBOX_PINMUX_CS)>;
1537 };
1538 };
Patrice Chotardf41a8242018-10-24 14:10:23 +02001539 };
Benjamin Gaignard7f84fc62018-11-27 13:49:50 +01001540
Dario Binacchi55322622021-04-11 09:39:50 +02001541 pinctrl-single-no-width {
1542 compatible = "pinctrl-single";
1543 reg = <0x0000 0x238>;
1544 #pinctrl-cells = <1>;
1545 pinctrl-single,function-mask = <0x7f>;
1546 };
1547
1548 pinctrl-single-pins {
1549 compatible = "pinctrl-single";
1550 reg = <0x0000 0x238>;
1551 #pinctrl-cells = <1>;
1552 pinctrl-single,register-width = <32>;
1553 pinctrl-single,function-mask = <0x7f>;
1554
1555 pinmux_pwm_pins: pinmux_pwm_pins {
1556 pinctrl-single,pins = < 0x48 0x06 >;
1557 };
1558
1559 pinmux_spi0_pins: pinmux_spi0_pins {
1560 pinctrl-single,pins = <
1561 0x190 0x0c
1562 0x194 0x0c
1563 0x198 0x23
1564 0x19c 0x0c
1565 >;
1566 };
1567
1568 pinmux_uart0_pins: pinmux_uart0_pins {
1569 pinctrl-single,pins = <
1570 0x70 0x30
1571 0x74 0x00
1572 >;
1573 };
1574 };
1575
1576 pinctrl-single-bits {
1577 compatible = "pinctrl-single";
1578 reg = <0x0000 0x50>;
1579 #pinctrl-cells = <2>;
1580 pinctrl-single,bit-per-mux;
1581 pinctrl-single,register-width = <32>;
1582 pinctrl-single,function-mask = <0xf>;
1583
1584 pinmux_i2c0_pins: pinmux_i2c0_pins {
1585 pinctrl-single,bits = <
1586 0x10 0x00002200 0x0000ff00
1587 >;
1588 };
1589
1590 pinmux_lcd_pins: pinmux_lcd_pins {
1591 pinctrl-single,bits = <
1592 0x40 0x22222200 0xffffff00
1593 0x44 0x22222222 0xffffffff
1594 0x48 0x00000022 0x000000ff
1595 0x48 0x02000000 0x0f000000
1596 0x4c 0x02000022 0x0f0000ff
1597 >;
1598 };
1599 };
1600
Benjamin Gaignard7f84fc62018-11-27 13:49:50 +01001601 hwspinlock@0 {
1602 compatible = "sandbox,hwspinlock";
1603 };
Grygorii Strashkob3309912018-11-28 19:17:51 +01001604
1605 dma: dma {
1606 compatible = "sandbox,dma";
1607 #dma-cells = <1>;
1608
1609 dmas = <&dma 0>, <&dma 1>, <&dma 2>;
1610 dma-names = "m2m", "tx0", "rx0";
1611 };
Alex Margineanec9594a2019-06-03 19:12:28 +03001612
Alex Margineanc3d9f3f2019-07-12 10:13:53 +03001613 /*
1614 * keep mdio-mux ahead of mdio so that the mux is removed first at the
1615 * end of the test. If parent mdio is removed first, clean-up of the
1616 * mux will trigger a 2nd probe of parent-mdio, leaving parent-mdio
1617 * active at the end of the test. That it turn doesn't allow the mdio
1618 * class to be destroyed, triggering an error.
1619 */
1620 mdio-mux-test {
1621 compatible = "sandbox,mdio-mux";
1622 #address-cells = <1>;
1623 #size-cells = <0>;
1624 mdio-parent-bus = <&mdio>;
1625
1626 mdio-ch-test@0 {
1627 reg = <0>;
1628 };
1629 mdio-ch-test@1 {
1630 reg = <1>;
1631 };
1632 };
1633
1634 mdio: mdio-test {
Alex Margineanec9594a2019-06-03 19:12:28 +03001635 compatible = "sandbox,mdio";
Marek BehĂșnf3dd2132022-04-07 00:32:57 +02001636 #address-cells = <1>;
1637 #size-cells = <0>;
1638
1639 ethphy1: ethernet-phy@1 {
1640 reg = <1>;
1641 };
Alex Margineanec9594a2019-06-03 19:12:28 +03001642 };
Sean Anderson4a3390f2020-06-24 06:41:12 -04001643
1644 pm-bus-test {
1645 compatible = "simple-pm-bus";
1646 clocks = <&clk_sandbox 4>;
1647 power-domains = <&pwrdom 1>;
1648 };
Sean Anderson038b13e2020-06-24 06:41:14 -04001649
1650 resetc2: syscon-reset {
1651 compatible = "syscon-reset";
1652 #reset-cells = <1>;
1653 regmap = <&syscon0>;
1654 offset = <1>;
1655 mask = <0x27FFFFFF>;
1656 assert-high = <0>;
1657 };
1658
1659 syscon-reset-test {
1660 compatible = "sandbox,misc_sandbox";
1661 resets = <&resetc2 15>, <&resetc2 30>, <&resetc2 60>;
1662 reset-names = "valid", "no_mask", "out_of_range";
1663 };
Jean-Jacques Hiblot0ced26a2020-09-24 10:04:18 +05301664
Simon Glass3a8ee3d2020-11-05 06:32:05 -07001665 sysinfo {
1666 compatible = "sandbox,sysinfo-sandbox";
1667 };
1668
Sean Anderson1cbfed82021-04-20 10:50:58 -04001669 sysinfo-gpio {
1670 compatible = "gpio-sysinfo";
1671 gpios = <&gpio_a 15>, <&gpio_a 16>, <&gpio_a 17>;
1672 revisions = <19>, <5>;
1673 names = "rev_a", "foo";
1674 };
1675
Jean-Jacques Hiblot0ced26a2020-09-24 10:04:18 +05301676 some_regmapped-bus {
1677 #address-cells = <0x1>;
1678 #size-cells = <0x1>;
1679
1680 ranges = <0x0 0x0 0x10>;
1681 compatible = "simple-bus";
1682
1683 regmap-test_0 {
1684 reg = <0 0x10>;
1685 compatible = "sandbox,regmap_test";
1686 };
1687 };
Simon Glass2e7d35d2014-02-26 15:59:21 -07001688};
Przemyslaw Marczak9038cd52015-05-13 13:38:35 +02001689
1690#include "sandbox_pmic.dtsi"
Heinrich Schuchardt4a2a78c2021-02-18 13:01:35 +01001691#include "cros-ec-keyboard.dtsi"