linux-leds.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH 1/3] dt-bindings: leds: qcom,spmi-flash-led: add PM8550
@ 2023-05-16 15:02 Krzysztof Kozlowski
  2023-05-16 15:02 ` [PATCH 2/3] arm64: dts: qcom: pm8550: add flash LED controller Krzysztof Kozlowski
                   ` (5 more replies)
  0 siblings, 6 replies; 10+ messages in thread
From: Krzysztof Kozlowski @ 2023-05-16 15:02 UTC (permalink / raw)
  To: Andy Gross, Bjorn Andersson, Konrad Dybcio, Pavel Machek,
	Lee Jones, Rob Herring, Krzysztof Kozlowski, Conor Dooley,
	Fenglin Wu, linux-arm-msm, linux-leds, devicetree, linux-kernel
  Cc: Neil Armstrong, Signed-off-by : Abel Vesa, Krzysztof Kozlowski

Document compatible for PM8550 Torch and Flash LED controller.

Signed-off-by: Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org>
---
 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 ffacf703d9f9..074ef7e63c49 100644
--- a/Documentation/devicetree/bindings/leds/qcom,spmi-flash-led.yaml
+++ b/Documentation/devicetree/bindings/leds/qcom,spmi-flash-led.yaml
@@ -26,6 +26,7 @@ properties:
           - qcom,pm8150c-flash-led
           - qcom,pm8150l-flash-led
           - qcom,pm8350c-flash-led
+          - qcom,pm8550-flash-led
       - const: qcom,spmi-flash-led
 
   reg:
-- 
2.34.1


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

* [PATCH 2/3] arm64: dts: qcom: pm8550: add flash LED controller
  2023-05-16 15:02 [PATCH 1/3] dt-bindings: leds: qcom,spmi-flash-led: add PM8550 Krzysztof Kozlowski
@ 2023-05-16 15:02 ` Krzysztof Kozlowski
  2023-05-17 19:17   ` Konrad Dybcio
  2023-05-16 15:02 ` [PATCH 3/3] arm64: dts: qcom: sm8550-qrd: add flash LEDs Krzysztof Kozlowski
                   ` (4 subsequent siblings)
  5 siblings, 1 reply; 10+ messages in thread
From: Krzysztof Kozlowski @ 2023-05-16 15:02 UTC (permalink / raw)
  To: Andy Gross, Bjorn Andersson, Konrad Dybcio, Pavel Machek,
	Lee Jones, Rob Herring, Krzysztof Kozlowski, Conor Dooley,
	Fenglin Wu, linux-arm-msm, linux-leds, devicetree, linux-kernel
  Cc: Neil Armstrong, Signed-off-by : Abel Vesa, Krzysztof Kozlowski

Add node for PM8550 PMIC flash LED controller.

Signed-off-by: Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org>
---
 arch/arm64/boot/dts/qcom/pm8550.dtsi | 6 ++++++
 1 file changed, 6 insertions(+)

diff --git a/arch/arm64/boot/dts/qcom/pm8550.dtsi b/arch/arm64/boot/dts/qcom/pm8550.dtsi
index 46396ec1a330..33f357a80636 100644
--- a/arch/arm64/boot/dts/qcom/pm8550.dtsi
+++ b/arch/arm64/boot/dts/qcom/pm8550.dtsi
@@ -55,5 +55,11 @@ pm8550_gpios: gpio@8800 {
 			interrupt-controller;
 			#interrupt-cells = <2>;
 		};
+
+		pm8550_flash: led-controller@ee00 {
+			compatible = "qcom,pm8550-flash-led", "qcom,spmi-flash-led";
+			reg = <0xee00>;
+			status = "disabled";
+		};
 	};
 };
-- 
2.34.1


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

