aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCaesar Wang <wxt@rock-chips.com>2016-01-27 10:46:20 +0800
committerLeo Wang <leozwang@google.com>2016-01-28 00:25:02 +0000
commitd33eaeee8302af124b34eff39458d3471c23bf7a (patch)
tree86288a97b3149b5de1776461f5b498884fd44b81
parent19754990c409d2fb5e0d4c1fee59a84705d5dc08 (diff)
downloadv4.1-d33eaeee8302af124b34eff39458d3471c23bf7a.tar.gz
FROMLIST: ARM: dts: rockchip: add the leds control for kylin board
As the kylin schematic drawing, add the needed work led for kylin board. Run: echo 0 > /sys/class/leds/kylin:red:led/brightness echo 1 > /sys/class/leds/kylin:red:led/brightness The led can normal on/off on kylin board. Signed-off-by: Caesar Wang <wxt@rock-chips.com> Bug: 25923642 Patchset: Leds can be controled on rk3036 kylin. (am https://patchwork.kernel.org/patch/8129971/) Signed-off-by: Caesar Wang <wxt@rock-chips.com> Change-Id: I2911be574045d1a182b47c88401b7c685ea05176
-rw-r--r--arch/arm/boot/dts/rk3036-kylin.dts17
1 files changed, 17 insertions, 0 deletions
diff --git a/arch/arm/boot/dts/rk3036-kylin.dts b/arch/arm/boot/dts/rk3036-kylin.dts
index 97a3444132d..1c55b917fab 100644
--- a/arch/arm/boot/dts/rk3036-kylin.dts
+++ b/arch/arm/boot/dts/rk3036-kylin.dts
@@ -46,6 +46,17 @@
model = "Rockchip RK3036 KylinBoard";
compatible = "rockchip,rk3036-kylin", "rockchip,rk3036";
+ leds: gpio-leds {
+ compatible = "gpio-leds";
+
+ work {
+ gpios = <&gpio2 30 GPIO_ACTIVE_HIGH>;
+ label = "kylin:red:led";
+ pinctrl-names = "default";
+ pinctrl-0 = <&led_ctl>;
+ };
+ };
+
sound {
compatible = "simple-audio-card";
simple-audio-card,format = "i2s";
@@ -413,6 +424,12 @@
};
};
+ leds {
+ led_ctl: led-ctl {
+ rockchip,pins = <2 30 RK_FUNC_GPIO &pcfg_pull_none>;
+ };
+ };
+
pmic {
pmic_int: pmic-int {
rockchip,pins = <2 2 RK_FUNC_GPIO &pcfg_pull_default>;