Skip to content

Commit

Permalink
ramips: yuncore_g720: fix buttons
Browse files Browse the repository at this point in the history
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 <daniel@makrotopia.org>
  • Loading branch information
dangowrt committed Jun 25, 2024
1 parent 1029340 commit 646ebbd
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion target/linux/ramips/dts/mt7621_yuncore_g720.dts
Original file line number Diff line number Diff line change
Expand Up @@ -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>;
};
};
Expand Down

0 comments on commit 646ebbd

Please sign in to comment.