* [PATCH 3/3] arm64: dts: qcom: sm8550-qrd: add flash LEDs
  2023-05-16 15:02 [PATCH 1/3] dt-bindings: leds: qcom,spmi-flash-led: add PM8550 Krzysztof Kozlowski
  2023-05-16 15:02 ` [PATCH 2/3] arm64: dts: qcom: pm8550: add flash LED controller Krzysztof Kozlowski
@ 2023-05-16 15:02 ` Krzysztof Kozlowski
  2023-05-17 19:18   ` Konrad Dybcio
  2023-05-16 17:31 ` [PATCH 1/3] dt-bindings: leds: qcom,spmi-flash-led: add PM8550 Conor Dooley
                   ` (3 subsequent siblings)
  5 siblings, 1 reply; 10+ messages in thread
From: Krzysztof Kozlowski @ 2023-05-16 15:02 UTC (permalink / raw)
  To: Andy Gross, Bjorn Andersson, Konrad Dybcio, Pavel Machek,
	Lee Jones, Rob Herring, Krzysztof Kozlowski, Conor Dooley,
	Fenglin Wu, linux-arm-msm, linux-leds, devicetree, linux-kernel
  Cc: Neil Armstrong, Signed-off-by : Abel Vesa, Krzysztof Kozlowski

Enable PM8550 PMIC flash LED controller and add two flash LEDs using
four current outputs.

Signed-off-by: Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org>

---

Context in the patch depends on:
https://lore.kernel.org/linux-arm-msm/20230516133011.108093-1-krzysztof.kozlowski@linaro.org/T/#t
---
 arch/arm64/boot/dts/qcom/sm8550-qrd.dts | 25 +++++++++++++++++++++++++
 1 file changed, 25 insertions(+)

diff --git a/arch/arm64/boot/dts/qcom/sm8550-qrd.dts b/arch/arm64/boot/dts/qcom/sm8550-qrd.dts
index 88b7d3ecdbc9..30b36a149125 100644
--- a/arch/arm64/boot/dts/qcom/sm8550-qrd.dts
+++ b/arch/arm64/boot/dts/qcom/sm8550-qrd.dts
@@ -5,6 +5,7 @@
 
 /dts-v1/;
 
+#include <dt-bindings/leds/common.h>
 #include <dt-bindings/regulator/qcom,rpmh-regulator.h>
 #include "sm8550.dtsi"
 #include "pm8010.dtsi"
@@ -451,6 +452,30 @@ &pcie0_phy {
 	status = "okay";
 };
 
+&pm8550_flash {
+	status = "okay";
+
+	led-0 {
+		function = LED_FUNCTION_FLASH;
+		color = <LED_COLOR_ID_YELLOW>;
+		led-sources = <1>, <4>;
+		led-max-microamp = <500000>;
+		flash-max-microamp = <2000000>;
+		flash-max-timeout-us = <1280000>;
+		function-enumerator = <0>;
+	};
+
+	led-1 {
+		function = LED_FUNCTION_FLASH;
+		color = <LED_COLOR_ID_WHITE>;
+		led-sources = <2>, <3>;
+		led-max-microamp = <500000>;
+		flash-max-microamp = <2000000>;
+		flash-max-timeout-us = <1280000>;
+		function-enumerator = <1>;
+	};
+};
+
 &pm8550b_eusb2_repeater {
 	vdd18-supply = <&vreg_l15b_1p8>;
 	vdd3-supply = <&vreg_l5b_3p1>;
-- 
2.34.1


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

* Re: [PATCH 1/3] dt-bindings: leds: qcom,spmi-flash-led: add PM8550
  2023-05-16 15:02 [PATCH 1/3] dt-bindings: leds: qcom,spmi-flash-led: add PM8550 Krzysztof Kozlowski
  2023-05-16 15:02 ` [PATCH 2/3] arm64: dts: qcom: pm8550: add flash LED controller Krzysztof Kozlowski
  2023-05-16 15:02 ` [PATCH 3/3] arm64: dts: qcom: sm8550-qrd: add flash LEDs Krzysztof Kozlowski
@ 2023-05-16 17:31 ` Conor Dooley
  2023-05-17 19:19 ` Konrad Dybcio
                   ` (2 subsequent siblings)
  5 siblings, 0 replies; 10+ messages in thread
From: Conor Dooley @ 2023-05-16 17:31 UTC (permalink / raw)
  To: Krzysztof Kozlowski
  Cc: Andy Gross, Bjorn Andersson, Konrad Dybcio, Pavel Machek,
	Lee Jones, Rob Herring, Krzysztof Kozlowski, Conor Dooley,
	Fenglin Wu, linux-arm-msm, linux-leds, devicetree, linux-kernel,
	Neil Armstrong, Signed-off-by : Abel Vesa

