]> www.infradead.org Git - linux.git/commitdiff
arm64: dts: qcom: sdm670-google-sargo: add flash leds
authorRichard Acayan <mailingradian@gmail.com>
Tue, 12 Nov 2024 02:40:54 +0000 (21:40 -0500)
committerBjorn Andersson <andersson@kernel.org>
Thu, 26 Dec 2024 05:28:33 +0000 (23:28 -0600)
The Pixel 3a has two identical flash LEDs. Add them together.

Signed-off-by: Richard Acayan <mailingradian@gmail.com>
Reviewed-by: Konrad Dybcio <konrad.dybcio@oss.qualcomm.com>
Link: https://lore.kernel.org/r/20241112024050.669578-9-mailingradian@gmail.com
Signed-off-by: Bjorn Andersson <andersson@kernel.org>
arch/arm64/boot/dts/qcom/sdm670-google-sargo.dts

index 176b0119fe6d45d7d3fa584f1825f4e4e681c2e7..800773a676c0ec78019e063d8aa8bc5c9b887916 100644 (file)
@@ -10,6 +10,7 @@
 
 #include <dt-bindings/gpio/gpio.h>
 #include <dt-bindings/input/input.h>
+#include <dt-bindings/leds/common.h>
 #include <dt-bindings/pinctrl/qcom,pmic-gpio.h>
 #include <dt-bindings/power/qcom-rpmpd.h>
 #include "sdm670.dtsi"
        status = "okay";
 };
 
+&pm660l_flash {
+       status = "okay";
+
+       led-0 {
+               function = LED_FUNCTION_FLASH;
+               color = <LED_COLOR_ID_WHITE>;
+               led-sources = <1>, <2>;
+               led-max-microamp = <500000>;
+               flash-max-microamp = <1500000>;
+               flash-max-timeout-us = <1280000>;
+       };
+};
+
 &pm660l_gpios {
        vol_up_pin: vol-up-state {
                pins = "gpio7";