From 1d4b8ab7ff2b2f1ba4302a1bca8d344dff81e414 Mon Sep 17 00:00:00 2001 From: John Crispin Date: Mon, 6 Dec 2021 13:16:25 +0100 Subject: [PATCH] ipq40xx: fic HFCL Ion 4 buttons and LEDs Fixes: WIFI-6021 Signed-off-by: John Crispin --- .../0042-ipq40xx-add-HFCL-ION4-support.patch | 26 +++++++++++++------ 1 file changed, 18 insertions(+), 8 deletions(-) diff --git a/patches/0042-ipq40xx-add-HFCL-ION4-support.patch b/patches/0042-ipq40xx-add-HFCL-ION4-support.patch index f16caa9c1..91ce2057e 100644 --- a/patches/0042-ipq40xx-add-HFCL-ION4-support.patch +++ b/patches/0042-ipq40xx-add-HFCL-ION4-support.patch @@ -1,7 +1,7 @@ -From 5804d7fe3e3860c33a6957320661efd40b077a9e Mon Sep 17 00:00:00 2001 +From f68588775d1123cc2a5231ade30de46b3fc82027 Mon Sep 17 00:00:00 2001 From: John Crispin Date: Thu, 26 Aug 2021 17:34:47 +0200 -Subject: [PATCH 42/43] ipq40xx: add HFCL ION4 support +Subject: [PATCH 01/13] ipq40xx: add HFCL ION4 support Signed-off-by: John Crispin --- @@ -11,10 +11,10 @@ Signed-off-by: John Crispin .../ipq40xx/base-files/etc/board.d/02_network | 1 + .../etc/hotplug.d/firmware/11-ath10k-caldata | 6 + .../base-files/lib/upgrade/platform.sh | 1 + - .../arm/boot/dts/qcom-ipq4019-hfcl-ion4.dts | 226 ++++++++++++++++++ + .../arm/boot/dts/qcom-ipq4019-hfcl-ion4.dts | 236 ++++++++++++++++++ target/linux/ipq40xx/image/generic.mk | 18 ++ .../ipq40xx/patches-5.4/999-hfcl_ion.patch | 12 + - 9 files changed, 275 insertions(+), 1 deletion(-) + 9 files changed, 285 insertions(+), 1 deletion(-) create mode 100644 target/linux/ipq40xx/files/arch/arm/boot/dts/qcom-ipq4019-hfcl-ion4.dts create mode 100644 target/linux/ipq40xx/patches-5.4/999-hfcl_ion.patch @@ -106,7 +106,7 @@ index 64bb4efaf8..97dd1b4039 100644 ;; *) diff --git a/target/linux/ipq40xx/base-files/lib/upgrade/platform.sh b/target/linux/ipq40xx/base-files/lib/upgrade/platform.sh -index 8840372ba9..53bc1adeb5 100644 +index fc64807d74..806b3edb66 100644 --- a/target/linux/ipq40xx/base-files/lib/upgrade/platform.sh +++ b/target/linux/ipq40xx/base-files/lib/upgrade/platform.sh @@ -74,6 +74,7 @@ platform_do_upgrade() { @@ -119,10 +119,10 @@ index 8840372ba9..53bc1adeb5 100644 ;; diff --git a/target/linux/ipq40xx/files/arch/arm/boot/dts/qcom-ipq4019-hfcl-ion4.dts b/target/linux/ipq40xx/files/arch/arm/boot/dts/qcom-ipq4019-hfcl-ion4.dts new file mode 100644 -index 0000000000..7437b98c02 +index 0000000000..bb247c5b79 --- /dev/null +++ b/target/linux/ipq40xx/files/arch/arm/boot/dts/qcom-ipq4019-hfcl-ion4.dts -@@ -0,0 +1,226 @@ +@@ -0,0 +1,236 @@ +// SPDX-License-Identifier: GPL-2.0-or-later OR MIT + +#include "qcom-ipq4019.dtsi" @@ -200,12 +200,22 @@ index 0000000000..7437b98c02 + }; + }; + ++ gpio_key { ++ compatible = "gpio-keys"; ++ button@1 { ++ label = "reset"; ++ linux,code = ; ++ gpios = <&tlmm 18 GPIO_ACTIVE_LOW>; ++ linux,input-type = <1>; ++ }; ++ }; ++ + leds { + compatible = "gpio-leds"; + + power_red: power_red { + label = "yellow:wlan2g"; -+ gpios = <&tlmm 45 GPIO_ACTIVE_LOW>; ++ gpios = <&tlmm 45 GPIO_ACTIVE_HIGH>; + }; + + power_green: power_green {