]> git.ipfire.org Git - thirdparty/kernel/linux.git/commitdiff
arm64: dts: qcom: msm8939-longcheer-l9100: Add rear flash
authorAndré Apitzsch <git@apitzsch.eu>
Mon, 24 Jun 2024 21:25:14 +0000 (23:25 +0200)
committerBjorn Andersson <andersson@kernel.org>
Tue, 30 Jul 2024 16:40:23 +0000 (11:40 -0500)
The phone has a Silergy SY7802 flash LED controller.

Signed-off-by: André Apitzsch <git@apitzsch.eu>
Reviewed-by: Konrad Dybcio <konrad.dybcio@linaro.org>
Link: https://lore.kernel.org/r/20240624-sy7802-v5-3-7abc9d96bfa6@apitzsch.eu
Signed-off-by: Bjorn Andersson <andersson@kernel.org>
arch/arm64/boot/dts/qcom/msm8939-longcheer-l9100.dts

index e3404c4455cf8d08d559cd4554c7898d10c68024..528737929274e0b6d09f8b58978098b957ee5e16 100644 (file)
                        };
                };
        };
+
+       flash-led-controller@53 {
+               compatible = "silergy,sy7802";
+               reg = <0x53>;
+               #address-cells = <1>;
+               #size-cells = <0>;
+
+               enable-gpios = <&tlmm 16 GPIO_ACTIVE_HIGH>;
+
+               pinctrl-0 = <&camera_rear_flash_default>;
+               pinctrl-names = "default";
+
+               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", "gpio51";
+               function = "gpio";
+               drive-strength = <2>;
+               bias-disable;
+       };
+
        gpio_hall_sensor_default: gpio-hall-sensor-default-state {
                pins = "gpio20";
                function = "gpio";