Commit 2928212b authored by Kathiravan Thirumoorthy's avatar Kathiravan Thirumoorthy Committed by Bjorn Andersson

arm64: dts: qcom: ipq9574: enable GPIO based LED

Add support for wlan-2g LED on GPIO64.
Signed-off-by: default avatarKathiravan Thirumoorthy <quic_kathirav@quicinc.com>
Reviewed-by: default avatarKrzysztof Kozlowski <krzysztof.kozlowski@linaro.org>
Link: https://lore.kernel.org/r/20231025-ipq9574-led-v2-1-59b2725697ad@quicinc.comSigned-off-by: default avatarBjorn Andersson <andersson@kernel.org>
parent e0cee8dc
...@@ -10,6 +10,7 @@ ...@@ -10,6 +10,7 @@
#include <dt-bindings/gpio/gpio.h> #include <dt-bindings/gpio/gpio.h>
#include <dt-bindings/input/input.h> #include <dt-bindings/input/input.h>
#include <dt-bindings/leds/common.h>
#include "ipq9574.dtsi" #include "ipq9574.dtsi"
/ { / {
...@@ -51,6 +52,20 @@ button-wps { ...@@ -51,6 +52,20 @@ button-wps {
debounce-interval = <60>; debounce-interval = <60>;
}; };
}; };
leds {
compatible = "gpio-leds";
pinctrl-0 = <&gpio_leds_default>;
pinctrl-names = "default";
led-0 {
color = <LED_COLOR_ID_GREEN>;
function = LED_FUNCTION_WLAN;
gpios = <&tlmm 64 GPIO_ACTIVE_LOW>;
linux,default-trigger = "phy0tx";
default-state = "off";
};
};
}; };
&blsp1_spi0 { &blsp1_spi0 {
...@@ -117,6 +132,13 @@ gpio_keys_default: gpio-keys-default-state { ...@@ -117,6 +132,13 @@ gpio_keys_default: gpio-keys-default-state {
drive-strength = <8>; drive-strength = <8>;
bias-pull-up; bias-pull-up;
}; };
gpio_leds_default: gpio-leds-default-state {
pins = "gpio64";
function = "gpio";
drive-strength = <8>;
bias-pull-up;
};
}; };
&usb_0_dwc3 { &usb_0_dwc3 {
......
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