summaryrefslogtreecommitdiff
path: root/arch/arm64/boot/dts/qcom/msm8916-alcatel-idol347.dts
diff options
context:
space:
mode:
authorVincent Knecht <vincent.knecht@mailoo.org>2022-11-04 14:23:59 +0100
committerBjorn Andersson <andersson@kernel.org>2022-11-06 21:11:10 -0600
commit64323952aa5a14471a1225f2c1121aa5447c6ded (patch)
treed668b23731a55ae7e34e2fe0e79017b9a3d7a7a6 /arch/arm64/boot/dts/qcom/msm8916-alcatel-idol347.dts
parentb8f298d4f69d82119ac0d22809a17c80b1f188d1 (diff)
arm64: dts: qcom: msm8916-alcatel-idol347: add GPIO torch LED
Add support for torch LED on GPIO 32. Signed-off-by: Vincent Knecht <vincent.knecht@mailoo.org> Reviewed-by: Konrad Dybcio <konrad.dybcio@somainline.org> Reviewed-by: Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org> Signed-off-by: Bjorn Andersson <andersson@kernel.org> Link: https://lore.kernel.org/r/20221104132400.1763218-3-vincent.knecht@mailoo.org
Diffstat (limited to 'arch/arm64/boot/dts/qcom/msm8916-alcatel-idol347.dts')
-rw-r--r--arch/arm64/boot/dts/qcom/msm8916-alcatel-idol347.dts22
1 files changed, 22 insertions, 0 deletions
diff --git a/arch/arm64/boot/dts/qcom/msm8916-alcatel-idol347.dts b/arch/arm64/boot/dts/qcom/msm8916-alcatel-idol347.dts
index 668f8ff53229..eadeb1a445fd 100644
--- a/arch/arm64/boot/dts/qcom/msm8916-alcatel-idol347.dts
+++ b/arch/arm64/boot/dts/qcom/msm8916-alcatel-idol347.dts
@@ -5,6 +5,7 @@
#include "msm8916-pm8916.dtsi"
#include <dt-bindings/gpio/gpio.h>
#include <dt-bindings/input/input.h>
+#include <dt-bindings/leds/common.h>
/ {
model = "Alcatel OneTouch Idol 3 (4.7)";
@@ -34,6 +35,19 @@
};
};
+ gpio-leds {
+ compatible = "gpio-leds";
+
+ pinctrl-names = "default";
+ pinctrl-0 = <&gpio_leds_default>;
+
+ led-0 {
+ gpios = <&msmgpio 32 GPIO_ACTIVE_HIGH>;
+ linux,default-trigger = "torch";
+ function = LED_FUNCTION_TORCH;
+ };
+ };
+
usb_id: usb-id {
compatible = "linux,extcon-usb-gpio";
id-gpio = <&msmgpio 69 GPIO_ACTIVE_HIGH>;
@@ -276,6 +290,14 @@
bias-pull-up;
};
+ gpio_leds_default: gpio-leds-default-state {
+ pins = "gpio32";
+ function = "gpio";
+
+ drive-strength = <2>;
+ bias-disable;
+ };
+
gyro_int_default: gyro-int-default-state {
pins = "gpio97", "gpio98";
function = "gpio";