From b5b11e096002170badcfdd60143f4ef6af89652c Mon Sep 17 00:00:00 2001 From: blb Date: Thu, 27 Nov 2014 20:40:42 +0800 Subject: [PATCH] rk3128 & rk3036: add the power led support of box-rk88 Signed-off-by: Bai Longbiao --- arch/arm/boot/dts/rk3036-rk88.dts | 9 +++++++++ arch/arm/boot/dts/rk3128-box-rk88.dts | 22 +++++++++++++++++++--- 2 files changed, 28 insertions(+), 3 deletions(-) diff --git a/arch/arm/boot/dts/rk3036-rk88.dts b/arch/arm/boot/dts/rk3036-rk88.dts index 40fbeccc67a6..6e143149d9a1 100755 --- a/arch/arm/boot/dts/rk3036-rk88.dts +++ b/arch/arm/boot/dts/rk3036-rk88.dts @@ -41,6 +41,15 @@ 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"; diff --git a/arch/arm/boot/dts/rk3128-box-rk88.dts b/arch/arm/boot/dts/rk3128-box-rk88.dts index 3547bd3af8cf..ede13f97f3a3 100755 --- a/arch/arm/boot/dts/rk3128-box-rk88.dts +++ b/arch/arm/boot/dts/rk3128-box-rk88.dts @@ -38,7 +38,7 @@ status = "okay"; }; - wireless-bluetooth { + wireless-bluetooth { compatible = "bluetooth-platdata"; //wifi-bt-power-toggle; @@ -53,8 +53,23 @@ 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>; -- 2.34.1