Merge tag 'u-boot-amlogic-20190704' of https://gitlab.denx.de/u-boot/custodians/u...
[platform/kernel/u-boot.git] / arch / sandbox / dts / test.dts
index b8524e3..c328258 100644 (file)
@@ -11,6 +11,8 @@
                eth0 = "/eth@10002000";
                eth3 = &eth_3;
                eth5 = &eth_5;
+               gpio1 = &gpio_a;
+               gpio2 = &gpio_b;
                i2c0 = "/i2c@0";
                mmc0 = "/mmc0";
                mmc1 = "/mmc1";
                usb1 = &usb_1;
                usb2 = &usb_2;
                axi0 = &axi;
+               osd0 = "/osd";
+       };
+
+       audio: audio-codec {
+               compatible = "sandbox,audio-codec";
+               #sound-dai-cells = <1>;
+       };
+
+       cros_ec: cros-ec {
+               reg = <0 0>;
+               compatible = "google,cros-ec-sandbox";
+
+               /*
+                * This describes the flash memory within the EC. Note
+                * that the STM32L flash erases to 0, not 0xff.
+                */
+               flash {
+                       image-pos = <0x08000000>;
+                       size = <0x20000>;
+                       erase-value = <0>;
+
+                       /* Information for sandbox */
+                       ro {
+                               image-pos = <0>;
+                               size = <0xf000>;
+                       };
+                       wp-ro {
+                               image-pos = <0xf000>;
+                               size = <0x1000>;
+                       };
+                       rw {
+                               image-pos = <0x10000>;
+                               size = <0x10000>;
+                       };
+               };
        };
 
        a-test {
@@ -50,6 +87,8 @@
                test2-gpios = <&gpio_a 1>, <&gpio_a 4>, <&gpio_b 6 1 3 2 1>,
                        <&gpio_b 7 2 3 2 1>, <&gpio_b 8 4 3 2 1>,
                        <&gpio_b 9 0xc 3 2 1>;
+               int-value = <1234>;
+               uint-value = <(-1234)>;
        };
 
        junk {
                reg = <2 1>;
        };
 
