ramips: mark toggle input on EX6150 as a switch
authorKurt Roeckx <kurt@roeckx.be>
Sun, 14 Feb 2021 13:28:20 +0000 (14:28 +0100)
committerAdrian Schmutzler <freifunk@adrianschmutzler.de>
Sun, 14 Feb 2021 23:02:23 +0000 (00:02 +0100)
The Netgear EX6150 has an Access Point/Extender switch. Set it as
an EV_SW. Otherwise when it's set to Access Point, it will trigger
failsafe mode during boot.

Fixes: FS#3590
Signed-off-by: Kurt Roeckx <kurt@roeckx.be>
(cherry picked from commit 539966554d6d0686dc8ce62e39ff9e8f4e2d4e74)

target/linux/ramips/dts/EX6150.dts

index a5827f270d9a2b9e52598a00ffe3e9ee7708f6a0..bd0a146533c0b09f4433a2d042bdd1d84dcf8ee8 100644 (file)
@@ -97,6 +97,7 @@
                        label = "AP/Extender toggle";
                        gpios = <&gpio1 16 GPIO_ACTIVE_LOW>;
                        linux,code = <BTN_0>;
+                       linux,input-type = <EV_SW>;
                        /* Active when switch is set to "Access Point" */
                };
        };