ath79: enable LNA for all ar9344 TPLink CPE devices
authorThomas Huehn <thomas.huehn@hs-nordhausen.de>
Wed, 2 Dec 2020 10:24:07 +0000 (11:24 +0100)
committerAdrian Schmutzler <freifunk@adrianschmutzler.de>
Wed, 2 Dec 2020 15:28:19 +0000 (16:28 +0100)
The TPLink CPE devices CPE210/CPE510 based on ar9344 have a build-in
Low Noise Amplifier on both of the 2x2 mimo rx chains.
This patch activates those two LNAs in the respective receiving chains
and hence improves the RX sensitivity by about 20dB.

Tested on CPE510 v2 & v3.

Signed-off-by: Thomas Huehn <thomas.huehn@hs-nordhausen.de>
Acked-by: Robert Marko <robimarko@gmail.com>
target/linux/ath79/dts/ar9344_tplink_cpe.dtsi
target/linux/ath79/dts/ar9344_tplink_cpe_2port.dtsi

index 6917e5e9554bdfa7c5bbe3a5da6868f39f753f0b..4e9401e60b0584531831cfbf19dca6e159ca0b65 100644 (file)
 &eth1 {
        status = "okay";
 };
+
+&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";
+       };
+};
index 1fce8691602e21c6a8c92ef9f294defcdbb9616f..e7d33ab22be280cfa6b81aeeab1f445e0b79ec50 100644 (file)
        };
 };
 
-&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";
-       };
-};
-
 &eth1 {
        mtd-mac-address = <&info 0x8>;