]> Git Repo - u-boot.git/blob - arch/sandbox/dts/test.dts
Merge branch '2021-04-14-assorted-vboot-improvements'
[u-boot.git] / arch / sandbox / dts / test.dts
1 /dts-v1/;
2
3 #include <dt-bindings/gpio/gpio.h>
4 #include <dt-bindings/gpio/sandbox-gpio.h>
5 #include <dt-bindings/input/input.h>
6 #include <dt-bindings/pinctrl/sandbox-pinmux.h>
7 #include <dt-bindings/mux/mux.h>
8
9 / {
10         model = "sandbox";
11         compatible = "sandbox";
12         #address-cells = <1>;
13         #size-cells = <1>;
14
15         aliases {
16                 console = &uart0;
17                 eth0 = "/eth@10002000";
18                 eth2 = &swp_0;
19                 eth3 = &eth_3;
20                 eth4 = &dsa_eth0;
21                 eth5 = &eth_5;
22                 gpio1 = &gpio_a;
23                 gpio2 = &gpio_b;
24                 gpio3 = &gpio_c;
25                 i2c0 = "/i2c@0";
26                 mmc0 = "/mmc0";
27                 mmc1 = "/mmc1";
28                 pci0 = &pci0;
29                 pci1 = &pci1;
30                 pci2 = &pci2;
31                 remoteproc0 = &rproc_1;
32                 remoteproc1 = &rproc_2;
33                 rtc0 = &rtc_0;
34                 rtc1 = &rtc_1;
35                 spi0 = "/spi@0";
36                 testfdt6 = "/e-test";
37                 testbus3 = "/some-bus";
38                 testfdt0 = "/some-bus/c-test@0";
39                 testfdt12 = "/some-bus/c-test@1";
40                 testfdt3 = "/b-test";
41                 testfdt5 = "/some-bus/c-test@5";
42                 testfdt8 = "/a-test";
43                 testfdtm1 = &testfdtm1;
44                 fdt-dummy0 = "/translation-test@8000/dev@0,0";
45                 fdt-dummy1 = "/translation-test@8000/dev@1,100";
46                 fdt-dummy2 = "/translation-test@8000/dev@2,200";
47                 fdt-dummy3 = "/translation-test@8000/noxlatebus@3,300/dev@42";
48                 fdt-dummy4 = "/translation-test@8000/xlatebus@4,400/devs/dev@19";
49                 usb0 = &usb_0;
50                 usb1 = &usb_1;
51                 usb2 = &usb_2;
52                 axi0 = &axi;
53                 osd0 = "/osd";
54         };
55
56         audio: audio-codec {
57                 compatible = "sandbox,audio-codec";
58                 #sound-dai-cells = <1>;
59         };
60
61         buttons {
62                 compatible = "gpio-keys";
63
64                 btn1 {
65                         gpios = <&gpio_a 3 0>;
66                         label = "button1";
67                 };
68
69                 btn2 {
70                         gpios = <&gpio_a 4 0>;
71                         label = "button2";
72                 };
73         };
74
75         buttons2 {
76                 compatible = "adc-keys";
77                 io-channels = <&adc 3>;
78                 keyup-threshold-microvolt = <3000000>;
79
80                 button-up {
81                         label = "button3";
82                         linux,code = <KEY_F3>;
83                         press-threshold-microvolt = <1500000>;
84                 };
85
86                 button-down {
87                         label = "button4";
88                         linux,code = <KEY_F4>;
89                         press-threshold-microvolt = <1000000>;
90                 };
91
92                 button-enter {
93                         label = "button5";
94                         linux,code = <KEY_F5>;
95                         press-threshold-microvolt = <500000>;
96                 };
97         };
98
99         cros_ec: cros-ec {
100                 reg = <0 0>;
101                 compatible = "google,cros-ec-sandbox";
102
103                 /*
104                  * This describes the flash memory within the EC. Note
105                  * that the STM32L flash erases to 0, not 0xff.
106                  */
107                 flash {
108                         image-pos = <0x08000000>;
109                         size = <0x20000>;
110                         erase-value = <0>;
111
112                         /* Information for sandbox */
113                         ro {
114                                 image-pos = <0>;
115                                 size = <0xf000>;
116                         };
117                         wp-ro {
118                                 image-pos = <0xf000>;
119                                 size = <0x1000>;
120                                 used = <0x884>;
121                                 compress = "lz4";
122                                 uncomp-size = <0xcf8>;
123                                 hash {
124                                         algo = "sha256";
125                                         value = [00 01 02 03 04 05 06 07
126                                                 08 09 0a 0b 0c 0d 0e 0f
127                                                 10 11 12 13 14 15 16 17
128                                                 18 19 1a 1b 1c 1d 1e 1f];
129                                 };
130                         };
131                         rw {
132                                 image-pos = <0x10000>;
133                                 size = <0x10000>;
134                         };
135                 };
136         };
137
138         dsi_host: dsi_host {
139                 compatible = "sandbox,dsi-host";
140         };
141
142         a-test {
143                 reg = <0 1>;
144                 compatible = "denx,u-boot-fdt-test";
145                 ping-expect = <0>;
146                 ping-add = <0>;
147                 u-boot,dm-pre-reloc;
148                 test-gpios = <&gpio_a 1>, <&gpio_a 4>,
149                         <&gpio_b 5 GPIO_ACTIVE_HIGH 3 2 1>,
150                         <0>, <&gpio_a 12>;
151                 test2-gpios = <&gpio_a 1>, <&gpio_a 4>,
152                         <&gpio_b 6 GPIO_ACTIVE_LOW 3 2 1>,
153                         <&gpio_b 7 GPIO_IN 3 2 1>,
154                         <&gpio_b 8 GPIO_OUT 3 2 1>,
155                         <&gpio_b 9 (GPIO_OUT|GPIO_OUT_ACTIVE) 3 2 1>;
156                 test3-gpios =
157                         <&gpio_c 0 (GPIO_OUT|GPIO_OPEN_DRAIN)>,
158                         <&gpio_c 1 (GPIO_OUT|GPIO_OPEN_SOURCE)>,
159                         <&gpio_c 2 GPIO_OUT>,
160                         <&gpio_c 3 (GPIO_IN|GPIO_PULL_UP)>,
161                         <&gpio_c 4 (GPIO_IN|GPIO_PULL_DOWN)>,
162                         <&gpio_c 5 GPIO_IN>,
163                         <&gpio_c 6 (GPIO_ACTIVE_LOW|GPIO_OUT|GPIO_OPEN_DRAIN)>,
164                         <&gpio_c 7 (GPIO_ACTIVE_LOW|GPIO_OUT|GPIO_OPEN_SOURCE)>;
165                 test4-gpios = <&gpio_a 14>, <&gpio_b 4 1 3 2 1>;
166                 test5-gpios = <&gpio_a 19>;
167
168                 int-value = <1234>;
169                 uint-value = <(-1234)>;
170                 int64-value = /bits/ 64 <0x1111222233334444>;
171                 int-array = <5678 9123 4567>;
172                 str-value = "test string";
173                 interrupts-extended = <&irq 3 0>;
174                 acpi,name = "GHIJ";
175                 phandle-value = <&gpio_c 10>, <0xFFFFFFFF 20>, <&gpio_a 30>;
176
177                 mux-controls = <&muxcontroller0 0>, <&muxcontroller0 1>,
178                                <&muxcontroller0 2>, <&muxcontroller0 3>,
179                                <&muxcontroller1>;
180                 mux-control-names = "mux0", "mux1", "mux2", "mux3", "mux4";
181                 mux-syscon = <&syscon3>;
182                 display-timings {
183                         timing0: 240x320 {
184                                 clock-frequency = <6500000>;
185                                 hactive = <240>;
186                                 vactive = <320>;
187                                 hfront-porch = <6>;
188                                 hback-porch = <7>;
189                                 hsync-len = <1>;
190                                 vback-porch = <5>;
191                                 vfront-porch = <8>;
192                                 vsync-len = <2>;
193                                 hsync-active = <1>;
194                                 vsync-active = <0>;
195                                 de-active = <1>;
196                                 pixelclk-active = <1>;
197                                 interlaced;
198                                 doublescan;
199                                 doubleclk;
200                         };
201                         timing1: 480x800 {
202                                 clock-frequency = <9000000>;
203                                 hactive = <480>;
204                                 vactive = <800>;
205                                 hfront-porch = <10>;
206                                 hback-porch = <59>;
207                                 hsync-len = <12>;
208                                 vback-porch = <15>;
209                                 vfront-porch = <17>;
210                                 vsync-len = <16>;
211                                 hsync-active = <0>;
212                                 vsync-active = <1>;
213                                 de-active = <0>;
214                                 pixelclk-active = <0>;
215                         };
216                         timing2: 800x480 {
217                                 clock-frequency = <33500000>;
218                                 hactive = <800>;
219                                 vactive = <480>;
220                                 hback-porch = <89>;
221                                 hfront-porch = <164>;
222                                 vback-porch = <23>;
223                                 vfront-porch = <10>;
224                                 hsync-len = <11>;
225                                 vsync-len = <13>;
226                         };
227                 };
228         };
229
230         junk {
231                 reg = <1 1>;
232                 compatible = "not,compatible";
233         };
234
235         no-compatible {
236                 reg = <2 1>;
237         };
238
239         backlight: backlight {
240                 compatible = "pwm-backlight";
241                 enable-gpios = <&gpio_a 1>;
242                 power-supply = <&ldo_1>;
243                 pwms = <&pwm 0 1000>;
244                 default-brightness-level = <5>;
245                 brightness-levels = <0 16 32 64 128 170 202 234 255>;
246         };
247
248         bind-test {
249                 compatible = "simple-bus";
250                 bind-test-child1 {
251                         compatible = "sandbox,phy";
252                         #phy-cells = <1>;
253                 };
254
255                 bind-test-child2 {
256                         compatible = "simple-bus";
257                 };
258         };
259
260         b-test {
261                 reg = <3 1>;
262                 compatible = "denx,u-boot-fdt-test";
263                 ping-expect = <3>;
264                 ping-add = <3>;
265
266                 mux-controls = <&muxcontroller0 0>;
267                 mux-control-names = "mux0";
268         };
269
270         phy_provider0: gen_phy@0 {
271                 compatible = "sandbox,phy";
272                 #phy-cells = <1>;
273         };
274
275         phy_provider1: gen_phy@1 {
276                 compatible = "sandbox,phy";
277                 #phy-cells = <0>;
278                 broken;
279         };
280
281         phy_provider2: gen_phy@2 {
282                 compatible = "sandbox,phy";
283                 #phy-cells = <0>;
284         };
285
286         gen_phy_user: gen_phy_user {
287                 compatible = "simple-bus";
288                 phys = <&phy_provider0 0>, <&phy_provider0 1>, <&phy_provider1>;
289                 phy-names = "phy1", "phy2", "phy3";
290         };
291
292         gen_phy_user1: gen_phy_user1 {
293                 compatible = "simple-bus";
294                 phys = <&phy_provider0 0>, <&phy_provider2>;
295                 phy-names = "phy1", "phy2";
296         };
297
298         some-bus {
299                 #address-cells = <1>;
300                 #size-cells = <0>;
301                 compatible = "denx,u-boot-test-bus";
302                 reg = <3 1>;
303                 ping-expect = <4>;
304                 ping-add = <4>;
305                 c-test@5 {
306                         compatible = "denx,u-boot-fdt-test";
307                         reg = <5>;
308                         ping-expect = <5>;
309                         ping-add = <5>;
310                 };
311                 c-test@0 {
312                         compatible = "denx,u-boot-fdt-test";
313                         reg = <0>;
314                         ping-expect = <6>;
315                         ping-add = <6>;
316                 };
317                 c-test@1 {
318                         compatible = "denx,u-boot-fdt-test";
319                         reg = <1>;
320                         ping-expect = <7>;
321                         ping-add = <7>;
322                 };
323         };
324
325         d-test {
326                 reg = <3 1>;
327                 ping-expect = <6>;
328                 ping-add = <6>;
329                 compatible = "google,another-fdt-test";
330         };
331
332         e-test {
333                 reg = <3 1>;
334                 ping-expect = <6>;
335                 ping-add = <6>;
336                 compatible = "google,another-fdt-test";
337         };
338
339         f-test {
340                 compatible = "denx,u-boot-fdt-test";
341         };
342
343         g-test {
344                 compatible = "denx,u-boot-fdt-test";
345         };
346
347         h-test {
348                 compatible = "denx,u-boot-fdt-test1";
349         };
350
351         i-test {
352                 compatible = "mediatek,u-boot-fdt-test";
353                 #address-cells = <1>;
354                 #size-cells = <0>;
355
356                 subnode@0 {
357                         reg = <0>;
358                 };
359
360                 subnode@1 {
361                         reg = <1>;
362                 };
363
364                 subnode@2 {
365                         reg = <2>;
366                 };
367         };
368
369         devres-test {
370                 compatible = "denx,u-boot-devres-test";
371         };
372
373         another-test {
374                 reg = <0 2>;
375                 compatible = "denx,u-boot-fdt-test";
376                 test4-gpios = <&gpio_a 14>, <&gpio_b 4 1 3 2 1>;
377                 test5-gpios = <&gpio_a 19>;
378         };
379
380         mmio-bus@0 {
381                 #address-cells = <1>;
382                 #size-cells = <1>;
383                 compatible = "denx,u-boot-test-bus";
384                 dma-ranges = <0x10000000 0x00000000 0x00040000>;
385
386                 subnode@0 {
387                         compatible = "denx,u-boot-fdt-test";
388                 };
389         };
390
391         mmio-bus@1 {
392                 #address-cells = <1>;
393                 #size-cells = <1>;
394                 compatible = "denx,u-boot-test-bus";
395
396                 subnode@0 {
397                         compatible = "denx,u-boot-fdt-test";
398                 };
399         };
400
401         acpi_test1: acpi-test {
402                 compatible = "denx,u-boot-acpi-test";
403                 acpi-ssdt-test-data = "ab";
404                 acpi-dsdt-test-data = "hi";
405                 child {
406                         compatible = "denx,u-boot-acpi-test";
407                 };
408         };
409
410         acpi_test2: acpi-test2 {
411                 compatible = "denx,u-boot-acpi-test";
412                 acpi-ssdt-test-data = "cd";
413                 acpi-dsdt-test-data = "jk";
414         };
415
416         clocks {
417                 clk_fixed: clk-fixed {
418                         compatible = "fixed-clock";
419                         #clock-cells = <0>;
420                         clock-frequency = <1234>;
421                 };
422
423                 clk_fixed_factor: clk-fixed-factor {
424                         compatible = "fixed-factor-clock";
425                         #clock-cells = <0>;
426                         clock-div = <3>;
427                         clock-mult = <2>;
428                         clocks = <&clk_fixed>;
429                 };
430
431                 osc {
432                         compatible = "fixed-clock";
433                         #clock-cells = <0>;
434                         clock-frequency = <20000000>;
435                 };
436         };
437
438         clk_sandbox: clk-sbox {
439                 compatible = "sandbox,clk";
440                 #clock-cells = <1>;
441                 assigned-clocks = <&clk_sandbox 3>;
442                 assigned-clock-rates = <321>;
443         };
444
445         clk-test {
446                 compatible = "sandbox,clk-test";
447                 clocks = <&clk_fixed>,
448                          <&clk_sandbox 1>,
449                          <&clk_sandbox 0>,
450                          <&clk_sandbox 3>,
451                          <&clk_sandbox 2>;
452                 clock-names = "fixed", "i2c", "spi", "uart2", "uart1";
453         };
454
455         ccf: clk-ccf {
456                 compatible = "sandbox,clk-ccf";
457         };
458
459         eth@10002000 {
460                 compatible = "sandbox,eth";
461                 reg = <0x10002000 0x1000>;
462                 fake-host-hwaddr = [00 00 66 44 22 00];
463         };
464
465         eth_5: eth@10003000 {
466                 compatible = "sandbox,eth";
467                 reg = <0x10003000 0x1000>;
468                 fake-host-hwaddr = [00 00 66 44 22 11];
469         };
470
471         eth_3: sbe5 {
472                 compatible = "sandbox,eth";
473                 reg = <0x10005000 0x1000>;
474                 fake-host-hwaddr = [00 00 66 44 22 33];
475         };
476
477         eth@10004000 {
478                 compatible = "sandbox,eth";
479                 reg = <0x10004000 0x1000>;
480                 fake-host-hwaddr = [00 00 66 44 22 22];
481         };
482
483         dsa_eth0: dsa-test-eth {
484                 compatible = "sandbox,eth";
485                 reg = <0x10006000 0x1000>;
486                 fake-host-hwaddr = [00 00 66 44 22 66];
487         };
488
489         dsa-test {
490                 compatible = "sandbox,dsa";
491
492                 ports {
493                         #address-cells = <1>;
494                         #size-cells = <0>;
495                         swp_0: port@0 {
496                                 reg = <0>;
497                                 label = "lan0";
498                                 phy-mode = "rgmii-rxid";
499
500                                 fixed-link {
501                                         speed = <100>;
502                                         full-duplex;
503                                 };
504                         };
505
506                         swp_1: port@1 {
507                                 reg = <1>;
508                                 label = "lan1";
509                                 phy-mode = "rgmii-txid";
510                                 fixed-link = <0 1 100 0 0>;
511                         };
512
513                         port@2 {
514                                 reg = <2>;
515                                 ethernet = <&dsa_eth0>;
516
517                                 fixed-link {
518                                         speed = <1000>;
519                                         full-duplex;
520                                 };
521                         };
522                 };
523         };
524
525         firmware {
526                 sandbox_firmware: sandbox-firmware {
527                         compatible = "sandbox,firmware";
528                 };
529
530                 sandbox-scmi-agent@0 {
531                         compatible = "sandbox,scmi-agent";
532                         #address-cells = <1>;
533                         #size-cells = <0>;
534
535                         clk_scmi0: protocol@14 {
536                                 reg = <0x14>;
537                                 #clock-cells = <1>;
538                         };
539
540                         reset_scmi0: protocol@16 {
541                                 reg = <0x16>;
542                                 #reset-cells = <1>;
543                         };
544
545                         protocol@17 {
546                                 reg = <0x17>;
547
548                                 regulators {
549                                         #address-cells = <1>;
550                                         #size-cells = <0>;
551
552                                         regul0_scmi0: reg@0 {
553                                                 reg = <0>;
554                                                 regulator-name = "sandbox-voltd0";
555                                                 regulator-min-microvolt = <1100000>;
556                                                 regulator-max-microvolt = <3300000>;
557                                         };
558                                         regul1_scmi0: reg@1 {
559                                                 reg = <0x1>;
560                                                 regulator-name = "sandbox-voltd1";
561                                                 regulator-min-microvolt = <1800000>;
562                                         };
563                                 };
564                         };
565                 };
566
567                 sandbox-scmi-agent@1 {
568                         compatible = "sandbox,scmi-agent";
569                         #address-cells = <1>;
570                         #size-cells = <0>;
571
572                         clk_scmi1: protocol@14 {
573                                 reg = <0x14>;
574                                 #clock-cells = <1>;
575                         };
576
577                         protocol@10 {
578                                 reg = <0x10>;
579                         };
580                 };
581         };
582
583         pinctrl-gpio {
584                 compatible = "sandbox,pinctrl-gpio";
585
586                 gpio_a: base-gpios {
587                         compatible = "sandbox,gpio";
588                         gpio-controller;
589                         #gpio-cells = <1>;
590                         gpio-bank-name = "a";
591                         sandbox,gpio-count = <20>;
592                         hog_input_active_low {
593                                 gpio-hog;
594                                 input;
595                                 gpios = <10 GPIO_ACTIVE_LOW>;
596                         };
597                         hog_input_active_high {
598                                 gpio-hog;
599                                 input;
600                                 gpios = <11 GPIO_ACTIVE_HIGH>;
601                         };
602                         hog_output_low {
603                                 gpio-hog;
604                                 output-low;
605                                 gpios = <12 GPIO_ACTIVE_HIGH>;
606                         };
607                         hog_output_high {
608                                 gpio-hog;
609                                 output-high;
610                                 gpios = <13 GPIO_ACTIVE_HIGH>;
611                         };
612                 };
613
614                 gpio_b: extra-gpios {
615                         compatible = "sandbox,gpio";
616                         gpio-controller;
617                         #gpio-cells = <5>;
618                         gpio-bank-name = "b";
619                         sandbox,gpio-count = <10>;
620                 };
621
622                 gpio_c: pinmux-gpios {
623                         compatible = "sandbox,gpio";
624                         gpio-controller;
625                         #gpio-cells = <2>;
626                         gpio-bank-name = "c";
627                         sandbox,gpio-count = <10>;
628                 };
629         };
630
631         i2c@0 {
632                 #address-cells = <1>;
633                 #size-cells = <0>;
634                 reg = <0 1>;
635                 compatible = "sandbox,i2c";
636                 clock-frequency = <100000>;
637                 eeprom@2c {
638                         reg = <0x2c>;
639                         compatible = "i2c-eeprom";
640                         sandbox,emul = <&emul_eeprom>;
641                         partitions {
642                                 compatible = "fixed-partitions";
643                                 #address-cells = <1>;
644                                 #size-cells = <1>;
645                                 bootcount_i2c: bootcount@10 {
646                                         reg = <10 2>;
647                                 };
648                         };
649                 };
650
651                 rtc_0: rtc@43 {
652                         reg = <0x43>;
653                         compatible = "sandbox-rtc";
654                         sandbox,emul = <&emul0>;
655                 };
656
657                 rtc_1: rtc@61 {
658                         reg = <0x61>;
659                         compatible = "sandbox-rtc";
660                         sandbox,emul = <&emul1>;
661                 };
662
663                 i2c_emul: emul {
664                         reg = <0xff>;
665                         compatible = "sandbox,i2c-emul-parent";
666                         emul_eeprom: emul-eeprom {
667                                 compatible = "sandbox,i2c-eeprom";
668                                 sandbox,filename = "i2c.bin";
669                                 sandbox,size = <256>;
670                         };
671                         emul0: emul0 {
672                                 compatible = "sandbox,i2c-rtc-emul";
673                         };
674                         emul1: emull {
675                                 compatible = "sandbox,i2c-rtc-emul";
676                         };
677                 };
678
679                 sandbox_pmic: sandbox_pmic {
680                         reg = <0x40>;
681                         sandbox,emul = <&emul_pmic0>;
682                 };
683
684                 mc34708: pmic@41 {
685                         reg = <0x41>;
686                         sandbox,emul = <&emul_pmic1>;
687                 };
688         };
689
690         bootcount@0 {
691                 compatible = "u-boot,bootcount-rtc";
692                 rtc = <&rtc_1>;
693                 offset = <0x13>;
694         };
695
696         bootcount {
697                 compatible = "u-boot,bootcount-i2c-eeprom";
698                 i2c-eeprom = <&bootcount_i2c>;
699         };
700
701         adc: adc@0 {
702                 compatible = "sandbox,adc";
703                 #io-channel-cells = <1>;
704                 vdd-supply = <&buck2>;
705                 vss-microvolts = <0>;
706         };
707
708         irq: irq {
709                 compatible = "sandbox,irq";
710                 interrupt-controller;
711                 #interrupt-cells = <2>;
712         };
713
714         lcd {
715                 u-boot,dm-pre-reloc;
716                 compatible = "sandbox,lcd-sdl";
717                 xres = <1366>;
718                 yres = <768>;
719         };
720
721         leds {
722                 compatible = "gpio-leds";
723
724                 iracibble {
725                         gpios = <&gpio_a 1 0>;
726                         label = "sandbox:red";
727                 };
728
729                 martinet {
730                         gpios = <&gpio_a 2 0>;
731                         label = "sandbox:green";
732                 };
733
734                 default_on {
735                         gpios = <&gpio_a 5 0>;
736                         label = "sandbox:default_on";
737                         default-state = "on";
738                 };
739
740                 default_off {
741                         gpios = <&gpio_a 6 0>;
742                         /* label intentionally omitted */
743                         default-state = "off";
744                 };
745         };
746
747         mbox: mbox {
748                 compatible = "sandbox,mbox";
749                 #mbox-cells = <1>;
750         };
751
752         mbox-test {
753                 compatible = "sandbox,mbox-test";
754                 mboxes = <&mbox 100>, <&mbox 1>;
755                 mbox-names = "other", "test";
756         };
757
758         cpus {
759                 timebase-frequency = <2000000>;
760                 cpu-test1 {
761                         timebase-frequency = <3000000>;
762                         compatible = "sandbox,cpu_sandbox";
763                         u-boot,dm-pre-reloc;
764                 };
765
766                 cpu-test2 {
767                         compatible = "sandbox,cpu_sandbox";
768                         u-boot,dm-pre-reloc;
769                 };
770
771                 cpu-test3 {
772                         compatible = "sandbox,cpu_sandbox";
773                         u-boot,dm-pre-reloc;
774                 };
775         };
776
777         chipid: chipid {
778                 compatible = "sandbox,soc";
779         };
780
781         i2s: i2s {
782                 compatible = "sandbox,i2s";
783                 #sound-dai-cells = <1>;
784                 sandbox,silent; /* Don't emit sounds while testing */
785         };
786
787         nop-test_0 {
788                 compatible = "sandbox,nop_sandbox1";
789                 nop-test_1 {
790                         compatible = "sandbox,nop_sandbox2";
791                         bind = "True";
792                 };
793                 nop-test_2 {
794                         compatible = "sandbox,nop_sandbox2";
795                         bind = "False";
796                 };
797         };
798
799         misc-test {
800                 compatible = "sandbox,misc_sandbox";
801         };
802
803         mmc2 {
804                 compatible = "sandbox,mmc";
805         };
806
807         mmc1 {
808                 compatible = "sandbox,mmc";
809         };
810
811         mmc0 {
812                 compatible = "sandbox,mmc";
813         };
814
815         pch {
816                 compatible = "sandbox,pch";
817         };
818
819         pci0: pci@0 {
820                 compatible = "sandbox,pci";
821                 device_type = "pci";
822                 bus-range = <0x00 0xff>;
823                 #address-cells = <3>;
824                 #size-cells = <2>;
825                 ranges = <0x02000000 0 0x10000000 0x10000000 0 0x2000000
826                                 0x01000000 0 0x20000000 0x20000000 0 0x2000>;
827                 pci@0,0 {
828                         compatible = "pci-generic";
829                         reg = <0x0000 0 0 0 0>;
830                         sandbox,emul = <&swap_case_emul0_0>;
831                 };
832                 pci@1,0 {
833                         compatible = "pci-generic";
834                         /* reg 0 is at 0x14, using FDT_PCI_SPACE_MEM32 */
835                         reg = <0x02000814 0 0 0 0
836                                0x01000810 0 0 0 0>;
837                         sandbox,emul = <&swap_case_emul0_1>;
838                 };
839                 p2sb-pci@2,0 {
840                         compatible = "sandbox,p2sb";
841                         reg = <0x02001010 0 0 0 0>;
842                         sandbox,emul = <&p2sb_emul>;
843
844                         adder {
845                                 intel,p2sb-port-id = <3>;
846                                 compatible = "sandbox,adder";
847                         };
848                 };
849                 pci@1e,0 {
850                         compatible = "sandbox,pmc";
851                         reg = <0xf000 0 0 0 0>;
852                         sandbox,emul = <&pmc_emul1e>;
853                         acpi-base = <0x400>;
854                         gpe0-dwx-mask = <0xf>;
855                         gpe0-dwx-shift-base = <4>;
856                         gpe0-dw = <6 7 9>;
857                         gpe0-sts = <0x20>;
858                         gpe0-en = <0x30>;
859                 };
860                 pci@1f,0 {
861                         compatible = "pci-generic";
862                         /* reg 0 is at 0x10, using FDT_PCI_SPACE_IO */
863                         reg = <0x0100f810 0 0 0 0>;
864                         sandbox,emul = <&swap_case_emul0_1f>;
865                 };
866         };
867
868         pci-emul0 {
869                 compatible = "sandbox,pci-emul-parent";
870                 swap_case_emul0_0: emul0@0,0 {
871                         compatible = "sandbox,swap-case";
872                 };
873                 swap_case_emul0_1: emul0@1,0 {
874                         compatible = "sandbox,swap-case";
875                         use-ea;
876                 };
877                 swap_case_emul0_1f: emul0@1f,0 {
878                         compatible = "sandbox,swap-case";
879                 };
880                 p2sb_emul: emul@2,0 {
881                         compatible = "sandbox,p2sb-emul";
882                 };
883                 pmc_emul1e: emul@1e,0 {
884                         compatible = "sandbox,pmc-emul";
885                 };
886         };
887
888         pci1: pci@1 {
889                 compatible = "sandbox,pci";
890                 device_type = "pci";
891                 bus-range = <0x00 0xff>;
892                 #address-cells = <3>;
893                 #size-cells = <2>;
894                 ranges = <0x02000000 0 0x30000000 0x30000000 0 0x2000 // MEM0
895                           0x02000000 0 0x31000000 0x31000000 0 0x2000 // MEM1
896                           0x01000000 0 0x40000000 0x40000000 0 0x2000>;
897                 sandbox,dev-info = <0x08 0x00 0x1234 0x5678
898                                     0x0c 0x00 0x1234 0x5678
899                                     0x10 0x00 0x1234 0x5678>;
900                 pci@10,0 {
901                         reg = <0x8000 0 0 0 0>;
902                 };
903         };
904
905         pci2: pci@2 {
906                 compatible = "sandbox,pci";
907                 device_type = "pci";
908                 bus-range = <0x00 0xff>;
909                 #address-cells = <3>;
910                 #size-cells = <2>;
911                 ranges = <0x02000000 0 0x50000000 0x50000000 0 0x2000
912                                 0x01000000 0 0x60000000 0x60000000 0 0x2000>;
913                 sandbox,dev-info = <0x08 0x00 0x1234 0x5678>;
914                 pci@1f,0 {
915                         compatible = "pci-generic";
916                         reg = <0xf800 0 0 0 0>;
917                         sandbox,emul = <&swap_case_emul2_1f>;
918                 };
919         };
920
921         pci-emul2 {
922                 compatible = "sandbox,pci-emul-parent";
923                 swap_case_emul2_1f: emul2@1f,0 {
924                         compatible = "sandbox,swap-case";
925                 };
926         };
927
928         pci_ep: pci_ep {
929                 compatible = "sandbox,pci_ep";
930         };
931
932         probing {
933                 compatible = "simple-bus";
934                 test1 {
935                         compatible = "denx,u-boot-probe-test";
936                 };
937
938                 test2 {
939                         compatible = "denx,u-boot-probe-test";
940                 };
941
942                 test3 {
943                         compatible = "denx,u-boot-probe-test";
944                 };
945
946                 test4 {
947                         compatible = "denx,u-boot-probe-test";
948                         first-syscon = <&syscon0>;
949                         second-sys-ctrl = <&another_system_controller>;
950                         third-syscon = <&syscon2>;
951                 };
952         };
953
954         pwrdom: power-domain {
955                 compatible = "sandbox,power-domain";
956                 #power-domain-cells = <1>;
957         };
958
959         power-domain-test {
960                 compatible = "sandbox,power-domain-test";
961                 power-domains = <&pwrdom 2>;
962         };
963
964         pwm: pwm {
965                 compatible = "sandbox,pwm";
966                 #pwm-cells = <2>;
967         };
968
969         pwm2 {
970                 compatible = "sandbox,pwm";
971                 #pwm-cells = <2>;
972         };
973
974         ram {
975                 compatible = "sandbox,ram";
976         };
977
978         reset@0 {
979                 compatible = "sandbox,warm-reset";
980         };
981
982         reset@1 {
983                 compatible = "sandbox,reset";
984         };
985
986         resetc: reset-ctl {
987                 compatible = "sandbox,reset-ctl";
988                 #reset-cells = <1>;
989         };
990
991         reset-ctl-test {
992                 compatible = "sandbox,reset-ctl-test";
993                 resets = <&resetc 100>, <&resetc 2>;
994                 reset-names = "other", "test";
995         };
996
997         rng {
998                 compatible = "sandbox,sandbox-rng";
999         };
1000
1001         rproc_1: rproc@1 {
1002                 compatible = "sandbox,test-processor";
1003                 remoteproc-name = "remoteproc-test-dev1";
1004         };
1005
1006         rproc_2: rproc@2 {
1007                 compatible = "sandbox,test-processor";
1008                 internal-memory-mapped;
1009                 remoteproc-name = "remoteproc-test-dev2";
1010         };
1011
1012         panel {
1013                 compatible = "simple-panel";
1014                 backlight = <&backlight 0 100>;
1015         };
1016
1017         smem@0 {
1018                 compatible = "sandbox,smem";
1019         };
1020
1021         sound {
1022                 compatible = "sandbox,sound";
1023                 cpu {
1024                         sound-dai = <&i2s 0>;
1025                 };
1026
1027                 codec {
1028                         sound-dai = <&audio 0>;
1029                 };
1030         };
1031
1032         spi@0 {
1033                 #address-cells = <1>;
1034                 #size-cells = <0>;
1035                 reg = <0 1>;
1036                 compatible = "sandbox,spi";
1037                 cs-gpios = <0>, <0>, <&gpio_a 0>;
1038                 spi.bin@0 {
1039                         reg = <0>;
1040                         compatible = "spansion,m25p16", "jedec,spi-nor";
1041                         spi-max-frequency = <40000000>;
1042                         sandbox,filename = "spi.bin";
1043                 };
1044                 spi.bin@1 {
1045                         reg = <1>;
1046                         compatible = "spansion,m25p16", "jedec,spi-nor";
1047                         spi-max-frequency = <50000000>;
1048                         sandbox,filename = "spi.bin";
1049                         spi-cpol;
1050                         spi-cpha;
1051                 };
1052         };
1053
1054         syscon0: syscon@0 {
1055                 compatible = "sandbox,syscon0";
1056                 reg = <0x10 16>;
1057         };
1058
1059         another_system_controller: syscon@1 {
1060                 compatible = "sandbox,syscon1";
1061                 reg = <0x20 5
1062                         0x28 6
1063                         0x30 7
1064                         0x38 8>;
1065         };
1066
1067         syscon2: syscon@2 {
1068                 compatible = "simple-mfd", "syscon";
1069                 reg = <0x40 5
1070                         0x48 6
1071                         0x50 7
1072                         0x58 8>;
1073         };
1074
1075         syscon3: syscon@3 {
1076                 compatible = "simple-mfd", "syscon";
1077                 reg = <0x000100 0x10>;
1078
1079                 muxcontroller0: a-mux-controller {
1080                         compatible = "mmio-mux";
1081                         #mux-control-cells = <1>;
1082
1083                         mux-reg-masks = <0x0 0x30>, /* 0: reg 0x0, bits 5:4 */
1084                                         <0xc 0x1E>, /* 1: reg 0xc, bits 4:1 */
1085                                         <0x4 0xFF>; /* 2: reg 0x4, bits 7:0 */
1086                         idle-states = <MUX_IDLE_AS_IS>, <0x02>, <0x73>;
1087                         u-boot,mux-autoprobe;
1088                 };
1089         };
1090
1091         muxcontroller1: emul-mux-controller {
1092                 compatible = "mux-emul";
1093                 #mux-control-cells = <0>;
1094                 u-boot,mux-autoprobe;
1095                 idle-state = <0xabcd>;
1096         };
1097
1098         testfdtm0 {
1099                 compatible = "denx,u-boot-fdtm-test";
1100         };
1101
1102         testfdtm1: testfdtm1 {
1103                 compatible = "denx,u-boot-fdtm-test";
1104         };
1105
1106         testfdtm2 {
1107                 compatible = "denx,u-boot-fdtm-test";
1108         };
1109
1110         timer@0 {
1111                 compatible = "sandbox,timer";
1112                 clock-frequency = <1000000>;
1113         };
1114
1115         timer@1 {
1116                 compatible = "sandbox,timer";
1117                 sandbox,timebase-frequency-fallback;
1118         };
1119
1120         tpm2 {
1121                 compatible = "sandbox,tpm2";
1122         };
1123
1124         uart0: serial {
1125                 compatible = "sandbox,serial";
1126                 u-boot,dm-pre-reloc;
1127         };
1128
1129         usb_0: usb@0 {
1130                 compatible = "sandbox,usb";
1131                 status = "disabled";
1132                 hub {
1133                         compatible = "sandbox,usb-hub";
1134                         #address-cells = <1>;
1135                         #size-cells = <0>;
1136                         flash-stick {
1137                                 reg = <0>;
1138                                 compatible = "sandbox,usb-flash";
1139                         };
1140                 };
1141         };
1142
1143         usb_1: usb@1 {
1144                 compatible = "sandbox,usb";
1145                 hub {
1146                         compatible = "usb-hub";
1147                         usb,device-class = <9>;
1148                         #address-cells = <1>;
1149                         #size-cells = <0>;
1150                         hub-emul {
1151                                 compatible = "sandbox,usb-hub";
1152                                 #address-cells = <1>;
1153                                 #size-cells = <0>;
1154                                 flash-stick@0 {
1155                                         reg = <0>;
1156                                         compatible = "sandbox,usb-flash";
1157                                         sandbox,filepath = "testflash.bin";
1158                                 };
1159
1160                                 flash-stick@1 {
1161                                         reg = <1>;
1162                                         compatible = "sandbox,usb-flash";
1163                                         sandbox,filepath = "testflash1.bin";
1164                                 };
1165
1166                                 flash-stick@2 {
1167                                         reg = <2>;
1168                                         compatible = "sandbox,usb-flash";
1169                                         sandbox,filepath = "testflash2.bin";
1170                                 };
1171
1172                                 keyb@3 {
1173                                         reg = <3>;
1174                                         compatible = "sandbox,usb-keyb";
1175                                 };
1176
1177                         };
1178
1179                         usbstor@1 {
1180                                 reg = <1>;
1181                         };
1182                         usbstor@3 {
1183                                 reg = <3>;
1184                         };
1185                 };
1186         };
1187
1188         usb_2: usb@2 {
1189                 compatible = "sandbox,usb";
1190                 status = "disabled";
1191         };
1192
1193         spmi: spmi@0 {
1194                 compatible = "sandbox,spmi";
1195                 #address-cells = <0x1>;
1196                 #size-cells = <0x1>;
1197                 ranges;
1198                 pm8916@0 {
1199                         compatible = "qcom,spmi-pmic";
1200                         reg = <0x0 0x1>;
1201                         #address-cells = <0x1>;
1202                         #size-cells = <0x1>;
1203                         ranges;
1204
1205                         spmi_gpios: gpios@c000 {
1206                                 compatible = "qcom,pm8916-gpio";
1207                                 reg = <0xc000 0x400>;
1208                                 gpio-controller;
1209                                 gpio-count = <4>;
1210                                 #gpio-cells = <2>;
1211                                 gpio-bank-name="spmi";
1212                         };
1213                 };
1214         };
1215
1216         wdt0: wdt@0 {
1217                 compatible = "sandbox,wdt";
1218         };
1219
1220         axi: axi@0 {
1221                 compatible = "sandbox,axi";
1222                 #address-cells = <0x1>;
1223                 #size-cells = <0x1>;
1224                 store@0 {
1225                         compatible = "sandbox,sandbox_store";
1226                         reg = <0x0 0x400>;
1227                 };
1228         };
1229
1230         chosen {
1231                 #address-cells = <1>;
1232                 #size-cells = <1>;
1233                 setting = "sunrise ohoka";
1234                 other-node = "/some-bus/c-test@5";
1235                 int-values = <0x1937 72993>;
1236                 u-boot,acpi-ssdt-order = <&acpi_test2 &acpi_test1>;
1237                 chosen-test {
1238                         compatible = "denx,u-boot-fdt-test";
1239                         reg = <9 1>;
1240                 };
1241         };
1242
1243         translation-test@8000 {
1244                 compatible = "simple-bus";
1245                 reg = <0x8000 0x4000>;
1246
1247                 #address-cells = <0x2>;
1248                 #size-cells = <0x1>;
1249
1250                 ranges = <0 0x0 0x8000 0x1000
1251                           1 0x100 0x9000 0x1000
1252                           2 0x200 0xA000 0x1000
1253                           3 0x300 0xB000 0x1000
1254                           4 0x400 0xC000 0x1000
1255                          >;
1256
1257                 dma-ranges = <0 0x000 0x10000000 0x1000
1258                               1 0x100 0x20000000 0x1000
1259                              >;
1260
1261                 dev@0,0 {
1262                         compatible = "denx,u-boot-fdt-dummy";
1263                         reg = <0 0x0 0x1000>;
1264                         reg-names = "sandbox-dummy-0";
1265                 };
1266
1267                 dev@1,100 {
1268                         compatible = "denx,u-boot-fdt-dummy";
1269                         reg = <1 0x100 0x1000>;
1270
1271                 };
1272
1273                 dev@2,200 {
1274                         compatible = "denx,u-boot-fdt-dummy";
1275                         reg = <2 0x200 0x1000>;
1276                 };
1277
1278
1279                 noxlatebus@3,300 {
1280                         compatible = "simple-bus";
1281                         reg = <3 0x300 0x1000>;
1282
1283                         #address-cells = <0x1>;
1284                         #size-cells = <0x0>;
1285
1286                         dev@42 {
1287                                 compatible = "denx,u-boot-fdt-dummy";
1288                                 reg = <0x42>;
1289                         };
1290                 };
1291
1292                 xlatebus@4,400 {
1293                         compatible = "sandbox,zero-size-cells-bus";
1294                         reg = <4 0x400 0x1000>;
1295                         #address-cells = <1>;
1296                         #size-cells = <1>;
1297                         ranges = <0 4 0x400 0x1000>;
1298
1299                         devs {
1300                                 #address-cells = <1>;
1301                                 #size-cells = <0>;
1302
1303                                 dev@19 {
1304                                         compatible = "denx,u-boot-fdt-dummy";
1305                                         reg = <0x19>;
1306                                 };
1307                         };
1308                 };
1309
1310         };
1311
1312         osd {
1313                 compatible = "sandbox,sandbox_osd";
1314         };
1315
1316         sandbox_tee {
1317                 compatible = "sandbox,tee";
1318         };
1319
1320         sandbox_virtio1 {
1321                 compatible = "sandbox,virtio1";
1322         };
1323
1324         sandbox_virtio2 {
1325                 compatible = "sandbox,virtio2";
1326         };
1327
1328         sandbox_scmi {
1329                 compatible = "sandbox,scmi-devices";
1330                 clocks = <&clk_scmi0 7>, <&clk_scmi0 3>, <&clk_scmi1 1>;
1331                 resets = <&reset_scmi0 3>;
1332                 regul0-supply = <&regul0_scmi0>;
1333                 regul1-supply = <&regul1_scmi0>;
1334         };
1335
1336         pinctrl {
1337                 compatible = "sandbox,pinctrl";
1338
1339                 pinctrl-names = "default", "alternate";
1340                 pinctrl-0 = <&pinctrl_gpios>, <&pinctrl_i2s>;
1341                 pinctrl-1 = <&pinctrl_spi>, <&pinctrl_i2c>;
1342
1343                 pinctrl_gpios: gpios {
1344                         gpio0 {
1345                                 pins = "P5";
1346                                 function = "GPIO";
1347                                 bias-pull-up;
1348                                 input-disable;
1349                         };
1350                         gpio1 {
1351                                 pins = "P6";
1352                                 function = "GPIO";
1353                                 output-high;
1354                                 drive-open-drain;
1355                         };
1356                         gpio2 {
1357                                 pinmux = <SANDBOX_PINMUX(7, SANDBOX_PINMUX_GPIO)>;
1358                                 bias-pull-down;
1359                                 input-enable;
1360                         };
1361                         gpio3 {
1362                                 pinmux = <SANDBOX_PINMUX(8, SANDBOX_PINMUX_GPIO)>;
1363                                 bias-disable;
1364                         };
1365                 };
1366
1367                 pinctrl_i2c: i2c {
1368                         groups {
1369                                 groups = "I2C_UART";
1370                                 function = "I2C";
1371                         };
1372
1373                         pins {
1374                                 pins = "P0", "P1";
1375                                 drive-open-drain;
1376                         };
1377                 };
1378
1379                 pinctrl_i2s: i2s {
1380                         groups = "SPI_I2S";
1381                         function = "I2S";
1382                 };
1383
1384                 pinctrl_spi: spi {
1385                         groups = "SPI_I2S";
1386                         function = "SPI";
1387
1388                         cs {
1389                                 pinmux = <SANDBOX_PINMUX(5, SANDBOX_PINMUX_CS)>,
1390                                          <SANDBOX_PINMUX(6, SANDBOX_PINMUX_CS)>;
1391                         };
1392                 };
1393         };
1394
1395         hwspinlock@0 {
1396                 compatible = "sandbox,hwspinlock";
1397         };
1398
1399         dma: dma {
1400                 compatible = "sandbox,dma";
1401                 #dma-cells = <1>;
1402
1403                 dmas = <&dma 0>, <&dma 1>, <&dma 2>;
1404                 dma-names = "m2m", "tx0", "rx0";
1405         };
1406
1407         /*
1408          * keep mdio-mux ahead of mdio so that the mux is removed first at the
1409          * end of the test.  If parent mdio is removed first, clean-up of the
1410          * mux will trigger a 2nd probe of parent-mdio, leaving parent-mdio
1411          * active at the end of the test.  That it turn doesn't allow the mdio
1412          * class to be destroyed, triggering an error.
1413          */
1414         mdio-mux-test {
1415                 compatible = "sandbox,mdio-mux";
1416                 #address-cells = <1>;
1417                 #size-cells = <0>;
1418                 mdio-parent-bus = <&mdio>;
1419
1420                 mdio-ch-test@0 {
1421                         reg = <0>;
1422                 };
1423                 mdio-ch-test@1 {
1424                         reg = <1>;
1425                 };
1426         };
1427
1428         mdio: mdio-test {
1429                 compatible = "sandbox,mdio";
1430         };
1431
1432         pm-bus-test {
1433                 compatible = "simple-pm-bus";
1434                 clocks = <&clk_sandbox 4>;
1435                 power-domains = <&pwrdom 1>;
1436         };
1437
1438         resetc2: syscon-reset {
1439                 compatible = "syscon-reset";
1440                 #reset-cells = <1>;
1441                 regmap = <&syscon0>;
1442                 offset = <1>;
1443                 mask = <0x27FFFFFF>;
1444                 assert-high = <0>;
1445         };
1446
1447         syscon-reset-test {
1448                 compatible = "sandbox,misc_sandbox";
1449                 resets = <&resetc2 15>, <&resetc2 30>, <&resetc2 60>;
1450                 reset-names = "valid", "no_mask", "out_of_range";
1451         };
1452
1453         sysinfo {
1454                 compatible = "sandbox,sysinfo-sandbox";
1455         };
1456
1457         some_regmapped-bus {
1458                 #address-cells = <0x1>;
1459                 #size-cells = <0x1>;
1460
1461                 ranges = <0x0 0x0 0x10>;
1462                 compatible = "simple-bus";
1463
1464                 regmap-test_0 {
1465                         reg = <0 0x10>;
1466                         compatible = "sandbox,regmap_test";
1467                 };
1468         };
1469 };
1470
1471 #include "sandbox_pmic.dtsi"
1472 #include "cros-ec-keyboard.dtsi"
This page took 0.120896 seconds and 4 git commands to generate.