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
This commit is contained in:
parent
cb3920b50b
commit
8b607c5765
|
@ -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";
|
||||
|
|
Loading…
Reference in New Issue