diff options
author | Lin, Meng-Bo <linmengbo0689@protonmail.com> | 2023-01-07 13:33:20 +0000 |
---|---|---|
committer | Bjorn Andersson <andersson@kernel.org> | 2023-01-11 13:35:02 -0600 |
commit | 599a259a4b3b6c0d4c4b51d9e58408ac6de779f0 (patch) | |
tree | ade656d5875daa65a8c149486566a5619f81d0b2 /arch/arm64/boot/dts/qcom/msm8916-gplus-fl8005a.dts | |
parent | 143b4b845f58380a334cc0b9242567e602233743 (diff) |
arm64: dts: qcom: msm8916-gplus-fl8005a: Add flash LED
FL8005A uses Qualcomm GPIO flash LEDs which is compatible with
SGM3140 Flash LED driver. Add it to the device tree.
Signed-off-by: Lin, Meng-Bo <linmengbo0689@protonmail.com>
Reviewed-by: Konrad Dybcio <konrad.dybcio@linaro.org>
Signed-off-by: Bjorn Andersson <andersson@kernel.org>
Link: https://lore.kernel.org/r/20230107133235.139947-1-linmengbo0689@protonmail.com
Diffstat (limited to 'arch/arm64/boot/dts/qcom/msm8916-gplus-fl8005a.dts')
-rw-r--r-- | arch/arm64/boot/dts/qcom/msm8916-gplus-fl8005a.dts | 23 |
1 files changed, 23 insertions, 0 deletions
diff --git a/arch/arm64/boot/dts/qcom/msm8916-gplus-fl8005a.dts b/arch/arm64/boot/dts/qcom/msm8916-gplus-fl8005a.dts index b44c30a72784..a0e520edde02 100644 --- a/arch/arm64/boot/dts/qcom/msm8916-gplus-fl8005a.dts +++ b/arch/arm64/boot/dts/qcom/msm8916-gplus-fl8005a.dts @@ -21,6 +21,22 @@ stdout-path = "serial0"; }; + flash-led-controller { + /* Actually qcom,leds-gpio-flash */ + compatible = "sgmicro,sgm3140"; + enable-gpios = <&msmgpio 31 GPIO_ACTIVE_HIGH>; + flash-gpios = <&msmgpio 32 GPIO_ACTIVE_HIGH>; + + pinctrl-0 = <&camera_flash_default>; + pinctrl-names = "default"; + + flash_led: led { + function = LED_FUNCTION_FLASH; + color = <LED_COLOR_ID_WHITE>; + flash-max-timeout-us = <250000>; + }; + }; + gpio-keys { compatible = "gpio-keys"; @@ -237,6 +253,13 @@ }; &msmgpio { + camera_flash_default: camera-flash-default-state { + pins = "gpio31", "gpio32"; + function = "gpio"; + drive-strength = <2>; + bias-disable; + }; + gpio_keys_default: gpio-keys-default-state { pins = "gpio107"; function = "gpio"; |