summaryrefslogtreecommitdiff
path: root/arch/arm64/boot/dts/rockchip/rk3399-firefly.dts
diff options
context:
space:
mode:
authorShohei Maruyama <cheat.sc.linux@outlook.com>2018-07-18 14:58:23 +0000
committerHeiko Stuebner <heiko@sntech.de>2018-07-25 12:19:41 +0200
commit0fbfe10fa96b8df44cfb140a6672f9418e16a2a6 (patch)
tree17e1ef95c56ae2a2a5f8c8a492d93f9678dcf674 /arch/arm64/boot/dts/rockchip/rk3399-firefly.dts
parent5b64d06133853ba3cd59fe53a1591943c6e310c3 (diff)
arm64: dts: rockchip: add led support for Firefly-RK3399
This commit adds led support for the Firefly-RK3399. The board has two leds, this commit enables them. Signed-off-by: Shohei Maruyama <cheat.sc.linux@outlook.com> Signed-off-by: Heiko Stuebner <heiko@sntech.de>
Diffstat (limited to 'arch/arm64/boot/dts/rockchip/rk3399-firefly.dts')
-rw-r--r--arch/arm64/boot/dts/rockchip/rk3399-firefly.dts28
1 files changed, 28 insertions, 0 deletions
diff --git a/arch/arm64/boot/dts/rockchip/rk3399-firefly.dts b/arch/arm64/boot/dts/rockchip/rk3399-firefly.dts
index 7ba7d0e04084..38336ab57cc4 100644
--- a/arch/arm64/boot/dts/rockchip/rk3399-firefly.dts
+++ b/arch/arm64/boot/dts/rockchip/rk3399-firefly.dts
@@ -88,6 +88,24 @@
};
};
+ leds {
+ compatible = "gpio-leds";
+ pinctrl-names = "default";
+ pinctrl-0 = <&work_led_gpio>, <&diy_led_gpio>;
+
+ work-led {
+ label = "work";
+ default-state = "on";
+ gpios = <&gpio2 RK_PD3 GPIO_ACTIVE_HIGH>;
+ };
+
+ diy-led {
+ label = "diy";
+ default-state = "off";
+ gpios = <&gpio0 RK_PB5 GPIO_ACTIVE_HIGH>;
+ };
+ };
+
rt5640-sound {
compatible = "simple-audio-card";
simple-audio-card,name = "rockchip,rt5640-codec";
@@ -603,6 +621,16 @@
rockchip,pins = <1 RK_PA0 RK_FUNC_GPIO &pcfg_pull_none>;
};
};
+
+ leds {
+ work_led_gpio: work_led-gpio {
+ rockchip,pins = <2 RK_PD3 RK_FUNC_GPIO &pcfg_pull_none>;
+ };
+
+ diy_led_gpio: diy_led-gpio {
+ rockchip,pins = <0 RK_PB5 RK_FUNC_GPIO &pcfg_pull_none>;
+ };
+ };
};
&pwm0 {