]> git.ipfire.org Git - thirdparty/openwrt.git/commitdiff
mpc85xx: p1010: TL-WDR4900v1: DTS update for RFKILL switch 22494/head
authorShine <4c.fce2@proton.me>
Thu, 19 Mar 2026 07:53:44 +0000 (08:53 +0100)
committerRobert Marko <robimarko@gmail.com>
Fri, 5 Jun 2026 10:44:29 +0000 (12:44 +0200)
The TL-WDR4900v1, like many other similarly-aged TP-Link devices, is
using a flipswitch for toggling WiFi, not a pushbutton. Update the DTS
to reflect that. The debounce time used here has been chosen based on
other supported (but different target) TP-Link devices that are using
such a flipswitch.

Requires usage of the gpio-button-hotplug driver to work.

Fixes: #13552
Signed-off-by: Shine <4c.fce2@proton.me>
Tested-by: Edward Chow <equu@openmail.cc>
Link: https://github.com/openwrt/openwrt/pull/22494
Signed-off-by: Robert Marko <robimarko@gmail.com>
target/linux/mpc85xx/files/arch/powerpc/boot/dts/tl-wdr4900-v1.dts

index 5bfb12c119899d271d9b0ca193b284977c8f6e16..8b7144456002448e3dfac8afad40882afb208ad7 100644 (file)
                        label = "RFKILL switch";
                        gpios = <&gpio0 11 GPIO_ACTIVE_LOW>;
                        linux,code = <KEY_RFKILL>;
+                       linux,input-type = <EV_SW>;
+                       debounce-interval = <60>;
                };
        };
 };