ipq40xx: fic HFCL Ion 4 buttons and LEDs

Fixes: WIFI-6021
Signed-off-by: John Crispin <john@phrozen.org>
This commit is contained in:
John Crispin
2021-12-06 13:16:25 +01:00
parent f87960eadc
commit 1d4b8ab7ff

View File

@@ -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 <john@phrozen.org> From: John Crispin <john@phrozen.org>
Date: Thu, 26 Aug 2021 17:34:47 +0200 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 <john@phrozen.org> Signed-off-by: John Crispin <john@phrozen.org>
--- ---
@@ -11,10 +11,10 @@ Signed-off-by: John Crispin <john@phrozen.org>
.../ipq40xx/base-files/etc/board.d/02_network | 1 + .../ipq40xx/base-files/etc/board.d/02_network | 1 +
.../etc/hotplug.d/firmware/11-ath10k-caldata | 6 + .../etc/hotplug.d/firmware/11-ath10k-caldata | 6 +
.../base-files/lib/upgrade/platform.sh | 1 + .../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 ++ target/linux/ipq40xx/image/generic.mk | 18 ++
.../ipq40xx/patches-5.4/999-hfcl_ion.patch | 12 + .../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/files/arch/arm/boot/dts/qcom-ipq4019-hfcl-ion4.dts
create mode 100644 target/linux/ipq40xx/patches-5.4/999-hfcl_ion.patch 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 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 --- a/target/linux/ipq40xx/base-files/lib/upgrade/platform.sh
+++ b/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() { @@ -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 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 new file mode 100644
index 0000000000..7437b98c02 index 0000000000..bb247c5b79
--- /dev/null --- /dev/null
+++ b/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
@@ -0,0 +1,226 @@ @@ -0,0 +1,236 @@
+// SPDX-License-Identifier: GPL-2.0-or-later OR MIT +// SPDX-License-Identifier: GPL-2.0-or-later OR MIT
+ +
+#include "qcom-ipq4019.dtsi" +#include "qcom-ipq4019.dtsi"
@@ -200,12 +200,22 @@ index 0000000000..7437b98c02
+ }; + };
+ }; + };
+ +
+ gpio_key {
+ compatible = "gpio-keys";
+ button@1 {
+ label = "reset";
+ linux,code = <KEY_RESTART>;
+ gpios = <&tlmm 18 GPIO_ACTIVE_LOW>;
+ linux,input-type = <1>;
+ };
+ };
+
+ leds { + leds {
+ compatible = "gpio-leds"; + compatible = "gpio-leds";
+ +
+ power_red: power_red { + power_red: power_red {
+ label = "yellow:wlan2g"; + label = "yellow:wlan2g";
+ gpios = <&tlmm 45 GPIO_ACTIVE_LOW>; + gpios = <&tlmm 45 GPIO_ACTIVE_HIGH>;
+ }; + };
+ +
+ power_green: power_green { + power_green: power_green {