Message ID | 20240729-sy7802-v6-1-86bb9083e40b@apitzsch.eu (mailing list archive) |
---|---|
State | Accepted |
Headers | show |
Series | [RESEND,v6] arm64: dts: qcom: msm8939-longcheer-l9100: Add rear flash | expand |
On Mon, 29 Jul 2024 23:23:04 +0200, André Apitzsch wrote: > The phone has a Silergy SY7802 flash LED controller. > > Applied, thanks! [1/1] arm64: dts: qcom: msm8939-longcheer-l9100: Add rear flash commit: 04b2f8d5aec32973d34839ae983821857924cc66 Best regards,
Am Donnerstag, dem 15.08.2024 um 15:40 -0500 schrieb Bjorn Andersson: > > On Mon, 29 Jul 2024 23:23:04 +0200, André Apitzsch wrote: > > The phone has a Silergy SY7802 flash LED controller. > > > > > > Applied, thanks! > > [1/1] arm64: dts: qcom: msm8939-longcheer-l9100: Add rear flash > commit: 04b2f8d5aec32973d34839ae983821857924cc66 > > Best regards, Hi Bjorn, It looks like you applied the patch twice (two different version)[1,2]. Best regards, André [1] https://git.kernel.org/pub/scm/linux/kernel/git/qcom/linux.git/commit/?h=for-next&id=f98bdb21cfc94cb7733a5c3216e8f1dec1c06023 (v5) [2] https://git.kernel.org/pub/scm/linux/kernel/git/qcom/linux.git/commit/?h=for-next&id=04b2f8d5aec32973d34839ae983821857924cc66 (v6)
diff --git a/arch/arm64/boot/dts/qcom/msm8939-longcheer-l9100.dts b/arch/arm64/boot/dts/qcom/msm8939-longcheer-l9100.dts index e3404c4455cf..b845da4fa23e 100644 --- a/arch/arm64/boot/dts/qcom/msm8939-longcheer-l9100.dts +++ b/arch/arm64/boot/dts/qcom/msm8939-longcheer-l9100.dts @@ -159,6 +159,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 { @@ -318,6 +338,13 @@ camera_front_flash_default: camera-front-flash-default-state { bias-disable; }; + camera_rear_flash_default: camera-rear-flash-default-state { + pins = "gpio9", "gpio16", "gpio51"; + function = "gpio"; + drive-strength = <2>; + bias-disable; + }; + gpio_hall_sensor_default: gpio-hall-sensor-default-state { pins = "gpio20"; function = "gpio";