devicetree.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH 0/3] arm64: dts: qcom: Pixel 3a Flash LEDs
@ 2024-11-12  2:40 Richard Acayan
  2024-11-12  2:40 ` [PATCH 1/3] dt-bindings: leds: qcom,spmi-flash-led: add pm660l compatible Richard Acayan
                   ` (3 more replies)
  0 siblings, 4 replies; 8+ messages in thread
From: Richard Acayan @ 2024-11-12  2:40 UTC (permalink / raw)
  To: Pavel Machek, Lee Jones, Rob Herring, Krzysztof Kozlowski,
	Conor Dooley, Bjorn Andersson, Konrad Dybcio, Fenglin Wu,
	linux-arm-msm, linux-leds, devicetree
  Cc: 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

 .../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(+)

-- 
2.47.0


^ permalink raw reply	[flat|nested] 8+ messages in thread

* [PATCH 1/3] dt-bindings: leds: qcom,spmi-flash-led: add pm660l compatible
  2024-11-12  2:40 [PATCH 0/3] arm64: dts: qcom: Pixel 3a Flash LEDs Richard Acayan
@ 2024-11-12  2:40 ` Richard Acayan
  2024-11-12 17:21   ` Rob Herring (Arm)
  2024-12-12 17:34   ` (subset) " Lee Jones
  2024-11-12  2:40 ` [PATCH 2/3] arm64: dts: qcom: pm660l: add flash leds Richard Acayan
                   ` (2 subsequent siblings)
  3 siblings, 2 replies; 8+ messages in thread
From: Richard Acayan @ 2024-11-12  2:40 UTC (permalink / raw)
  To: Pavel Machek, Lee Jones, Rob Herring, Krzysztof Kozlowski,
	Conor Dooley, Bjorn Andersson, Konrad Dybcio, Fenglin Wu,
	linux-arm-msm, linux-leds, devicetree
  Cc: Richard Acayan

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

Signed-off-by: Richard Acayan <mailingradian@gmail.com>
---
 Documentation/devicetree/bindings/leds/qcom,spmi-flash-led.yaml | 1 +
 1 file changed, 1 insertion(+)

diff --git a/Documentation/devicetree/bindings/leds/qcom,spmi-flash-led.yaml b/Documentation/devicetree/bindings/leds/qcom,spmi-flash-led.yaml
index 1ba607685f5f..bcf0ad4ea57e 100644
--- a/Documentation/devicetree/bindings/leds/qcom,spmi-flash-led.yaml
+++ b/Documentation/devicetree/bindings/leds/qcom,spmi-flash-led.yaml
@@ -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
-- 
2.47.0


^ permalink raw reply related	[flat|nested] 8+ messages in thread

* [PATCH 2/3] arm64: dts: qcom: pm660l: add flash leds
  2024-11-12  2:40 [PATCH 0/3] arm64: dts: qcom: Pixel 3a Flash LEDs Richard Acayan
  2024-11-12  2:40 ` [PATCH 1/3] dt-bindings: leds: qcom,spmi-flash-led: add pm660l compatible Richard Acayan
