Selaa lähdekoodia

ath79: Add missing reset button for TP-Link CPE210 v2 and v3

Reset button support seems to be missing in ath79.

Run-tested on CPE210 v2.

Signed-off-by: Adrian Schmutzler <[email protected]>
Adrian Schmutzler 6 vuotta sitten
vanhempi
sitoutus
33ce2ad3e7
1 muutettua tiedostoa jossa 10 lisäystä ja 0 poistoa
  1. 10 0
      target/linux/ath79/dts/qca9533_tplink_cpe210.dtsi

+ 10 - 0
target/linux/ath79/dts/qca9533_tplink_cpe210.dtsi

@@ -47,6 +47,16 @@
 		};
 	};
 
+	keys {
+		compatible = "gpio-keys-polled";
+		poll-interval = <100>;
+
+		reset_button {
+			label = "Reset button";
+			linux,code = <KEY_RESTART>;
+			gpios = <&gpio 17 GPIO_ACTIVE_LOW>;
+		};
+	};
 };
 
 &uart {