From: Marijn Suijten Date: Wed, 11 May 2022 19:07:18 +0000 (+0200) Subject: arm64: dts: qcom: sdm630-nile: Add RGB status LED on the PM660L LPG X-Git-Tag: v6.6.17~6969^2~14^2~88 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=dd764e1a42367c93d1e8e3f9e1ce08752a6dbac2;p=platform%2Fkernel%2Flinux-rpi.git arm64: dts: qcom: sdm630-nile: Add RGB status LED on the PM660L LPG The entire Sony Nile and Ganges lineup utilize the first three channels (the triled channels) of the LPG block for an RGB (battery) status and notification indicator. Signed-off-by: Marijn Suijten [bjorn: Dropped #address/#size-cells] Signed-off-by: Bjorn Andersson Link: https://lore.kernel.org/r/20220511190718.764445-4-marijn.suijten@somainline.org --- diff --git a/arch/arm64/boot/dts/qcom/sdm630-sony-xperia-nile.dtsi b/arch/arm64/boot/dts/qcom/sdm630-sony-xperia-nile.dtsi index c6a3607..09c0780 100644 --- a/arch/arm64/boot/dts/qcom/sdm630-sony-xperia-nile.dtsi +++ b/arch/arm64/boot/dts/qcom/sdm630-sony-xperia-nile.dtsi @@ -10,6 +10,7 @@ #include #include #include +#include / { /* required for bootloader to select correct board */ @@ -211,6 +212,35 @@ /* HCI Bluetooth */ }; +&pm660l_lpg { + qcom,power-source = <1>; + + status = "okay"; + + multi-led { + color = ; + function = LED_FUNCTION_STATUS; + + #address-cells = <1>; + #size-cells = <0>; + + led@1 { + reg = <1>; + color = ; + }; + + led@2 { + reg = <2>; + color = ; + }; + + led@3 { + reg = <3>; + color = ; + }; + }; +}; + &pon_pwrkey { status = "okay"; };