summaryrefslogtreecommitdiff
path: root/arch/arm64/boot/dts/qcom/msm8916-wingtech-wt88047.dts
diff options
context:
space:
mode:
authorLin, Meng-Bo <linmengbo0689@protonmail.com>2022-11-28 05:16:32 +0000
committerBjorn Andersson <andersson@kernel.org>2022-12-06 11:05:31 -0600
commit8b607c57655154ce4516d5d195bd174e6f0bede0 (patch)
tree55181640ba33d134df1c19f36400e8a007ced49d /arch/arm64/boot/dts/qcom/msm8916-wingtech-wt88047.dts
parentcb3920b50b4da3dfdb6c84164091a03ab1eacb6d (diff)
arm64: dts: qcom: msm8916-wingtech-wt88047: Add flash LED
WT88047 uses OCP 8110 Flash LED driver. Add it to the device tree. Signed-off-by: Lin, Meng-Bo <linmengbo0689@protonmail.com> Reviewed-by: Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org> Signed-off-by: Bjorn Andersson <andersson@kernel.org> Link: https://lore.kernel.org/r/20221128051512.125148-1-linmengbo0689@protonmail.com
Diffstat (limited to 'arch/arm64/boot/dts/qcom/msm8916-wingtech-wt88047.dts')
-rw-r--r--arch/arm64/boot/dts/qcom/msm8916-wingtech-wt88047.dts22
1 files changed, 22 insertions, 0 deletions
diff --git a/arch/arm64/boot/dts/qcom/msm8916-wingtech-wt88047.dts b/arch/arm64/boot/dts/qcom/msm8916-wingtech-wt88047.dts
index 166bed05996f..a87be1d95b14 100644
--- a/arch/arm64/boot/dts/qcom/msm8916-wingtech-wt88047.dts
+++ b/arch/arm64/boot/dts/qcom/msm8916-wingtech-wt88047.dts
@@ -23,6 +23,20 @@
stdout-path = "serial0";
};
+ flash-led-controller {
+ compatible = "ocs,ocp8110";
+ enable-gpios = <&msmgpio 31 GPIO_ACTIVE_HIGH>;
+ flash-gpios = <&msmgpio 32 GPIO_ACTIVE_HIGH>;
+
+ pinctrl-names = "default";
+ pinctrl-0 = <&camera_flash_default>;
+
+ flash_led: led {
+ function = LED_FUNCTION_FLASH;
+ color = <LED_COLOR_ID_WHITE>;
+ };
+ };
+
gpio-keys {
compatible = "gpio-keys";
@@ -274,6 +288,14 @@
};
&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";