Commit 64323952 authored by Vincent Knecht's avatar Vincent Knecht Committed by Bjorn Andersson

arm64: dts: qcom: msm8916-alcatel-idol347: add GPIO torch LED

Add support for torch LED on GPIO 32.
Signed-off-by: default avatarVincent Knecht <vincent.knecht@mailoo.org>
Reviewed-by: default avatarKonrad Dybcio <konrad.dybcio@somainline.org>
Reviewed-by: default avatarKrzysztof Kozlowski <krzysztof.kozlowski@linaro.org>
Signed-off-by: default avatarBjorn Andersson <andersson@kernel.org>
Link: https://lore.kernel.org/r/20221104132400.1763218-3-vincent.knecht@mailoo.org
parent b8f298d4
......@@ -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 @@ button-volume-up {
};
};
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 @@ gpio_keys_default: gpio-keys-default-state {
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";
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment