ipq40xx: make GL.iNet A1300 switch functional
authorChris Jones <cmsj@tenshu.net>
Sat, 19 Oct 2024 20:50:54 +0000 (21:50 +0100)
committerRobert Marko <robimarko@gmail.com>
Sun, 20 Oct 2024 16:22:14 +0000 (18:22 +0200)
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: https://github.com/openwrt/openwrt/pull/16564
Signed-off-by: Robert Marko <robimarko@gmail.com>
target/linux/ipq40xx/files-6.6/arch/arm/boot/dts/qcom/qcom-ipq4018-gl-a1300.dts

index cdb00932175a659cc0752341ec971496e92df367..d8b4300a5205bffbcd18fe746b441936273586e4 100644 (file)
                        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>;
                };
        };