From patchwork Fri May 20 00:46:30 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Alexander 'lynxis' Couzens X-Patchwork-Id: 624287 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Received: from bombadil.infradead.org (bombadil.infradead.org [IPv6:2001:1868:205::9]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id 3r9q7x3xr5z9t3l for ; Fri, 20 May 2016 10:49:17 +1000 (AEST) Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.80.1 #2 (Red Hat Linux)) id 1b3YbX-0002l6-2g; Fri, 20 May 2016 00:47:51 +0000 Received: from mail.base45.de ([2001:67c:2050:310::a:2]) by bombadil.infradead.org with esmtps (Exim 4.80.1 #2 (Red Hat Linux)) id 1b3YbU-0002ir-Bd for lede-dev@lists.infradead.org; Fri, 20 May 2016 00:47:49 +0000 Received: from ip5b41c611.dynamic.kabel-deutschland.de ([91.65.198.17] helo=lazus.yip) by mail.base45.de with esmtpsa (TLS1.2:RSA_AES_128_CBC_SHA256:128) (Exim 4.82) (envelope-from ) id 1b3Yb7-0003Pw-Fu; Fri, 20 May 2016 02:47:25 +0200 From: Alexander Couzens To: lede-dev@lists.infradead.org Date: Fri, 20 May 2016 02:46:30 +0200 Message-Id: <1463705191-10903-1-git-send-email-lynxis@fe80.eu> X-Mailer: git-send-email 2.8.2 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20160519_174748_581145_4AF8147C X-CRM114-Status: UNSURE ( 5.39 ) X-CRM114-Notice: Please train this message. X-Spam-Score: -1.9 (-) X-Spam-Report: SpamAssassin version 3.4.0 on bombadil.infradead.org summary: Content analysis details: (-1.9 points) pts rule name description ---- ---------------------- -------------------------------------------------- -1.9 BAYES_00 BODY: Bayes spam probability is 0 to 1% [score: 0.0000] Subject: [LEDE-DEV] [PATCH 1/2] ath79: enable LNA for TpLink CPE510 on GPIO 18 & 19 X-BeenThere: lede-dev@lists.infradead.org X-Mailman-Version: 2.1.20 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Alexander Couzens , Matthias Schiffer , Felix Fietkau MIME-Version: 1.0 Sender: "Lede-dev" Errors-To: lede-dev-bounces+incoming=patchwork.ozlabs.org@lists.infradead.org The LNA improves the rx path up to ~20dbm on those devices. --- target/linux/ar71xx/files/arch/mips/ath79/mach-cpe510.c | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/target/linux/ar71xx/files/arch/mips/ath79/mach-cpe510.c b/target/linux/ar71xx/files/arch/mips/ath79/mach-cpe510.c index 8bf5c0f..5cb052a 100644 --- a/target/linux/ar71xx/files/arch/mips/ath79/mach-cpe510.c +++ b/target/linux/ar71xx/files/arch/mips/ath79/mach-cpe510.c @@ -30,6 +30,9 @@ #define CPE510_GPIO_LED_L3 15 #define CPE510_GPIO_LED_L4 16 +#define CPE510_GPIO_EXTERNAL_LNA0 18 +#define CPE510_GPIO_EXTERNAL_LNA1 19 + #define CPE510_GPIO_BTN_RESET 4 #define CPE510_KEYS_POLL_INTERVAL 20 /* msecs */ @@ -93,6 +96,9 @@ static void __init cpe510_setup(void) ARRAY_SIZE(cpe510_gpio_keys), cpe510_gpio_keys); + ath79_wmac_set_ext_lna_gpio(0, CPE510_GPIO_EXTERNAL_LNA0); + ath79_wmac_set_ext_lna_gpio(1, CPE510_GPIO_EXTERNAL_LNA1); + ath79_register_m25p80(NULL); ath79_register_mdio(1, 0);