Skip to content

Commit

Permalink
ipq40xx: make GL.iNet A1300 switch functional
Browse files Browse the repository at this point in the history
Set the physical switch to KEY_RFKILL, since its previous value
(KEY_SETUP) is unsupported. This should also make the KEY_RESET button
functional, by allowing the gpio-button-hotplug kmod to load.

Signed-off-by: Chris Jones <cmsj@tenshu.net>
Link: openwrt#16564
Signed-off-by: Robert Marko <robimarko@gmail.com>
  • Loading branch information
cmsj authored and robimarko committed Oct 20, 2024
1 parent fcd935a commit 83a04cd
Showing 1 changed file with 4 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -59,10 +59,11 @@
linux,code = <KEY_RESTART>;
};

switch {
label = "switch-button";
rfkill {
label = "WiFi on/off switch";
gpios = <&tlmm 0 GPIO_ACTIVE_LOW>;
linux,code = <KEY_SETUP>;
linux,code = <KEY_RFKILL>;
linux,input-type = <EV_SW>;
};
};

Expand Down

0 comments on commit 83a04cd

Please sign in to comment.