[-- Attachment #1: Type: text/plain, Size: 285 bytes --]

On Tue, May 16, 2023 at 05:02:00PM +0200, Krzysztof Kozlowski wrote:
> Document compatible for PM8550 Torch and Flash LED controller.
> 
> Signed-off-by: Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org>

Acked-by: Conor Dooley <conor.dooley@microchip.com>

Thanks,
Conor.

[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 228 bytes --]

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

* Re: [PATCH 2/3] arm64: dts: qcom: pm8550: add flash LED controller
  2023-05-16 15:02 ` [PATCH 2/3] arm64: dts: qcom: pm8550: add flash LED controller Krzysztof Kozlowski
@ 2023-05-17 19:17   ` Konrad Dybcio
  0 siblings, 0 replies; 10+ messages in thread
From: Konrad Dybcio @ 2023-05-17 19:17 UTC (permalink / raw)
  To: Krzysztof Kozlowski, Andy Gross, Bjorn Andersson, Pavel Machek,
	Lee Jones, Rob Herring, Krzysztof Kozlowski, Conor Dooley,
	Fenglin Wu, linux-arm-msm, linux-leds, devicetree, linux-kernel
  Cc: Neil Armstrong, Signed-off-by : Abel Vesa



On 16.05.2023 17:02, Krzysztof Kozlowski wrote:
> Add node for PM8550 PMIC flash LED controller.
> 
> Signed-off-by: Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org>
> ---
Reviewed-by: Konrad Dybcio <konrad.dybcio@linaro.org>

Konrad
>  arch/arm64/boot/dts/qcom/pm8550.dtsi | 6 ++++++
>  1 file changed, 6 insertions(+)
> 
> diff --git a/arch/arm64/boot/dts/qcom/pm8550.dtsi b/arch/arm64/boot/dts/qcom/pm8550.dtsi
> index 46396ec1a330..33f357a80636 100644
> --- a/arch/arm64/boot/dts/qcom/pm8550.dtsi
> +++ b/arch/arm64/boot/dts/qcom/pm8550.dtsi
> @@ -55,5 +55,11 @@ pm8550_gpios: gpio@8800 {
>  			interrupt-controller;
>  			#interrupt-cells = <2>;
>  		};
> +
> +		pm8550_flash: led-controller@ee00 {
> +			compatible = "qcom,pm8550-flash-led", "qcom,spmi-flash-led";
> +			reg = <0xee00>;
> +			status = "disabled";
> +		};
>  	};
>  };

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

* Re: [PATCH 3/3] arm64: dts: qcom: sm8550-qrd: add flash LEDs
  2023-05-16 15:02 ` [PATCH 3/3] arm64: dts: qcom: sm8550-qrd: add flash LEDs Krzysztof Kozlowski
@ 2023-05-17 19:18   ` Konrad Dybcio
  0 siblings, 0 replies; 10+ messages in thread
From: Konrad Dybcio @ 2023-05-17 19:18 UTC (permalink / raw)
  To: Krzysztof Kozlowski, Andy Gross, Bjorn Andersson, Pavel Machek,
	Lee Jones, Rob Herring, Krzysztof Kozlowski, Conor Dooley,
	Fenglin Wu, linux-arm-msm, linux-leds, devicetree, linux-kernel
  Cc: Neil Armstrong, Signed-off-by : Abel Vesa



