Merge branch 'master' of git://git.denx.de/u-boot-usb
[platform/kernel/u-boot.git] / arch / sandbox / dts / test.dts
index 7dde95d..3668263 100644 (file)
@@ -14,7 +14,9 @@
                i2c0 = "/i2c@0";
                mmc0 = "/mmc0";
                mmc1 = "/mmc1";
-               pci0 = &pci;
+               pci0 = &pci0;
+               pci1 = &pci1;
+               pci2 = &pci2;
                remoteproc1 = &rproc_1;
                remoteproc2 = &rproc_2;
                rtc0 = &rtc_0;
                testfdt3 = "/b-test";
                testfdt5 = "/some-bus/c-test@5";
                testfdt8 = "/a-test";
+               fdt-dummy0 = "/translation-test@8000/dev@0,0";
+               fdt-dummy1 = "/translation-test@8000/dev@1,100";
+               fdt-dummy2 = "/translation-test@8000/dev@2,200";
+               fdt-dummy3 = "/translation-test@8000/noxlatebus@3,300/dev@42";
                usb0 = &usb_0;
                usb1 = &usb_1;
                usb2 = &usb_2;
+               axi0 = &axi;
        };
 
        a-test {
                reg = <2 1>;
        };
 
+       bind-test {
+               bind-test-child1 {
+                       compatible = "sandbox,phy";
+                       #phy-cells = <1>;
+               };
+
+               bind-test-child2 {
+                       compatible = "simple-bus";
+               };
+       };
+
        b-test {
                reg = <3 1>;
                compatible = "denx,u-boot-fdt-test";
                compatible = "denx,u-boot-fdt-test";
        };
 
-       clk_fixed: clk-fixed {
-               compatible = "fixed-clock";
-               #clock-cells = <0>;
-               clock-frequency = <1234>;
+       clocks {
+               clk_fixed: clk-fixed {
+                       compatible = "fixed-clock";
+                       #clock-cells = <0>;
+                       clock-frequency = <1234>;
+               };
        };
 
        clk_sandbox: clk-sbox {
        eth@10002000 {
                compatible = "sandbox,eth";
                reg = <0x10002000 0x1000>;
-               fake-host-hwaddr = <0x00 0x00 0x66 0x44 0x22 0x00>;
+               fake-host-hwaddr = [00 00 66 44 22 00];
        };
 
        eth_5: eth@10003000 {
                compatible = "sandbox,eth";
                reg = <0x10003000 0x1000>;
-               fake-host-hwaddr = <0x00 0x00 0x66 0x44 0x22 0x11>;
+               fake-host-hwaddr = [00 00 66 44 22 11];
        };
 
        eth_3: sbe5 {
                compatible = "sandbox,eth";
                reg = <0x10005000 0x1000>;
-               fake-host-hwaddr = <0x00 0x00 0x66 0x44 0x22 0x33>;
+               fake-host-hwaddr = [00 00 66 44 22 33];
        };
 
        eth@10004000 {
                compatible = "sandbox,eth";
                reg = <0x10004000 0x1000>;
-               fake-host-hwaddr = <0x00 0x00 0x66 0x44 0x22 0x22>;
+               fake-host-hwaddr = [00 00 66 44 22 22];
        };
 
        gpio_a: base-gpios {
                gpio-controller;
                #gpio-cells = <1>;
                gpio-bank-name = "a";
-               num-gpios = <20>;
+               sandbox,gpio-count = <20>;
        };
 
        gpio_b: extra-gpios {
                gpio-controller;
                #gpio-cells = <5>;
                gpio-bank-name = "b";
-               num-gpios = <10>;
+               sandbox,gpio-count = <10>;
        };
 
        i2c@0 {
                sandbox_pmic: sandbox_pmic {
                        reg = <0x40>;
                };
+
+               mc34708: pmic@41 {
+                       reg = <0x41>;
+               };
        };
 
        adc@0 {
                        gpios = <&gpio_a 2 0>;
                        label = "sandbox:green";
                };
+
+               default_on {
+                       gpios = <&gpio_a 5 0>;
+                       label = "sandbox:default_on";
+                       default-state = "on";
+               };
+
+               default_off {
+                       gpios = <&gpio_a 6 0>;
+                       label = "sandbox:default_off";
+                       default-state = "off";
+               };
        };
 
        mbox: mbox {
                mbox-names = "other", "test";
        };
 
+       misc-test {
+               compatible = "sandbox,misc_sandbox";
+       };
+
        mmc2 {
                compatible = "sandbox,mmc";
        };
                compatible = "sandbox,mmc";
        };
 
