From: Dmitry Baryshkov Date: Thu, 5 May 2022 14:51:02 +0000 (+0300) Subject: arm64: dts: qcom: qrb5165-rb5: declare tri-led user leds X-Git-Url: http://git.maquefel.me/?a=commitdiff_plain;h=bf3708c6734a4bc8e9c538fa586d798c4768bf3f;p=linux.git arm64: dts: qcom: qrb5165-rb5: declare tri-led user leds Qualcomm RB5 platform uses Light Pulse Generator tri-led block to drive three green leds. Add device nodes defining those leds. Signed-off-by: Dmitry Baryshkov Signed-off-by: Bjorn Andersson Link: https://lore.kernel.org/r/20220505145102.1432670-4-dmitry.baryshkov@linaro.org --- diff --git a/arch/arm64/boot/dts/qcom/qrb5165-rb5.dts b/arch/arm64/boot/dts/qcom/qrb5165-rb5.dts index b4bbb42b4aca6..744ce2e11844b 100644 --- a/arch/arm64/boot/dts/qcom/qrb5165-rb5.dts +++ b/arch/arm64/boot/dts/qcom/qrb5165-rb5.dts @@ -5,6 +5,7 @@ /dts-v1/; +#include #include #include #include @@ -806,6 +807,35 @@ }; }; +&pm8150l_lpg { + status = "okay"; + + led@1 { + reg = <1>; + color = ; + function = LED_FUNCTION_HEARTBEAT; + function-enumerator = <3>; + + linux,default-trigger = "heartbeat"; + default-state = "on"; + }; + + led@2 { + reg = <2>; + color = ; + function = LED_FUNCTION_INDICATOR; + function-enumerator = <2>; + default-state = "on"; + }; + + led@3 { + reg = <3>; + color = ; + function = LED_FUNCTION_INDICATOR; + function-enumerator = <1>; + }; +}; + &pon_pwrkey { status = "okay"; };