Skip to contentSkip to conversation

arm64: dts: qcom: Pixel 3a Flash LEDs

PATCH Applied Richard Acayan 5 participants 8 messages Nov 12, 2024 – Dec 26, 2024

Subsystems (4)
lore
Share & tools
lore
#0 lore raw

cover arm64: dts: qcom: Pixel 3a Flash LEDs

This adds support for the flash LEDs on PM660L and enables it on the Pixel 3a as an initial user.

Richard Acayan (3):
dt-bindings: leds: qcom,spmi-flash-led: add pm660l compatible
arm64: dts: qcom: pm660l: add flash leds
arm64: dts: qcom: sdm670-google-sargo: add flash leds

 .../bindings/leds/qcom,spmi-flash-led.yaml         |  1 +
 arch/arm64/boot/dts/qcom/pm660l.dtsi               |  6 ++++++
 arch/arm64/boot/dts/qcom/sdm670-google-sargo.dts   | 14 ++++++++++++++
 3 files changed, 21 insertions(+)
Signature · 1 line
2.47.0
#1 lore raw

PATCH 1/3 dt-bindings: leds: qcom,spmi-flash-led: add pm660l compatible

Add the compatible for the flash LED controller on the PM660L PMIC.

---
 Documentation/devicetree/bindings/leds/qcom,spmi-flash-led.yaml | 1 +
 1 file changed, 1 insertion(+)
Documentation/devicetree/bindings/leds/qcom,spmi-flash-led.yaml +1 -0
index 1ba607685f5f..bcf0ad4ea57e 100644
@@ -23,6 +23,7 @@ properties:
     items:
       - enum:
           - qcom,pm6150l-flash-led
+          - qcom,pm660l-flash-led
           - qcom,pm8150c-flash-led
           - qcom,pm8150l-flash-led
           - qcom,pm8350c-flash-led
Signature · 1 line
2.47.0
maintainer Applied
#3 lore raw

Re: (subset) [PATCH 1/3] dt-bindings: leds: qcom,spmi-flash-led: add pm660l compatible

In reply to Richard Acayan
Quoted 3 lines · Richard Acayan

Add the compatible for the flash LED controller on the PM660L PMIC.

Applied, thanks!

[1/3] dt-bindings: leds: qcom,spmi-flash-led: add pm660l compatible

      commit: a1234b215538279c8520481f6d539f1582bd17d8

--
Lee Jones [李琼斯]

#4 lore raw

PATCH 2/3 arm64: dts: qcom: pm660l: add flash leds

In reply to Richard Acayan

The PM660L has support for QPNP flash LEDs. Add them to the device tree.

---
 arch/arm64/boot/dts/qcom/pm660l.dtsi | 6 ++++++
 1 file changed, 6 insertions(+)
arch/arm64/boot/dts/qcom/pm660l.dtsi +6 -0
index 0094e0ef058b..3f8b9eafe164 100644
@@ -70,6 +70,12 @@ pm660l_lpg: pwm {
 			status = "disabled";
 		};
 
+		pm660l_flash: led-controller@d300 {
+			compatible = "qcom,pm660l-flash-led", "qcom,spmi-flash-led";
+			reg = <0xd300>;
+			status = "disabled";
+		};
+
 		pm660l_wled: leds@d800 {
 			compatible = "qcom,pm660l-wled";
 			reg = <0xd800>, <0xd900>;
Signature · 1 line
2.47.0
#5 lore raw

PATCH 3/3 arm64: dts: qcom: sdm670-google-sargo: add flash leds

In reply to Richard Acayan

The Pixel 3a has two identical flash LEDs. Add them together.

---
 arch/arm64/boot/dts/qcom/sdm670-google-sargo.dts | 14 ++++++++++++++
 1 file changed, 14 insertions(+)
arch/arm64/boot/dts/qcom/sdm670-google-sargo.dts +14 -0
index 176b0119fe6d..800773a676c0 100644
@@ -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"
@@ -482,6 +483,19 @@ &mdss_mdp {
 	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";
Signature · 1 line
2.47.0
maintainer Applied
#7 lore raw

Re: (subset) [PATCH 0/3] arm64: dts: qcom: Pixel 3a Flash LEDs

In reply to Richard Acayan
Quoted 9 lines · Richard Acayan

This adds support for the flash LEDs on PM660L and enables it on the Pixel 3a as an initial user.

Richard Acayan (3):
dt-bindings: leds: qcom,spmi-flash-led: add pm660l compatible
arm64: dts: qcom: pm660l: add flash leds
arm64: dts: qcom: sdm670-google-sargo: add flash leds

[...]

Applied, thanks!

[2/3] arm64: dts: qcom: pm660l: add flash leds

      commit: 9b2955bae7025190c8d15983b37554da96e43e21
[3/3] arm64: dts: qcom: sdm670-google-sargo: add flash leds
      commit: 44d2a252698effd2f247a31492c10e1290903474

Best regards,

Signature · 1 line
Bjorn Andersson <[email protected]>