-       pci: pci-controller {
+       pci0: pci-controller0 {
                compatible = "sandbox,pci";
                device_type = "pci";
                #address-cells = <3>;
                #size-cells = <2>;
                ranges = <0x02000000 0 0x10000000 0x10000000 0 0x2000
                                0x01000000 0 0x20000000 0x20000000 0 0x2000>;
+               pci@0,0 {
+                       compatible = "pci-generic";
+                       reg = <0x0000 0 0 0 0>;
+                       emul@0,0 {
+                               compatible = "sandbox,swap-case";
+                       };
+               };
+               pci@1f,0 {
+                       compatible = "pci-generic";
+                       reg = <0xf800 0 0 0 0>;
+                       emul@1f,0 {
+                               compatible = "sandbox,swap-case";
+                       };
+               };
+       };
+
+       pci1: pci-controller1 {
+               compatible = "sandbox,pci";
+               device_type = "pci";
+               #address-cells = <3>;
+               #size-cells = <2>;
+               ranges = <0x02000000 0 0x30000000 0x30000000 0 0x2000
+                               0x01000000 0 0x40000000 0x40000000 0 0x2000>;
+               sandbox,dev-info = <0x08 0x00 0x1234 0x5678
+                                   0x0c 0x00 0x1234 0x5678>;
+       };
+
+       pci2: pci-controller2 {
+               compatible = "sandbox,pci";
+               device_type = "pci";
+               #address-cells = <3>;
+               #size-cells = <2>;
+               ranges = <0x02000000 0 0x50000000 0x50000000 0 0x2000
+                               0x01000000 0 0x60000000 0x60000000 0 0x2000>;
+               sandbox,dev-info = <0x08 0x00 0x1234 0x5678>;
                pci@1f,0 {
                        compatible = "pci-generic";
                        reg = <0xf800 0 0 0 0>;
                };
        };
 
+       probing {
+               compatible = "simple-bus";
+               test1 {
+                       compatible = "denx,u-boot-probe-test";
+               };
+
+               test2 {
+                       compatible = "denx,u-boot-probe-test";
+               };
+
+               test3 {
+                       compatible = "denx,u-boot-probe-test";
+               };
+
+               test4 {
+                       compatible = "denx,u-boot-probe-test";
+               };
+       };
+
        pwrdom: power-domain {
                compatible = "sandbox,power-domain";
                #power-domain-cells = <1>;
                remoteproc-name = "remoteproc-test-dev2";
        };
 
+       smem@0 {
+               compatible = "sandbox,smem";
+       };
+
        spi@0 {
                #address-cells = <1>;
                #size-cells = <0>;
                        0x38 8>;
        };
 
+       syscon@2 {
+               compatible = "simple-mfd", "syscon";
+               reg = <0x40 5
+                       0x48 6
+                       0x50 7
+                       0x58 8>;
+       };
+
        timer {
                compatible = "sandbox,timer";
                clock-frequency = <1000000>;
        };
 
+       tpm2 {
+               compatible = "sandbox,tpm2";
+       };
+
        uart0: serial {
                compatible = "sandbox,serial";
                u-boot,dm-pre-reloc;
        wdt0: wdt@0 {
                compatible = "sandbox,wdt";
        };
+
+       axi: axi@0 {
+               compatible = "sandbox,axi";
+               #address-cells = <0x1>;
+               #size-cells = <0x1>;
+               store@0 {
+                       compatible = "sandbox,sandbox_store";
+                       reg = <0x0 0x400>;
+               };
+       };
+
+       chosen {
+               #address-cells = <1>;
+               #size-cells = <1>;
+               chosen-test {
+                       compatible = "denx,u-boot-fdt-test";
+                       reg = <9 1>;
+               };
+       };
+
+       translation-test@8000 {
+               compatible = "simple-bus";
+               reg = <0x8000 0x4000>;
+
+               #address-cells = <0x2>;
+               #size-cells = <0x1>;
+
+               ranges = <0 0x0 0x8000 0x1000
+                         1 0x100 0x9000 0x1000
+                         2 0x200 0xA000 0x1000
+                         3 0x300 0xB000 0x1000
+                        >;
+
+               dev@0,0 {
+                       compatible = "denx,u-boot-fdt-dummy";
+                       reg = <0 0x0 0x1000>;
+               };
+
+               dev@1,100 {
+                       compatible = "denx,u-boot-fdt-dummy";
+                       reg = <1 0x100 0x1000>;
+
+               };
+
+               dev@2,200 {
+                       compatible = "denx,u-boot-fdt-dummy";
+                       reg = <2 0x200 0x1000>;
+               };
+
+
+               noxlatebus@3,300 {
+                       compatible = "simple-bus";
+                       reg = <3 0x300 0x1000>;
+
+                       #address-cells = <0x1>;
+                       #size-cells = <0x0>;
+
+                       dev@42 {
+                               compatible = "denx,u-boot-fdt-dummy";
+                               reg = <0x42>;
+                       };
+               };
+       };
 };
 
 #include "sandbox_pmic.dtsi"