diff options
author | Chris Jones <cmsj@tenshu.net> | 2024-10-19 21:50:54 +0100 |
---|---|---|
committer | Robert Marko <robimarko@gmail.com> | 2024-12-11 17:03:26 +0100 |
commit | b551214c9db80e9c660ad2e47d3d9899dde07ebc (patch) | |
tree | 1646441114d7dd6b8c2d312a518dfb423bfd98ed | |
parent | 239cdcd90c3e7ae7640c6478c0b8577bc93360a2 (diff) | |
download | openwrt-b551214c9db80e9c660ad2e47d3d9899dde07ebc.tar.gz openwrt-b551214c9db80e9c660ad2e47d3d9899dde07ebc.tar.bz2 openwrt-b551214c9db80e9c660ad2e47d3d9899dde07ebc.zip |
ipq40xx: make GL.iNet A1300 switch functionalopenwrt-23.05
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: Mieczyslaw Nalewaj <namiltd@yahoo.com>
(cherry picked from commit 83a04cd2b89f3bca2be3a4467b7ea710c7c6ba4f)
Link: https://github.com/openwrt/openwrt/pull/17228
Signed-off-by: Robert Marko <robimarko@gmail.com>
-rw-r--r-- | target/linux/ipq40xx/files/arch/arm/boot/dts/qcom-ipq4018-gl-a1300.dts | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/target/linux/ipq40xx/files/arch/arm/boot/dts/qcom-ipq4018-gl-a1300.dts b/target/linux/ipq40xx/files/arch/arm/boot/dts/qcom-ipq4018-gl-a1300.dts index ad3d1ac120..7665ca7644 100644 --- a/target/linux/ipq40xx/files/arch/arm/boot/dts/qcom-ipq4018-gl-a1300.dts +++ b/target/linux/ipq40xx/files/arch/arm/boot/dts/qcom-ipq4018-gl-a1300.dts @@ -58,10 +58,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>; }; }; |