diff mbox series

arm64: dts: qcom: msm8916-longcheer-l8910: Add rear flash

Message ID 20240722-x5_sy7802-v1-1-b2ffeeaf8d2d@apitzsch.eu
State New
Headers show
Series arm64: dts: qcom: msm8916-longcheer-l8910: Add rear flash | expand

Commit Message

André Apitzsch via B4 Relay July 22, 2024, 8:05 p.m. UTC
From: André Apitzsch <git@apitzsch.eu>

The phone has a Silergy SY7802 flash LED controller.

Tested-by: Stéphane Martins <stemartins@proton.me>
Signed-off-by: André Apitzsch <git@apitzsch.eu>
---
 .../boot/dts/qcom/msm8916-longcheer-l8910.dts      | 27 ++++++++++++++++++++++
 1 file changed, 27 insertions(+)


---
base-commit: 933069701c1b507825b514317d4edd5d3fd9d417
change-id: 20240721-x5_sy7802-0b74aa772e0c

Best regards,

Comments

Konrad Dybcio July 22, 2024, 10:41 p.m. UTC | #1
On 22.07.2024 10:05 PM, André Apitzsch via B4 Relay wrote:
> From: André Apitzsch <git@apitzsch.eu>
> 
> The phone has a Silergy SY7802 flash LED controller.
> 
> Tested-by: Stéphane Martins <stemartins@proton.me>
> Signed-off-by: André Apitzsch <git@apitzsch.eu>
> ---

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

Konrad
Bjorn Andersson July 29, 2024, 3:58 a.m. UTC | #2
On Mon, 22 Jul 2024 22:05:01 +0200, André Apitzsch wrote:
> The phone has a Silergy SY7802 flash LED controller.
> 
> 

Applied, thanks!

[1/1] arm64: dts: qcom: msm8916-longcheer-l8910: Add rear flash
      commit: 7a373bbc1b50de75572b00063b52ac79eaeb9701

Best regards,
diff mbox series

Patch

diff --git a/arch/arm64/boot/dts/qcom/msm8916-longcheer-l8910.dts b/arch/arm64/boot/dts/qcom/msm8916-longcheer-l8910.dts
index 3b7fdb6797a9..2cc54eaf7202 100644
--- a/arch/arm64/boot/dts/qcom/msm8916-longcheer-l8910.dts
+++ b/arch/arm64/boot/dts/qcom/msm8916-longcheer-l8910.dts
@@ -125,6 +125,26 @@  led@2 {
 			};
 		};
 	};
+
+	flash-led-controller@53 {
+		compatible = "silergy,sy7802";
+		reg = <0x53>;
+
+		enable-gpios = <&tlmm 16 GPIO_ACTIVE_HIGH>;
+
+		pinctrl-0 = <&camera_rear_flash_default>;
+		pinctrl-names = "default";
+
+		#address-cells = <1>;
+		#size-cells = <0>;
+
+		led@0 {
+			reg = <0>;
+			function = LED_FUNCTION_FLASH;
+			color = <LED_COLOR_ID_WHITE>;
+			led-sources = <0>, <1>;
+		};
+	};
 };
 
 &blsp_i2c3 {
@@ -278,6 +298,13 @@  camera_front_flash_default: camera-front-flash-default-state {
 		bias-disable;
 	};
 
+	camera_rear_flash_default: camera-rear-flash-default-state {
+		pins = "gpio9", "gpio16", "gpio117";
+		function = "gpio";
+		drive-strength = <2>;
+		bias-disable;
+	};
+
 	gpio_keys_default: gpio-keys-default-state {
 		pins = "gpio107";
 		function = "gpio";