Commit fe253133 authored by Caesar Wang's avatar Caesar Wang Committed by Heiko Stuebner

ARM: dts: rockchip: add the leds control for rk3036-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: default avatarCaesar Wang <wxt@rock-chips.com>
Signed-off-by: default avatarHeiko Stuebner <heiko@sntech.de>
parent 00f8508b
...@@ -46,6 +46,17 @@ / { ...@@ -46,6 +46,17 @@ / {
model = "Rockchip RK3036 KylinBoard"; model = "Rockchip RK3036 KylinBoard";
compatible = "rockchip,rk3036-kylin", "rockchip,rk3036"; 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>;
};
};
sdio_pwrseq: sdio-pwrseq { sdio_pwrseq: sdio-pwrseq {
compatible = "mmc-pwrseq-simple"; compatible = "mmc-pwrseq-simple";
pinctrl-names = "default"; pinctrl-names = "default";
...@@ -359,6 +370,12 @@ &usb_otg { ...@@ -359,6 +370,12 @@ &usb_otg {
}; };
&pinctrl { &pinctrl {
leds {
led_ctl: led-ctl {
rockchip,pins = <2 30 RK_FUNC_GPIO &pcfg_pull_none>;
};
};
pmic { pmic {
pmic_int: pmic-int { pmic_int: pmic-int {
rockchip,pins = <2 2 RK_FUNC_GPIO &pcfg_pull_default>; rockchip,pins = <2 2 RK_FUNC_GPIO &pcfg_pull_default>;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment