Просмотр исходного кода

ramips: yuncore_g720: fix buttons

Turns out the device got two buttons, while the currently listed on is
actually WPS, and the other (will hidden) button is intended as RESET.
Update DT accordingly.

Signed-off-by: Daniel Golle <[email protected]>
Daniel Golle 1 год назад
Родитель
Сommit
646ebbd32c
1 измененных файлов с 7 добавлено и 1 удалено
  1. 7 1
      target/linux/ramips/dts/mt7621_yuncore_g720.dts

+ 7 - 1
target/linux/ramips/dts/mt7621_yuncore_g720.dts

@@ -33,9 +33,15 @@
 	keys {
 		compatible = "gpio-keys";
 
+		wps {
+			label = "wps";
+			gpios = <&gpio 13 GPIO_ACTIVE_LOW>;
+			linux,code = <KEY_WPS_BUTTON>;
+		};
+
 		reset {
 			label = "reset";
-			gpios = <&gpio 13 GPIO_ACTIVE_LOW>;
+			gpios = <&gpio 12 GPIO_ACTIVE_LOW>;
 			linux,code = <KEY_RESTART>;
 		};
 	};