From ceaaf760e6fe0c8bbcfdf1571081c526e2c79a5f Mon Sep 17 00:00:00 2001 From: Weixin Zhou Date: Tue, 12 Jan 2021 21:49:06 +0800 Subject: [PATCH] arm64: dts: rockchip: rk3566-rk817-eink-w6: add charger leds Signed-off-by: Weixin Zhou Change-Id: Id2edd426c626b8cc9e3d86626f9e9dc766f91ff6 --- .../dts/rockchip/rk3566-rk817-eink-w6.dts | 28 +++++++++++++++++++ 1 file changed, 28 insertions(+) diff --git a/arch/arm64/boot/dts/rockchip/rk3566-rk817-eink-w6.dts b/arch/arm64/boot/dts/rockchip/rk3566-rk817-eink-w6.dts index dc7c2459153e..6d3af59c8706 100644 --- a/arch/arm64/boot/dts/rockchip/rk3566-rk817-eink-w6.dts +++ b/arch/arm64/boot/dts/rockchip/rk3566-rk817-eink-w6.dts @@ -59,6 +59,26 @@ }; }; + leds: gpio-leds { + compatible = "gpio-leds"; + pinctrl-names = "default"; + pinctrl-0 =<&leds_gpio>; + + led@1 { + gpios = <&gpio3 RK_PC4 GPIO_ACTIVE_HIGH>; + linux,default-trigger = "battery-full"; + label = "battery_full"; + retain-state-suspended; + }; + + led@2 { + gpios = <&gpio3 RK_PC5 GPIO_ACTIVE_HIGH>; + linux,default-trigger = "battery-charging"; + label = "battery_charging"; + retain-state-suspended; + }; + }; + vccsys: vccsys { compatible = "regulator-fixed"; regulator-name = "vcc3v8_sys"; @@ -651,6 +671,14 @@ }; }; + leds { + leds_gpio: leds-gpio { + rockchip,pins = + <0 RK_PC4 RK_FUNC_1 &pcfg_pull_none>, + <0 RK_PC5 RK_FUNC_1 &pcfg_pull_none>; + }; + }; + tps_pmic { tps65185_gpio: tps65185-gpio { rockchip,pins =