ARM64: dts: rk3399-tve1205g: add leds gpio control
authorZhou weixin <zwx@rock-chips.com>
Thu, 22 Dec 2016 01:27:42 +0000 (09:27 +0800)
committerHuang, Tao <huangtao@rock-chips.com>
Thu, 22 Dec 2016 02:14:31 +0000 (10:14 +0800)
Change-Id: I89b0c1a2ee631b133f81494063b6cb4a57a1daca
Signed-off-by: Zhou weixin <zwx@rock-chips.com>
arch/arm64/boot/dts/rockchip/rk3399-tve1205g.dts

index 1cb199edeb597a5c7576b91021c1883807fcebda..b31e23ffca86f177275230edacadd1d3d8833e1c 100644 (file)
                reset-gpios = <&gpio0 10 GPIO_ACTIVE_LOW>; /* GPIO0_B2 */
        };
 
+       leds: gpio-leds {
+               compatible = "gpio-leds";
+               pinctrl-names = "default";
+               pinctrl-0 =<&leds_gpio>;
+
+               led@1 {
+                       gpios = <&gpio1 GPIO_C6 GPIO_ACTIVE_HIGH>;
+                       label = "battery_led_amber";
+               };
+
+               led@2 {
+                       gpios = <&gpio1 GPIO_D0 GPIO_ACTIVE_HIGH>;
+                       label = "battery_led_white";
+               };
+
+               led@3 {
+                       gpios = <&gpio3 GPIO_A5 GPIO_ACTIVE_HIGH>;
+                       label = "call_answer_led";
+               };
+
+               led@4 {
+                       gpios = <&gpio3 GPIO_B1 GPIO_ACTIVE_HIGH>;
+                       label = "call_decline_led";
+               };
+
+               led@5 {
+                       gpios = <&gpio2 GPIO_D3 GPIO_ACTIVE_HIGH>;
+                       label = "rec_mute_led";
+               };
+
+               led@6 {
+                       gpios = <&gpio2 GPIO_D4 GPIO_ACTIVE_HIGH>;
+                       label = "play_mute_led";
+               };
+
+               led@7 {
+                       gpios = <&gpio4 GPIO_D2 GPIO_ACTIVE_HIGH>;
+                       label = "wl_led";
+               };
+       };
+
        wireless-wlan {
                compatible = "wlan-platdata";
                rockchip,grf = <&grf>;
                };
        };
 
+       gpio-leds {
+               leds_gpio: leds-gpio {
+                       rockchip,pins =
+                               <1 GPIO_C6 RK_FUNC_GPIO &pcfg_pull_up>,
+                               <1 GPIO_D0 RK_FUNC_GPIO &pcfg_pull_up>,
+                               <3 GPIO_A5 RK_FUNC_GPIO &pcfg_pull_up>,
+                               <3 GPIO_B1 RK_FUNC_GPIO &pcfg_pull_up>,
+                               <2 GPIO_D3 RK_FUNC_GPIO &pcfg_pull_up>,
+                               <2 GPIO_D4 RK_FUNC_GPIO &pcfg_pull_up>,
+                               <4 GPIO_D2 RK_FUNC_GPIO &pcfg_pull_up>;
+               };
+       };
+
        usb2 {
                host_vbus_drv: host-vbus-drv {
                        rockchip,pins =