]> git.ipfire.org Git - thirdparty/kernel/linux.git/commitdiff
arm64: dts: qcom: msm8916-longcheer-l8910: Add rear flash
authorAndré Apitzsch <git@apitzsch.eu>
Mon, 22 Jul 2024 20:05:01 +0000 (22:05 +0200)
committerBjorn Andersson <andersson@kernel.org>
Tue, 30 Jul 2024 13:52:40 +0000 (08:52 -0500)
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>
Link: https://lore.kernel.org/r/20240722-x5_sy7802-v1-1-b2ffeeaf8d2d@apitzsch.eu
Signed-off-by: Bjorn Andersson <andersson@kernel.org>
arch/arm64/boot/dts/qcom/msm8916-longcheer-l8910.dts

index 3b7fdb6797a942298ac399a3a434b3cdc2795396..2cc54eaf72027a213f9d779c57fa22386bda934a 100644 (file)
                        };
                };
        };
+
+       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 {
                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";