+       backlight: backlight {
+               compatible = "pwm-backlight";
+               enable-gpios = <&gpio_a 1>;
+               power-supply = <&ldo_1>;
+               pwms = <&pwm 0 1000>;
+               default-brightness-level = <5>;
+               brightness-levels = <0 16 32 64 128 170 202 234 255>;
+       };
+
        bind-test {
                bind-test-child1 {
                        compatible = "sandbox,phy";
                compatible = "denx,u-boot-fdt-test";
        };
 
+       h-test {
+               compatible = "denx,u-boot-fdt-test1";
+       };
+
        clocks {
                clk_fixed: clk-fixed {
                        compatible = "fixed-clock";
                        #clock-cells = <0>;
                        clock-frequency = <1234>;
                };
+
+               clk_fixed_factor: clk-fixed-factor {
+                       compatible = "fixed-factor-clock";
+                       #clock-cells = <0>;
+                       clock-div = <3>;
+                       clock-mult = <2>;
+                       clocks = <&clk_fixed>;
+               };
        };
 
        clk_sandbox: clk-sbox {
                fake-host-hwaddr = [00 00 66 44 22 22];
        };
 
+       firmware {
+               sandbox_firmware: sandbox-firmware {
+                       compatible = "sandbox,firmware";
+               };
+       };
+
        gpio_a: base-gpios {
                compatible = "sandbox,gpio";
                gpio-controller;
                eeprom@2c {
                        reg = <0x2c>;
                        compatible = "i2c-eeprom";
-                       emul {
-                               compatible = "sandbox,i2c-eeprom";
-                               sandbox,filename = "i2c.bin";
-                               sandbox,size = <256>;
-                       };
+                       sandbox,emul = <&emul_eeprom>;
                };
 
                rtc_0: rtc@43 {
                        reg = <0x43>;
                        compatible = "sandbox-rtc";
-                       emul {
-                               compatible = "sandbox,i2c-rtc";
-                       };
+                       sandbox,emul = <&emul0>;
                };
 
                rtc_1: rtc@61 {
                        reg = <0x61>;
                        compatible = "sandbox-rtc";
-                       emul {
+                       sandbox,emul = <&emul1>;
+               };
+
+               i2c_emul: emul {
+                       reg = <0xff>;
+                       compatible = "sandbox,i2c-emul-parent";
+                       emul_eeprom: emul-eeprom {
+                               compatible = "sandbox,i2c-eeprom";
+                               sandbox,filename = "i2c.bin";
+                               sandbox,size = <256>;
+                       };
+                       emul0: emul0 {
+                               compatible = "sandbox,i2c-rtc";
+                       };
+                       emul1: emull {
                                compatible = "sandbox,i2c-rtc";
                        };
                };
 
                sandbox_pmic: sandbox_pmic {
                        reg = <0x40>;
+                       sandbox,emul = <&emul_pmic0>;
                };
 
                mc34708: pmic@41 {
                        reg = <0x41>;
+                       sandbox,emul = <&emul_pmic1>;
                };
        };
 
+       bootcount@0 {
+               compatible = "u-boot,bootcount-rtc";
+               rtc = <&rtc_1>;
+               offset = <0x13>;
+       };
+
        adc@0 {
                compatible = "sandbox,adc";
                vdd-supply = <&buck2>;
 
        cpu-test1 {
                compatible = "sandbox,cpu_sandbox";
+               u-boot,dm-pre-reloc;
        };
 
        cpu-test2 {
                compatible = "sandbox,cpu_sandbox";
+               u-boot,dm-pre-reloc;
        };
 
        cpu-test3 {
                compatible = "sandbox,cpu_sandbox";
+               u-boot,dm-pre-reloc;
+       };
+
+       i2s: i2s {
+               compatible = "sandbox,i2s";
+               #sound-dai-cells = <1>;
+               sandbox,silent; /* Don't emit sounds while testing */
+       };
+
+       nop-test_0 {
+               compatible = "sandbox,nop_sandbox1";
+               nop-test_1 {
+                       compatible = "sandbox,nop_sandbox2";
+                       bind = "True";
+               };
+               nop-test_2 {
+                       compatible = "sandbox,nop_sandbox2";
+                       bind = "False";
+               };
        };
 
        misc-test {
                compatible = "sandbox,mmc";
        };
 
+       pch {
+               compatible = "sandbox,pch";
+       };
+
        pci0: pci-controller0 {
                compatible = "sandbox,pci";
                device_type = "pci";
                ranges = <0x02000000 0 0x30000000 0x30000000 0 0x2000
                                0x01000000 0 0x40000000 0x40000000 0 0x2000>;
                sandbox,dev-info = <0x08 0x00 0x1234 0x5678
-                                   0x0c 0x00 0x1234 0x5678>;
+                                   0x0c 0x00 0x1234 0x5678
+                                   0x10 0x00 0x1234 0x5678>;
+               pci@10,0 {
+                       reg = <0x8000 0 0 0 0>;
+               };
        };
 
        pci2: pci-controller2 {
 
                test4 {
                        compatible = "denx,u-boot-probe-test";
+                       first-syscon = <&syscon0>;
+                       second-sys-ctrl = <&another_system_controller>;
+                       third-syscon = <&syscon2>;
                };
        };
 
                power-domains = <&pwrdom 2>;
        };
 
-       pwm {
+       pwm: pwm {
                compatible = "sandbox,pwm";
+               #pwm-cells = <2>;
        };
 
        pwm2 {
                compatible = "sandbox,pwm";
+               #pwm-cells = <2>;
        };
 
        ram {
                remoteproc-name = "remoteproc-test-dev2";
        };
 
+       panel {
+               compatible = "simple-panel";
+               backlight = <&backlight 0 100>;
+       };
+
        smem@0 {
                compatible = "sandbox,smem";
        };
 
+       sound {
+               compatible = "sandbox,sound";
+               cpu {
+                       sound-dai = <&i2s 0>;
+               };
+
+               codec {
+                       sound-dai = <&audio 0>;
+               };
+       };
+
        spi@0 {
                #address-cells = <1>;
                #size-cells = <0>;
                cs-gpios = <0>, <&gpio_a 0>;
                spi.bin@0 {
                        reg = <0>;
-                       compatible = "spansion,m25p16", "spi-flash";
+                       compatible = "spansion,m25p16", "jedec,spi-nor";
                        spi-max-frequency = <40000000>;
                        sandbox,filename = "spi.bin";
                };
        };
 
-       syscon@0 {
+       syscon0: syscon@0 {
                compatible = "sandbox,syscon0";
-               reg = <0x10 4>;
+               reg = <0x10 16>;
        };
 
-       syscon@1 {
+       another_system_controller: syscon@1 {
                compatible = "sandbox,syscon1";
                reg = <0x20 5
                        0x28 6
                        0x38 8>;
        };
 
-       syscon@2 {
+       syscon2: syscon@2 {
                compatible = "simple-mfd", "syscon";
                reg = <0x40 5
                        0x48 6
                dev@0,0 {
                        compatible = "denx,u-boot-fdt-dummy";
                        reg = <0 0x0 0x1000>;
+                       reg-names = "sandbox-dummy-0";
                };
 
                dev@1,100 {
                        };
                };
        };
+
+       osd {
+               compatible = "sandbox,sandbox_osd";
+       };
+
+       board {
+               compatible = "sandbox,board_sandbox";
+       };
+
+       sandbox_tee {
+               compatible = "sandbox,tee";
+       };
+
+       sandbox_virtio1 {
+               compatible = "sandbox,virtio1";
+       };
+
+       sandbox_virtio2 {
+               compatible = "sandbox,virtio2";
+       };
+
+       pinctrl {
+               compatible = "sandbox,pinctrl";
+       };
+
+       hwspinlock@0 {
+               compatible = "sandbox,hwspinlock";
+       };
+
+       dma: dma {
+               compatible = "sandbox,dma";
+               #dma-cells = <1>;
+
+               dmas = <&dma 0>, <&dma 1>, <&dma 2>;
+               dma-names = "m2m", "tx0", "rx0";
+       };
 };
 
 #include "sandbox_pmic.dtsi"