From patchwork Fri May 20 11:10:36 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: 624453 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 3rB4zn52tnz9t3r for ; Fri, 20 May 2016 21:13:09 +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 1b3iKy-0000jO-Lg; Fri, 20 May 2016 11:11:24 +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 1b3iKu-0000hD-Ic for lede-dev@lists.infradead.org; Fri, 20 May 2016 11:11:21 +0000 Received: from static.214.155.40.188.clients.your-server.de ([188.40.155.214] helo=lazus.sb.local) by mail.base45.de with esmtpsa (TLS1.2:RSA_AES_128_CBC_SHA256:128) (Exim 4.82) (envelope-from ) id 1b3iKU-000659-If; Fri, 20 May 2016 13:10:55 +0200 From: Alexander Couzens To: lede-dev@lists.infradead.org Date: Fri, 20 May 2016 13:10:36 +0200 Message-Id: <1463742637-22039-1-git-send-email-lynxis@fe80.eu> X-Mailer: git-send-email 2.8.2 In-Reply-To: <573EC3FA.1010808@gmx.de> References: <573EC3FA.1010808@gmx.de> X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20160520_041120_803845_FD86143E X-CRM114-Status: UNSURE ( 7.08 ) 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 v2 1/2] ar71xx/cpe510: enable LNA for CPE210/220/510/520 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. Within a simple test setup it improved the signal from -60dbm to -40dbm. Signed-off-by: Alexander Couzens --- 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);