@ 2024-11-12  2:40 ` Richard Acayan
  2024-11-12  2:40 ` [PATCH 3/3] arm64: dts: qcom: sdm670-google-sargo: " Richard Acayan
  2024-12-26 18:26 ` (subset) [PATCH 0/3] arm64: dts: qcom: Pixel 3a Flash LEDs Bjorn Andersson
  3 siblings, 0 replies; 8+ messages in thread
From: Richard Acayan @ 2024-11-12  2:40 UTC (permalink / raw)
  To: Pavel Machek, Lee Jones, Rob Herring, Krzysztof Kozlowski,
	Conor Dooley, Bjorn Andersson, Konrad Dybcio, Fenglin Wu,
	linux-arm-msm, linux-leds, devicetree
  Cc: Richard Acayan

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

Signed-off-by: Richard Acayan <mailingradian@gmail.com>
---
 arch/arm64/boot/dts/qcom/pm660l.dtsi | 6 ++++++
 1 file changed, 6 insertions(+)

diff --git a/arch/arm64/boot/dts/qcom/pm660l.dtsi b/arch/arm64/boot/dts/qcom/pm660l.dtsi
index 0094e0ef058b..3f8b9eafe164 100644
--- a/arch/arm64/boot/dts/qcom/pm660l.dtsi
+++ b/arch/arm64/boot/dts/qcom/pm660l.dtsi
@@ -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>;
-- 
2.47.0


^ permalink raw reply related	[flat|nested] 8+ messages in thread

* [PATCH 3/3] arm64: dts: qcom: sdm670-google-sargo: add flash leds
  2024-11-12  2:40 [PATCH 0/3] arm64: dts: qcom: Pixel 3a Flash LEDs Richard Acayan
  2024-11-12  2:40 ` [PATCH 1/3] dt-bindings: leds: qcom,spmi-flash-led: add pm660l compatible Richard Acayan
  2024-11-12  2:40 ` [PATCH 2/3] arm64: dts: qcom: pm660l: add flash leds Richard Acayan
@ 2024-11-12  2:40 ` Richard Acayan
  2024-11-30 14:37   ` Konrad Dybcio
  2024-12-26 18:26 ` (subset) [PATCH 0/3] arm64: dts: qcom: Pixel 3a Flash LEDs Bjorn Andersson
  3 siblings, 1 reply; 8+ messages in thread
From: Richard Acayan @ 2024-11-12  2:40 UTC (permalink / raw)
  To: Pavel Machek, Lee Jones, Rob Herring, Krzysztof Kozlowski,
	Conor Dooley, Bjorn Andersson, Konrad Dybcio, Fenglin Wu,
	linux-arm-msm, linux-leds, devicetree
  Cc: Richard Acayan

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

Signed-off-by: Richard Acayan <mailingradian@gmail.com>
---
 arch/arm64/boot/dts/qcom/sdm670-google-sargo.dts | 14 ++++++++++++++
 1 file changed, 14 insertions(+)

diff --git a/arch/arm64/boot/dts/qcom/sdm670-google-sargo.dts b/arch/arm64/boot/dts/qcom/sdm670-google-sargo.dts
index 176b0119fe6d..800773a676c0 100644
--- a/arch/arm64/boot/dts/qcom/sdm670-google-sargo.dts
+++ b/arch/arm64/boot/dts/qcom/sdm670-google-sargo.dts
@@ -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";
-- 
2.47.0


^ permalink raw reply related	[flat|nested] 8+ messages in thread

* Re: [PATCH 1/3] dt-bindings: leds: qcom,spmi-flash-led: add pm660l compatible
  2024-11-12  2:40 ` [PATCH 1/3] dt-bindings: leds: qcom,spmi-flash-led: add pm660l compatible Richard Acayan
@ 2024-11-12 17:21   ` Rob Herring (Arm)
  2024-12-12 17:34   ` (subset) " Lee Jones
  1 sibling, 0 replies; 8+ messages in thread
From: Rob Herring (Arm) @ 2024-11-12 17:21 UTC (permalink / raw)
  To: Richard Acayan
  Cc: Konrad Dybcio, Krzysztof Kozlowski, linux-leds, Fenglin Wu,
	Pavel Machek, Lee Jones, Bjorn Andersson, Conor Dooley,
	devicetree, linux-arm-msm


On Mon, 11 Nov 2024 21:40:52 -0500, Richard Acayan wrote:
> Add the compatible for the flash LED controller on the PM660L PMIC.
> 
> Signed-off-by: Richard Acayan <mailingradian@gmail.com>
> ---
>  Documentation/devicetree/bindings/leds/qcom,spmi-flash-led.yaml | 1 +
>  1 file changed, 1 insertion(+)
> 

Acked-by: Rob Herring (Arm) <robh@kernel.org>


^ permalink raw reply	[flat|nested] 8+ messages in thread

* Re: [PATCH 3/3] arm64: dts: qcom: sdm670-google-sargo: add flash leds
  2024-11-12  2:40 ` [PATCH 3/3] arm64: dts: qcom: sdm670-google-sargo: " Richard Acayan
