arm64: dts: qcom: sm7225-fairphone-fp4: configure flash LED
authorLuca Weiss <luca.weiss@fairphone.com>
Fri, 9 Dec 2022 13:54:08 +0000 (14:54 +0100)
committerBjorn Andersson <andersson@kernel.org>
Wed, 28 Dec 2022 03:29:40 +0000 (21:29 -0600)
Configure the pm6150l flash node for the dual flash LEDs found on FP4.

Signed-off-by: Luca Weiss <luca.weiss@fairphone.com>
Reviewed-by: Konrad Dybcio <konrad.dybcio@linaro.org>
Signed-off-by: Bjorn Andersson <andersson@kernel.org>
Link: https://lore.kernel.org/r/20221209-fp4-pm6150l-flash-v1-3-531521eb2a72@fairphone.com
arch/arm64/boot/dts/qcom/sm7225-fairphone-fp4.dts

index df05e5dc86966297b974a0ebc8fe0018c8f196bd..eb415f2fd6cdd79436626d9693729857a23feeff 100644 (file)
@@ -11,6 +11,7 @@
 #include <dt-bindings/gpio/gpio.h>
 #include <dt-bindings/iio/qcom,spmi-adc7-pmk8350.h>
 #include <dt-bindings/input/input.h>
+#include <dt-bindings/leds/common.h>
 #include <dt-bindings/pinctrl/qcom,pmic-gpio.h>
 #include <dt-bindings/regulator/qcom,rpmh-regulator.h>
 #include "sm7225.dtsi"
        firmware-name = "qcom/sm7225/fairphone4/modem.mdt";
 };
 
+&pm6150l_flash {
+       status = "okay";
+
+       led-0 {
+               function = LED_FUNCTION_FLASH;
+               color = <LED_COLOR_ID_YELLOW>;
+               led-sources = <1>;
+               led-max-microamp = <180000>;
+               flash-max-microamp = <1000000>;
+               flash-max-timeout-us = <1280000>;
+       };
+
+       led-1 {
+               function = LED_FUNCTION_FLASH;
+               color = <LED_COLOR_ID_WHITE>;
+               led-sources = <2>;
+               led-max-microamp = <180000>;
+               flash-max-microamp = <1000000>;
+               flash-max-timeout-us = <1280000>;
+       };
+};
+
 &pm6150l_wled {
        status = "okay";