[PATCH-22.03 06/10] ipq40xx: add reset button for Google WiFi (Gale)
openwrt at aiyionpri.me
openwrt at aiyionpri.me
Fri Apr 7 06:23:44 PDT 2023
From: Jan-Niklas Burfeind <git at aiyionpri.me>
Add the external reset button for use with OpenWrt.
Co-authored-by: Brian Norris <computersforpeace at gmail.com>
Signed-off-by: Jan-Niklas Burfeind <git at aiyionpri.me>
Reviewed-by: Brian Norris <computersforpeace at gmail.com>
Tested-by: Brian Norris <computersforpeace at gmail.com>
Signed-off-by: David Bauer <mail at david-bauer.net>
(cherry picked from commit 791550b94fc791866e486e52d3c4d1d0378966ff)
---
.../files/arch/arm/boot/dts/qcom-ipq4019-wifi.dts | 15 ++++++++++++++-
1 file changed, 14 insertions(+), 1 deletion(-)
diff --git a/target/linux/ipq40xx/files/arch/arm/boot/dts/qcom-ipq4019-wifi.dts b/target/linux/ipq40xx/files/arch/arm/boot/dts/qcom-ipq4019-wifi.dts
index 9448e5145e..c48d6a75b3 100644
--- a/target/linux/ipq40xx/files/arch/arm/boot/dts/qcom-ipq4019-wifi.dts
+++ b/target/linux/ipq40xx/files/arch/arm/boot/dts/qcom-ipq4019-wifi.dts
@@ -39,16 +39,29 @@
status = "okay";
};
};
+
+ keys {
+ compatible = "gpio-keys";
+ pinctrl-0 = <&fw_pinmux>;
+ pinctrl-names = "default";
+
+ reset {
+ label = "reset";
+ gpios = <&tlmm 57 GPIO_ACTIVE_LOW>;
+ linux,code = <KEY_RESTART>;
+ };
+ };
};
&tlmm {
- fw_pinmux {
+ fw_pinmux: fw_pinmux {
wp {
pins = "gpio53";
output-low;
};
recovery {
pins = "gpio57";
+ function = "gpio";
bias-none;
};
developer {
--
2.40.0
More information about the openwrt-devel
mailing list