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 ee1f904..a1cf05b 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 {