mirror of
https://mirrors.bfsu.edu.cn/git/linux.git
synced 2024-11-11 12:28:41 +08:00
arm64: dts: qcom: msm8916-longcheer-l8910: Add front flash LED
[ Upstream commit5d8d933092
] l8910 uses OCP8110 flash LED driver. Add it to the device tree. Tested-by: Stephan Gerhold <stephan@gerhold.net> Signed-off-by: André Apitzsch <git@apitzsch.eu> Signed-off-by: Bjorn Andersson <andersson@kernel.org> Link: https://lore.kernel.org/r/20230514-x5_front_flash-v2-1-845a8bb0483b@apitzsch.eu Stable-dep-of:4facccb44a
("arm64: dts: qcom: apq8016-sbc: Rename ov5640 enable-gpios to powerdown-gpios") Signed-off-by: Sasha Levin <sashal@kernel.org>
This commit is contained in:
parent
aeae9dbc2b
commit
d80270a083
@ -20,6 +20,21 @@
|
||||
stdout-path = "serial0";
|
||||
};
|
||||
|
||||
flash-led-controller {
|
||||
compatible = "ocs,ocp8110";
|
||||
enable-gpios = <&msmgpio 49 GPIO_ACTIVE_HIGH>;
|
||||
flash-gpios = <&msmgpio 119 GPIO_ACTIVE_HIGH>;
|
||||
|
||||
pinctrl-0 = <&camera_front_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";
|
||||
|
||||
@ -246,6 +261,13 @@
|
||||
bias-disable;
|
||||
};
|
||||
|
||||
camera_front_flash_default: camera-front-flash-default-state {
|
||||
pins = "gpio49", "gpio119";
|
||||
function = "gpio";
|
||||
drive-strength = <2>;
|
||||
bias-disable;
|
||||
};
|
||||
|
||||
gpio_keys_default: gpio-keys-default-state {
|
||||
pins = "gpio107";
|
||||
function = "gpio";
|
||||
|
Loading…
Reference in New Issue
Block a user