From patchwork Fri Nov 27 16:37:11 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: peter@cardoe.co.uk X-Patchwork-Id: 1407332 X-Patchwork-Delegate: ynezz@true.cz Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Authentication-Results: ozlabs.org; spf=pass (sender SPF authorized) smtp.mailfrom=lists.openwrt.org (client-ip=2001:8b0:10b:1231::1; helo=merlin.infradead.org; envelope-from=openwrt-devel-bounces+incoming=patchwork.ozlabs.org@lists.openwrt.org; receiver=) Authentication-Results: ozlabs.org; dmarc=none (p=none dis=none) header.from=cardoe.co.uk Authentication-Results: ozlabs.org; dkim=pass (2048-bit key; secure) header.d=lists.infradead.org header.i=@lists.infradead.org header.a=rsa-sha256 header.s=merlin.20170209 header.b=UKsNsTFU; dkim-atps=neutral Received: from merlin.infradead.org (merlin.infradead.org [IPv6:2001:8b0:10b:1231::1]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id 4CjLPC6Bk0z9sRR for ; Sat, 28 Nov 2020 03:56:15 +1100 (AEDT) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=merlin.20170209; h=Sender:Content-Transfer-Encoding: Content-Type:MIME-Version:Cc:List-Subscribe:List-Help:List-Post:List-Archive: List-Unsubscribe:List-Id:Message-Id:Date:Subject:To:From:Reply-To:Content-ID: Content-Description:Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc :Resent-Message-ID:In-Reply-To:References:List-Owner; bh=gwFza9tCPPfHtLhvSxDo63Ibkwcv3MgffrTx1PoclDo=; b=UKsNsTFUVrzNBLxVz3+TnDRPGC bNBVY6ZkBTezWlhdxVWTFQZ5sx3SKhOsphtUp0fle3XicLMST7oQRs8VU+hW4r+DXbH7qP0fgA19O eC/JK9z+h8U+CpHB9j8rfc3uQd43I/QWxvcyR8Sk5k7nCXBKpLVEfQu/Ss3h5qbTectqVTcdsOuLa RaLgVHsE8hzFRY4rKr2pm4TgeKN0AJ2Wv38ksrl9MDSaUQaawDnAyYQPEjknQxsR1TcINqkzIgRpD 8/8lAODGtpsyDJEztN0FgRe5aUlWPN1Mr2eEF1lm7lZ+leF2GaFex3TaeVQDwHNtSyg9mfQMaJHzL ZTw1vVOw==; Received: from localhost ([::1] helo=merlin.infradead.org) by merlin.infradead.org with esmtp (Exim 4.92.3 #3 (Red Hat Linux)) id 1kih0f-0006l6-FT; Fri, 27 Nov 2020 16:54:13 +0000 Received: from cardoe.plus.com ([81.174.243.101] helo=mail.cardoe.co.uk) by merlin.infradead.org with esmtps (Exim 4.92.3 #3 (Red Hat Linux)) id 1kih0c-0006kZ-Rb for openwrt-devel@lists.openwrt.org; Fri, 27 Nov 2020 16:54:11 +0000 Received: from localhost (localhost [127.0.0.1]) by mail.cardoe.co.uk (Postfix) with ESMTP id CF82E560053 for ; Fri, 27 Nov 2020 16:54:07 +0000 (GMT) Received: from mail.cardoe.co.uk ([127.0.0.1]) by localhost (mail.cardoe.co.uk [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id PQmccyqEpkB7; Fri, 27 Nov 2020 16:54:06 +0000 (GMT) Received: from localhost.localdomain (cardoe.plus.com [81.174.243.101]) by mail.cardoe.co.uk (Postfix) with ESMTPA id 708E6560044; Fri, 27 Nov 2020 16:54:06 +0000 (GMT) From: peter@cardoe.co.uk To: openwrt-devel@lists.openwrt.org Subject: [PATCH] ipq806x: Fix gmac1 (WAN) on Netgear D7800 Date: Fri, 27 Nov 2020 16:37:11 +0000 Message-Id: <1606495031-12862-1-git-send-email-peter@cardoe.co.uk> X-Mailer: git-send-email 2.7.4 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20201127_115411_017967_9C8AA582 X-CRM114-Status: GOOD ( 11.75 ) X-Spam-Score: 0.0 (/) X-Spam-Report: SpamAssassin version 3.4.4 on merlin.infradead.org summary: Content analysis details: (0.0 points) pts rule name description ---- ---------------------- -------------------------------------------------- -0.0 SPF_PASS SPF: sender matches SPF record 0.0 SPF_HELO_NONE SPF: HELO does not publish an SPF Record X-BeenThere: openwrt-devel@lists.openwrt.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: OpenWrt Development List List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Peter Cardoe MIME-Version: 1.0 Sender: "openwrt-devel" Errors-To: openwrt-devel-bounces+incoming=patchwork.ozlabs.org@lists.openwrt.org From: Peter Cardoe ipq806x: Fix gmac1 (WAN) on Netgear D7800 The WAN port on Netgear D7800 is unable to connect to an ISP when the link to the modem is running at less than 1GB. This patch fixes the issue by removing the phy-handle definition and replacing it with a fixed-link definition The WAN port is then able to connect to a modem via a link running at 100Mbs or 10Mbs Fixes: FS#3086 Signed-off-by: Peter Cardoe --- target/linux/ipq806x/files/arch/arm/boot/dts/qcom-ipq8064-d7800.dts | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/target/linux/ipq806x/files/arch/arm/boot/dts/qcom-ipq8064-d7800.dts b/target/linux/ipq806x/files/arch/arm/boot/dts/qcom-ipq8064-d7800.dts index 7fb871b..229596b 100644 --- a/target/linux/ipq806x/files/arch/arm/boot/dts/qcom-ipq8064-d7800.dts +++ b/target/linux/ipq806x/files/arch/arm/boot/dts/qcom-ipq8064-d7800.dts @@ -283,13 +283,17 @@ &gmac1 { status = "okay"; phy-mode = "rgmii"; - phy-handle = <&phy4>; qcom,id = <1>; pinctrl-0 = <&rgmii2_pins>; pinctrl-names = "default"; mtd-mac-address = <&art 6>; + + fixed-link { + speed = <1000>; + full-duplex; + }; }; &gmac2 {