mirror of
https://github.com/coolsnowwolf/lede.git
synced 2025-04-16 04:13:31 +00:00
67 lines
1.7 KiB
Diff
67 lines
1.7 KiB
Diff
From ff1925f7070d4cc3c5772565672632854444317e Mon Sep 17 00:00:00 2001
|
|
From: Anusha Rao <quic_anusha@quicinc.com>
|
|
Date: Wed, 27 Sep 2023 12:13:19 +0530
|
|
Subject: [PATCH 38/41] 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>
|
|
---
|
|
.../boot/dts/qcom/ipq9574-rdp-common.dtsi | 22 +++++++++++++++++++
|
|
1 file changed, 22 insertions(+)
|
|
|
|
diff --git a/arch/arm64/boot/dts/qcom/ipq9574-rdp-common.dtsi b/arch/arm64/boot/dts/qcom/ipq9574-rdp-common.dtsi
|
|
index c935ac53efe6..526f0dbbdbe9 100644
|
|
--- a/arch/arm64/boot/dts/qcom/ipq9574-rdp-common.dtsi
|
|
+++ b/arch/arm64/boot/dts/qcom/ipq9574-rdp-common.dtsi
|
|
@@ -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_fixed_0p925: s0925 {
|
|
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 @@ spi_0_pins: spi-0-state {
|
|
drive-strength = <8>;
|
|
bias-disable;
|
|
};
|
|
+
|
|
+ gpio_keys_default: gpio-keys-default-state {
|
|
+ pins = "gpio37";
|
|
+ function = "gpio";
|
|
+ drive-strength = <8>;
|
|
+ bias-pull-up;
|
|
+ };
|
|
};
|
|
|
|
&xo_board_clk {
|
|
--
|
|
2.34.1
|
|
|