@ 2024-11-30 14:37   ` Konrad Dybcio
  0 siblings, 0 replies; 8+ messages in thread
From: Konrad Dybcio @ 2024-11-30 14:37 UTC (permalink / raw)
  To: Richard Acayan, Pavel Machek, Lee Jones, Rob Herring,
	Krzysztof Kozlowski, Conor Dooley, Bjorn Andersson, Konrad Dybcio,
	Fenglin Wu, linux-arm-msm, linux-leds, devicetree

On 12.11.2024 3:40 AM, Richard Acayan wrote:
> 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>

Konrad

^ permalink raw reply	[flat|nested] 8+ messages in thread

* Re: (subset) [PATCH 1/3] dt-bindings: leds: qcom,spmi-flash-led: add pm660l compatible
  2024-11-12  2:40 ` [PATCH 1/3] dt-bindings: leds: qcom,spmi-flash-led: add pm660l compatible Richard Acayan
  2024-11-12 17:21   ` Rob Herring (Arm)
@ 2024-12-12 17:34   ` Lee Jones
  1 sibling, 0 replies; 8+ messages in thread
From: Lee Jones @ 2024-12-12 17:34 UTC (permalink / raw)
  To: Pavel Machek, Lee Jones, Rob Herring, Krzysztof Kozlowski,
	Conor Dooley, Bjorn Andersson, Konrad Dybcio, Fenglin Wu,
	linux-arm-msm, linux-leds, devicetree, Richard Acayan

On Mon, 11 Nov 2024 21:40:52 -0500, Richard Acayan wrote:
> 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 [李琼斯]


^ permalink raw reply	[flat|nested] 8+ messages in thread

* Re: (subset) [PATCH 0/3] arm64: dts: qcom: Pixel 3a Flash LEDs
  2024-11-12  2:40 [PATCH 0/3] arm64: dts: qcom: Pixel 3a Flash LEDs Richard Acayan
                   ` (2 preceding siblings ...)
  2024-11-12  2:40 ` [PATCH 3/3] arm64: dts: qcom: sdm670-google-sargo: " Richard Acayan
@ 2024-12-26 18:26 ` Bjorn Andersson
  3 siblings, 0 replies; 8+ messages in thread
From: Bjorn Andersson @ 2024-12-26 18:26 UTC (permalink / raw)
  To: Pavel Machek, Lee Jones, Rob Herring, Krzysztof Kozlowski,
	Conor Dooley, Konrad Dybcio, Fenglin Wu, linux-arm-msm,
	linux-leds, devicetree, Richard Acayan


On Mon, 11 Nov 2024 21:40:51 -0500, Richard Acayan wrote:
> 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,
-- 
Bjorn Andersson <andersson@kernel.org>

^ permalink raw reply	[flat|nested] 8+ messages in thread

end of thread, other threads:[~2024-12-26 18:27 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2024-11-12  2:40 [PATCH 0/3] arm64: dts: qcom: Pixel 3a Flash LEDs Richard Acayan
2024-11-12  2:40 ` [PATCH 1/3] dt-bindings: leds: qcom,spmi-flash-led: add pm660l compatible Richard Acayan
2024-11-12 17:21   ` Rob Herring (Arm)
2024-12-12 17:34   ` (subset) " Lee Jones
2024-11-12  2:40 ` [PATCH 2/3] arm64: dts: qcom: pm660l: add flash leds Richard Acayan
2024-11-12  2:40 ` [PATCH 3/3] arm64: dts: qcom: sdm670-google-sargo: " Richard Acayan
2024-11-30 14:37   ` Konrad Dybcio
2024-12-26 18:26 ` (subset) [PATCH 0/3] arm64: dts: qcom: Pixel 3a Flash LEDs Bjorn Andersson

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).