blob: 4d0fd474abe6c466cfcaeaff01efd5b5634d4d8d [file] [log] [blame]
Simon Glass4cc43bf2021-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 Glassb2c1cac2014-02-26 15:59:21 -070010/dts-v1/;
11
Patrick Delaunay23aee612020-01-13 11:35:13 +010012#include <dt-bindings/gpio/gpio.h>
13#include <dt-bindings/gpio/sandbox-gpio.h>
Marek Szyprowskiad398592021-02-18 11:33:18 +010014#include <dt-bindings/input/input.h>
Sean Anderson3438e3b2020-09-14 11:01:57 -040015#include <dt-bindings/pinctrl/sandbox-pinmux.h>
Jean-Jacques Hiblota94b6972020-10-16 16:16:34 +053016#include <dt-bindings/mux/mux.h>
Patrick Delaunay23aee612020-01-13 11:35:13 +010017
Simon Glassb2c1cac2014-02-26 15:59:21 -070018/ {
19 model = "sandbox";
20 compatible = "sandbox";
21 #address-cells = <1>;
Simon Glasscf61f742015-07-06 12:54:36 -060022 #size-cells = <1>;
Simon Glassb2c1cac2014-02-26 15:59:21 -070023
Simon Glassfef72b72014-07-23 06:55:03 -060024 aliases {
25 console = &uart0;
Michael Walle7efcdfd2021-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 Anderson67d93a42022-05-05 13:11:30 -040031 ethernet6 = "/eth@10004000";
32 ethernet7 = &swp_1;
33 ethernet8 = &phy_eth0;
Simon Glass5620cf82018-10-01 12:22:40 -060034 gpio1 = &gpio_a;
35 gpio2 = &gpio_b;
Patrick Delaunay28bdaa52020-01-13 11:35:14 +010036 gpio3 = &gpio_c;
Simon Glass0ccb0972015-01-25 08:27:05 -070037 i2c0 = "/i2c@0";
Simon Glasse4fef742017-04-23 20:02:07 -060038 mmc0 = "/mmc0";
39 mmc1 = "/mmc1";
Bin Meng408e5902018-08-03 01:14:41 -070040 pci0 = &pci0;
41 pci1 = &pci1;
Bin Meng510dddb2018-08-03 01:14:50 -070042 pci2 = &pci2;
Michael Walle7c41a222020-06-02 01:47:09 +020043 remoteproc0 = &rproc_1;
44 remoteproc1 = &rproc_2;
Simon Glass336b2952015-05-22 15:42:17 -060045 rtc0 = &rtc_0;
46 rtc1 = &rtc_1;
Simon Glass5b968632015-05-22 15:42:15 -060047 spi0 = "/spi@0";
Przemyslaw Marczak3dbb55e2015-05-13 13:38:34 +020048 testfdt6 = "/e-test";
Simon Glass0ccb0972015-01-25 08:27:05 -070049 testbus3 = "/some-bus";
50 testfdt0 = "/some-bus/c-test@0";
Simon Glass7d5e4112020-12-16 21:20:26 -070051 testfdt12 = "/some-bus/c-test@1";
Simon Glass0ccb0972015-01-25 08:27:05 -070052 testfdt3 = "/b-test";
53 testfdt5 = "/some-bus/c-test@5";
54 testfdt8 = "/a-test";
Simon Glass791a17f2020-12-16 21:20:27 -070055 testfdtm1 = &testfdtm1;
Eugeniu Rosca5ba71e52018-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 Glass31680482015-03-25 12:23:05 -060060 usb0 = &usb_0;
61 usb1 = &usb_1;
62 usb2 = &usb_2;
Mario Six95922152018-08-09 14:51:19 +020063 axi0 = &axi;
Mario Six02ad6fb2018-09-27 09:19:31 +020064 osd0 = "/osd";
Simon Glassfef72b72014-07-23 06:55:03 -060065 };
66
Philippe Reynes462d1632022-03-28 22:56:53 +020067 binman {
68 };
69
Rasmus Villemoes30d4d2b2021-04-21 11:06:55 +020070 config {
Simon Glass0034d962021-08-07 07:24:01 -060071 testing-bool;
72 testing-int = <123>;
73 testing-str = "testing";
Rasmus Villemoes30d4d2b2021-04-21 11:06:55 +020074 environment {
75 from_fdt = "yes";
76 fdt_env_path = "";
77 };
78 };
79
Simon Glassb255efc2022-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
Nandor Han6521e5d2021-06-10 16:56:44 +030095 reboot-mode0 {
96 compatible = "reboot-mode-gpio";
97 gpios = <&gpio_c 0 GPIO_ACTIVE_HIGH>, <&gpio_c 1 GPIO_ACTIVE_HIGH>;
98 u-boot,env-variable = "bootstatus";
99 mode-test = <0x01>;
100 mode-download = <0x03>;
101 };
102
Nandor Han7e4067a2021-06-10 16:56:45 +0300103 reboot_mode1: reboot-mode@14 {
104 compatible = "reboot-mode-rtc";
105 rtc = <&rtc_0>;
106 reg = <0x30 4>;
107 u-boot,env-variable = "bootstatus";
108 big-endian;
109 mode-test = <0x21969147>;
110 mode-download = <0x51939147>;
111 };
112
Simon Glassed96cde2018-12-10 10:37:33 -0700113 audio: audio-codec {
114 compatible = "sandbox,audio-codec";
115 #sound-dai-cells = <1>;
116 };
117
Philippe Reynes1ee26482020-07-24 18:19:51 +0200118 buttons {
119 compatible = "gpio-keys";
120
Heinrich Schuchardt57c2fc62020-09-14 12:50:54 +0200121 btn1 {
Philippe Reynes1ee26482020-07-24 18:19:51 +0200122 gpios = <&gpio_a 3 0>;
Heinrich Schuchardt57c2fc62020-09-14 12:50:54 +0200123 label = "button1";
Philippe Reynes1ee26482020-07-24 18:19:51 +0200124 };
125
Heinrich Schuchardt57c2fc62020-09-14 12:50:54 +0200126 btn2 {
Philippe Reynes1ee26482020-07-24 18:19:51 +0200127 gpios = <&gpio_a 4 0>;
Heinrich Schuchardt57c2fc62020-09-14 12:50:54 +0200128 label = "button2";
Philippe Reynes1ee26482020-07-24 18:19:51 +0200129 };
130 };
131
Marek Szyprowskiad398592021-02-18 11:33:18 +0100132 buttons2 {
133 compatible = "adc-keys";
134 io-channels = <&adc 3>;
135 keyup-threshold-microvolt = <3000000>;
136
137 button-up {
138 label = "button3";
139 linux,code = <KEY_F3>;
140 press-threshold-microvolt = <1500000>;
141 };
142
143 button-down {
144 label = "button4";
145 linux,code = <KEY_F4>;
146 press-threshold-microvolt = <1000000>;
147 };
148
149 button-enter {
150 label = "button5";
151 linux,code = <KEY_F5>;
152 press-threshold-microvolt = <500000>;
153 };
154 };
155
Simon Glassc953aaf2018-12-10 10:37:34 -0700156 cros_ec: cros-ec {
Simon Glass699c9ca2018-10-01 12:22:08 -0600157 reg = <0 0>;
158 compatible = "google,cros-ec-sandbox";
159
160 /*
161 * This describes the flash memory within the EC. Note
162 * that the STM32L flash erases to 0, not 0xff.
163 */
164 flash {
165 image-pos = <0x08000000>;
166 size = <0x20000>;
167 erase-value = <0>;
168
169 /* Information for sandbox */
170 ro {
171 image-pos = <0>;
172 size = <0xf000>;
173 };
174 wp-ro {
175 image-pos = <0xf000>;
176 size = <0x1000>;
Simon Glassbf0a6922021-01-21 13:57:14 -0700177 used = <0x884>;
178 compress = "lz4";
179 uncomp-size = <0xcf8>;
180 hash {
181 algo = "sha256";
182 value = [00 01 02 03 04 05 06 07
183 08 09 0a 0b 0c 0d 0e 0f
184 10 11 12 13 14 15 16 17
185 18 19 1a 1b 1c 1d 1e 1f];
186 };
Simon Glass699c9ca2018-10-01 12:22:08 -0600187 };
188 rw {
189 image-pos = <0x10000>;
190 size = <0x10000>;
191 };
192 };
Alper Nebi Yasak8a8cd4f2021-05-19 19:33:31 +0300193
194 cros_ec_pwm: cros-ec-pwm {
195 compatible = "google,cros-ec-pwm";
196 #pwm-cells = <1>;
197 };
198
Simon Glass699c9ca2018-10-01 12:22:08 -0600199 };
200
Yannick Fertré9712c822019-10-07 15:29:05 +0200201 dsi_host: dsi_host {
202 compatible = "sandbox,dsi-host";
203 };
204
Simon Glassb2c1cac2014-02-26 15:59:21 -0700205 a-test {
Simon Glasscf61f742015-07-06 12:54:36 -0600206 reg = <0 1>;
Simon Glassb2c1cac2014-02-26 15:59:21 -0700207 compatible = "denx,u-boot-fdt-test";
Simon Glassa7bb08a2014-07-23 06:54:57 -0600208 ping-expect = <0>;
Simon Glassb2c1cac2014-02-26 15:59:21 -0700209 ping-add = <0>;
Simon Glassfef72b72014-07-23 06:55:03 -0600210 u-boot,dm-pre-reloc;
Patrick Delaunay23aee612020-01-13 11:35:13 +0100211 test-gpios = <&gpio_a 1>, <&gpio_a 4>,
212 <&gpio_b 5 GPIO_ACTIVE_HIGH 3 2 1>,
Simon Glass16e10402015-01-05 20:05:29 -0700213 <0>, <&gpio_a 12>;
Patrick Delaunay23aee612020-01-13 11:35:13 +0100214 test2-gpios = <&gpio_a 1>, <&gpio_a 4>,
215 <&gpio_b 6 GPIO_ACTIVE_LOW 3 2 1>,
216 <&gpio_b 7 GPIO_IN 3 2 1>,
217 <&gpio_b 8 GPIO_OUT 3 2 1>,
218 <&gpio_b 9 (GPIO_OUT|GPIO_OUT_ACTIVE) 3 2 1>;
Patrick Delaunay28bdaa52020-01-13 11:35:14 +0100219 test3-gpios =
220 <&gpio_c 0 (GPIO_OUT|GPIO_OPEN_DRAIN)>,
221 <&gpio_c 1 (GPIO_OUT|GPIO_OPEN_SOURCE)>,
222 <&gpio_c 2 GPIO_OUT>,
223 <&gpio_c 3 (GPIO_IN|GPIO_PULL_UP)>,
224 <&gpio_c 4 (GPIO_IN|GPIO_PULL_DOWN)>,
Neil Armstrong643778b2020-05-05 10:43:18 +0200225 <&gpio_c 5 GPIO_IN>,
226 <&gpio_c 6 (GPIO_ACTIVE_LOW|GPIO_OUT|GPIO_OPEN_DRAIN)>,
227 <&gpio_c 7 (GPIO_ACTIVE_LOW|GPIO_OUT|GPIO_OPEN_SOURCE)>;
Jean-Jacques Hiblot73873402020-09-11 13:43:35 +0530228 test4-gpios = <&gpio_a 14>, <&gpio_b 4 1 3 2 1>;
229 test5-gpios = <&gpio_a 19>;
230
Simon Glass73025392021-10-23 17:26:04 -0600231 bool-value;
Simon Glass6df01f92018-12-10 10:37:37 -0700232 int-value = <1234>;
233 uint-value = <(-1234)>;
Dario Binacchi421e81e2020-03-29 18:04:40 +0200234 int64-value = /bits/ 64 <0x1111222233334444>;
Dario Binacchi81d80b52020-03-29 18:04:41 +0200235 int-array = <5678 9123 4567>;
Simon Glassdd0ed902020-07-07 13:11:58 -0600236 str-value = "test string";
Simon Glass515dcff2020-02-06 09:55:00 -0700237 interrupts-extended = <&irq 3 0>;
Simon Glass09642392020-07-07 13:12:11 -0600238 acpi,name = "GHIJ";
Patrick Delaunay8cd28012020-09-25 09:41:16 +0200239 phandle-value = <&gpio_c 10>, <0xFFFFFFFF 20>, <&gpio_a 30>;
Jean-Jacques Hiblota94b6972020-10-16 16:16:34 +0530240
241 mux-controls = <&muxcontroller0 0>, <&muxcontroller0 1>,
242 <&muxcontroller0 2>, <&muxcontroller0 3>,
243 <&muxcontroller1>;
244 mux-control-names = "mux0", "mux1", "mux2", "mux3", "mux4";
245 mux-syscon = <&syscon3>;
Dario Binacchi836cc9d2020-12-30 00:16:26 +0100246 display-timings {
247 timing0: 240x320 {
248 clock-frequency = <6500000>;
249 hactive = <240>;
250 vactive = <320>;
251 hfront-porch = <6>;
252 hback-porch = <7>;
253 hsync-len = <1>;
254 vback-porch = <5>;
255 vfront-porch = <8>;
256 vsync-len = <2>;
257 hsync-active = <1>;
258 vsync-active = <0>;
259 de-active = <1>;
260 pixelclk-active = <1>;
261 interlaced;
262 doublescan;
263 doubleclk;
264 };
265 timing1: 480x800 {
266 clock-frequency = <9000000>;
267 hactive = <480>;
268 vactive = <800>;
269 hfront-porch = <10>;
270 hback-porch = <59>;
271 hsync-len = <12>;
272 vback-porch = <15>;
273 vfront-porch = <17>;
274 vsync-len = <16>;
275 hsync-active = <0>;
276 vsync-active = <1>;
277 de-active = <0>;
278 pixelclk-active = <0>;
279 };
280 timing2: 800x480 {
281 clock-frequency = <33500000>;
282 hactive = <800>;
283 vactive = <480>;
284 hback-porch = <89>;
285 hfront-porch = <164>;
286 vback-porch = <23>;
287 vfront-porch = <10>;
288 hsync-len = <11>;
289 vsync-len = <13>;
290 };
291 };
Simon Glassb2c1cac2014-02-26 15:59:21 -0700292 };
293
294 junk {
Simon Glasscf61f742015-07-06 12:54:36 -0600295 reg = <1 1>;
Simon Glassb2c1cac2014-02-26 15:59:21 -0700296 compatible = "not,compatible";
297 };
298
299 no-compatible {
Simon Glasscf61f742015-07-06 12:54:36 -0600300 reg = <2 1>;
Simon Glassb2c1cac2014-02-26 15:59:21 -0700301 };
302
Simon Glass5620cf82018-10-01 12:22:40 -0600303 backlight: backlight {
304 compatible = "pwm-backlight";
305 enable-gpios = <&gpio_a 1>;
306 power-supply = <&ldo_1>;
307 pwms = <&pwm 0 1000>;
308 default-brightness-level = <5>;
309 brightness-levels = <0 16 32 64 128 170 202 234 255>;
310 };
311
Jean-Jacques Hiblote83a31b2018-08-09 16:17:46 +0200312 bind-test {
Patrice Chotard7b7f9392020-07-28 09:13:33 +0200313 compatible = "simple-bus";
Jean-Jacques Hiblote83a31b2018-08-09 16:17:46 +0200314 bind-test-child1 {
315 compatible = "sandbox,phy";
316 #phy-cells = <1>;
317 };
318
319 bind-test-child2 {
320 compatible = "simple-bus";
321 };
322 };
323
Simon Glassb2c1cac2014-02-26 15:59:21 -0700324 b-test {
Simon Glasscf61f742015-07-06 12:54:36 -0600325 reg = <3 1>;
Simon Glassb2c1cac2014-02-26 15:59:21 -0700326 compatible = "denx,u-boot-fdt-test";
Simon Glassa7bb08a2014-07-23 06:54:57 -0600327 ping-expect = <3>;
Simon Glassb2c1cac2014-02-26 15:59:21 -0700328 ping-add = <3>;
Jean-Jacques Hiblota94b6972020-10-16 16:16:34 +0530329
330 mux-controls = <&muxcontroller0 0>;
331 mux-control-names = "mux0";
Simon Glassb2c1cac2014-02-26 15:59:21 -0700332 };
333
Jean-Jacques Hiblot7e9db022017-04-24 11:51:28 +0200334 phy_provider0: gen_phy@0 {
335 compatible = "sandbox,phy";
336 #phy-cells = <1>;
337 };
338
339 phy_provider1: gen_phy@1 {
340 compatible = "sandbox,phy";
341 #phy-cells = <0>;
342 broken;
343 };
344
developer71092972020-05-02 11:35:12 +0200345 phy_provider2: gen_phy@2 {
346 compatible = "sandbox,phy";
347 #phy-cells = <0>;
348 };
349
Jean-Jacques Hiblot7e9db022017-04-24 11:51:28 +0200350 gen_phy_user: gen_phy_user {
351 compatible = "simple-bus";
352 phys = <&phy_provider0 0>, <&phy_provider0 1>, <&phy_provider1>;
353 phy-names = "phy1", "phy2", "phy3";
354 };
355
developer71092972020-05-02 11:35:12 +0200356 gen_phy_user1: gen_phy_user1 {
357 compatible = "simple-bus";
358 phys = <&phy_provider0 0>, <&phy_provider2>;
359 phy-names = "phy1", "phy2";
360 };
361
Simon Glassb2c1cac2014-02-26 15:59:21 -0700362 some-bus {
363 #address-cells = <1>;
364 #size-cells = <0>;
Simon Glass40717422014-07-23 06:55:18 -0600365 compatible = "denx,u-boot-test-bus";
Simon Glasscf61f742015-07-06 12:54:36 -0600366 reg = <3 1>;
Simon Glassa7bb08a2014-07-23 06:54:57 -0600367 ping-expect = <4>;
Simon Glassb2c1cac2014-02-26 15:59:21 -0700368 ping-add = <4>;
Simon Glass40717422014-07-23 06:55:18 -0600369 c-test@5 {
Simon Glassb2c1cac2014-02-26 15:59:21 -0700370 compatible = "denx,u-boot-fdt-test";
371 reg = <5>;
Simon Glass40717422014-07-23 06:55:18 -0600372 ping-expect = <5>;
Simon Glassb2c1cac2014-02-26 15:59:21 -0700373 ping-add = <5>;
374 };
Simon Glass40717422014-07-23 06:55:18 -0600375 c-test@0 {
376 compatible = "denx,u-boot-fdt-test";
377 reg = <0>;
378 ping-expect = <6>;
379 ping-add = <6>;
380 };
381 c-test@1 {
382 compatible = "denx,u-boot-fdt-test";
383 reg = <1>;
384 ping-expect = <7>;
385 ping-add = <7>;
386 };
Simon Glassb2c1cac2014-02-26 15:59:21 -0700387 };
388
389 d-test {
Simon Glasscf61f742015-07-06 12:54:36 -0600390 reg = <3 1>;
Simon Glassdb6f0202014-07-23 06:55:12 -0600391 ping-expect = <6>;
392 ping-add = <6>;
393 compatible = "google,another-fdt-test";
394 };
395
396 e-test {
Simon Glasscf61f742015-07-06 12:54:36 -0600397 reg = <3 1>;
Simon Glassa7bb08a2014-07-23 06:54:57 -0600398 ping-expect = <6>;
Simon Glassb2c1cac2014-02-26 15:59:21 -0700399 ping-add = <6>;
400 compatible = "google,another-fdt-test";
401 };
402
Simon Glass0ccb0972015-01-25 08:27:05 -0700403 f-test {
404 compatible = "denx,u-boot-fdt-test";
405 };
406
407 g-test {
408 compatible = "denx,u-boot-fdt-test";
409 };
410
Bin Mengd9d24782018-10-10 22:07:01 -0700411 h-test {
412 compatible = "denx,u-boot-fdt-test1";
413 };
414
developercf8bc132020-05-02 11:35:10 +0200415 i-test {
416 compatible = "mediatek,u-boot-fdt-test";
417 #address-cells = <1>;
418 #size-cells = <0>;
419
420 subnode@0 {
421 reg = <0>;
422 };
423
424 subnode@1 {
425 reg = <1>;
426 };
427
428 subnode@2 {
429 reg = <2>;
430 };
431 };
432
Simon Glass204675c2019-12-29 21:19:25 -0700433 devres-test {
434 compatible = "denx,u-boot-devres-test";
435 };
436
Jean-Jacques Hiblot73873402020-09-11 13:43:35 +0530437 another-test {
438 reg = <0 2>;
439 compatible = "denx,u-boot-fdt-test";
440 test4-gpios = <&gpio_a 14>, <&gpio_b 4 1 3 2 1>;
441 test5-gpios = <&gpio_a 19>;
442 };
443
Nicolas Saenz Julienne22b7f7e2021-01-12 13:55:23 +0100444 mmio-bus@0 {
445 #address-cells = <1>;
446 #size-cells = <1>;
447 compatible = "denx,u-boot-test-bus";
448 dma-ranges = <0x10000000 0x00000000 0x00040000>;
449
450 subnode@0 {
451 compatible = "denx,u-boot-fdt-test";
452 };
453 };
454
455 mmio-bus@1 {
456 #address-cells = <1>;
457 #size-cells = <1>;
458 compatible = "denx,u-boot-test-bus";
Nicolas Saenz Julienne892e9b42021-01-12 13:55:25 +0100459
460 subnode@0 {
461 compatible = "denx,u-boot-fdt-test";
462 };
Nicolas Saenz Julienne22b7f7e2021-01-12 13:55:23 +0100463 };
464
Simon Glass3c601b12020-07-07 13:12:06 -0600465 acpi_test1: acpi-test {
Simon Glass2d67fdf2020-04-08 16:57:34 -0600466 compatible = "denx,u-boot-acpi-test";
Simon Glassd43e0ba2020-07-07 13:12:03 -0600467 acpi-ssdt-test-data = "ab";
Simon Glass990cd5b2020-07-07 13:12:08 -0600468 acpi-dsdt-test-data = "hi";
Simon Glassebb2e832020-07-07 13:11:39 -0600469 child {
470 compatible = "denx,u-boot-acpi-test";
471 };
Simon Glass2d67fdf2020-04-08 16:57:34 -0600472 };
473
Simon Glass3c601b12020-07-07 13:12:06 -0600474 acpi_test2: acpi-test2 {
Simon Glass17968c32020-04-26 09:19:46 -0600475 compatible = "denx,u-boot-acpi-test";
Simon Glassd43e0ba2020-07-07 13:12:03 -0600476 acpi-ssdt-test-data = "cd";
Simon Glass990cd5b2020-07-07 13:12:08 -0600477 acpi-dsdt-test-data = "jk";
Simon Glass17968c32020-04-26 09:19:46 -0600478 };
479
Patrice Chotard9cc2d142017-09-04 14:55:57 +0200480 clocks {
481 clk_fixed: clk-fixed {
482 compatible = "fixed-clock";
483 #clock-cells = <0>;
484 clock-frequency = <1234>;
485 };
Anup Patel8d28c3c2019-02-25 08:14:55 +0000486
487 clk_fixed_factor: clk-fixed-factor {
488 compatible = "fixed-factor-clock";
489 #clock-cells = <0>;
490 clock-div = <3>;
491 clock-mult = <2>;
492 clocks = <&clk_fixed>;
493 };
Lukasz Majewskiccafcdd2019-06-24 15:50:47 +0200494
495 osc {
496 compatible = "fixed-clock";
497 #clock-cells = <0>;
498 clock-frequency = <20000000>;
499 };
Stephen Warrena9622432016-06-17 09:44:00 -0600500 };
501
502 clk_sandbox: clk-sbox {
Simon Glass8cc4d822015-07-06 12:54:24 -0600503 compatible = "sandbox,clk";
Stephen Warrena9622432016-06-17 09:44:00 -0600504 #clock-cells = <1>;
Jean-Jacques Hiblotc1e9c942019-10-22 14:00:07 +0200505 assigned-clocks = <&clk_sandbox 3>;
506 assigned-clock-rates = <321>;
Stephen Warrena9622432016-06-17 09:44:00 -0600507 };
508
509 clk-test {
510 compatible = "sandbox,clk-test";
511 clocks = <&clk_fixed>,
512 <&clk_sandbox 1>,
Jean-Jacques Hiblot98e84182019-10-22 14:00:05 +0200513 <&clk_sandbox 0>,
514 <&clk_sandbox 3>,
515 <&clk_sandbox 2>;
516 clock-names = "fixed", "i2c", "spi", "uart2", "uart1";
Simon Glass8cc4d822015-07-06 12:54:24 -0600517 };
518
Lukasz Majewski8c0709b2019-06-24 15:50:50 +0200519 ccf: clk-ccf {
520 compatible = "sandbox,clk-ccf";
521 };
522
Simon Glass507ab962021-12-04 08:56:31 -0700523 efi-media {
524 compatible = "sandbox,efi-media";
525 };
526
Simon Glass5b968632015-05-22 15:42:15 -0600527 eth@10002000 {
528 compatible = "sandbox,eth";
529 reg = <0x10002000 0x1000>;
Simon Glass5b968632015-05-22 15:42:15 -0600530 };
531
532 eth_5: eth@10003000 {
533 compatible = "sandbox,eth";
534 reg = <0x10003000 0x1000>;
Sean Anderson24b1b8d2022-05-05 13:11:35 -0400535 mac-address = [ 02 00 11 22 33 46 ];
Simon Glass5b968632015-05-22 15:42:15 -0600536 };
537
Bin Meng04a11cb2015-08-27 22:25:53 -0700538 eth_3: sbe5 {
539 compatible = "sandbox,eth";
540 reg = <0x10005000 0x1000>;
Sean Andersone2dc0e62022-05-05 13:11:42 -0400541 nvmem-cells = <&eth3_addr>;
542 nvmem-cell-names = "mac-address";
Bin Meng04a11cb2015-08-27 22:25:53 -0700543 };
544
Simon Glass5b968632015-05-22 15:42:15 -0600545 eth@10004000 {
546 compatible = "sandbox,eth";
547 reg = <0x10004000 0x1000>;
Simon Glass5b968632015-05-22 15:42:15 -0600548 };
549
Marek BehĂșnf4f1ddc2022-04-07 00:32:57 +0200550 phy_eth0: phy-test-eth {
551 compatible = "sandbox,eth";
552 reg = <0x10007000 0x1000>;
Sean Anderson24b1b8d2022-05-05 13:11:35 -0400553 mac-address = [ 02 00 11 22 33 49 ];
Marek BehĂșnf4f1ddc2022-04-07 00:32:57 +0200554 phy-handle = <&ethphy1>;
Marek BehĂșnbc194772022-04-07 00:33:01 +0200555 phy-mode = "2500base-x";
Marek BehĂșnf4f1ddc2022-04-07 00:32:57 +0200556 };
557
Claudiu Manoild9eaa922021-03-14 20:14:57 +0800558 dsa_eth0: dsa-test-eth {
559 compatible = "sandbox,eth";
560 reg = <0x10006000 0x1000>;
Sean Anderson24b1b8d2022-05-05 13:11:35 -0400561 mac-address = [ 02 00 11 22 33 48 ];
Claudiu Manoild9eaa922021-03-14 20:14:57 +0800562 };
563
564 dsa-test {
565 compatible = "sandbox,dsa";
566
567 ports {
568 #address-cells = <1>;
569 #size-cells = <0>;
570 swp_0: port@0 {
571 reg = <0>;
572 label = "lan0";
573 phy-mode = "rgmii-rxid";
574
575 fixed-link {
576 speed = <100>;
577 full-duplex;
578 };
579 };
580
581 swp_1: port@1 {
582 reg = <1>;
583 label = "lan1";
584 phy-mode = "rgmii-txid";
Bin Meng381ed972021-03-14 20:14:58 +0800585 fixed-link = <0 1 100 0 0>;
Claudiu Manoild9eaa922021-03-14 20:14:57 +0800586 };
587
588 port@2 {
589 reg = <2>;
590 ethernet = <&dsa_eth0>;
591
592 fixed-link {
593 speed = <1000>;
594 full-duplex;
595 };
596 };
597 };
598 };
599
Rajan Vajab3b2ddb2018-09-19 03:43:46 -0700600 firmware {
601 sandbox_firmware: sandbox-firmware {
602 compatible = "sandbox,firmware";
603 };
Etienne Carriere02fd1262020-09-09 18:44:00 +0200604
Etienne Carriere09665cb2022-02-21 09:22:39 +0100605 scmi {
Etienne Carriere02fd1262020-09-09 18:44:00 +0200606 compatible = "sandbox,scmi-agent";
607 #address-cells = <1>;
608 #size-cells = <0>;
Etienne Carriere2d94c08fa2020-09-09 18:44:05 +0200609
Etienne Carriere09665cb2022-02-21 09:22:39 +0100610 protocol@10 {
611 reg = <0x10>;
612 };
613
614 clk_scmi: protocol@14 {
Etienne Carriere2d94c08fa2020-09-09 18:44:05 +0200615 reg = <0x14>;
616 #clock-cells = <1>;
617 };
Etienne Carriere8b9b6892020-09-09 18:44:07 +0200618
Etienne Carriere09665cb2022-02-21 09:22:39 +0100619 reset_scmi: protocol@16 {
Etienne Carriere8b9b6892020-09-09 18:44:07 +0200620 reg = <0x16>;
621 #reset-cells = <1>;
622 };
Etienne Carriereb8f15cd2021-03-08 22:38:07 +0100623
624 protocol@17 {
625 reg = <0x17>;
626
627 regulators {
628 #address-cells = <1>;
629 #size-cells = <0>;
630
Etienne Carriere09665cb2022-02-21 09:22:39 +0100631 regul0_scmi: reg@0 {
Etienne Carriereb8f15cd2021-03-08 22:38:07 +0100632 reg = <0>;
633 regulator-name = "sandbox-voltd0";
634 regulator-min-microvolt = <1100000>;
635 regulator-max-microvolt = <3300000>;
636 };
Etienne Carriere09665cb2022-02-21 09:22:39 +0100637 regul1_scmi: reg@1 {
Etienne Carriereb8f15cd2021-03-08 22:38:07 +0100638 reg = <0x1>;
639 regulator-name = "sandbox-voltd1";
640 regulator-min-microvolt = <1800000>;
641 };
642 };
643 };
Etienne Carriere02fd1262020-09-09 18:44:00 +0200644 };
Rajan Vajab3b2ddb2018-09-19 03:43:46 -0700645 };
646
Patrick Delaunay1b4a22f2020-01-13 11:35:15 +0100647 pinctrl-gpio {
648 compatible = "sandbox,pinctrl-gpio";
Simon Glassb2c1cac2014-02-26 15:59:21 -0700649
Patrick Delaunay1b4a22f2020-01-13 11:35:15 +0100650 gpio_a: base-gpios {
651 compatible = "sandbox,gpio";
652 gpio-controller;
653 #gpio-cells = <1>;
654 gpio-bank-name = "a";
655 sandbox,gpio-count = <20>;
Heiko Schocher4508abf2020-05-22 11:08:58 +0200656 hog_input_active_low {
657 gpio-hog;
658 input;
Philippe Reynesb25a5b32020-07-24 15:51:53 +0200659 gpios = <10 GPIO_ACTIVE_LOW>;
Heiko Schocher4508abf2020-05-22 11:08:58 +0200660 };
661 hog_input_active_high {
662 gpio-hog;
663 input;
Philippe Reynesb25a5b32020-07-24 15:51:53 +0200664 gpios = <11 GPIO_ACTIVE_HIGH>;
Heiko Schocher4508abf2020-05-22 11:08:58 +0200665 };
666 hog_output_low {
667 gpio-hog;
668 output-low;
Philippe Reynesb25a5b32020-07-24 15:51:53 +0200669 gpios = <12 GPIO_ACTIVE_HIGH>;
Heiko Schocher4508abf2020-05-22 11:08:58 +0200670 };
671 hog_output_high {
672 gpio-hog;
673 output-high;
Philippe Reynesb25a5b32020-07-24 15:51:53 +0200674 gpios = <13 GPIO_ACTIVE_HIGH>;
Heiko Schocher4508abf2020-05-22 11:08:58 +0200675 };
Patrick Delaunay1b4a22f2020-01-13 11:35:15 +0100676 };
677
678 gpio_b: extra-gpios {
679 compatible = "sandbox,gpio";
680 gpio-controller;
681 #gpio-cells = <5>;
682 gpio-bank-name = "b";
683 sandbox,gpio-count = <10>;
684 };
Simon Glass25348a42014-10-13 23:42:11 -0600685
Patrick Delaunay1b4a22f2020-01-13 11:35:15 +0100686 gpio_c: pinmux-gpios {
687 compatible = "sandbox,gpio";
688 gpio-controller;
689 #gpio-cells = <2>;
690 gpio-bank-name = "c";
691 sandbox,gpio-count = <10>;
692 };
Patrick Delaunay28bdaa52020-01-13 11:35:14 +0100693 };
694
Simon Glass7df766e2014-12-10 08:55:55 -0700695 i2c@0 {
696 #address-cells = <1>;
697 #size-cells = <0>;
Simon Glasscf61f742015-07-06 12:54:36 -0600698 reg = <0 1>;
Simon Glass7df766e2014-12-10 08:55:55 -0700699 compatible = "sandbox,i2c";
700 clock-frequency = <100000>;
Dario Binacchi20dd9e12021-04-11 09:39:50 +0200701 pinctrl-names = "default";
702 pinctrl-0 = <&pinmux_i2c0_pins>;
703
Simon Glass7df766e2014-12-10 08:55:55 -0700704 eeprom@2c {
Sean Andersone2dc0e62022-05-05 13:11:42 -0400705 #address-cells = <1>;
706 #size-cells = <1>;
Simon Glass7df766e2014-12-10 08:55:55 -0700707 reg = <0x2c>;
708 compatible = "i2c-eeprom";
Simon Glass17b56f62018-11-18 08:14:34 -0700709 sandbox,emul = <&emul_eeprom>;
Michal Simek4f18f922020-05-28 11:48:55 +0200710 partitions {
711 compatible = "fixed-partitions";
712 #address-cells = <1>;
713 #size-cells = <1>;
714 bootcount_i2c: bootcount@10 {
715 reg = <10 2>;
716 };
717 };
Sean Andersone2dc0e62022-05-05 13:11:42 -0400718
719 eth3_addr: mac-address@24 {
720 reg = <24 6>;
721 };
Simon Glass7df766e2014-12-10 08:55:55 -0700722 };
Przemyslaw Marczak77bee052015-05-13 13:38:35 +0200723
Simon Glass336b2952015-05-22 15:42:17 -0600724 rtc_0: rtc@43 {
725 reg = <0x43>;
726 compatible = "sandbox-rtc";
Simon Glass17b56f62018-11-18 08:14:34 -0700727 sandbox,emul = <&emul0>;
Simon Glass336b2952015-05-22 15:42:17 -0600728 };
729
730 rtc_1: rtc@61 {
731 reg = <0x61>;
732 compatible = "sandbox-rtc";
Simon Glass17b56f62018-11-18 08:14:34 -0700733 sandbox,emul = <&emul1>;
734 };
735
736 i2c_emul: emul {
737 reg = <0xff>;
738 compatible = "sandbox,i2c-emul-parent";
739 emul_eeprom: emul-eeprom {
740 compatible = "sandbox,i2c-eeprom";
741 sandbox,filename = "i2c.bin";
742 sandbox,size = <256>;
743 };
744 emul0: emul0 {
Simon Glass98af3742021-02-03 06:01:17 -0700745 compatible = "sandbox,i2c-rtc-emul";
Simon Glass17b56f62018-11-18 08:14:34 -0700746 };
747 emul1: emull {
Simon Glass98af3742021-02-03 06:01:17 -0700748 compatible = "sandbox,i2c-rtc-emul";
Simon Glass336b2952015-05-22 15:42:17 -0600749 };
750 };
751
Przemyslaw Marczak77bee052015-05-13 13:38:35 +0200752 sandbox_pmic: sandbox_pmic {
753 reg = <0x40>;
Simon Glass17b56f62018-11-18 08:14:34 -0700754 sandbox,emul = <&emul_pmic0>;
Przemyslaw Marczak77bee052015-05-13 13:38:35 +0200755 };
Lukasz Majewskia4d82972018-05-15 16:26:40 +0200756
757 mc34708: pmic@41 {
758 reg = <0x41>;
Simon Glass17b56f62018-11-18 08:14:34 -0700759 sandbox,emul = <&emul_pmic1>;
Lukasz Majewskia4d82972018-05-15 16:26:40 +0200760 };
Simon Glass7df766e2014-12-10 08:55:55 -0700761 };
762
Philipp Tomsich1fc53302018-12-14 21:14:29 +0100763 bootcount@0 {
764 compatible = "u-boot,bootcount-rtc";
765 rtc = <&rtc_1>;
766 offset = <0x13>;
767 };
768
Michal Simek4f18f922020-05-28 11:48:55 +0200769 bootcount {
770 compatible = "u-boot,bootcount-i2c-eeprom";
771 i2c-eeprom = <&bootcount_i2c>;
772 };
773
Nandor Han88895812021-06-10 15:40:38 +0300774 bootcount_4@0 {
775 compatible = "u-boot,bootcount-syscon";
776 syscon = <&syscon0>;
777 reg = <0x0 0x04>, <0x0 0x04>;
778 reg-names = "syscon_reg", "offset";
779 };
780
781 bootcount_2@0 {
782 compatible = "u-boot,bootcount-syscon";
783 syscon = <&syscon0>;
784 reg = <0x0 0x04>, <0x0 0x02> ;
785 reg-names = "syscon_reg", "offset";
786 };
787
Marek Szyprowskiad398592021-02-18 11:33:18 +0100788 adc: adc@0 {
Przemyslaw Marczak1bc7f232015-10-27 13:08:06 +0100789 compatible = "sandbox,adc";
Marek Szyprowskiad398592021-02-18 11:33:18 +0100790 #io-channel-cells = <1>;
Przemyslaw Marczak1bc7f232015-10-27 13:08:06 +0100791 vdd-supply = <&buck2>;
792 vss-microvolts = <0>;
793 };
794
Mark Kettenis67748ee2021-10-23 16:58:02 +0200795 iommu: iommu@0 {
796 compatible = "sandbox,iommu";
797 #iommu-cells = <0>;
798 };
799
Simon Glass515dcff2020-02-06 09:55:00 -0700800 irq: irq {
Simon Glass54028bc2019-12-06 21:41:59 -0700801 compatible = "sandbox,irq";
Simon Glass515dcff2020-02-06 09:55:00 -0700802 interrupt-controller;
803 #interrupt-cells = <2>;
Simon Glass54028bc2019-12-06 21:41:59 -0700804 };
805
Simon Glass90b6fef2016-01-18 19:52:26 -0700806 lcd {
807 u-boot,dm-pre-reloc;
808 compatible = "sandbox,lcd-sdl";
Dario Binacchi20dd9e12021-04-11 09:39:50 +0200809 pinctrl-names = "default";
810 pinctrl-0 = <&pinmux_lcd_pins>;
Simon Glass90b6fef2016-01-18 19:52:26 -0700811 xres = <1366>;
812 yres = <768>;
813 };
814
Simon Glassd783eb32015-07-06 12:54:34 -0600815 leds {
816 compatible = "gpio-leds";
817
818 iracibble {
819 gpios = <&gpio_a 1 0>;
820 label = "sandbox:red";
821 };
822
823 martinet {
824 gpios = <&gpio_a 2 0>;
825 label = "sandbox:green";
826 };
Patrick Bruennb58adfe2018-04-11 11:16:29 +0200827
828 default_on {
829 gpios = <&gpio_a 5 0>;
830 label = "sandbox:default_on";
831 default-state = "on";
832 };
833
834 default_off {
835 gpios = <&gpio_a 6 0>;
Sean Andersonfbf8d652020-09-14 11:02:03 -0400836 /* label intentionally omitted */
Patrick Bruennb58adfe2018-04-11 11:16:29 +0200837 default-state = "off";
838 };
Simon Glassd783eb32015-07-06 12:54:34 -0600839 };
840
Rasmus Villemoes2b673872021-08-19 11:57:05 +0200841 gpio-wdt {
842 gpios = <&gpio_a 7 0>;
843 compatible = "linux,wdt-gpio";
Rasmus Villemoesf91ff5a2021-08-19 11:57:06 +0200844 hw_margin_ms = <100>;
Rasmus Villemoes2b673872021-08-19 11:57:05 +0200845 always-running;
846 };
847
Stephen Warren62f2c902016-05-16 17:41:37 -0600848 mbox: mbox {
849 compatible = "sandbox,mbox";
850 #mbox-cells = <1>;
851 };
852
853 mbox-test {
854 compatible = "sandbox,mbox-test";
855 mboxes = <&mbox 100>, <&mbox 1>;
856 mbox-names = "other", "test";
857 };
858
AKASHI Takahiro8fb963a2019-08-27 17:17:03 +0900859 cpus {
Heinrich Schuchardt20f9d3d2021-08-28 11:42:08 +0200860 #address-cells = <1>;
861 #size-cells = <0>;
Sean Anderson79d3bba2020-09-28 10:52:23 -0400862 timebase-frequency = <2000000>;
Heinrich Schuchardt20f9d3d2021-08-28 11:42:08 +0200863 cpu1: cpu@1 {
864 device_type = "cpu";
865 reg = <0x1>;
Sean Anderson79d3bba2020-09-28 10:52:23 -0400866 timebase-frequency = <3000000>;
AKASHI Takahiro8fb963a2019-08-27 17:17:03 +0900867 compatible = "sandbox,cpu_sandbox";
868 u-boot,dm-pre-reloc;
869 };
Mario Sixdea5df72018-08-06 10:23:44 +0200870
Heinrich Schuchardt20f9d3d2021-08-28 11:42:08 +0200871 cpu2: cpu@2 {
872 device_type = "cpu";
873 reg = <0x2>;
AKASHI Takahiro8fb963a2019-08-27 17:17:03 +0900874 compatible = "sandbox,cpu_sandbox";
875 u-boot,dm-pre-reloc;
876 };
Mario Sixdea5df72018-08-06 10:23:44 +0200877
Heinrich Schuchardt20f9d3d2021-08-28 11:42:08 +0200878 cpu3: cpu@3 {
879 device_type = "cpu";
880 reg = <0x3>;
AKASHI Takahiro8fb963a2019-08-27 17:17:03 +0900881 compatible = "sandbox,cpu_sandbox";
882 u-boot,dm-pre-reloc;
883 };
Mario Sixdea5df72018-08-06 10:23:44 +0200884 };
885
Dave Gerlach75dbdfc2020-07-15 23:39:58 -0500886 chipid: chipid {
887 compatible = "sandbox,soc";
888 };
889
Simon Glassc953aaf2018-12-10 10:37:34 -0700890 i2s: i2s {
891 compatible = "sandbox,i2s";
892 #sound-dai-cells = <1>;
Simon Glass4d5814c2019-02-16 20:24:56 -0700893 sandbox,silent; /* Don't emit sounds while testing */
Simon Glassc953aaf2018-12-10 10:37:34 -0700894 };
895
Jean-Jacques Hiblotdb97c7f2019-07-05 09:33:57 +0200896 nop-test_0 {
897 compatible = "sandbox,nop_sandbox1";
898 nop-test_1 {
899 compatible = "sandbox,nop_sandbox2";
900 bind = "True";
901 };
902 nop-test_2 {
903 compatible = "sandbox,nop_sandbox2";
904 bind = "False";
905 };
906 };
907
Mario Sixa8ce0ee2018-07-31 14:24:14 +0200908 misc-test {
909 compatible = "sandbox,misc_sandbox";
910 };
911
Simon Glasse4fef742017-04-23 20:02:07 -0600912 mmc2 {
913 compatible = "sandbox,mmc";
Simon Glass965cd402021-07-05 16:32:58 -0600914 non-removable;
Simon Glasse4fef742017-04-23 20:02:07 -0600915 };
916
Simon Glassb255efc2022-04-24 23:31:24 -0600917 /* This is used for the bootdev tests */
Simon Glasse4fef742017-04-23 20:02:07 -0600918 mmc1 {
919 compatible = "sandbox,mmc";
Simon Glassb255efc2022-04-24 23:31:24 -0600920 filename = "mmc1.img";
Simon Glasse4fef742017-04-23 20:02:07 -0600921 };
922
Simon Glassb255efc2022-04-24 23:31:24 -0600923 /* This is used for the fastboot tests */
Simon Glasse4fef742017-04-23 20:02:07 -0600924 mmc0 {
Simon Glassd3e58e42015-07-06 12:54:32 -0600925 compatible = "sandbox,mmc";
926 };
927
Simon Glass53a68b32019-02-16 20:24:50 -0700928 pch {
929 compatible = "sandbox,pch";
930 };
931
Tom Rini4a3ca482020-02-11 12:41:23 -0500932 pci0: pci@0 {
Simon Glass3a6eae62015-03-05 12:25:34 -0700933 compatible = "sandbox,pci";
934 device_type = "pci";
Tom Rini4a3ca482020-02-11 12:41:23 -0500935 bus-range = <0x00 0xff>;
Simon Glass3a6eae62015-03-05 12:25:34 -0700936 #address-cells = <3>;
937 #size-cells = <2>;
Simon Glass35464f72019-09-25 08:56:08 -0600938 ranges = <0x02000000 0 0x10000000 0x10000000 0 0x2000000
Simon Glass3a6eae62015-03-05 12:25:34 -0700939 0x01000000 0 0x20000000 0x20000000 0 0x2000>;
Bin Mengcbf071b2018-08-03 01:14:39 -0700940 pci@0,0 {
941 compatible = "pci-generic";
942 reg = <0x0000 0 0 0 0>;
Simon Glassb98ba4c2019-09-25 08:56:10 -0600943 sandbox,emul = <&swap_case_emul0_0>;
Bin Mengcbf071b2018-08-03 01:14:39 -0700944 };
Alex Margineanf1274432019-06-07 11:24:24 +0300945 pci@1,0 {
946 compatible = "pci-generic";
Simon Glass23b27592019-09-15 12:08:58 -0600947 /* reg 0 is at 0x14, using FDT_PCI_SPACE_MEM32 */
948 reg = <0x02000814 0 0 0 0
949 0x01000810 0 0 0 0>;
Simon Glassb98ba4c2019-09-25 08:56:10 -0600950 sandbox,emul = <&swap_case_emul0_1>;
Alex Margineanf1274432019-06-07 11:24:24 +0300951 };
Simon Glass937bb472019-12-06 21:41:57 -0700952 p2sb-pci@2,0 {
953 compatible = "sandbox,p2sb";
954 reg = <0x02001010 0 0 0 0>;
955 sandbox,emul = <&p2sb_emul>;
956
957 adder {
958 intel,p2sb-port-id = <3>;
959 compatible = "sandbox,adder";
960 };
961 };
Simon Glass8c501022019-12-06 21:41:54 -0700962 pci@1e,0 {
963 compatible = "sandbox,pmc";
964 reg = <0xf000 0 0 0 0>;
965 sandbox,emul = <&pmc_emul1e>;
966 acpi-base = <0x400>;
967 gpe0-dwx-mask = <0xf>;
968 gpe0-dwx-shift-base = <4>;
969 gpe0-dw = <6 7 9>;
970 gpe0-sts = <0x20>;
971 gpe0-en = <0x30>;
972 };
Simon Glass3a6eae62015-03-05 12:25:34 -0700973 pci@1f,0 {
974 compatible = "pci-generic";
Simon Glass23b27592019-09-15 12:08:58 -0600975 /* reg 0 is at 0x10, using FDT_PCI_SPACE_IO */
976 reg = <0x0100f810 0 0 0 0>;
Simon Glassb98ba4c2019-09-25 08:56:10 -0600977 sandbox,emul = <&swap_case_emul0_1f>;
Simon Glass3a6eae62015-03-05 12:25:34 -0700978 };
979 };
980
Simon Glassb98ba4c2019-09-25 08:56:10 -0600981 pci-emul0 {
982 compatible = "sandbox,pci-emul-parent";
983 swap_case_emul0_0: emul0@0,0 {
984 compatible = "sandbox,swap-case";
985 };
986 swap_case_emul0_1: emul0@1,0 {
987 compatible = "sandbox,swap-case";
988 use-ea;
989 };
990 swap_case_emul0_1f: emul0@1f,0 {
991 compatible = "sandbox,swap-case";
992 };
Simon Glass937bb472019-12-06 21:41:57 -0700993 p2sb_emul: emul@2,0 {
994 compatible = "sandbox,p2sb-emul";
995 };
Simon Glass8c501022019-12-06 21:41:54 -0700996 pmc_emul1e: emul@1e,0 {
997 compatible = "sandbox,pmc-emul";
998 };
Simon Glassb98ba4c2019-09-25 08:56:10 -0600999 };
1000
Tom Rini4a3ca482020-02-11 12:41:23 -05001001 pci1: pci@1 {
Bin Meng408e5902018-08-03 01:14:41 -07001002 compatible = "sandbox,pci";
1003 device_type = "pci";
Tom Rini4a3ca482020-02-11 12:41:23 -05001004 bus-range = <0x00 0xff>;
Bin Meng408e5902018-08-03 01:14:41 -07001005 #address-cells = <3>;
1006 #size-cells = <2>;
Suneel Garapati3ac3aec2019-10-19 17:10:20 -07001007 ranges = <0x02000000 0 0x30000000 0x30000000 0 0x2000 // MEM0
Andrew Scullc7456a42022-04-21 16:11:09 +00001008 0x02000000 0 0x31000000 0x3e000000 0 0x2000 // MEM1
Suneel Garapati3ac3aec2019-10-19 17:10:20 -07001009 0x01000000 0 0x40000000 0x40000000 0 0x2000>;
Bin Meng5fed5362018-08-03 01:14:47 -07001010 sandbox,dev-info = <0x08 0x00 0x1234 0x5678
Marek Vasute5733222018-10-10 21:27:08 +02001011 0x0c 0x00 0x1234 0x5678
1012 0x10 0x00 0x1234 0x5678>;
1013 pci@10,0 {
1014 reg = <0x8000 0 0 0 0>;
1015 };
Bin Meng408e5902018-08-03 01:14:41 -07001016 };
1017
Tom Rini4a3ca482020-02-11 12:41:23 -05001018 pci2: pci@2 {
Bin Meng510dddb2018-08-03 01:14:50 -07001019 compatible = "sandbox,pci";
1020 device_type = "pci";
Tom Rini4a3ca482020-02-11 12:41:23 -05001021 bus-range = <0x00 0xff>;
Bin Meng510dddb2018-08-03 01:14:50 -07001022 #address-cells = <3>;
1023 #size-cells = <2>;
1024 ranges = <0x02000000 0 0x50000000 0x50000000 0 0x2000
1025 0x01000000 0 0x60000000 0x60000000 0 0x2000>;
1026 sandbox,dev-info = <0x08 0x00 0x1234 0x5678>;
1027 pci@1f,0 {
1028 compatible = "pci-generic";
1029 reg = <0xf800 0 0 0 0>;
Simon Glassb98ba4c2019-09-25 08:56:10 -06001030 sandbox,emul = <&swap_case_emul2_1f>;
1031 };
1032 };
1033
1034 pci-emul2 {
1035 compatible = "sandbox,pci-emul-parent";
1036 swap_case_emul2_1f: emul2@1f,0 {
1037 compatible = "sandbox,swap-case";
Bin Meng510dddb2018-08-03 01:14:50 -07001038 };
1039 };
1040
Ramon Friedc64f19b2019-04-27 11:15:23 +03001041 pci_ep: pci_ep {
1042 compatible = "sandbox,pci_ep";
1043 };
1044
Simon Glass9c433fe2017-04-23 20:10:44 -06001045 probing {
1046 compatible = "simple-bus";
1047 test1 {
1048 compatible = "denx,u-boot-probe-test";
1049 };
1050
1051 test2 {
1052 compatible = "denx,u-boot-probe-test";
1053 };
1054
1055 test3 {
1056 compatible = "denx,u-boot-probe-test";
1057 };
1058
1059 test4 {
1060 compatible = "denx,u-boot-probe-test";
Jean-Jacques Hiblotdc44ea42018-11-29 10:57:37 +01001061 first-syscon = <&syscon0>;
1062 second-sys-ctrl = <&another_system_controller>;
Patrick Delaunayee010432019-03-07 09:57:13 +01001063 third-syscon = <&syscon2>;
Simon Glass9c433fe2017-04-23 20:10:44 -06001064 };
1065 };
1066
Stephen Warren92c67fa2016-07-13 13:45:31 -06001067 pwrdom: power-domain {
1068 compatible = "sandbox,power-domain";
1069 #power-domain-cells = <1>;
1070 };
1071
1072 power-domain-test {
1073 compatible = "sandbox,power-domain-test";
1074 power-domains = <&pwrdom 2>;
1075 };
1076
Simon Glass5620cf82018-10-01 12:22:40 -06001077 pwm: pwm {
Simon Glasse62f4be2017-04-16 21:01:11 -06001078 compatible = "sandbox,pwm";
Simon Glass5620cf82018-10-01 12:22:40 -06001079 #pwm-cells = <2>;
Dario Binacchi20dd9e12021-04-11 09:39:50 +02001080 pinctrl-names = "default";
1081 pinctrl-0 = <&pinmux_pwm_pins>;
Simon Glasse62f4be2017-04-16 21:01:11 -06001082 };
1083
1084 pwm2 {
1085 compatible = "sandbox,pwm";
Simon Glass5620cf82018-10-01 12:22:40 -06001086 #pwm-cells = <2>;
Simon Glasse62f4be2017-04-16 21:01:11 -06001087 };
1088
Simon Glass3d355e62015-07-06 12:54:31 -06001089 ram {
1090 compatible = "sandbox,ram";
1091 };
1092
Simon Glassd860f222015-07-06 12:54:29 -06001093 reset@0 {
1094 compatible = "sandbox,warm-reset";
1095 };
1096
1097 reset@1 {
1098 compatible = "sandbox,reset";
1099 };
1100
Stephen Warren6488e642016-06-17 09:43:59 -06001101 resetc: reset-ctl {
1102 compatible = "sandbox,reset-ctl";
1103 #reset-cells = <1>;
1104 };
1105
1106 reset-ctl-test {
1107 compatible = "sandbox,reset-ctl-test";
Neil Armstrong9b4cdef2021-04-20 10:42:25 +02001108 resets = <&resetc 100>, <&resetc 2>, <&resetc 20>, <&resetc 40>;
1109 reset-names = "other", "test", "test2", "test3";
Stephen Warren6488e642016-06-17 09:43:59 -06001110 };
1111
Sughosh Ganu23e37512019-12-28 23:58:31 +05301112 rng {
1113 compatible = "sandbox,sandbox-rng";
1114 };
1115
Nishanth Menonedf85812015-09-17 15:42:41 -05001116 rproc_1: rproc@1 {
1117 compatible = "sandbox,test-processor";
1118 remoteproc-name = "remoteproc-test-dev1";
1119 };
1120
1121 rproc_2: rproc@2 {
1122 compatible = "sandbox,test-processor";
1123 internal-memory-mapped;
1124 remoteproc-name = "remoteproc-test-dev2";
1125 };
1126
Simon Glass5620cf82018-10-01 12:22:40 -06001127 panel {
1128 compatible = "simple-panel";
1129 backlight = <&backlight 0 100>;
1130 };
1131
Ramon Fried26ed32e2018-07-02 02:57:59 +03001132 smem@0 {
1133 compatible = "sandbox,smem";
1134 };
1135
Simon Glass76072ac2018-12-10 10:37:36 -07001136 sound {
1137 compatible = "sandbox,sound";
1138 cpu {
1139 sound-dai = <&i2s 0>;
1140 };
1141
1142 codec {
1143 sound-dai = <&audio 0>;
1144 };
1145 };
1146
Simon Glass25348a42014-10-13 23:42:11 -06001147 spi@0 {
1148 #address-cells = <1>;
1149 #size-cells = <0>;
Simon Glasscf61f742015-07-06 12:54:36 -06001150 reg = <0 1>;
Simon Glass25348a42014-10-13 23:42:11 -06001151 compatible = "sandbox,spi";
Ovidiu Panaitae734732020-12-14 19:06:47 +02001152 cs-gpios = <0>, <0>, <&gpio_a 0>;
Dario Binacchi20dd9e12021-04-11 09:39:50 +02001153 pinctrl-names = "default";
1154 pinctrl-0 = <&pinmux_spi0_pins>;
1155
Simon Glass25348a42014-10-13 23:42:11 -06001156 spi.bin@0 {
1157 reg = <0>;
Neil Armstronga009fa72019-02-10 10:16:20 +00001158 compatible = "spansion,m25p16", "jedec,spi-nor";
Simon Glass25348a42014-10-13 23:42:11 -06001159 spi-max-frequency = <40000000>;
1160 sandbox,filename = "spi.bin";
1161 };
Ovidiu Panaitae734732020-12-14 19:06:47 +02001162 spi.bin@1 {
1163 reg = <1>;
1164 compatible = "spansion,m25p16", "jedec,spi-nor";
1165 spi-max-frequency = <50000000>;
1166 sandbox,filename = "spi.bin";
1167 spi-cpol;
1168 spi-cpha;
1169 };
Simon Glass25348a42014-10-13 23:42:11 -06001170 };
1171
Jean-Jacques Hiblotdc44ea42018-11-29 10:57:37 +01001172 syscon0: syscon@0 {
Simon Glasscd556522015-07-06 12:54:35 -06001173 compatible = "sandbox,syscon0";
Mario Sixe3f59f42018-10-04 09:00:40 +02001174 reg = <0x10 16>;
Simon Glasscd556522015-07-06 12:54:35 -06001175 };
1176
Jean-Jacques Hiblotdc44ea42018-11-29 10:57:37 +01001177 another_system_controller: syscon@1 {
Simon Glasscd556522015-07-06 12:54:35 -06001178 compatible = "sandbox,syscon1";
Simon Glasscf61f742015-07-06 12:54:36 -06001179 reg = <0x20 5
1180 0x28 6
1181 0x30 7
1182 0x38 8>;
Simon Glasscd556522015-07-06 12:54:35 -06001183 };
1184
Patrick Delaunayee010432019-03-07 09:57:13 +01001185 syscon2: syscon@2 {
Masahiro Yamada42ab1072018-04-23 13:26:53 +09001186 compatible = "simple-mfd", "syscon";
1187 reg = <0x40 5
1188 0x48 6
1189 0x50 7
1190 0x58 8>;
1191 };
1192
Jean-Jacques Hiblota94b6972020-10-16 16:16:34 +05301193 syscon3: syscon@3 {
1194 compatible = "simple-mfd", "syscon";
1195 reg = <0x000100 0x10>;
1196
1197 muxcontroller0: a-mux-controller {
1198 compatible = "mmio-mux";
1199 #mux-control-cells = <1>;
1200
1201 mux-reg-masks = <0x0 0x30>, /* 0: reg 0x0, bits 5:4 */
1202 <0xc 0x1E>, /* 1: reg 0xc, bits 4:1 */
1203 <0x4 0xFF>; /* 2: reg 0x4, bits 7:0 */
1204 idle-states = <MUX_IDLE_AS_IS>, <0x02>, <0x73>;
1205 u-boot,mux-autoprobe;
1206 };
1207 };
1208
1209 muxcontroller1: emul-mux-controller {
1210 compatible = "mux-emul";
1211 #mux-control-cells = <0>;
1212 u-boot,mux-autoprobe;
1213 idle-state = <0xabcd>;
1214 };
1215
Simon Glass791a17f2020-12-16 21:20:27 -07001216 testfdtm0 {
1217 compatible = "denx,u-boot-fdtm-test";
1218 };
1219
1220 testfdtm1: testfdtm1 {
1221 compatible = "denx,u-boot-fdtm-test";
1222 };
1223
1224 testfdtm2 {
1225 compatible = "denx,u-boot-fdtm-test";
1226 };
1227
Sean Anderson79d3bba2020-09-28 10:52:23 -04001228 timer@0 {
Thomas Chou6f2cfbf2015-12-11 16:27:34 +08001229 compatible = "sandbox,timer";
1230 clock-frequency = <1000000>;
1231 };
1232
Sean Anderson79d3bba2020-09-28 10:52:23 -04001233 timer@1 {
1234 compatible = "sandbox,timer";
1235 sandbox,timebase-frequency-fallback;
1236 };
1237
Miquel Raynal80938c12018-05-15 11:57:27 +02001238 tpm2 {
1239 compatible = "sandbox,tpm2";
1240 };
1241
Simon Glass5b968632015-05-22 15:42:15 -06001242 uart0: serial {
1243 compatible = "sandbox,serial";
1244 u-boot,dm-pre-reloc;
Dario Binacchi20dd9e12021-04-11 09:39:50 +02001245 pinctrl-names = "default";
1246 pinctrl-0 = <&pinmux_uart0_pins>;
Joe Hershberger4c197242015-03-22 17:09:15 -05001247 };
1248
Simon Glass31680482015-03-25 12:23:05 -06001249 usb_0: usb@0 {
1250 compatible = "sandbox,usb";
1251 status = "disabled";
1252 hub {
1253 compatible = "sandbox,usb-hub";
1254 #address-cells = <1>;
1255 #size-cells = <0>;
1256 flash-stick {
1257 reg = <0>;
1258 compatible = "sandbox,usb-flash";
1259 };
1260 };
1261 };
1262
1263 usb_1: usb@1 {
1264 compatible = "sandbox,usb";
Mark Kettenis67748ee2021-10-23 16:58:02 +02001265 iommus = <&iommu>;
Simon Glass31680482015-03-25 12:23:05 -06001266 hub {
1267 compatible = "usb-hub";
1268 usb,device-class = <9>;
Michael Walle7c961322020-06-02 01:47:07 +02001269 #address-cells = <1>;
1270 #size-cells = <0>;
Simon Glass31680482015-03-25 12:23:05 -06001271 hub-emul {
1272 compatible = "sandbox,usb-hub";
1273 #address-cells = <1>;
1274 #size-cells = <0>;
Simon Glass4700fe52015-11-08 23:48:01 -07001275 flash-stick@0 {
Simon Glass31680482015-03-25 12:23:05 -06001276 reg = <0>;
1277 compatible = "sandbox,usb-flash";
1278 sandbox,filepath = "testflash.bin";
1279 };
1280
Simon Glass4700fe52015-11-08 23:48:01 -07001281 flash-stick@1 {
1282 reg = <1>;
1283 compatible = "sandbox,usb-flash";
1284 sandbox,filepath = "testflash1.bin";
1285 };
1286
1287 flash-stick@2 {
1288 reg = <2>;
1289 compatible = "sandbox,usb-flash";
1290 sandbox,filepath = "testflash2.bin";
1291 };
1292
Simon Glassc0ccc722015-11-08 23:48:08 -07001293 keyb@3 {
1294 reg = <3>;
1295 compatible = "sandbox,usb-keyb";
1296 };
1297
Simon Glass31680482015-03-25 12:23:05 -06001298 };
Michael Walle7c961322020-06-02 01:47:07 +02001299
1300 usbstor@1 {
1301 reg = <1>;
1302 };
1303 usbstor@3 {
1304 reg = <3>;
1305 };
Simon Glass31680482015-03-25 12:23:05 -06001306 };
1307 };
1308
1309 usb_2: usb@2 {
1310 compatible = "sandbox,usb";
1311 status = "disabled";
1312 };
1313
Mateusz Kulikowskic7e4fbb2016-03-31 23:12:28 +02001314 spmi: spmi@0 {
1315 compatible = "sandbox,spmi";
1316 #address-cells = <0x1>;
1317 #size-cells = <0x1>;
Simon Glass95139972019-09-25 08:55:59 -06001318 ranges;
Mateusz Kulikowskic7e4fbb2016-03-31 23:12:28 +02001319 pm8916@0 {
1320 compatible = "qcom,spmi-pmic";
1321 reg = <0x0 0x1>;
1322 #address-cells = <0x1>;
1323 #size-cells = <0x1>;
Simon Glass95139972019-09-25 08:55:59 -06001324 ranges;
Mateusz Kulikowskic7e4fbb2016-03-31 23:12:28 +02001325
1326 spmi_gpios: gpios@c000 {
1327 compatible = "qcom,pm8916-gpio";
1328 reg = <0xc000 0x400>;
1329 gpio-controller;
1330 gpio-count = <4>;
1331 #gpio-cells = <2>;
1332 gpio-bank-name="spmi";
1333 };
1334 };
1335 };
maxims@google.comdaea6d42017-04-17 12:00:21 -07001336
1337 wdt0: wdt@0 {
1338 compatible = "sandbox,wdt";
Rasmus Villemoesf91ff5a2021-08-19 11:57:06 +02001339 hw_margin_ms = <200>;
maxims@google.comdaea6d42017-04-17 12:00:21 -07001340 };
Rob Clarka471b672018-01-10 11:33:30 +01001341
Mario Six95922152018-08-09 14:51:19 +02001342 axi: axi@0 {
1343 compatible = "sandbox,axi";
1344 #address-cells = <0x1>;
1345 #size-cells = <0x1>;
1346 store@0 {
1347 compatible = "sandbox,sandbox_store";
1348 reg = <0x0 0x400>;
1349 };
1350 };
1351
Rob Clarka471b672018-01-10 11:33:30 +01001352 chosen {
Simon Glass305ac9a2018-02-03 10:36:58 -07001353 #address-cells = <1>;
1354 #size-cells = <1>;
Simon Glassf3455962020-01-27 08:49:43 -07001355 setting = "sunrise ohoka";
1356 other-node = "/some-bus/c-test@5";
Simon Glasse09223c2020-01-27 08:49:46 -07001357 int-values = <0x1937 72993>;
Simon Glass3c601b12020-07-07 13:12:06 -06001358 u-boot,acpi-ssdt-order = <&acpi_test2 &acpi_test1>;
Rob Clarka471b672018-01-10 11:33:30 +01001359 chosen-test {
1360 compatible = "denx,u-boot-fdt-test";
1361 reg = <9 1>;
1362 };
1363 };
Mario Six35616ef2018-03-12 14:53:33 +01001364
1365 translation-test@8000 {
1366 compatible = "simple-bus";
1367 reg = <0x8000 0x4000>;
1368
1369 #address-cells = <0x2>;
1370 #size-cells = <0x1>;
1371
1372 ranges = <0 0x0 0x8000 0x1000
1373 1 0x100 0x9000 0x1000
1374 2 0x200 0xA000 0x1000
1375 3 0x300 0xB000 0x1000
1376 >;
1377
Fabien Dessenne22236e02019-05-31 15:11:30 +02001378 dma-ranges = <0 0x000 0x10000000 0x1000
1379 1 0x100 0x20000000 0x1000
1380 >;
1381
Mario Six35616ef2018-03-12 14:53:33 +01001382 dev@0,0 {
1383 compatible = "denx,u-boot-fdt-dummy";
1384 reg = <0 0x0 0x1000>;
Álvaro Fernåndez Rojasa3181152018-12-03 19:37:09 +01001385 reg-names = "sandbox-dummy-0";
Mario Six35616ef2018-03-12 14:53:33 +01001386 };
1387
1388 dev@1,100 {
1389 compatible = "denx,u-boot-fdt-dummy";
1390 reg = <1 0x100 0x1000>;
1391
1392 };
1393
1394 dev@2,200 {
1395 compatible = "denx,u-boot-fdt-dummy";
1396 reg = <2 0x200 0x1000>;
1397 };
1398
1399
1400 noxlatebus@3,300 {
1401 compatible = "simple-bus";
1402 reg = <3 0x300 0x1000>;
1403
1404 #address-cells = <0x1>;
1405 #size-cells = <0x0>;
1406
1407 dev@42 {
1408 compatible = "denx,u-boot-fdt-dummy";
1409 reg = <0x42>;
1410 };
1411 };
1412 };
Mario Six02ad6fb2018-09-27 09:19:31 +02001413
1414 osd {
1415 compatible = "sandbox,sandbox_osd";
1416 };
Tom Rinib93eea72018-09-30 18:16:51 -04001417
Jens Wiklander86afaa62018-09-25 16:40:16 +02001418 sandbox_tee {
1419 compatible = "sandbox,tee";
1420 };
Bin Meng1bb290d2018-10-15 02:21:26 -07001421
1422 sandbox_virtio1 {
1423 compatible = "sandbox,virtio1";
1424 };
1425
1426 sandbox_virtio2 {
1427 compatible = "sandbox,virtio2";
1428 };
Patrice Chotard0fc8afc2018-10-24 14:10:23 +02001429
Etienne Carriere2d94c08fa2020-09-09 18:44:05 +02001430 sandbox_scmi {
1431 compatible = "sandbox,scmi-devices";
Etienne Carrierebf1f1322022-02-21 09:22:41 +01001432 clocks = <&clk_scmi 2>, <&clk_scmi 0>;
Etienne Carriere09665cb2022-02-21 09:22:39 +01001433 resets = <&reset_scmi 3>;
1434 regul0-supply = <&regul0_scmi>;
1435 regul1-supply = <&regul1_scmi>;
Etienne Carriere2d94c08fa2020-09-09 18:44:05 +02001436 };
1437
Patrice Chotard0fc8afc2018-10-24 14:10:23 +02001438 pinctrl {
1439 compatible = "sandbox,pinctrl";
Patrick Delaunay939cbe92020-01-13 11:35:12 +01001440
Sean Anderson3438e3b2020-09-14 11:01:57 -04001441 pinctrl-names = "default", "alternate";
1442 pinctrl-0 = <&pinctrl_gpios>, <&pinctrl_i2s>;
1443 pinctrl-1 = <&pinctrl_spi>, <&pinctrl_i2c>;
Patrick Delaunay939cbe92020-01-13 11:35:12 +01001444
Sean Anderson3438e3b2020-09-14 11:01:57 -04001445 pinctrl_gpios: gpios {
Patrick Delaunay939cbe92020-01-13 11:35:12 +01001446 gpio0 {
Sean Anderson3438e3b2020-09-14 11:01:57 -04001447 pins = "P5";
1448 function = "GPIO";
Patrick Delaunay939cbe92020-01-13 11:35:12 +01001449 bias-pull-up;
1450 input-disable;
1451 };
1452 gpio1 {
Sean Anderson3438e3b2020-09-14 11:01:57 -04001453 pins = "P6";
1454 function = "GPIO";
Patrick Delaunay939cbe92020-01-13 11:35:12 +01001455 output-high;
1456 drive-open-drain;
1457 };
1458 gpio2 {
Sean Anderson3438e3b2020-09-14 11:01:57 -04001459 pinmux = <SANDBOX_PINMUX(7, SANDBOX_PINMUX_GPIO)>;
Patrick Delaunay939cbe92020-01-13 11:35:12 +01001460 bias-pull-down;
1461 input-enable;
1462 };
1463 gpio3 {
Sean Anderson3438e3b2020-09-14 11:01:57 -04001464 pinmux = <SANDBOX_PINMUX(8, SANDBOX_PINMUX_GPIO)>;
Patrick Delaunay939cbe92020-01-13 11:35:12 +01001465 bias-disable;
1466 };
1467 };
Sean Anderson3438e3b2020-09-14 11:01:57 -04001468
1469 pinctrl_i2c: i2c {
1470 groups {
1471 groups = "I2C_UART";
1472 function = "I2C";
1473 };
1474
1475 pins {
1476 pins = "P0", "P1";
1477 drive-open-drain;
1478 };
1479 };
1480
1481 pinctrl_i2s: i2s {
1482 groups = "SPI_I2S";
1483 function = "I2S";
1484 };
1485
1486 pinctrl_spi: spi {
1487 groups = "SPI_I2S";
1488 function = "SPI";
1489
1490 cs {
1491 pinmux = <SANDBOX_PINMUX(5, SANDBOX_PINMUX_CS)>,
1492 <SANDBOX_PINMUX(6, SANDBOX_PINMUX_CS)>;
1493 };
1494 };
Patrice Chotard0fc8afc2018-10-24 14:10:23 +02001495 };
Benjamin Gaignarda550b542018-11-27 13:49:50 +01001496
Dario Binacchi20dd9e12021-04-11 09:39:50 +02001497 pinctrl-single-no-width {
1498 compatible = "pinctrl-single";
1499 reg = <0x0000 0x238>;
1500 #pinctrl-cells = <1>;
1501 pinctrl-single,function-mask = <0x7f>;
1502 };
1503
1504 pinctrl-single-pins {
1505 compatible = "pinctrl-single";
1506 reg = <0x0000 0x238>;
1507 #pinctrl-cells = <1>;
1508 pinctrl-single,register-width = <32>;
1509 pinctrl-single,function-mask = <0x7f>;
1510
1511 pinmux_pwm_pins: pinmux_pwm_pins {
1512 pinctrl-single,pins = < 0x48 0x06 >;
1513 };
1514
1515 pinmux_spi0_pins: pinmux_spi0_pins {
1516 pinctrl-single,pins = <
1517 0x190 0x0c
1518 0x194 0x0c
1519 0x198 0x23
1520 0x19c 0x0c
1521 >;
1522 };
1523
1524 pinmux_uart0_pins: pinmux_uart0_pins {
1525 pinctrl-single,pins = <
1526 0x70 0x30
1527 0x74 0x00
1528 >;
1529 };
1530 };
1531
1532 pinctrl-single-bits {
1533 compatible = "pinctrl-single";
1534 reg = <0x0000 0x50>;
1535 #pinctrl-cells = <2>;
1536 pinctrl-single,bit-per-mux;
1537 pinctrl-single,register-width = <32>;
1538 pinctrl-single,function-mask = <0xf>;
1539
1540 pinmux_i2c0_pins: pinmux_i2c0_pins {
1541 pinctrl-single,bits = <
1542 0x10 0x00002200 0x0000ff00
1543 >;
1544 };
1545
1546 pinmux_lcd_pins: pinmux_lcd_pins {
1547 pinctrl-single,bits = <
1548 0x40 0x22222200 0xffffff00
1549 0x44 0x22222222 0xffffffff
1550 0x48 0x00000022 0x000000ff
1551 0x48 0x02000000 0x0f000000
1552 0x4c 0x02000022 0x0f0000ff
1553 >;
1554 };
1555 };
1556
Benjamin Gaignarda550b542018-11-27 13:49:50 +01001557 hwspinlock@0 {
1558 compatible = "sandbox,hwspinlock";
1559 };
Grygorii Strashko19ebf0b2018-11-28 19:17:51 +01001560
1561 dma: dma {
1562 compatible = "sandbox,dma";
1563 #dma-cells = <1>;
1564
1565 dmas = <&dma 0>, <&dma 1>, <&dma 2>;
1566 dma-names = "m2m", "tx0", "rx0";
1567 };
Alex Marginean0daa53a2019-06-03 19:12:28 +03001568
Alex Marginean0649be52019-07-12 10:13:53 +03001569 /*
1570 * keep mdio-mux ahead of mdio so that the mux is removed first at the
1571 * end of the test. If parent mdio is removed first, clean-up of the
1572 * mux will trigger a 2nd probe of parent-mdio, leaving parent-mdio
1573 * active at the end of the test. That it turn doesn't allow the mdio
1574 * class to be destroyed, triggering an error.
1575 */
1576 mdio-mux-test {
1577 compatible = "sandbox,mdio-mux";
1578 #address-cells = <1>;
1579 #size-cells = <0>;
1580 mdio-parent-bus = <&mdio>;
1581
1582 mdio-ch-test@0 {
1583 reg = <0>;
1584 };
1585 mdio-ch-test@1 {
1586 reg = <1>;
1587 };
1588 };
1589
1590 mdio: mdio-test {
Alex Marginean0daa53a2019-06-03 19:12:28 +03001591 compatible = "sandbox,mdio";
Marek BehĂșnf4f1ddc2022-04-07 00:32:57 +02001592 #address-cells = <1>;
1593 #size-cells = <0>;
1594
1595 ethphy1: ethernet-phy@1 {
1596 reg = <1>;
1597 };
Alex Marginean0daa53a2019-06-03 19:12:28 +03001598 };
Sean Andersonb7860542020-06-24 06:41:12 -04001599
1600 pm-bus-test {
1601 compatible = "simple-pm-bus";
1602 clocks = <&clk_sandbox 4>;
1603 power-domains = <&pwrdom 1>;
1604 };
Sean Anderson0c1f6bf2020-06-24 06:41:14 -04001605
1606 resetc2: syscon-reset {
1607 compatible = "syscon-reset";
1608 #reset-cells = <1>;
1609 regmap = <&syscon0>;
1610 offset = <1>;
1611 mask = <0x27FFFFFF>;
1612 assert-high = <0>;
1613 };
1614
1615 syscon-reset-test {
1616 compatible = "sandbox,misc_sandbox";
1617 resets = <&resetc2 15>, <&resetc2 30>, <&resetc2 60>;
1618 reset-names = "valid", "no_mask", "out_of_range";
1619 };
Jean-Jacques Hiblot0b89fc52020-09-24 10:04:18 +05301620
Simon Glass458b66a2020-11-05 06:32:05 -07001621 sysinfo {
1622 compatible = "sandbox,sysinfo-sandbox";
1623 };
1624
Sean Anderson1c830672021-04-20 10:50:58 -04001625 sysinfo-gpio {
1626 compatible = "gpio-sysinfo";
1627 gpios = <&gpio_a 15>, <&gpio_a 16>, <&gpio_a 17>;
1628 revisions = <19>, <5>;
1629 names = "rev_a", "foo";
1630 };
1631
Jean-Jacques Hiblot0b89fc52020-09-24 10:04:18 +05301632 some_regmapped-bus {
1633 #address-cells = <0x1>;
1634 #size-cells = <0x1>;
1635
1636 ranges = <0x0 0x0 0x10>;
1637 compatible = "simple-bus";
1638
1639 regmap-test_0 {
1640 reg = <0 0x10>;
1641 compatible = "sandbox,regmap_test";
1642 };
1643 };
Simon Glassb2c1cac2014-02-26 15:59:21 -07001644};
Przemyslaw Marczak77bee052015-05-13 13:38:35 +02001645
1646#include "sandbox_pmic.dtsi"
Heinrich Schuchardte24fdef2021-02-18 13:01:35 +01001647#include "cros-ec-keyboard.dtsi"