From: Luca Weiss Date: Fri, 9 Dec 2022 13:54:08 +0000 (+0100) Subject: arm64: dts: qcom: sm7225-fairphone-fp4: configure flash LED X-Git-Tag: v6.3-rc1~202^2~45^2~282 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=1c170714490e4d8c0886019145c9d90dfade14f9;p=thirdparty%2Fkernel%2Flinux.git arm64: dts: qcom: sm7225-fairphone-fp4: configure flash LED Configure the pm6150l flash node for the dual flash LEDs found on FP4. Signed-off-by: Luca Weiss Reviewed-by: Konrad Dybcio Signed-off-by: Bjorn Andersson Link: https://lore.kernel.org/r/20221209-fp4-pm6150l-flash-v1-3-531521eb2a72@fairphone.com --- diff --git a/arch/arm64/boot/dts/qcom/sm7225-fairphone-fp4.dts b/arch/arm64/boot/dts/qcom/sm7225-fairphone-fp4.dts index df05e5dc86966..eb415f2fd6cdd 100644 --- a/arch/arm64/boot/dts/qcom/sm7225-fairphone-fp4.dts +++ b/arch/arm64/boot/dts/qcom/sm7225-fairphone-fp4.dts @@ -11,6 +11,7 @@ #include #include #include +#include #include #include #include "sm7225.dtsi" @@ -372,6 +373,28 @@ firmware-name = "qcom/sm7225/fairphone4/modem.mdt"; }; +&pm6150l_flash { + status = "okay"; + + led-0 { + function = LED_FUNCTION_FLASH; + color = ; + led-sources = <1>; + led-max-microamp = <180000>; + flash-max-microamp = <1000000>; + flash-max-timeout-us = <1280000>; + }; + + led-1 { + function = LED_FUNCTION_FLASH; + color = ; + led-sources = <2>; + led-max-microamp = <180000>; + flash-max-microamp = <1000000>; + flash-max-timeout-us = <1280000>; + }; +}; + &pm6150l_wled { status = "okay";