Merge tag 'dm-9oct18' of git://git.denx.de/u-boot-dm
[platform/kernel/u-boot.git] / arch / sandbox / dts / test.dts
index ad94901..420b72f 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";
                osd0 = "/osd";
        };
 
+       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 {
                reg = <0 1>;
                compatible = "denx,u-boot-fdt-test";
                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";
                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";
        };