On 16.05.2023 17:02, Krzysztof Kozlowski wrote:
> Enable PM8550 PMIC flash LED controller and add two flash LEDs using
> four current outputs.
> 
> Signed-off-by: Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org>
> 
> ---
> 
> Context in the patch depends on:
> https://lore.kernel.org/linux-arm-msm/20230516133011.108093-1-krzysztof.kozlowski@linaro.org/T/#t
> ---
>  arch/arm64/boot/dts/qcom/sm8550-qrd.dts | 25 +++++++++++++++++++++++++
>  1 file changed, 25 insertions(+)
> 
> diff --git a/arch/arm64/boot/dts/qcom/sm8550-qrd.dts b/arch/arm64/boot/dts/qcom/sm8550-qrd.dts
> index 88b7d3ecdbc9..30b36a149125 100644
> --- a/arch/arm64/boot/dts/qcom/sm8550-qrd.dts
> +++ b/arch/arm64/boot/dts/qcom/sm8550-qrd.dts
> @@ -5,6 +5,7 @@
>  
>  /dts-v1/;
>  
> +#include <dt-bindings/leds/common.h>
>  #include <dt-bindings/regulator/qcom,rpmh-regulator.h>
>  #include "sm8550.dtsi"
>  #include "pm8010.dtsi"
> @@ -451,6 +452,30 @@ &pcie0_phy {
>  	status = "okay";
>  };
>  
> +&pm8550_flash {
> +	status = "okay";
> +
> +	led-0 {
> +		function = LED_FUNCTION_FLASH;
> +		color = <LED_COLOR_ID_YELLOW>;
> +		led-sources = <1>, <4>;
> +		led-max-microamp = <500000>;
> +		flash-max-microamp = <2000000>;
That's some serious LEDs!

Reviewed-by: Konrad Dybcio <konrad.dybcio@linaro.org>

Konrad
> +		flash-max-timeout-us = <1280000>;
> +		function-enumerator = <0>;
> +	};
> +
> +	led-1 {
> +		function = LED_FUNCTION_FLASH;
> +		color = <LED_COLOR_ID_WHITE>;
> +		led-sources = <2>, <3>;
> +		led-max-microamp = <500000>;
> +		flash-max-microamp = <2000000>;
> +		flash-max-timeout-us = <1280000>;
> +		function-enumerator = <1>;
> +	};
> +};
> +
>  &pm8550b_eusb2_repeater {
>  	vdd18-supply = <&vreg_l15b_1p8>;
>  	vdd3-supply = <&vreg_l5b_3p1>;

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

* Re: [PATCH 1/3] dt-bindings: leds: qcom,spmi-flash-led: add PM8550
  2023-05-16 15:02 [PATCH 1/3] dt-bindings: leds: qcom,spmi-flash-led: add PM8550 Krzysztof Kozlowski
                   ` (2 preceding siblings ...)
  2023-05-16 17:31 ` [PATCH 1/3] dt-bindings: leds: qcom,spmi-flash-led: add PM8550 Conor Dooley
@ 2023-05-17 19:19 ` Konrad Dybcio
  2023-05-18  8:48   ` Lee Jones
  2023-05-25  4:54 ` (subset) " Bjorn Andersson
  2023-05-25 11:47 ` Lee Jones
  5 siblings, 1 reply; 10+ messages in thread
From: Konrad Dybcio @ 2023-05-17 19:19 UTC (permalink / raw)
  To: Krzysztof Kozlowski, Andy Gross, Bjorn Andersson, Pavel Machek,
	Lee Jones, Rob Herring, Krzysztof Kozlowski, Conor Dooley,
	Fenglin Wu, linux-arm-msm, linux-leds, devicetree, linux-kernel
  Cc: Neil Armstrong, Signed-off-by : Abel Vesa



On 16.05.2023 17:02, Krzysztof Kozlowski wrote:
> Document compatible for PM8550 Torch and Flash LED controller.
> 
> Signed-off-by: Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org>
> ---
Acked-by: Konrad Dybcio <konrad.dybcio@linaro.org>

Konrad
>  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 ffacf703d9f9..074ef7e63c49 100644
> --- a/Documentation/devicetree/bindings/leds/qcom,spmi-flash-led.yaml
> +++ b/Documentation/devicetree/bindings/leds/qcom,spmi-flash-led.yaml
> @@ -26,6 +26,7 @@ properties:
>            - qcom,pm8150c-flash-led
>            - qcom,pm8150l-flash-led
>            - qcom,pm8350c-flash-led
> +          - qcom,pm8550-flash-led
>        - const: qcom,spmi-flash-led
>  
>    reg:

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

* Re: [PATCH 1/3] dt-bindings: leds: qcom,spmi-flash-led: add PM8550
  2023-05-17 19:19 ` Konrad Dybcio
@ 2023-05-18  8:48   ` Lee Jones
  0 siblings, 0 replies; 10+ messages in thread
From: Lee Jones @ 2023-05-18  8:48 UTC (permalink / raw)
  To: Konrad Dybcio
  Cc: Krzysztof Kozlowski, Andy Gross, Bjorn Andersson, Pavel Machek,
	Rob Herring, Krzysztof Kozlowski, Conor Dooley, Fenglin Wu,
	linux-arm-msm, linux-leds, devicetree, linux-kernel,
	Neil Armstrong, Signed-off-by : Abel Vesa

On Wed, 17 May 2023, Konrad Dybcio wrote:

> 
> 
> On 16.05.2023 17:02, Krzysztof Kozlowski wrote:
> > Document compatible for PM8550 Torch and Flash LED controller.
> > 
> > Signed-off-by: Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org>
> > ---
> Acked-by: Konrad Dybcio <konrad.dybcio@linaro.org>

This should be a Reviewed-by.

Other maintainers might get confused by this and apply the patch via
their own repositories which I'm assuming was not the intention.

> >  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 ffacf703d9f9..074ef7e63c49 100644
> > --- a/Documentation/devicetree/bindings/leds/qcom,spmi-flash-led.yaml
> > +++ b/Documentation/devicetree/bindings/leds/qcom,spmi-flash-led.yaml
> > @@ -26,6 +26,7 @@ properties:
> >            - qcom,pm8150c-flash-led
> >            - qcom,pm8150l-flash-led
> >            - qcom,pm8350c-flash-led
> > +          - qcom,pm8550-flash-led
> >        - const: qcom,spmi-flash-led
> >  
> >    reg:

-- 
Lee Jones [李琼斯]

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

* Re: (subset) [PATCH 1/3] dt-bindings: leds: qcom,spmi-flash-led: add PM8550
  2023-05-16 15:02 [PATCH 1/3] dt-bindings: leds: qcom,spmi-flash-led: add PM8550 Krzysztof Kozlowski
                   ` (3 preceding siblings ...)
  2023-05-17 19:19 ` Konrad Dybcio
@ 2023-05-25  4:54 ` Bjorn Andersson
  2023-05-25 11:47 ` Lee Jones
  5 siblings, 0 replies; 10+ messages in thread
From: Bjorn Andersson @ 2023-05-25  4:54 UTC (permalink / raw)
  To: Krzysztof Kozlowski, Lee Jones, linux-kernel, linux-arm-msm,
	Konrad Dybcio, devicetree, Pavel Machek, Fenglin Wu, Rob Herring,
	Andy Gross, linux-leds, Krzysztof Kozlowski, Conor Dooley
  Cc: Signed-off-by : Abel Vesa, Neil Armstrong

On Tue, 16 May 2023 17:02:00 +0200, Krzysztof Kozlowski wrote:
> Document compatible for PM8550 Torch and Flash LED controller.
> 
> 

Applied, thanks!

[2/3] arm64: dts: qcom: pm8550: add flash LED controller
      commit: cf51d2be057b19f2ef72233788c3211f0781678d
[3/3] arm64: dts: qcom: sm8550-qrd: add flash LEDs
      commit: a158f00cdf68852850df231526ce0df0bb7dc1b4

Best regards,
-- 
Bjorn Andersson <andersson@kernel.org>

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

* Re: [PATCH 1/3] dt-bindings: leds: qcom,spmi-flash-led: add PM8550
  2023-05-16 15:02 [PATCH 1/3] dt-bindings: leds: qcom,spmi-flash-led: add PM8550 Krzysztof Kozlowski
                   ` (4 preceding siblings ...)
  2023-05-25  4:54 ` (subset) " Bjorn Andersson
@ 2023-05-25 11:47 ` Lee Jones
  5 siblings, 0 replies; 10+ messages in thread
From: Lee Jones @ 2023-05-25 11:47 UTC (permalink / raw)
  To: Krzysztof Kozlowski
  Cc: Andy Gross, Bjorn Andersson, Konrad Dybcio, Pavel Machek,
	Rob Herring, Krzysztof Kozlowski, Conor Dooley, Fenglin Wu,
	linux-arm-msm, linux-leds, devicetree, linux-kernel,
	Neil Armstrong, Signed-off-by : Abel Vesa

On Tue, 16 May 2023, Krzysztof Kozlowski wrote:

> Document compatible for PM8550 Torch and Flash LED controller.
> 
> Signed-off-by: Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org>
> ---
>  Documentation/devicetree/bindings/leds/qcom,spmi-flash-led.yaml | 1 +
>  1 file changed, 1 insertion(+)

Applied, thanks

-- 
Lee Jones [李琼斯]

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

end of thread, other threads:[~2023-05-25 11:47 UTC | newest]

Thread overview: 10+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2023-05-16 15:02 [PATCH 1/3] dt-bindings: leds: qcom,spmi-flash-led: add PM8550 Krzysztof Kozlowski
2023-05-16 15:02 ` [PATCH 2/3] arm64: dts: qcom: pm8550: add flash LED controller Krzysztof Kozlowski
2023-05-17 19:17   ` Konrad Dybcio
2023-05-16 15:02 ` [PATCH 3/3] arm64: dts: qcom: sm8550-qrd: add flash LEDs Krzysztof Kozlowski
2023-05-17 19:18   ` Konrad Dybcio
2023-05-16 17:31 ` [PATCH 1/3] dt-bindings: leds: qcom,spmi-flash-led: add PM8550 Conor Dooley
2023-05-17 19:19 ` Konrad Dybcio
2023-05-18  8:48   ` Lee Jones
2023-05-25  4:54 ` (subset) " Bjorn Andersson
2023-05-25 11:47 ` Lee Jones

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).