rk3128 & rk3036: add the power led support of box-rk88
authorblb <blb@rock-chips.com>
Thu, 27 Nov 2014 12:40:42 +0000 (20:40 +0800)
committersmj <smj@rock-chips.com>
Thu, 27 Nov 2014 12:46:18 +0000 (20:46 +0800)
Signed-off-by: Bai Longbiao <blb@rock-chips.com>
arch/arm/boot/dts/rk3036-rk88.dts
arch/arm/boot/dts/rk3128-box-rk88.dts

index 40fbeccc67a62fd499e690319856a19a1dcd6c29..6e143149d9a10aacade13bbfcb0926e061a8c987 100755 (executable)
                gpios = <&gpio1 GPIO_A2 GPIO_ACTIVE_LOW>;
        };
 
+       power-led {
+               compatible = "gpio-leds";
+               power {
+                       label = "standby";
+                       gpios = <&gpio1 GPIO_A3 GPIO_ACTIVE_HIGH>;
+                       default-state = "on";
+               };
+       };
+
        wireless-wlan {
                compatible = "wlan-platdata";
 
index 3547bd3af8cfa9a76a63d540a12751dbce5367c3..ede13f97f3a3238a4f0d158bdacbdbdfc02e509e 100755 (executable)
@@ -38,7 +38,7 @@
                status = "okay";
        };
 
-               wireless-bluetooth {
+       wireless-bluetooth {
                compatible = "bluetooth-platdata";
 
                //wifi-bt-power-toggle;
                BT,wake_gpio = <&gpio1 GPIO_B4 GPIO_ACTIVE_HIGH>;
                BT,wake_host_irq = <&gpio0 GPIO_C6 GPIO_ACTIVE_LOW>;
 
-        status = "okay";
-    };
+               status = "okay";
+       };
+
+       power-led {
+               compatible = "gpio-leds";
+               green {
+                       label = "standby";
+                       gpios = <&gpio0 GPIO_B0 GPIO_ACTIVE_HIGH>;
+                       default-state = "on";
+               };
+               red {
+                       label = "normal";
+                       gpios = <&gpio0 GPIO_D2 GPIO_ACTIVE_LOW>;
+                       default-state = "on";
+               };
+       };
+
        rockchip-spdif-card {
                compatible = "rockchip-spdif-card";
                dais {
@@ -64,6 +79,7 @@
                        };
                };
        };
+
        usb_control {
                compatible = "rockchip,rk3126-usb-control";
                host_drv_gpio = <&gpio3 GPIO_C4 GPIO_ACTIVE_LOW>;