arm64: dts: qcom: ipq9574: Enable WPS buttons
Add support for wps buttons on GPIO 37. Reviewed-by: Konrad Dybcio <konrad.dybcio@linaro.org> Signed-off-by: Anusha Rao <quic_anusha@quicinc.com> Signed-off-by: Kathiravan Thirumoorthy <quic_kathirav@quicinc.com> Link: https://lore.kernel.org/r/20230927-common-rdp-v3-2-3d07b3ff6d42@quicinc.com Signed-off-by: Bjorn Andersson <andersson@kernel.org>
This commit is contained in:
committed by
Bjorn Andersson
parent
0e8527d076
commit
0e2f2c506f
@@ -8,6 +8,8 @@
|
||||
|
||||
/dts-v1/;
|
||||
|
||||
#include <dt-bindings/gpio/gpio.h>
|
||||
#include <dt-bindings/input/input.h>
|
||||
#include "ipq9574.dtsi"
|
||||
|
||||
/ {
|
||||
@@ -36,6 +38,19 @@
|
||||
regulator-always-on;
|
||||
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 {
|
||||
@@ -95,6 +110,13 @@
|
||||
drive-strength = <8>;
|
||||
bias-disable;
|
||||
};
|
||||
|
||||
gpio_keys_default: gpio-keys-default-state {
|
||||
pins = "gpio37";
|
||||
function = "gpio";
|
||||
drive-strength = <8>;
|
||||
bias-pull-up;
|
||||
};
|
||||
};
|
||||
|
||||
&usb_0_dwc3 {
|
||||
|
||||
Reference in New Issue
Block a user