summaryrefslogtreecommitdiff
path: root/arch/arm64/boot/dts/qcom/msm8916-longcheer-l8150.dts
diff options
context:
space:
mode:
authorNikita Travkin <nikitos.tr@gmail.com>2020-11-13 22:59:15 +0500
committerBjorn Andersson <bjorn.andersson@linaro.org>2020-11-22 23:04:34 -0600
commit6b4ad4be646994e7e8c5707c87cc38725fd31e1b (patch)
tree8ce0f2e69d75db8b5102079059636e8f6c4618b4 /arch/arm64/boot/dts/qcom/msm8916-longcheer-l8150.dts
parent6bd2cae7ddd6e7b454d4d8267d9a8952856f8283 (diff)
arm64: dts: qcom: msm8916-longcheer-l8150: Add flash LED
L8150 uses SGM3785 Flash LED driver. It is similar to SGM3140 but can also be controlled with PWM. Since SoC doesn't have PWM, add led to the device tree using sgm3140 driver. Reviewed-by: Stephan Gerhold <stephan@gerhold.net> Signed-off-by: Nikita Travkin <nikitos.tr@gmail.com> Link: https://lore.kernel.org/r/20201113175917.189123-4-nikitos.tr@gmail.com Signed-off-by: Bjorn Andersson <bjorn.andersson@linaro.org>
Diffstat (limited to 'arch/arm64/boot/dts/qcom/msm8916-longcheer-l8150.dts')
-rw-r--r--arch/arm64/boot/dts/qcom/msm8916-longcheer-l8150.dts24
1 files changed, 24 insertions, 0 deletions
diff --git a/arch/arm64/boot/dts/qcom/msm8916-longcheer-l8150.dts b/arch/arm64/boot/dts/qcom/msm8916-longcheer-l8150.dts
index 79a2475e3cd5..2b8670dd4b71 100644
--- a/arch/arm64/boot/dts/qcom/msm8916-longcheer-l8150.dts
+++ b/arch/arm64/boot/dts/qcom/msm8916-longcheer-l8150.dts
@@ -6,6 +6,7 @@
#include <dt-bindings/gpio/gpio.h>
#include <dt-bindings/input/input.h>
#include <dt-bindings/interrupt-controller/irq.h>
+#include <dt-bindings/leds/common.h>
/ {
model = "Longcheer L8150";
@@ -65,6 +66,21 @@
pinctrl-names = "default";
pinctrl-0 = <&ctp_pwr_en_default>;
};
+
+ flash-led-controller {
+ compatible = "sgmicro,sgm3140";
+ flash-gpios = <&msmgpio 31 GPIO_ACTIVE_HIGH>;
+ enable-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>;
+ flash-max-timeout-us = <250000>;
+ };
+ };
};
&blsp_i2c2 {
@@ -286,6 +302,14 @@
};
&msmgpio {
+ camera_flash_default: camera-flash-default {
+ pins = "gpio31", "gpio32";
+ function = "gpio";
+
+ drive-strength = <2>;
+ bias-disable;
+ };
+
ctp_pwr_en_default: ctp-pwr-en-default {
pins = "gpio17";
function = "gpio";