Commit 0e2f2c50 authored by Anusha Rao's avatar Anusha Rao Committed by Bjorn Andersson

arm64: dts: qcom: ipq9574: Enable WPS buttons

Add support for wps buttons on GPIO 37.
Reviewed-by: default avatarKonrad Dybcio <konrad.dybcio@linaro.org>
Signed-off-by: default avatarAnusha Rao <quic_anusha@quicinc.com>
Signed-off-by: default avatarKathiravan Thirumoorthy <quic_kathirav@quicinc.com>
Link: https://lore.kernel.org/r/20230927-common-rdp-v3-2-3d07b3ff6d42@quicinc.comSigned-off-by: default avatarBjorn Andersson <andersson@kernel.org>
parent 0e8527d0
...@@ -8,6 +8,8 @@ ...@@ -8,6 +8,8 @@
/dts-v1/; /dts-v1/;
#include <dt-bindings/gpio/gpio.h>
#include <dt-bindings/input/input.h>
#include "ipq9574.dtsi" #include "ipq9574.dtsi"
/ { / {
...@@ -36,6 +38,19 @@ regulator_fixed_0p925: s0925 { ...@@ -36,6 +38,19 @@ regulator_fixed_0p925: s0925 {
regulator-always-on; regulator-always-on;
regulator-name = "fixed_0p925"; regulator-name = "fixed_0p925";
}; };
gpio-keys {
compatible = "gpio-keys";
pinctrl-0 = <&gpio_keys_default>;
pinctrl-names = "default";
button-wps {
label = "wps";
linux,code = <KEY_WPS_BUTTON>;
gpios = <&tlmm 37 GPIO_ACTIVE_LOW>;
debounce-interval = <60>;
};
};
}; };
&blsp1_spi0 { &blsp1_spi0 {
...@@ -95,6 +110,13 @@ spi_0_pins: spi-0-state { ...@@ -95,6 +110,13 @@ spi_0_pins: spi-0-state {
drive-strength = <8>; drive-strength = <8>;
bias-disable; bias-disable;
}; };
gpio_keys_default: gpio-keys-default-state {
pins = "gpio37";
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