]> Git Repo - J-u-boot.git/blob - arch/sandbox/dts/test.dts
test: dm: add test for phandle access functions
[J-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
6 / {
7         model = "sandbox";
8         compatible = "sandbox";
9         #address-cells = <1>;
10         #size-cells = <1>;
11
12         aliases {
13                 console = &uart0;
14                 eth0 = "/eth@10002000";
15                 eth3 = &eth_3;
16                 eth5 = &eth_5;
17                 gpio1 = &gpio_a;
18                 gpio2 = &gpio_b;
19                 gpio3 = &gpio_c;
20                 i2c0 = "/i2c@0";
21                 mmc0 = "/mmc0";
22                 mmc1 = "/mmc1";
23                 pci0 = &pci0;
24                 pci1 = &pci1;
25                 pci2 = &pci2;
26                 remoteproc0 = &rproc_1;
27                 remoteproc1 = &rproc_2;
28                 rtc0 = &rtc_0;
29                 rtc1 = &rtc_1;
30                 spi0 = "/spi@0";
31                 testfdt6 = "/e-test";
32                 testbus3 = "/some-bus";
33                 testfdt0 = "/some-bus/c-test@0";
34                 testfdt1 = "/some-bus/c-test@1";
35                 testfdt3 = "/b-test";
36                 testfdt5 = "/some-bus/c-test@5";
37                 testfdt8 = "/a-test";
38                 fdt-dummy0 = "/translation-test@8000/dev@0,0";
39                 fdt-dummy1 = "/translation-test@8000/dev@1,100";
40                 fdt-dummy2 = "/translation-test@8000/dev@2,200";
41                 fdt-dummy3 = "/translation-test@8000/noxlatebus@3,300/dev@42";
42                 usb0 = &usb_0;
43                 usb1 = &usb_1;
44                 usb2 = &usb_2;
45                 axi0 = &axi;
46                 osd0 = "/osd";
47         };
48
49         audio: audio-codec {
50                 compatible = "sandbox,audio-codec";
51                 #sound-dai-cells = <1>;
52         };
53
54         buttons {
55                 compatible = "gpio-keys";
56
57                 summer {
58                         gpios = <&gpio_a 3 0>;
59                         label = "summer";
60                 };
61
62                 christmas {
63                         gpios = <&gpio_a 4 0>;
64                         label = "christmas";
65                 };
66         };
67
68         cros_ec: cros-ec {
69                 reg = <0 0>;
70                 compatible = "google,cros-ec-sandbox";
71
72                 /*
73                  * This describes the flash memory within the EC. Note
74                  * that the STM32L flash erases to 0, not 0xff.
75                  */
76                 flash {
77                         image-pos = <0x08000000>;
78                         size = <0x20000>;
79                         erase-value = <0>;
80
81                         /* Information for sandbox */
82                         ro {
83                                 image-pos = <0>;
84                                 size = <0xf000>;
85                         };
86                         wp-ro {
87                                 image-pos = <0xf000>;
88                                 size = <0x1000>;
89                         };
90                         rw {
91                                 image-pos = <0x10000>;
92                                 size = <0x10000>;
93                         };
94                 };
95         };
96
97         dsi_host: dsi_host {
98                 compatible = "sandbox,dsi-host";
99         };
100
101         a-test {
102                 reg = <0 1>;
103                 compatible = "denx,u-boot-fdt-test";
104                 ping-expect = <0>;
105                 ping-add = <0>;
106                 u-boot,dm-pre-reloc;
107                 test-gpios = <&gpio_a 1>, <&gpio_a 4>,
108                         <&gpio_b 5 GPIO_ACTIVE_HIGH 3 2 1>,
109                         <0>, <&gpio_a 12>;
110                 test2-gpios = <&gpio_a 1>, <&gpio_a 4>,
111                         <&gpio_b 6 GPIO_ACTIVE_LOW 3 2 1>,
112                         <&gpio_b 7 GPIO_IN 3 2 1>,
113                         <&gpio_b 8 GPIO_OUT 3 2 1>,
114                         <&gpio_b 9 (GPIO_OUT|GPIO_OUT_ACTIVE) 3 2 1>;
115                 test3-gpios =
116                         <&gpio_c 0 (GPIO_OUT|GPIO_OPEN_DRAIN)>,
117                         <&gpio_c 1 (GPIO_OUT|GPIO_OPEN_SOURCE)>,
118                         <&gpio_c 2 GPIO_OUT>,
119                         <&gpio_c 3 (GPIO_IN|GPIO_PULL_UP)>,
120                         <&gpio_c 4 (GPIO_IN|GPIO_PULL_DOWN)>,
121                         <&gpio_c 5 GPIO_IN>,
122                         <&gpio_c 6 (GPIO_ACTIVE_LOW|GPIO_OUT|GPIO_OPEN_DRAIN)>,
123                         <&gpio_c 7 (GPIO_ACTIVE_LOW|GPIO_OUT|GPIO_OPEN_SOURCE)>;
124                 test4-gpios = <&gpio_a 14>, <&gpio_b 4 1 3 2 1>;
125                 test5-gpios = <&gpio_a 19>;
126
127                 int-value = <1234>;
128                 uint-value = <(-1234)>;
129                 int64-value = /bits/ 64 <0x1111222233334444>;
130                 int-array = <5678 9123 4567>;
131                 str-value = "test string";
132                 interrupts-extended = <&irq 3 0>;
133                 acpi,name = "GHIJ";
134                 phandle-value = <&gpio_c 10>, <0xFFFFFFFF 20>, <&gpio_a 30>;
135         };
136
137         junk {
138                 reg = <1 1>;
139                 compatible = "not,compatible";
140         };
141
142         no-compatible {
143                 reg = <2 1>;
144         };
145
146         backlight: backlight {
147                 compatible = "pwm-backlight";
148                 enable-gpios = <&gpio_a 1>;
149                 power-supply = <&ldo_1>;
150                 pwms = <&pwm 0 1000>;
151                 default-brightness-level = <5>;
152                 brightness-levels = <0 16 32 64 128 170 202 234 255>;
153         };
154
155         bind-test {
156                 compatible = "simple-bus";
157                 bind-test-child1 {
158                         compatible = "sandbox,phy";
159                         #phy-cells = <1>;
160                 };
161
162                 bind-test-child2 {
163                         compatible = "simple-bus";
164                 };
165         };
166
167         b-test {
168                 reg = <3 1>;
169                 compatible = "denx,u-boot-fdt-test";
170                 ping-expect = <3>;
171                 ping-add = <3>;
172         };
173
174         phy_provider0: gen_phy@0 {
175                 compatible = "sandbox,phy";
176                 #phy-cells = <1>;
177         };
178
179         phy_provider1: gen_phy@1 {
180                 compatible = "sandbox,phy";
181                 #phy-cells = <0>;
182                 broken;
183         };
184
185         phy_provider2: gen_phy@2 {
186                 compatible = "sandbox,phy";
187                 #phy-cells = <0>;
188         };
189
190         gen_phy_user: gen_phy_user {
191                 compatible = "simple-bus";
192                 phys = <&phy_provider0 0>, <&phy_provider0 1>, <&phy_provider1>;
193                 phy-names = "phy1", "phy2", "phy3";
194         };
195
196         gen_phy_user1: gen_phy_user1 {
197                 compatible = "simple-bus";
198                 phys = <&phy_provider0 0>, <&phy_provider2>;
199                 phy-names = "phy1", "phy2";
200         };
201
202         some-bus {
203                 #address-cells = <1>;
204                 #size-cells = <0>;
205                 compatible = "denx,u-boot-test-bus";
206                 reg = <3 1>;
207                 ping-expect = <4>;
208                 ping-add = <4>;
209                 c-test@5 {
210                         compatible = "denx,u-boot-fdt-test";
211                         reg = <5>;
212                         ping-expect = <5>;
213                         ping-add = <5>;
214                 };
215                 c-test@0 {
216                         compatible = "denx,u-boot-fdt-test";
217                         reg = <0>;
218                         ping-expect = <6>;
219                         ping-add = <6>;
220                 };
221                 c-test@1 {
222                         compatible = "denx,u-boot-fdt-test";
223                         reg = <1>;
224                         ping-expect = <7>;
225                         ping-add = <7>;
226                 };
227         };
228
229         d-test {
230                 reg = <3 1>;
231                 ping-expect = <6>;
232                 ping-add = <6>;
233                 compatible = "google,another-fdt-test";
234         };
235
236         e-test {
237                 reg = <3 1>;
238                 ping-expect = <6>;
239                 ping-add = <6>;
240                 compatible = "google,another-fdt-test";
241         };
242
243         f-test {
244                 compatible = "denx,u-boot-fdt-test";
245         };
246
247         g-test {
248                 compatible = "denx,u-boot-fdt-test";
249         };
250
251         h-test {
252                 compatible = "denx,u-boot-fdt-test1";
253         };
254
255         i-test {
256                 compatible = "mediatek,u-boot-fdt-test";
257                 #address-cells = <1>;
258                 #size-cells = <0>;
259
260                 subnode@0 {
261                         reg = <0>;
262                 };
263
264                 subnode@1 {
265                         reg = <1>;
266                 };
267
268                 subnode@2 {
269                         reg = <2>;
270                 };
271         };
272
273         devres-test {
274                 compatible = "denx,u-boot-devres-test";
275         };
276
277         another-test {
278                 reg = <0 2>;
279                 compatible = "denx,u-boot-fdt-test";
280                 test4-gpios = <&gpio_a 14>, <&gpio_b 4 1 3 2 1>;
281                 test5-gpios = <&gpio_a 19>;
282         };
283
284         acpi_test1: acpi-test {
285                 compatible = "denx,u-boot-acpi-test";
286                 acpi-ssdt-test-data = "ab";
287                 acpi-dsdt-test-data = "hi";
288                 child {
289                         compatible = "denx,u-boot-acpi-test";
290                 };
291         };
292
293         acpi_test2: acpi-test2 {
294                 compatible = "denx,u-boot-acpi-test";
295                 acpi-ssdt-test-data = "cd";
296                 acpi-dsdt-test-data = "jk";
297         };
298
299         clocks {
300                 clk_fixed: clk-fixed {
301                         compatible = "fixed-clock";
302                         #clock-cells = <0>;
303                         clock-frequency = <1234>;
304                 };
305
306                 clk_fixed_factor: clk-fixed-factor {
307                         compatible = "fixed-factor-clock";
308                         #clock-cells = <0>;
309                         clock-div = <3>;
310                         clock-mult = <2>;
311                         clocks = <&clk_fixed>;
312                 };
313
314                 osc {
315                         compatible = "fixed-clock";
316                         #clock-cells = <0>;
317                         clock-frequency = <20000000>;
318                 };
319         };
320
321         clk_sandbox: clk-sbox {
322                 compatible = "sandbox,clk";
323                 #clock-cells = <1>;
324                 assigned-clocks = <&clk_sandbox 3>;
325                 assigned-clock-rates = <321>;
326         };
327
328         clk-test {
329                 compatible = "sandbox,clk-test";
330                 clocks = <&clk_fixed>,
331                          <&clk_sandbox 1>,
332                          <&clk_sandbox 0>,
333                          <&clk_sandbox 3>,
334                          <&clk_sandbox 2>;
335                 clock-names = "fixed", "i2c", "spi", "uart2", "uart1";
336         };
337
338         ccf: clk-ccf {
339                 compatible = "sandbox,clk-ccf";
340         };
341
342         eth@10002000 {
343                 compatible = "sandbox,eth";
344                 reg = <0x10002000 0x1000>;
345                 fake-host-hwaddr = [00 00 66 44 22 00];
346         };
347
348         eth_5: eth@10003000 {
349                 compatible = "sandbox,eth";
350                 reg = <0x10003000 0x1000>;
351                 fake-host-hwaddr = [00 00 66 44 22 11];
352         };
353
354         eth_3: sbe5 {
355                 compatible = "sandbox,eth";
356                 reg = <0x10005000 0x1000>;
357                 fake-host-hwaddr = [00 00 66 44 22 33];
358         };
359
360         eth@10004000 {
361                 compatible = "sandbox,eth";
362                 reg = <0x10004000 0x1000>;
363                 fake-host-hwaddr = [00 00 66 44 22 22];
364         };
365
366         firmware {
367                 sandbox_firmware: sandbox-firmware {
368                         compatible = "sandbox,firmware";
369                 };
370
371                 sandbox-scmi-agent@0 {
372                         compatible = "sandbox,scmi-agent";
373                         #address-cells = <1>;
374                         #size-cells = <0>;
375
376                         clk_scmi0: protocol@14 {
377                                 reg = <0x14>;
378                                 #clock-cells = <1>;
379                         };
380
381                         reset_scmi0: protocol@16 {
382                                 reg = <0x16>;
383                                 #reset-cells = <1>;
384                         };
385                 };
386
387                 sandbox-scmi-agent@1 {
388                         compatible = "sandbox,scmi-agent";
389                         #address-cells = <1>;
390                         #size-cells = <0>;
391
392                         clk_scmi1: protocol@14 {
393                                 reg = <0x14>;
394                                 #clock-cells = <1>;
395                         };
396
397                         protocol@10 {
398                                 reg = <0x10>;
399                         };
400                 };
401         };
402
403         pinctrl-gpio {
404                 compatible = "sandbox,pinctrl-gpio";
405
406                 gpio_a: base-gpios {
407                         compatible = "sandbox,gpio";
408                         gpio-controller;
409                         #gpio-cells = <1>;
410                         gpio-bank-name = "a";
411                         sandbox,gpio-count = <20>;
412                         hog_input_active_low {
413                                 gpio-hog;
414                                 input;
415                                 gpios = <10 GPIO_ACTIVE_LOW>;
416                         };
417                         hog_input_active_high {
418                                 gpio-hog;
419                                 input;
420                                 gpios = <11 GPIO_ACTIVE_HIGH>;
421                         };
422                         hog_output_low {
423                                 gpio-hog;
424                                 output-low;
425                                 gpios = <12 GPIO_ACTIVE_HIGH>;
426                         };
427                         hog_output_high {
428                                 gpio-hog;
429                                 output-high;
430                                 gpios = <13 GPIO_ACTIVE_HIGH>;
431                         };
432                 };
433
434                 gpio_b: extra-gpios {
435                         compatible = "sandbox,gpio";
436                         gpio-controller;
437                         #gpio-cells = <5>;
438                         gpio-bank-name = "b";
439                         sandbox,gpio-count = <10>;
440                 };
441
442                 gpio_c: pinmux-gpios {
443                         compatible = "sandbox,gpio";
444                         gpio-controller;
445                         #gpio-cells = <2>;
446                         gpio-bank-name = "c";
447                         sandbox,gpio-count = <10>;
448                 };
449         };
450
451         i2c@0 {
452                 #address-cells = <1>;
453                 #size-cells = <0>;
454                 reg = <0 1>;
455                 compatible = "sandbox,i2c";
456                 clock-frequency = <100000>;
457                 eeprom@2c {
458                         reg = <0x2c>;
459                         compatible = "i2c-eeprom";
460                         sandbox,emul = <&emul_eeprom>;
461                         partitions {
462                                 compatible = "fixed-partitions";
463                                 #address-cells = <1>;
464                                 #size-cells = <1>;
465                                 bootcount_i2c: bootcount@10 {
466                                         reg = <10 2>;
467                                 };
468                         };
469                 };
470
471                 rtc_0: rtc@43 {
472                         reg = <0x43>;
473                         compatible = "sandbox-rtc";
474                         sandbox,emul = <&emul0>;
475                 };
476
477                 rtc_1: rtc@61 {
478                         reg = <0x61>;
479                         compatible = "sandbox-rtc";
480                         sandbox,emul = <&emul1>;
481                 };
482
483                 i2c_emul: emul {
484                         reg = <0xff>;
485                         compatible = "sandbox,i2c-emul-parent";
486                         emul_eeprom: emul-eeprom {
487                                 compatible = "sandbox,i2c-eeprom";
488                                 sandbox,filename = "i2c.bin";
489                                 sandbox,size = <256>;
490                         };
491                         emul0: emul0 {
492                                 compatible = "sandbox,i2c-rtc";
493                         };
494                         emul1: emull {
495                                 compatible = "sandbox,i2c-rtc";
496                         };
497                 };
498
499                 sandbox_pmic: sandbox_pmic {
500                         reg = <0x40>;
501                         sandbox,emul = <&emul_pmic0>;
502                 };
503
504                 mc34708: pmic@41 {
505                         reg = <0x41>;
506                         sandbox,emul = <&emul_pmic1>;
507                 };
508         };
509
510         bootcount@0 {
511                 compatible = "u-boot,bootcount-rtc";
512                 rtc = <&rtc_1>;
513                 offset = <0x13>;
514         };
515
516         bootcount {
517                 compatible = "u-boot,bootcount-i2c-eeprom";
518                 i2c-eeprom = <&bootcount_i2c>;
519         };
520
521         adc@0 {
522                 compatible = "sandbox,adc";
523                 vdd-supply = <&buck2>;
524                 vss-microvolts = <0>;
525         };
526
527         irq: irq {
528                 compatible = "sandbox,irq";
529                 interrupt-controller;
530                 #interrupt-cells = <2>;
531         };
532
533         lcd {
534                 u-boot,dm-pre-reloc;
535                 compatible = "sandbox,lcd-sdl";
536                 xres = <1366>;
537                 yres = <768>;
538         };
539
540         leds {
541                 compatible = "gpio-leds";
542
543                 iracibble {
544                         gpios = <&gpio_a 1 0>;
545                         label = "sandbox:red";
546                 };
547
548                 martinet {
549                         gpios = <&gpio_a 2 0>;
550                         label = "sandbox:green";
551                 };
552
553                 default_on {
554                         gpios = <&gpio_a 5 0>;
555                         label = "sandbox:default_on";
556                         default-state = "on";
557                 };
558
559                 default_off {
560                         gpios = <&gpio_a 6 0>;
561                         label = "sandbox:default_off";
562                         default-state = "off";
563                 };
564         };
565
566         mbox: mbox {
567                 compatible = "sandbox,mbox";
568                 #mbox-cells = <1>;
569         };
570
571         mbox-test {
572                 compatible = "sandbox,mbox-test";
573                 mboxes = <&mbox 100>, <&mbox 1>;
574                 mbox-names = "other", "test";
575         };
576
577         cpus {
578                 timebase-frequency = <2000000>;
579                 cpu-test1 {
580                         timebase-frequency = <3000000>;
581                         compatible = "sandbox,cpu_sandbox";
582                         u-boot,dm-pre-reloc;
583                 };
584
585                 cpu-test2 {
586                         compatible = "sandbox,cpu_sandbox";
587                         u-boot,dm-pre-reloc;
588                 };
589
590                 cpu-test3 {
591                         compatible = "sandbox,cpu_sandbox";
592                         u-boot,dm-pre-reloc;
593                 };
594         };
595
596         chipid: chipid {
597                 compatible = "sandbox,soc";
598         };
599
600         i2s: i2s {
601                 compatible = "sandbox,i2s";
602                 #sound-dai-cells = <1>;
603                 sandbox,silent; /* Don't emit sounds while testing */
604         };
605
606         nop-test_0 {
607                 compatible = "sandbox,nop_sandbox1";
608                 nop-test_1 {
609                         compatible = "sandbox,nop_sandbox2";
610                         bind = "True";
611                 };
612                 nop-test_2 {
613                         compatible = "sandbox,nop_sandbox2";
614                         bind = "False";
615                 };
616         };
617
618         misc-test {
619                 compatible = "sandbox,misc_sandbox";
620         };
621
622         mmc2 {
623                 compatible = "sandbox,mmc";
624         };
625
626         mmc1 {
627                 compatible = "sandbox,mmc";
628         };
629
630         mmc0 {
631                 compatible = "sandbox,mmc";
632         };
633
634         pch {
635                 compatible = "sandbox,pch";
636         };
637
638         pci0: pci@0 {
639                 compatible = "sandbox,pci";
640                 device_type = "pci";
641                 bus-range = <0x00 0xff>;
642                 #address-cells = <3>;
643                 #size-cells = <2>;
644                 ranges = <0x02000000 0 0x10000000 0x10000000 0 0x2000000
645                                 0x01000000 0 0x20000000 0x20000000 0 0x2000>;
646                 pci@0,0 {
647                         compatible = "pci-generic";
648                         reg = <0x0000 0 0 0 0>;
649                         sandbox,emul = <&swap_case_emul0_0>;
650                 };
651                 pci@1,0 {
652                         compatible = "pci-generic";
653                         /* reg 0 is at 0x14, using FDT_PCI_SPACE_MEM32 */
654                         reg = <0x02000814 0 0 0 0
655                                0x01000810 0 0 0 0>;
656                         sandbox,emul = <&swap_case_emul0_1>;
657                 };
658                 p2sb-pci@2,0 {
659                         compatible = "sandbox,p2sb";
660                         reg = <0x02001010 0 0 0 0>;
661                         sandbox,emul = <&p2sb_emul>;
662
663                         adder {
664                                 intel,p2sb-port-id = <3>;
665                                 compatible = "sandbox,adder";
666                         };
667                 };
668                 pci@1e,0 {
669                         compatible = "sandbox,pmc";
670                         reg = <0xf000 0 0 0 0>;
671                         sandbox,emul = <&pmc_emul1e>;
672                         acpi-base = <0x400>;
673                         gpe0-dwx-mask = <0xf>;
674                         gpe0-dwx-shift-base = <4>;
675                         gpe0-dw = <6 7 9>;
676                         gpe0-sts = <0x20>;
677                         gpe0-en = <0x30>;
678                 };
679                 pci@1f,0 {
680                         compatible = "pci-generic";
681                         /* reg 0 is at 0x10, using FDT_PCI_SPACE_IO */
682                         reg = <0x0100f810 0 0 0 0>;
683                         sandbox,emul = <&swap_case_emul0_1f>;
684                 };
685         };
686
687         pci-emul0 {
688                 compatible = "sandbox,pci-emul-parent";
689                 swap_case_emul0_0: emul0@0,0 {
690                         compatible = "sandbox,swap-case";
691                 };
692                 swap_case_emul0_1: emul0@1,0 {
693                         compatible = "sandbox,swap-case";
694                         use-ea;
695                 };
696                 swap_case_emul0_1f: emul0@1f,0 {
697                         compatible = "sandbox,swap-case";
698                 };
699                 p2sb_emul: emul@2,0 {
700                         compatible = "sandbox,p2sb-emul";
701                 };
702                 pmc_emul1e: emul@1e,0 {
703                         compatible = "sandbox,pmc-emul";
704                 };
705         };
706
707         pci1: pci@1 {
708                 compatible = "sandbox,pci";
709                 device_type = "pci";
710                 bus-range = <0x00 0xff>;
711                 #address-cells = <3>;
712                 #size-cells = <2>;
713                 ranges = <0x02000000 0 0x30000000 0x30000000 0 0x2000 // MEM0
714                           0x02000000 0 0x31000000 0x31000000 0 0x2000 // MEM1
715                           0x01000000 0 0x40000000 0x40000000 0 0x2000>;
716                 sandbox,dev-info = <0x08 0x00 0x1234 0x5678
717                                     0x0c 0x00 0x1234 0x5678
718                                     0x10 0x00 0x1234 0x5678>;
719                 pci@10,0 {
720                         reg = <0x8000 0 0 0 0>;
721                 };
722         };
723
724         pci2: pci@2 {
725                 compatible = "sandbox,pci";
726                 device_type = "pci";
727                 bus-range = <0x00 0xff>;
728                 #address-cells = <3>;
729                 #size-cells = <2>;
730                 ranges = <0x02000000 0 0x50000000 0x50000000 0 0x2000
731                                 0x01000000 0 0x60000000 0x60000000 0 0x2000>;
732                 sandbox,dev-info = <0x08 0x00 0x1234 0x5678>;
733                 pci@1f,0 {
734                         compatible = "pci-generic";
735                         reg = <0xf800 0 0 0 0>;
736                         sandbox,emul = <&swap_case_emul2_1f>;
737                 };
738         };
739
740         pci-emul2 {
741                 compatible = "sandbox,pci-emul-parent";
742                 swap_case_emul2_1f: emul2@1f,0 {
743                         compatible = "sandbox,swap-case";
744                 };
745         };
746
747         pci_ep: pci_ep {
748                 compatible = "sandbox,pci_ep";
749         };
750
751         probing {
752                 compatible = "simple-bus";
753                 test1 {
754                         compatible = "denx,u-boot-probe-test";
755                 };
756
757                 test2 {
758                         compatible = "denx,u-boot-probe-test";
759                 };
760
761                 test3 {
762                         compatible = "denx,u-boot-probe-test";
763                 };
764
765                 test4 {
766                         compatible = "denx,u-boot-probe-test";
767                         first-syscon = <&syscon0>;
768                         second-sys-ctrl = <&another_system_controller>;
769                         third-syscon = <&syscon2>;
770                 };
771         };
772
773         pwrdom: power-domain {
774                 compatible = "sandbox,power-domain";
775                 #power-domain-cells = <1>;
776         };
777
778         power-domain-test {
779                 compatible = "sandbox,power-domain-test";
780                 power-domains = <&pwrdom 2>;
781         };
782
783         pwm: pwm {
784                 compatible = "sandbox,pwm";
785                 #pwm-cells = <2>;
786         };
787
788         pwm2 {
789                 compatible = "sandbox,pwm";
790                 #pwm-cells = <2>;
791         };
792
793         ram {
794                 compatible = "sandbox,ram";
795         };
796
797         reset@0 {
798                 compatible = "sandbox,warm-reset";
799         };
800
801         reset@1 {
802                 compatible = "sandbox,reset";
803         };
804
805         resetc: reset-ctl {
806                 compatible = "sandbox,reset-ctl";
807                 #reset-cells = <1>;
808         };
809
810         reset-ctl-test {
811                 compatible = "sandbox,reset-ctl-test";
812                 resets = <&resetc 100>, <&resetc 2>;
813                 reset-names = "other", "test";
814         };
815
816         rng {
817                 compatible = "sandbox,sandbox-rng";
818         };
819
820         rproc_1: rproc@1 {
821                 compatible = "sandbox,test-processor";
822                 remoteproc-name = "remoteproc-test-dev1";
823         };
824
825         rproc_2: rproc@2 {
826                 compatible = "sandbox,test-processor";
827                 internal-memory-mapped;
828                 remoteproc-name = "remoteproc-test-dev2";
829         };
830
831         panel {
832                 compatible = "simple-panel";
833                 backlight = <&backlight 0 100>;
834         };
835
836         smem@0 {
837                 compatible = "sandbox,smem";
838         };
839
840         sound {
841                 compatible = "sandbox,sound";
842                 cpu {
843                         sound-dai = <&i2s 0>;
844                 };
845
846                 codec {
847                         sound-dai = <&audio 0>;
848                 };
849         };
850
851         spi@0 {
852                 #address-cells = <1>;
853                 #size-cells = <0>;
854                 reg = <0 1>;
855                 compatible = "sandbox,spi";
856                 cs-gpios = <0>, <&gpio_a 0>;
857                 spi.bin@0 {
858                         reg = <0>;
859                         compatible = "spansion,m25p16", "jedec,spi-nor";
860                         spi-max-frequency = <40000000>;
861                         sandbox,filename = "spi.bin";
862                 };
863         };
864
865         syscon0: syscon@0 {
866                 compatible = "sandbox,syscon0";
867                 reg = <0x10 16>;
868         };
869
870         another_system_controller: syscon@1 {
871                 compatible = "sandbox,syscon1";
872                 reg = <0x20 5
873                         0x28 6
874                         0x30 7
875                         0x38 8>;
876         };
877
878         syscon2: syscon@2 {
879                 compatible = "simple-mfd", "syscon";
880                 reg = <0x40 5
881                         0x48 6
882                         0x50 7
883                         0x58 8>;
884         };
885
886         timer@0 {
887                 compatible = "sandbox,timer";
888                 clock-frequency = <1000000>;
889         };
890
891         timer@1 {
892                 compatible = "sandbox,timer";
893                 sandbox,timebase-frequency-fallback;
894         };
895
896         tpm2 {
897                 compatible = "sandbox,tpm2";
898         };
899
900         uart0: serial {
901                 compatible = "sandbox,serial";
902                 u-boot,dm-pre-reloc;
903         };
904
905         usb_0: usb@0 {
906                 compatible = "sandbox,usb";
907                 status = "disabled";
908                 hub {
909                         compatible = "sandbox,usb-hub";
910                         #address-cells = <1>;
911                         #size-cells = <0>;
912                         flash-stick {
913                                 reg = <0>;
914                                 compatible = "sandbox,usb-flash";
915                         };
916                 };
917         };
918
919         usb_1: usb@1 {
920                 compatible = "sandbox,usb";
921                 hub {
922                         compatible = "usb-hub";
923                         usb,device-class = <9>;
924                         #address-cells = <1>;
925                         #size-cells = <0>;
926                         hub-emul {
927                                 compatible = "sandbox,usb-hub";
928                                 #address-cells = <1>;
929                                 #size-cells = <0>;
930                                 flash-stick@0 {
931                                         reg = <0>;
932                                         compatible = "sandbox,usb-flash";
933                                         sandbox,filepath = "testflash.bin";
934                                 };
935
936                                 flash-stick@1 {
937                                         reg = <1>;
938                                         compatible = "sandbox,usb-flash";
939                                         sandbox,filepath = "testflash1.bin";
940                                 };
941
942                                 flash-stick@2 {
943                                         reg = <2>;
944                                         compatible = "sandbox,usb-flash";
945                                         sandbox,filepath = "testflash2.bin";
946                                 };
947
948                                 keyb@3 {
949                                         reg = <3>;
950                                         compatible = "sandbox,usb-keyb";
951                                 };
952
953                         };
954
955                         usbstor@1 {
956                                 reg = <1>;
957                         };
958                         usbstor@3 {
959                                 reg = <3>;
960                         };
961                 };
962         };
963
964         usb_2: usb@2 {
965                 compatible = "sandbox,usb";
966                 status = "disabled";
967         };
968
969         spmi: spmi@0 {
970                 compatible = "sandbox,spmi";
971                 #address-cells = <0x1>;
972                 #size-cells = <0x1>;
973                 ranges;
974                 pm8916@0 {
975                         compatible = "qcom,spmi-pmic";
976                         reg = <0x0 0x1>;
977                         #address-cells = <0x1>;
978                         #size-cells = <0x1>;
979                         ranges;
980
981                         spmi_gpios: gpios@c000 {
982                                 compatible = "qcom,pm8916-gpio";
983                                 reg = <0xc000 0x400>;
984                                 gpio-controller;
985                                 gpio-count = <4>;
986                                 #gpio-cells = <2>;
987                                 gpio-bank-name="spmi";
988                         };
989                 };
990         };
991
992         wdt0: wdt@0 {
993                 compatible = "sandbox,wdt";
994         };
995
996         axi: axi@0 {
997                 compatible = "sandbox,axi";
998                 #address-cells = <0x1>;
999                 #size-cells = <0x1>;
1000                 store@0 {
1001                         compatible = "sandbox,sandbox_store";
1002                         reg = <0x0 0x400>;
1003                 };
1004         };
1005
1006         chosen {
1007                 #address-cells = <1>;
1008                 #size-cells = <1>;
1009                 setting = "sunrise ohoka";
1010                 other-node = "/some-bus/c-test@5";
1011                 int-values = <0x1937 72993>;
1012                 u-boot,acpi-ssdt-order = <&acpi_test2 &acpi_test1>;
1013                 chosen-test {
1014                         compatible = "denx,u-boot-fdt-test";
1015                         reg = <9 1>;
1016                 };
1017         };
1018
1019         translation-test@8000 {
1020                 compatible = "simple-bus";
1021                 reg = <0x8000 0x4000>;
1022
1023                 #address-cells = <0x2>;
1024                 #size-cells = <0x1>;
1025
1026                 ranges = <0 0x0 0x8000 0x1000
1027                           1 0x100 0x9000 0x1000
1028                           2 0x200 0xA000 0x1000
1029                           3 0x300 0xB000 0x1000
1030                          >;
1031
1032                 dma-ranges = <0 0x000 0x10000000 0x1000
1033                               1 0x100 0x20000000 0x1000
1034                              >;
1035
1036                 dev@0,0 {
1037                         compatible = "denx,u-boot-fdt-dummy";
1038                         reg = <0 0x0 0x1000>;
1039                         reg-names = "sandbox-dummy-0";
1040                 };
1041
1042                 dev@1,100 {
1043                         compatible = "denx,u-boot-fdt-dummy";
1044                         reg = <1 0x100 0x1000>;
1045
1046                 };
1047
1048                 dev@2,200 {
1049                         compatible = "denx,u-boot-fdt-dummy";
1050                         reg = <2 0x200 0x1000>;
1051                 };
1052
1053
1054                 noxlatebus@3,300 {
1055                         compatible = "simple-bus";
1056                         reg = <3 0x300 0x1000>;
1057
1058                         #address-cells = <0x1>;
1059                         #size-cells = <0x0>;
1060
1061                         dev@42 {
1062                                 compatible = "denx,u-boot-fdt-dummy";
1063                                 reg = <0x42>;
1064                         };
1065                 };
1066         };
1067
1068         osd {
1069                 compatible = "sandbox,sandbox_osd";
1070         };
1071
1072         board {
1073                 compatible = "sandbox,board_sandbox";
1074         };
1075
1076         sandbox_tee {
1077                 compatible = "sandbox,tee";
1078         };
1079
1080         sandbox_virtio1 {
1081                 compatible = "sandbox,virtio1";
1082         };
1083
1084         sandbox_virtio2 {
1085                 compatible = "sandbox,virtio2";
1086         };
1087
1088         sandbox_scmi {
1089                 compatible = "sandbox,scmi-devices";
1090                 clocks = <&clk_scmi0 7>, <&clk_scmi0 3>, <&clk_scmi1 1>;
1091                 resets = <&reset_scmi0 3>;
1092         };
1093
1094         pinctrl {
1095                 compatible = "sandbox,pinctrl";
1096
1097                 pinctrl-names = "default";
1098                 pinctrl-0 = <&gpios>;
1099
1100                 gpios: gpios {
1101                         gpio0 {
1102                                 pins = "GPIO0";
1103                                 bias-pull-up;
1104                                 input-disable;
1105                         };
1106                         gpio1 {
1107                                 pins = "GPIO1";
1108                                 output-high;
1109                                 drive-open-drain;
1110                         };
1111                         gpio2 {
1112                                 pins = "GPIO2";
1113                                 bias-pull-down;
1114                                 input-enable;
1115                         };
1116                         gpio3 {
1117                                 pins = "GPIO3";
1118                                 bias-disable;
1119                         };
1120                 };
1121         };
1122
1123         hwspinlock@0 {
1124                 compatible = "sandbox,hwspinlock";
1125         };
1126
1127         dma: dma {
1128                 compatible = "sandbox,dma";
1129                 #dma-cells = <1>;
1130
1131                 dmas = <&dma 0>, <&dma 1>, <&dma 2>;
1132                 dma-names = "m2m", "tx0", "rx0";
1133         };
1134
1135         /*
1136          * keep mdio-mux ahead of mdio so that the mux is removed first at the
1137          * end of the test.  If parent mdio is removed first, clean-up of the
1138          * mux will trigger a 2nd probe of parent-mdio, leaving parent-mdio
1139          * active at the end of the test.  That it turn doesn't allow the mdio
1140          * class to be destroyed, triggering an error.
1141          */
1142         mdio-mux-test {
1143                 compatible = "sandbox,mdio-mux";
1144                 #address-cells = <1>;
1145                 #size-cells = <0>;
1146                 mdio-parent-bus = <&mdio>;
1147
1148                 mdio-ch-test@0 {
1149                         reg = <0>;
1150                 };
1151                 mdio-ch-test@1 {
1152                         reg = <1>;
1153                 };
1154         };
1155
1156         mdio: mdio-test {
1157                 compatible = "sandbox,mdio";
1158         };
1159
1160         pm-bus-test {
1161                 compatible = "simple-pm-bus";
1162                 clocks = <&clk_sandbox 4>;
1163                 power-domains = <&pwrdom 1>;
1164         };
1165
1166         resetc2: syscon-reset {
1167                 compatible = "syscon-reset";
1168                 #reset-cells = <1>;
1169                 regmap = <&syscon0>;
1170                 offset = <1>;
1171                 mask = <0x27FFFFFF>;
1172                 assert-high = <0>;
1173         };
1174
1175         syscon-reset-test {
1176                 compatible = "sandbox,misc_sandbox";
1177                 resets = <&resetc2 15>, <&resetc2 30>, <&resetc2 60>;
1178                 reset-names = "valid", "no_mask", "out_of_range";
1179         };
1180
1181         some_regmapped-bus {
1182                 #address-cells = <0x1>;
1183                 #size-cells = <0x1>;
1184
1185                 ranges = <0x0 0x0 0x10>;
1186                 compatible = "simple-bus";
1187
1188                 regmap-test_0 {
1189                         reg = <0 0x10>;
1190                         compatible = "sandbox,regmap_test";
1191                 };
1192         };
1193 };
1194
1195 #include "sandbox_pmic.dtsi"
This page took 0.101027 seconds and 4 git commands to generate.