From ff0a08dc3cd7ee5ce9bb877b537b125d34aeebd0 Mon Sep 17 00:00:00 2001 From: apcameron Date: Thu, 3 Dec 2020 20:17:57 -0600 Subject: [PATCH] ath79: Enable the LNA for ALL for the TP-Link CPExxx Devices based on the AR9344 This should improve the Power Levels for the 1 Port Devices. --- patches/001-ath79-cpexxx_lna.patch | 47 ++++++++++++++++++++++++++++++ patches/series | 1 + 2 files changed, 48 insertions(+) create mode 100644 patches/001-ath79-cpexxx_lna.patch diff --git a/patches/001-ath79-cpexxx_lna.patch b/patches/001-ath79-cpexxx_lna.patch new file mode 100644 index 00000000..5c769273 --- /dev/null +++ b/patches/001-ath79-cpexxx_lna.patch @@ -0,0 +1,47 @@ +--- a/target/linux/ath79/dts/ar9344_tplink_cpe.dtsi ++++ b/target/linux/ath79/dts/ar9344_tplink_cpe.dtsi +@@ -110,3 +110,20 @@ + + mtd-mac-address = <&info 0x8>; + }; ++ ++&gpio { ++ gpio_ext_lna0 { ++ gpio-hog; ++ gpios = <18 GPIO_ACTIVE_HIGH>; ++ output-high; ++ line-name = "tp-link:ext:lna0"; ++ }; ++ ++ ++ gpio_ext_lna1 { ++ gpio-hog; ++ gpios = <19 GPIO_ACTIVE_HIGH>; ++ output-high; ++ line-name = "tp-link:ext:lna1"; ++ }; ++}; +--- a/target/linux/ath79/dts/ar9344_tplink_cpe_2port.dtsi ++++ b/target/linux/ath79/dts/ar9344_tplink_cpe_2port.dtsi +@@ -44,21 +44,6 @@ + }; + }; + +-&gpio { +- gpio_ext_lna0 { +- gpio-hog; +- gpios = <18 0>; +- output-high; +- line-name = "tp-link:ext:lna0"; +- }; +- +- gpio_ext_lna1 { +- gpio-hog; +- gpios = <19 0>; +- output-high; +- line-name = "tp-link:ext:lna1"; +- }; +-}; + + ð1 { + status = "okay"; diff --git a/patches/series b/patches/series index 55d3d142..b0ad3521 100644 --- a/patches/series +++ b/patches/series @@ -17,6 +17,7 @@ 001-add_support_for_TP-Link_CPE510_v3.20.patch 001-ath79-cpe220v3-sysupgrade-supported.patch 001_cpe220v3_bugfix.patch +001-ath79-cpexxx_lna.patch 004-add-lhg-5hpnd-xl.patch 004-add-ldf-5nd.patch 005-add-haplite-new-model.patch