ipq40xx: add reset button for Google WiFi (Gale)
authorJan-Niklas Burfeind <git@aiyionpri.me>
Sun, 26 Mar 2023 20:50:42 +0000 (22:50 +0200)
committerDavid Bauer <mail@david-bauer.net>
Fri, 31 Mar 2023 17:39:24 +0000 (19:39 +0200)
Add the external reset button for use with OpenWrt.

Co-authored-by: Brian Norris <computersforpeace@gmail.com>
Signed-off-by: Jan-Niklas Burfeind <git@aiyionpri.me>
Reviewed-by: Brian Norris <computersforpeace@gmail.com>
Tested-by: Brian Norris <computersforpeace@gmail.com>
Signed-off-by: David Bauer <mail@david-bauer.net>
target/linux/ipq40xx/files/arch/arm/boot/dts/qcom-ipq4019-wifi.dts

index 65f593330558e3c6bad0a0e4b4e2d11603aad008..e4f47431e5f935754b7bafd92921b8dcaff9007c 100644 (file)
                        };
                };
        };
+
+       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 {