arm64: dts: qcom: Pixel 3a Flash LEDs
Subsystems (4)
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
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
@@ -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
Re: [PATCH 1/3] dt-bindings: leds: qcom,spmi-flash-led: add pm660l compatible
Quoted 7 lines · Richard Acayan
Add the compatible for the flash LED controller on the PM660L PMIC.
Signed-off-by Richard Acayan <[email protected]>--- Documentation/devicetree/bindings/leds/qcom,spmi-flash-led.yaml | 1 + 1 file changed, 1 insertion(+)
Re: (subset) [PATCH 1/3] dt-bindings: leds: qcom,spmi-flash-led: add pm660l compatible
In reply to Richard AcayanQuoted 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 [李琼斯]
PATCH 2/3 arm64: dts: qcom: pm660l: add flash leds
In reply to Richard AcayanThe 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
@@ -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
PATCH 3/3 arm64: dts: qcom: sdm670-google-sargo: add flash leds
In reply to Richard AcayanThe 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
@@ -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
Re: [PATCH 3/3] arm64: dts: qcom: sdm670-google-sargo: add flash leds
Quoted 4 lines · Richard Acayan
The Pixel 3a has two identical flash LEDs. Add them together.
Signed-off-by Richard Acayan <[email protected]>---
Konrad
Re: (subset) [PATCH 0/3] arm64: dts: qcom: Pixel 3a Flash LEDs
In reply to Richard AcayanQuoted 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: 44d2a252698effd2f247a31492c10e1290903474Best regards,
Signature · 1 line
Bjorn Andersson <[email protected]>