ath79: teltonika-rut230: fix failsafe boot without SIM tray
authorLech Perczak <lech.perczak@gmail.com>
Mon, 6 Jan 2025 16:31:44 +0000 (17:31 +0100)
committerHauke Mehrtens <hauke@hauke-m.de>
Sun, 12 Jan 2025 20:36:04 +0000 (21:36 +0100)
Due to "SIM present" input defaulting to "button" type, it is
interpreted as such when booting, and causes the system to enter
failsafe, if the tray is missing. Similarly to rfkill switch on
TP-Link WDR4300 and Archer C7, make it EV_SW instead, to stop it from
interfering with the boot process.

Signed-off-by: Lech Perczak <lech.perczak@gmail.com>
Link: https://github.com/openwrt/openwrt/pull/17503
Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>
target/linux/ath79/dts/ar9331_teltonika_rut230-v1.dts

index 192a7d2a045b369c320917fc3be10590af6e27ab..73a6cc52ca59cdbd59c00a66c48562fcbae603b4 100644 (file)
@@ -36,6 +36,7 @@
 
                sim-tray {
                        label = "sim-tray";
+                       linux,input-type = <EV_SW>;
                        linux,code = <BTN_1>;
                        gpios = <&gpio 20 GPIO_ACTIVE_LOW>;
                        debounce-interval = <60>;