ath79: Add missing reset button for TP-Link CPE210 v2 and v3
authorAdrian Schmutzler <freifunk@adrianschmutzler.de>
Fri, 10 May 2019 13:14:13 +0000 (15:14 +0200)
committerPetr Štetiar <ynezz@true.cz>
Wed, 15 May 2019 11:34:24 +0000 (13:34 +0200)
Reset button support seems to be missing in ath79.

Run-tested on CPE210 v2.

Signed-off-by: Adrian Schmutzler <freifunk@adrianschmutzler.de>
target/linux/ath79/dts/qca9533_tplink_cpe210.dtsi

index ee1f904491a3c38ba439c3a0c0cd96a24e5383a5..a1cf05b05c2447b59052df31c55a386344aeeda4 100644 (file)
                };
        };
 
+       keys {
+               compatible = "gpio-keys-polled";
+               poll-interval = <100>;
+
+               reset_button {
+                       label = "Reset button";
+                       linux,code = <KEY_RESTART>;
+                       gpios = <&gpio 17 GPIO_ACTIVE_LOW>;
+               };
+       };
 };
 
 &uart {