summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorChris Jones2024-10-19 20:50:54 +0000
committerRobert Marko2024-10-20 16:22:14 +0000
commit83a04cd2b89f3bca2be3a4467b7ea710c7c6ba4f (patch)
tree3afed520eaf539c55d7f1f1d9dbc745a54f14e6f
parentfcd935a5e473fbfdf2ed65f9704bf001faa079b2 (diff)
downloadopenwrt-83a04cd2b89f3bca2be3a4467b7ea710c7c6ba4f.tar.gz
ipq40xx: make GL.iNet A1300 switch functional
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>
-rw-r--r--target/linux/ipq40xx/files-6.6/arch/arm/boot/dts/qcom/qcom-ipq4018-gl-a1300.dts7
1 files changed, 4 insertions, 3 deletions
diff --git a/target/linux/ipq40xx/files-6.6/arch/arm/boot/dts/qcom/qcom-ipq4018-gl-a1300.dts b/target/linux/ipq40xx/files-6.6/arch/arm/boot/dts/qcom/qcom-ipq4018-gl-a1300.dts
index cdb0093217..d8b4300a52 100644
--- a/target/linux/ipq40xx/files-6.6/arch/arm/boot/dts/qcom/qcom-ipq4018-gl-a1300.dts
+++ b/target/linux/ipq40xx/files-6.6/arch/arm/boot/dts/qcom/qcom-ipq4018-gl-a1300.dts
@@ -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>;
};
};