From 52f551733a24ec6e294a4e846aa20091751e4ef0 Mon Sep 17 00:00:00 2001 From: Peter Robinson Date: Wed, 28 Oct 2020 18:55:48 +0000 Subject: Fixes for AllWinner wired network issues due to Realtek PHY driver change (rhbz 1889090) --- 0001-update-phy-on-pine64-a64-devices.patch | 53 + ...ino3-nano-enable-RGMII-RX-TX-delay-on-PHY.patch | 132 ++ arm-sun8i-realtek-phy-fixes.patch | 1385 ++++++++++++++++++++ kernel.spec | 9 + 4 files changed, 1579 insertions(+) create mode 100644 0001-update-phy-on-pine64-a64-devices.patch create mode 100644 ARM-dts-sun7i-pcduino3-nano-enable-RGMII-RX-TX-delay-on-PHY.patch create mode 100644 arm-sun8i-realtek-phy-fixes.patch diff --git a/0001-update-phy-on-pine64-a64-devices.patch b/0001-update-phy-on-pine64-a64-devices.patch new file mode 100644 index 000000000..0d0817e02 --- /dev/null +++ b/0001-update-phy-on-pine64-a64-devices.patch @@ -0,0 +1,53 @@ +From bb421e23b49e39c117a31f7c07df83cddd0d96dc Mon Sep 17 00:00:00 2001 +From: Peter Robinson +Date: Mon, 26 Oct 2020 17:01:57 +0000 +Subject: [PATCH 1/2] update phy on pine64 a64 devices + +--- + arch/arm64/boot/dts/allwinner/sun50i-a64-pine64-plus.dts | 2 +- + arch/arm64/boot/dts/allwinner/sun50i-a64-pine64.dts | 2 +- + arch/arm64/boot/dts/allwinner/sun50i-a64-sopine-baseboard.dts | 2 +- + 3 files changed, 3 insertions(+), 3 deletions(-) + +diff --git a/arch/arm64/boot/dts/allwinner/sun50i-a64-pine64-plus.dts b/arch/arm64/boot/dts/allwinner/sun50i-a64-pine64-plus.dts +index b26181cf9095..01728a4c5309 100644 +--- a/arch/arm64/boot/dts/allwinner/sun50i-a64-pine64-plus.dts ++++ b/arch/arm64/boot/dts/allwinner/sun50i-a64-pine64-plus.dts +@@ -13,7 +13,7 @@ / { + &emac { + pinctrl-names = "default"; + pinctrl-0 = <&rgmii_pins>; +- phy-mode = "rgmii"; ++ phy-mode = "rgmii-id"; + phy-handle = <&ext_rgmii_phy>; + status = "okay"; + }; +diff --git a/arch/arm64/boot/dts/allwinner/sun50i-a64-pine64.dts b/arch/arm64/boot/dts/allwinner/sun50i-a64-pine64.dts +index 2165f238af13..9741fb5caa6f 100644 +--- a/arch/arm64/boot/dts/allwinner/sun50i-a64-pine64.dts ++++ b/arch/arm64/boot/dts/allwinner/sun50i-a64-pine64.dts +@@ -81,7 +81,7 @@ &ehci1 { + &emac { + pinctrl-names = "default"; + pinctrl-0 = <&rmii_pins>; +- phy-mode = "rmii"; ++ phy-mode = "rmii-id"; + phy-handle = <&ext_rmii_phy1>; + phy-supply = <®_dc1sw>; + status = "okay"; +diff --git a/arch/arm64/boot/dts/allwinner/sun50i-a64-sopine-baseboard.dts b/arch/arm64/boot/dts/allwinner/sun50i-a64-sopine-baseboard.dts +index 2f6ea9f3f6a2..079b10641ccd 100644 +--- a/arch/arm64/boot/dts/allwinner/sun50i-a64-sopine-baseboard.dts ++++ b/arch/arm64/boot/dts/allwinner/sun50i-a64-sopine-baseboard.dts +@@ -79,7 +79,7 @@ &ehci1 { + &emac { + pinctrl-names = "default"; + pinctrl-0 = <&rgmii_pins>; +- phy-mode = "rgmii"; ++ phy-mode = "rgmii-id"; + phy-handle = <&ext_rgmii_phy>; + phy-supply = <®_dc1sw>; + status = "okay"; +-- +2.28.0 + diff --git a/ARM-dts-sun7i-pcduino3-nano-enable-RGMII-RX-TX-delay-on-PHY.patch b/ARM-dts-sun7i-pcduino3-nano-enable-RGMII-RX-TX-delay-on-PHY.patch new file mode 100644 index 000000000..d3dfe92c5 --- /dev/null +++ b/ARM-dts-sun7i-pcduino3-nano-enable-RGMII-RX-TX-delay-on-PHY.patch @@ -0,0 +1,132 @@ +From patchwork Sun Oct 25 14:01:44 2020 +Content-Type: text/plain; charset="utf-8" +MIME-Version: 1.0 +Content-Transfer-Encoding: 7bit +X-Patchwork-Submitter: Adam Sampson +X-Patchwork-Id: 11855267 +Return-Path: + +X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on + aws-us-west-2-korg-lkml-1.web.codeaurora.org +X-Spam-Level: +X-Spam-Status: No, score=-12.8 required=3.0 tests=BAYES_00,DKIMWL_WL_HIGH, + DKIM_SIGNED,DKIM_VALID,HEADER_FROM_DIFFERENT_DOMAINS,INCLUDES_PATCH, + MAILING_LIST_MULTI,SIGNED_OFF_BY,SPF_HELO_NONE,SPF_PASS,URIBL_BLOCKED, + USER_AGENT_GIT autolearn=ham autolearn_force=no version=3.4.0 +Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) + by smtp.lore.kernel.org (Postfix) with ESMTP id D1D99C388F7 + for ; + Sun, 25 Oct 2020 14:04:02 +0000 (UTC) +Received: from merlin.infradead.org (merlin.infradead.org [205.233.59.134]) + (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) + (No client certificate requested) + by mail.kernel.org (Postfix) with ESMTPS id 539B92225E + for ; + Sun, 25 Oct 2020 14:04:02 +0000 (UTC) +Authentication-Results: mail.kernel.org; + dkim=pass (2048-bit key) header.d=lists.infradead.org + header.i=@lists.infradead.org header.b="pKL4zMU1" +DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 539B92225E +Authentication-Results: mail.kernel.org; + dmarc=fail (p=none dis=none) header.from=offog.org +Authentication-Results: mail.kernel.org; + spf=none + smtp.mailfrom=linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org +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:Cc:List-Subscribe:List-Help:List-Post:List-Archive: + List-Unsubscribe:List-Id:MIME-Version: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=Smw7tRUwTAlV9zXVX1uVl3+PN3QebXDyiZrExxBSCPU=; b=pKL4zMU1LMKGyGrnNBuRIJVlPn + yMf8/tMv8w7BT/mMtZkxY22WUlN4IpqNLAx1mdiIa5VUVbVpdsXYWYdSWaUvJe24nyJi8NycxIoO8 + 168UTytxMlzI5F18yr9bXZ79rSRW+/P0zQbb+OQPMPbJPNb1RusFtve8WGNCkqlOWUOpiVQqPFPJ9 + hGhOsDJhXjep7y7HNpu7+UBYvZInmOOrAS079WoEc1jX4u6zDXt0ox24r0Fcc8wnVpsWpGxPhb0xZ + uZtguJOo2ItQdeT/6OfafjzV15qXfPGK+148ny4vyOvgHNvJX88R6RBIxqUdvQzoh10GTlb76K45i + Gfx5ufkA==; +Received: from localhost ([::1] helo=merlin.infradead.org) + by merlin.infradead.org with esmtp (Exim 4.92.3 #3 (Red Hat Linux)) + id 1kWgb2-0000uB-6w; Sun, 25 Oct 2020 14:02:08 +0000 +Received: from a-painless.mh.aa.net.uk ([2001:8b0:0:30::51] + helo=alt.a-painless.mh.aa.net.uk) + by merlin.infradead.org with esmtps (Exim 4.92.3 #3 (Red Hat Linux)) + id 1kWgaz-0000tq-Kq + for linux-arm-kernel@lists.infradead.org; Sun, 25 Oct 2020 14:02:06 +0000 +Received: from cartman.offog.org ([2001:8b0:83b:b53f::a]) + by a-painless.mh.aa.net.uk with esmtps + (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) + (envelope-from ) + id 1kWgay-0001oV-R0; Sun, 25 Oct 2020 14:02:04 +0000 +Received: from ats by cartman.offog.org with local (Exim 4.94) + (envelope-from ) + id 1kWgao-0007UQ-4s; Sun, 25 Oct 2020 14:01:54 +0000 +From: Adam Sampson +To: linux-sunxi@googlegroups.com, devicetree@vger.kernel.org, + linux-arm-kernel@lists.infradead.org +Subject: [PATCH] ARM: dts: sun7i: pcduino3-nano: enable RGMII RX/TX delay on + PHY +Date: Sun, 25 Oct 2020 14:01:44 +0000 +Message-Id: <20201025140144.28693-1-ats@offog.org> +X-Mailer: git-send-email 2.29.1 +MIME-Version: 1.0 +X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 +X-CRM114-CacheID: sfid-20201025_100205_812453_7FAF68C8 +X-CRM114-Status: GOOD ( 13.85 ) +X-BeenThere: linux-arm-kernel@lists.infradead.org +X-Mailman-Version: 2.1.29 +Precedence: list +List-Id: +List-Unsubscribe: + , + +List-Archive: +List-Post: +List-Help: +List-Subscribe: + , + +Cc: Adam Sampson +Sender: "linux-arm-kernel" +Errors-To: + linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org + +The RX/TX delays for the Ethernet PHY on the Linksprite pcDuino 3 Nano +are configured in hardware, using resistors that are populated to pull +the RTL8211E's RXDLY/TXDLY pins low or high as needed. + +phy-mode should be set to rgmii-id to reflect this. Previously it was +set to rgmii, which used to work but now results in the delays being +disabled again as a result of the bugfix in commit bbc4d71d6354 ("net: +phy: realtek: fix rtl8211e rx/tx delay config"). + +Tested on two pcDuino 3 Nano boards purchased in 2015. Without this fix, +Ethernet works unreliably on one board and doesn't work at all on the +other. + +Fixes: 061035d456c9 ("ARM: dts: sun7i: Add dts file for pcDuino 3 Nano board") +Signed-off-by: Adam Sampson +Reviewed-by: Andrew Lunn +--- + arch/arm/boot/dts/sun7i-a20-pcduino3-nano.dts | 4 ++-- + 1 file changed, 2 insertions(+), 2 deletions(-) + +diff --git a/arch/arm/boot/dts/sun7i-a20-pcduino3-nano.dts b/arch/arm/boot/dts/sun7i-a20-pcduino3-nano.dts +index fce2f7fcd084..bf38c66c1815 100644 +--- a/arch/arm/boot/dts/sun7i-a20-pcduino3-nano.dts ++++ b/arch/arm/boot/dts/sun7i-a20-pcduino3-nano.dts +@@ -1,5 +1,5 @@ + /* +- * Copyright 2015 Adam Sampson ++ * Copyright 2015-2020 Adam Sampson + * + * This file is dual-licensed: you can use it either under the terms + * of the GPL or the X11 license, at your option. Note that this dual +@@ -115,7 +115,7 @@ &gmac { + pinctrl-names = "default"; + pinctrl-0 = <&gmac_rgmii_pins>; + phy-handle = <&phy1>; +- phy-mode = "rgmii"; ++ phy-mode = "rgmii-id"; + status = "okay"; + }; + diff --git a/arm-sun8i-realtek-phy-fixes.patch b/arm-sun8i-realtek-phy-fixes.patch new file mode 100644 index 000000000..018ed84f3 --- /dev/null +++ b/arm-sun8i-realtek-phy-fixes.patch @@ -0,0 +1,1385 @@ +From patchwork Sat Oct 24 16:25:06 2020 +Content-Type: text/plain; charset="utf-8" +MIME-Version: 1.0 +Content-Transfer-Encoding: 7bit +X-Patchwork-Submitter: Chen-Yu Tsai +X-Patchwork-Id: 11854901 +Return-Path: + +X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on + aws-us-west-2-korg-lkml-1.web.codeaurora.org +X-Spam-Level: +X-Spam-Status: No, score=-13.0 required=3.0 tests=BAYES_00,DKIMWL_WL_HIGH, + DKIM_SIGNED,DKIM_VALID,INCLUDES_PATCH,MAILING_LIST_MULTI,SIGNED_OFF_BY, + SPF_HELO_NONE,SPF_PASS,URIBL_BLOCKED,USER_AGENT_GIT autolearn=ham + autolearn_force=no version=3.4.0 +Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) + by smtp.lore.kernel.org (Postfix) with ESMTP id CC566C2D0A3 + for ; + Sat, 24 Oct 2020 16:28:07 +0000 (UTC) +Received: from merlin.infradead.org (merlin.infradead.org [205.233.59.134]) + (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) + (No client certificate requested) + by mail.kernel.org (Postfix) with ESMTPS id 60202207EA + for ; + Sat, 24 Oct 2020 16:28:07 +0000 (UTC) +Authentication-Results: mail.kernel.org; + dkim=pass (2048-bit key) header.d=lists.infradead.org + header.i=@lists.infradead.org header.b="nB+rBlHu"; + dkim=fail reason="signature verification failed" (1024-bit key) + header.d=kernel.org header.i=@kernel.org header.b="DHlQnsAd" +DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 60202207EA +Authentication-Results: mail.kernel.org; + dmarc=fail (p=none dis=none) header.from=kernel.org +Authentication-Results: mail.kernel.org; + spf=none + smtp.mailfrom=linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org +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:Cc:List-Subscribe:List-Help:List-Post:List-Archive: + List-Unsubscribe:List-Id:MIME-Version: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=OQAfXg+dwClMrhJlHGAxvINAVvxnkK3jFnfmXtSe9Ok=; b=nB+rBlHukxcwr0n2UGiFacHpUA + UkcWGuGDGkscpI4GeCtAhAh/Rbwyj3AsoKs/J+1yV7Q95QzXSxaRxH1mk+E6OR/Hmy9fBR2BHAtZ6 + UwpnmRx6N6bZ/iqTLyUinwUmiCkf18ZQ76vgaDbYnKNOMUKP32sPFUqGkjG0gi0yXqk5g2OuA0i4U + p+FQpm4mzJjHTVuhXvtrk4P6AWuued/nCBNICGyGzVBI8TaRRpUFy160I+Gc0b1KZMqZXA5CKu6+P + hokCD0NuXcaUuaQBXBa03+VXCzJJGeJ5GbPdnOcQ3Z9ycUF47oegJoGIHDo/Dkshm2eez/bQGcpMr + uhbQK3gQ==; +Received: from localhost ([::1] helo=merlin.infradead.org) + by merlin.infradead.org with esmtp (Exim 4.92.3 #3 (Red Hat Linux)) + id 1kWMN8-0003s2-IR; Sat, 24 Oct 2020 16:26:26 +0000 +Received: from mail.kernel.org ([198.145.29.99]) + by merlin.infradead.org with esmtps (Exim 4.92.3 #3 (Red Hat Linux)) + id 1kWMMi-0003hu-PN + for linux-arm-kernel@lists.infradead.org; Sat, 24 Oct 2020 16:26:03 +0000 +Received: from wens.tw (mirror2.csie.ntu.edu.tw [140.112.30.76]) + (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) + (No client certificate requested) + by mail.kernel.org (Postfix) with ESMTPSA id 743E920A8B; + Sat, 24 Oct 2020 16:25:58 +0000 (UTC) +DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; + s=default; t=1603556758; + bh=HxvS3g0S2mjIzj0EuHVkbxHyM3oroosXZefPveoKsJc=; + h=From:To:Cc:Subject:Date:From; + b=DHlQnsAd/aNkXXgpD0wUoDjGpF5p3QcUqpruafu2PFBaUUkKN3Dj5dSSJTghbSbE+ + XX6T3q/QQGUrqJwV4qNXsspjEgZjp2xfyZglWMF1pK3N8+xqlgXVjx/AYLkT71ZDkk + bAe3dofHBLaj6wLVvo12QfvzbfqkhYsDE19g3a8w= +Received: by wens.tw (Postfix, from userid 1000) + id 859865FDAF; Sun, 25 Oct 2020 00:25:46 +0800 (CST) +From: Chen-Yu Tsai +To: Maxime Ripard , + Jernej Skrabec +Subject: [PATCH 01/10] Revert "arm: sun8i: orangepi-pc-plus: Set EMAC activity + LEDs to active high" +Date: Sun, 25 Oct 2020 00:25:06 +0800 +Message-Id: <20201024162515.30032-1-wens@kernel.org> +X-Mailer: git-send-email 2.28.0 +MIME-Version: 1.0 +X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 +X-CRM114-CacheID: sfid-20201024_122601_061577_B4AF79E6 +X-CRM114-Status: GOOD ( 12.90 ) +X-BeenThere: linux-arm-kernel@lists.infradead.org +X-Mailman-Version: 2.1.29 +Precedence: list +List-Id: +List-Unsubscribe: + , + +List-Archive: +List-Post: +List-Help: +List-Subscribe: + , + +Cc: devicetree@vger.kernel.org, linux-sunxi@googlegroups.com, + Chen-Yu Tsai , linux-arm-kernel@lists.infradead.org, + linux-kernel@vger.kernel.org +Sender: "linux-arm-kernel" +Errors-To: + linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org + +From: Chen-Yu Tsai + +This reverts commit 75ee680cbd2e4d0156b94f9fec50076361ab12f2. + +Turns out the activity and link LEDs on the RJ45 port are active low, +just like on the Orange Pi PC. + +Revert the commit that says otherwise. + +Fixes: 75ee680cbd2e ("arm: sun8i: orangepi-pc-plus: Set EMAC activity LEDs to active high") +Fixes: 4904337fe34f ("ARM: dts: sunxi: Restore EMAC changes (boards)") +Signed-off-by: Chen-Yu Tsai +Tested-by: Jernej Skrabec +Acked-by: Jernej Skrabec +--- +If you have this board, please help test it. + +For me, the correct lighting of the LEDs is both LEDs should be lit +when connected at 100 Mbps. +--- + arch/arm/boot/dts/sun8i-h3-orangepi-pc-plus.dts | 5 ----- + 1 file changed, 5 deletions(-) + +diff --git a/arch/arm/boot/dts/sun8i-h3-orangepi-pc-plus.dts b/arch/arm/boot/dts/sun8i-h3-orangepi-pc-plus.dts +index 71fb73208939..babf4cf1b2f6 100644 +--- a/arch/arm/boot/dts/sun8i-h3-orangepi-pc-plus.dts ++++ b/arch/arm/boot/dts/sun8i-h3-orangepi-pc-plus.dts +@@ -53,11 +53,6 @@ aliases { + }; + }; + +-&emac { +- /* LEDs changed to active high on the plus */ +- /delete-property/ allwinner,leds-active-low; +-}; +- + &mmc1 { + vmmc-supply = <®_vcc3v3>; + bus-width = <4>; + +From patchwork Sat Oct 24 16:25:07 2020 +Content-Type: text/plain; charset="utf-8" +MIME-Version: 1.0 +Content-Transfer-Encoding: 7bit +X-Patchwork-Submitter: Chen-Yu Tsai +X-Patchwork-Id: 11854899 +Return-Path: + +X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on + aws-us-west-2-korg-lkml-1.web.codeaurora.org +X-Spam-Level: +X-Spam-Status: No, score=-13.0 required=3.0 tests=BAYES_00,DKIMWL_WL_HIGH, + DKIM_SIGNED,DKIM_VALID,INCLUDES_PATCH,MAILING_LIST_MULTI,SIGNED_OFF_BY, + SPF_HELO_NONE,SPF_PASS,URIBL_BLOCKED,USER_AGENT_GIT autolearn=ham + autolearn_force=no version=3.4.0 +Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) + by smtp.lore.kernel.org (Postfix) with ESMTP id 7880FC5517A + for ; + Sat, 24 Oct 2020 16:27:51 +0000 (UTC) +Received: from merlin.infradead.org (merlin.infradead.org [205.233.59.134]) + (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) + (No client certificate requested) + by mail.kernel.org (Postfix) with ESMTPS id 0CC6720897 + for ; + Sat, 24 Oct 2020 16:27:51 +0000 (UTC) +Authentication-Results: mail.kernel.org; + dkim=pass (2048-bit key) header.d=lists.infradead.org + header.i=@lists.infradead.org header.b="ny5+IeDK"; + dkim=fail reason="signature verification failed" (1024-bit key) + header.d=kernel.org header.i=@kernel.org header.b="ddZn3Cc1" +DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 0CC6720897 +Authentication-Results: mail.kernel.org; + dmarc=fail (p=none dis=none) header.from=kernel.org +Authentication-Results: mail.kernel.org; + spf=none + smtp.mailfrom=linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org +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:Cc:List-Subscribe:List-Help:List-Post:List-Archive: + List-Unsubscribe:List-Id:MIME-Version:References:In-Reply-To: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:List-Owner; + bh=4D6Dfow5wnALgQYLllYxetgnALHnOU97zuFS9xb1iOs=; b=ny5+IeDKMWdjtIPAzUsPD7M37 + mPjUKF2zK/VOPw+nVMZx0s9iuzA3tojPYZgIEB+yVH7Z5H3BaOQdbKHV9sYOmdwDaH0GRFVV0tlMp + uXhSICBXuyWa4EttDdg0JR6oM81MYiJ5W5WgzSI1niNK+Nr0zvucWpKmIbPCy8TG6GqcpQbo11A7F + ZydcDeEw3QaMFis4VqeNVora5SMrhJWHDkva/1O8c9XTDlsGPq3IzL00U2RB5UwnczvL+KyNPMc+l + G33npdfCpB2nO+KpLhOQVYyS16Py5XQP9C3uQxBKWs6/GDcO23jFgddWsTTBX9sUxoRrud121nO/T + qeqOqGkkA==; +Received: from localhost ([::1] helo=merlin.infradead.org) + by merlin.infradead.org with esmtp (Exim 4.92.3 #3 (Red Hat Linux)) + id 1kWMMv-0003nH-0m; Sat, 24 Oct 2020 16:26:13 +0000 +Received: from mail.kernel.org ([198.145.29.99]) + by merlin.infradead.org with esmtps (Exim 4.92.3 #3 (Red Hat Linux)) + id 1kWMMi-0003iC-M1 + for linux-arm-kernel@lists.infradead.org; Sat, 24 Oct 2020 16:26:03 +0000 +Received: from wens.tw (mirror2.csie.ntu.edu.tw [140.112.30.76]) + (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) + (No client certificate requested) + by mail.kernel.org (Postfix) with ESMTPSA id E8D8D223EA; + Sat, 24 Oct 2020 16:25:58 +0000 (UTC) +DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; + s=default; t=1603556759; + bh=hVhrnyJRoFFRvKhXTPrAWTqNjUzageDDweqJNvHZZ6M=; + h=From:To:Cc:Subject:Date:In-Reply-To:References:From; + b=ddZn3Cc1XznkLiE+2H0RbNwkzS3sJKsJTyVAc6MhYYOrqvf3u8Hm4hoBUdnJKRjVs + hWgQ65oI5yKgcr4o0NXqg3Dk8KIqFgY/VbyFVvFQKcFwqxk1lk2R1j4KJDW3wCoUs3 + vNOAny9fsefBHqk/qp4DPeSOWbn/2zYXDWkUWxOI= +Received: by wens.tw (Postfix, from userid 1000) + id 949435F9AC; Sun, 25 Oct 2020 00:25:46 +0800 (CST) +From: Chen-Yu Tsai +To: Maxime Ripard , + Jernej Skrabec +Subject: [PATCH 02/10] ARM: dts: sun6i: a31-hummingbird: Enable RGMII RX/TX + delay on Ethernet PHY +Date: Sun, 25 Oct 2020 00:25:07 +0800 +Message-Id: <20201024162515.30032-2-wens@kernel.org> +X-Mailer: git-send-email 2.28.0 +In-Reply-To: <20201024162515.30032-1-wens@kernel.org> +References: <20201024162515.30032-1-wens@kernel.org> +MIME-Version: 1.0 +X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 +X-CRM114-CacheID: sfid-20201024_122601_020379_307C7D44 +X-CRM114-Status: GOOD ( 14.88 ) +X-BeenThere: linux-arm-kernel@lists.infradead.org +X-Mailman-Version: 2.1.29 +Precedence: list +List-Id: +List-Unsubscribe: + , + +List-Archive: +List-Post: +List-Help: +List-Subscribe: + , + +Cc: devicetree@vger.kernel.org, linux-sunxi@googlegroups.com, + Chen-Yu Tsai , linux-arm-kernel@lists.infradead.org, + linux-kernel@vger.kernel.org +Sender: "linux-arm-kernel" +Errors-To: + linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org + +From: Chen-Yu Tsai + +The Ethernet PHY on the A31 Hummingbird has the RX and TX delays +enabled on the PHY, using pull-ups on the RXDLY and TXDLY pins. + +Fix the phy-mode description to correct reflect this so that the +implementation doesn't reconfigure the delays incorrectly. This +happened with commit bbc4d71d6354 ("net: phy: realtek: fix rtl8211e +rx/tx delay config"). + +Fixes: c220aec2bb79 ("ARM: dts: sun6i: Add Merrii A31 Hummingbird support") +Signed-off-by: Chen-Yu Tsai +Acked-by: Jernej Skrabec +--- + arch/arm/boot/dts/sun6i-a31-hummingbird.dts | 2 +- + 1 file changed, 1 insertion(+), 1 deletion(-) + +diff --git a/arch/arm/boot/dts/sun6i-a31-hummingbird.dts b/arch/arm/boot/dts/sun6i-a31-hummingbird.dts +index 049e6ab3cf56..73de34ae37fd 100644 +--- a/arch/arm/boot/dts/sun6i-a31-hummingbird.dts ++++ b/arch/arm/boot/dts/sun6i-a31-hummingbird.dts +@@ -154,7 +154,7 @@ &gmac { + pinctrl-names = "default"; + pinctrl-0 = <&gmac_rgmii_pins>; + phy-handle = <&phy1>; +- phy-mode = "rgmii"; ++ phy-mode = "rgmii-id"; + status = "okay"; + }; + + +From patchwork Sat Oct 24 16:25:08 2020 +Content-Type: text/plain; charset="utf-8" +MIME-Version: 1.0 +Content-Transfer-Encoding: 8bit +X-Patchwork-Submitter: Chen-Yu Tsai +X-Patchwork-Id: 11854895 +Return-Path: + +X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on + aws-us-west-2-korg-lkml-1.web.codeaurora.org +X-Spam-Level: +X-Spam-Status: No, score=-13.0 required=3.0 tests=BAYES_00,DKIMWL_WL_HIGH, + DKIM_SIGNED,DKIM_VALID,INCLUDES_PATCH,MAILING_LIST_MULTI,SIGNED_OFF_BY, + SPF_HELO_NONE,SPF_PASS,URIBL_BLOCKED,USER_AGENT_GIT autolearn=ham + autolearn_force=no version=3.4.0 +Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) + by smtp.lore.kernel.org (Postfix) with ESMTP id 28E03C55178 + for ; + Sat, 24 Oct 2020 16:27:41 +0000 (UTC) +Received: from merlin.infradead.org (merlin.infradead.org [205.233.59.134]) + (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) + (No client certificate requested) + by mail.kernel.org (Postfix) with ESMTPS id 96757207EA + for ; + Sat, 24 Oct 2020 16:27:40 +0000 (UTC) +Authentication-Results: mail.kernel.org; + dkim=pass (2048-bit key) header.d=lists.infradead.org + header.i=@lists.infradead.org header.b="G8j/gn65"; + dkim=fail reason="signature verification failed" (1024-bit key) + header.d=kernel.org header.i=@kernel.org header.b="nSqkQEip" +DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 96757207EA +Authentication-Results: mail.kernel.org; + dmarc=fail (p=none dis=none) header.from=kernel.org +Authentication-Results: mail.kernel.org; + spf=none + smtp.mailfrom=linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org +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:Cc:List-Subscribe:List-Help:List-Post:List-Archive: + List-Unsubscribe:List-Id:MIME-Version:References:In-Reply-To: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:List-Owner; + bh=GA1cAMniiTVzjWBLrs6X66M2xH+3uhtbFCU0u9nIlz4=; b=G8j/gn65yJ2ykHAPrqsZwzS/W + 00AaVkJRK9GiyRFGmwtgtvnp7V3Fb8xGEXE8GyQjYbTUKWH9o8gt5jLya9+OST8ydL+yfjD6mCQPk + awCn4FKvgfZW4tESJNRayzuaQHKB//0hkdzU8kheIUNvdNp2VwOGknN4dep1S96+7h48XBIph9HDy + roMRKw8Rn5Ble+U5KCzNXljmh+mUMZgcqri//3IJB5hqN12GV/rXJAUMGfZ3ZUdyEdsDEJEkqHpz3 + /Nk0dI7s8kh5Hh27MUVGVZby6YH6HOK/iipnLp2c5FcXjbFfuwBdnL0hqwkYf4lUGIy+7Yo49moAB + W3bEvJULQ==; +Received: from localhost ([::1] helo=merlin.infradead.org) + by merlin.infradead.org with esmtp (Exim 4.92.3 #3 (Red Hat Linux)) + id 1kWMMp-0003ls-Cw; Sat, 24 Oct 2020 16:26:07 +0000 +Received: from mail.kernel.org ([198.145.29.99]) + by merlin.infradead.org with esmtps (Exim 4.92.3 #3 (Red Hat Linux)) + id 1kWMMi-0003hx-MO + for linux-arm-kernel@lists.infradead.org; Sat, 24 Oct 2020 16:26:01 +0000 +Received: from wens.tw (mirror2.csie.ntu.edu.tw [140.112.30.76]) + (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) + (No client certificate requested) + by mail.kernel.org (Postfix) with ESMTPSA id 81AE522263; + Sat, 24 Oct 2020 16:25:58 +0000 (UTC) +DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; + s=default; t=1603556758; + bh=VaBYEX3er/VQuzqeJ753kJQXjF4NtlJ/dqxScFmrgI8=; + h=From:To:Cc:Subject:Date:In-Reply-To:References:From; + b=nSqkQEipNRHBYUCaKyi1QdRNH3oImRYXxF4V59DnQJJbAVpKdBvIN/cHP0Mhr4MnD + EzYxrmQXpQul2zODplWwdtVbaCQgTAIjGv3CXz+YW0h3Ydjt179EdsGxB8DO6zrAKX + tA5vNW9YGl9kJGqpNz10FPPtmYwnXzHYSfz9alLs= +Received: by wens.tw (Postfix, from userid 1000) + id 9A0245FD7D; Sun, 25 Oct 2020 00:25:46 +0800 (CST) +From: Chen-Yu Tsai +To: Maxime Ripard , + Jernej Skrabec +Subject: [PATCH 03/10] ARM: dts: sun7i: cubietruck: Enable RGMII RX/TX delay + on Ethernet PHY +Date: Sun, 25 Oct 2020 00:25:08 +0800 +Message-Id: <20201024162515.30032-3-wens@kernel.org> +X-Mailer: git-send-email 2.28.0 +In-Reply-To: <20201024162515.30032-1-wens@kernel.org> +References: <20201024162515.30032-1-wens@kernel.org> +MIME-Version: 1.0 +X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 +X-CRM114-CacheID: sfid-20201024_122600_915809_4031B91A +X-CRM114-Status: GOOD ( 14.95 ) +X-BeenThere: linux-arm-kernel@lists.infradead.org +X-Mailman-Version: 2.1.29 +Precedence: list +List-Id: +List-Unsubscribe: + , + +List-Archive: +List-Post: +List-Help: +List-Subscribe: + , + +Cc: devicetree@vger.kernel.org, linux-sunxi@googlegroups.com, + Chen-Yu Tsai , linux-arm-kernel@lists.infradead.org, + linux-kernel@vger.kernel.org +Sender: "linux-arm-kernel" +Errors-To: + linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org + +From: Chen-Yu Tsai + +The Ethernet PHY on the Cubietruck has the RX and TX delays +enabled on the PHY, using pull-ups on the RXDLY and TXDLY pins. + +Fix the phy-mode description to correct reflect this so that the +implementation doesn't reconfigure the delays incorrectly. This +happened with commit bbc4d71d6354 ("net: phy: realtek: fix rtl8211e +rx/tx delay config"). + +Fixes: 67073d97672d ("ARM: dts: sun7i: cubietruck: Enable the GMAC") +Signed-off-by: Chen-Yu Tsai +Reviewed-by: Emilio López +Tested-by: Emilio López +--- + arch/arm/boot/dts/sun7i-a20-cubietruck.dts | 2 +- + 1 file changed, 1 insertion(+), 1 deletion(-) + +diff --git a/arch/arm/boot/dts/sun7i-a20-cubietruck.dts b/arch/arm/boot/dts/sun7i-a20-cubietruck.dts +index 8c8dee6ea461..9109ca0919ad 100644 +--- a/arch/arm/boot/dts/sun7i-a20-cubietruck.dts ++++ b/arch/arm/boot/dts/sun7i-a20-cubietruck.dts +@@ -151,7 +151,7 @@ &gmac { + pinctrl-names = "default"; + pinctrl-0 = <&gmac_rgmii_pins>; + phy-handle = <&phy1>; +- phy-mode = "rgmii"; ++ phy-mode = "rgmii-id"; + status = "okay"; + }; + + +From patchwork Sat Oct 24 16:25:09 2020 +Content-Type: text/plain; charset="utf-8" +MIME-Version: 1.0 +Content-Transfer-Encoding: 7bit +X-Patchwork-Submitter: Chen-Yu Tsai +X-Patchwork-Id: 11854897 +Return-Path: + +X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on + aws-us-west-2-korg-lkml-1.web.codeaurora.org +X-Spam-Level: +X-Spam-Status: No, score=-13.0 required=3.0 tests=BAYES_00,DKIMWL_WL_HIGH, + DKIM_SIGNED,DKIM_VALID,INCLUDES_PATCH,MAILING_LIST_MULTI,SIGNED_OFF_BY, + SPF_HELO_NONE,SPF_PASS,URIBL_BLOCKED,USER_AGENT_GIT autolearn=ham + autolearn_force=no version=3.4.0 +Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) + by smtp.lore.kernel.org (Postfix) with ESMTP id 57C11C2D0A3 + for ; + Sat, 24 Oct 2020 16:27:39 +0000 (UTC) +Received: from merlin.infradead.org (merlin.infradead.org [205.233.59.134]) + (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) + (No client certificate requested) + by mail.kernel.org (Postfix) with ESMTPS id C18BC20A8B + for ; + Sat, 24 Oct 2020 16:27:38 +0000 (UTC) +Authentication-Results: mail.kernel.org; + dkim=pass (2048-bit key) header.d=lists.infradead.org + header.i=@lists.infradead.org header.b="3OnwXFyN"; + dkim=fail reason="signature verification failed" (1024-bit key) + header.d=kernel.org header.i=@kernel.org header.b="2oNXXg64" +DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org C18BC20A8B +Authentication-Results: mail.kernel.org; + dmarc=fail (p=none dis=none) header.from=kernel.org +Authentication-Results: mail.kernel.org; + spf=none + smtp.mailfrom=linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org +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:Cc:List-Subscribe:List-Help:List-Post:List-Archive: + List-Unsubscribe:List-Id:MIME-Version:References:In-Reply-To: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:List-Owner; + bh=7B62u+lr7L0EkQ9E3ff8MXQtAGl6+vQWQjv+3Pv/+vQ=; b=3OnwXFyNMN+7PF7BmmHK1Khwy + gOf7KuO2lZAxtygg8LZd0fXG1vM44OtC7eVAUonS04TUQShXVj1REvVShZ0U1HYQZK3bK4cMBXaTF + Nx0HDtQ9rvpmzCdzWd6nZAcgqsA4dDry/bW0VmyaxJBuYABQonX6kLkc/qyYCWlzoFAJBPwracI4E + SqBAKhieae+AnwZlr1VWLOPkQfU8vNZglpuTkYClzAwLcxbbUTgaqBgmgi2O4iUOivxtfkGTxxLv3 + 1PjFYvDtg5m5quRroW6jdykXhNgURY7M8Ac7bQDlCLCUjiLV9yibeJQDfY3+wBRuuHDxEy4BLo6rv + Kb046lBMQ==; +Received: from localhost ([::1] helo=merlin.infradead.org) + by merlin.infradead.org with esmtp (Exim 4.92.3 #3 (Red Hat Linux)) + id 1kWMMn-0003lL-FU; Sat, 24 Oct 2020 16:26:05 +0000 +Received: from mail.kernel.org ([198.145.29.99]) + by merlin.infradead.org with esmtps (Exim 4.92.3 #3 (Red Hat Linux)) + id 1kWMMi-0003hw-LE + for linux-arm-kernel@lists.infradead.org; Sat, 24 Oct 2020 16:26:01 +0000 +Received: from wens.tw (mirror2.csie.ntu.edu.tw [140.112.30.76]) + (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) + (No client certificate requested) + by mail.kernel.org (Postfix) with ESMTPSA id 7AE102225F; + Sat, 24 Oct 2020 16:25:58 +0000 (UTC) +DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; + s=default; t=1603556758; + bh=VGOq5hjYah4TRO7kF3h5ip33hBAACBFqbRqzRWwBjWc=; + h=From:To:Cc:Subject:Date:In-Reply-To:References:From; + b=2oNXXg64EVBeQiiD7/lUclSzpODCOwB2mn9gijGF+kW73UQ/jl5VX8dxtzIq6xKY+ + nAe/eGEelBsjtVApQP+485HHPDix5czv6kjhPg5b0dwGIG+q7S8YHags42k4y96KK/ + idTKp3R2Xjdz8qiF8++0npBlIjc+HGMINSLsJ/xQ= +Received: by wens.tw (Postfix, from userid 1000) + id A8C0B5FDC0; Sun, 25 Oct 2020 00:25:46 +0800 (CST) +From: Chen-Yu Tsai +To: Maxime Ripard , + Jernej Skrabec +Subject: [PATCH 04/10] ARM: dts: sun7i: bananapi-m1-plus: Enable RGMII RX/TX + delay on Ethernet PHY +Date: Sun, 25 Oct 2020 00:25:09 +0800 +Message-Id: <20201024162515.30032-4-wens@kernel.org> +X-Mailer: git-send-email 2.28.0 +In-Reply-To: <20201024162515.30032-1-wens@kernel.org> +References: <20201024162515.30032-1-wens@kernel.org> +MIME-Version: 1.0 +X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 +X-CRM114-CacheID: sfid-20201024_122600_779884_0B98E0C3 +X-CRM114-Status: GOOD ( 15.00 ) +X-BeenThere: linux-arm-kernel@lists.infradead.org +X-Mailman-Version: 2.1.29 +Precedence: list +List-Id: +List-Unsubscribe: + , + +List-Archive: +List-Post: +List-Help: +List-Subscribe: + , + +Cc: devicetree@vger.kernel.org, linux-sunxi@googlegroups.com, + Chen-Yu Tsai , linux-arm-kernel@lists.infradead.org, + linux-kernel@vger.kernel.org +Sender: "linux-arm-kernel" +Errors-To: + linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org + +From: Chen-Yu Tsai + +The Ethernet PHY on the Bananapi M1+ has the RX and TX delays +enabled on the PHY, using pull-ups on the RXDLY and TXDLY pins. + +Fix the phy-mode description to correct reflect this so that the +implementation doesn't reconfigure the delays incorrectly. This +happened with commit bbc4d71d6354 ("net: phy: realtek: fix rtl8211e +rx/tx delay config"). + +Fixes: 04c85ecad32a ("ARM: dts: sun7i: Add dts file for Bananapi M1 Plus board") +Signed-off-by: Chen-Yu Tsai +Acked-by: Jernej Skrabec +--- + arch/arm/boot/dts/sun7i-a20-bananapi-m1-plus.dts | 2 +- + 1 file changed, 1 insertion(+), 1 deletion(-) + +diff --git a/arch/arm/boot/dts/sun7i-a20-bananapi-m1-plus.dts b/arch/arm/boot/dts/sun7i-a20-bananapi-m1-plus.dts +index 32d5d45a35c0..8945dbb114a2 100644 +--- a/arch/arm/boot/dts/sun7i-a20-bananapi-m1-plus.dts ++++ b/arch/arm/boot/dts/sun7i-a20-bananapi-m1-plus.dts +@@ -130,7 +130,7 @@ &gmac { + pinctrl-names = "default"; + pinctrl-0 = <&gmac_rgmii_pins>; + phy-handle = <&phy1>; +- phy-mode = "rgmii"; ++ phy-mode = "rgmii-id"; + phy-supply = <®_gmac_3v3>; + status = "okay"; + }; + +From patchwork Sat Oct 24 16:25:10 2020 +Content-Type: text/plain; charset="utf-8" +MIME-Version: 1.0 +Content-Transfer-Encoding: 7bit +X-Patchwork-Submitter: Chen-Yu Tsai +X-Patchwork-Id: 11854905 +Return-Path: + +X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on + aws-us-west-2-korg-lkml-1.web.codeaurora.org +X-Spam-Level: +X-Spam-Status: No, score=-13.0 required=3.0 tests=BAYES_00,DKIMWL_WL_HIGH, + DKIM_SIGNED,DKIM_VALID,INCLUDES_PATCH,MAILING_LIST_MULTI,SIGNED_OFF_BY, + SPF_HELO_NONE,SPF_PASS,URIBL_BLOCKED,USER_AGENT_GIT autolearn=ham + autolearn_force=no version=3.4.0 +Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) + by smtp.lore.kernel.org (Postfix) with ESMTP id 0D0B1C2D0A3 + for ; + Sat, 24 Oct 2020 16:28:20 +0000 (UTC) +Received: from merlin.infradead.org (merlin.infradead.org [205.233.59.134]) + (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) + (No client certificate requested) + by mail.kernel.org (Postfix) with ESMTPS id 9AA5220897 + for ; + Sat, 24 Oct 2020 16:28:19 +0000 (UTC) +Authentication-Results: mail.kernel.org; + dkim=pass (2048-bit key) header.d=lists.infradead.org + header.i=@lists.infradead.org header.b="Tj5E+voP"; + dkim=fail reason="signature verification failed" (1024-bit key) + header.d=kernel.org header.i=@kernel.org header.b="gqmYOsSX" +DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 9AA5220897 +Authentication-Results: mail.kernel.org; + dmarc=fail (p=none dis=none) header.from=kernel.org +Authentication-Results: mail.kernel.org; + spf=none + smtp.mailfrom=linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org +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:Cc:List-Subscribe:List-Help:List-Post:List-Archive: + List-Unsubscribe:List-Id:MIME-Version:References:In-Reply-To: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:List-Owner; + bh=UktakboKMGgbQOynPRy5rt5GvkrVmCoZel8XA68ute4=; b=Tj5E+voPftqtb2i1gA88aWojS + SUeIWGFH/cqXjMmFGxfdPgCYmIsjrw8BdOhgv0mqaFpeem1lA6UA0ss3ihxVpxduh2xJ8YiNDok59 + qImfY1ATgM3iGhVKkw1n8CB7QFFv3gw4SZN8TsyQL14tH/UFPlZKuLvPx1rvvtL4Sg3EkSyxQAtPx + BFfCfLGBDDa/Eqz6A01Vaz3gsPfhbbHN61tALwxJk0WaANOP9K+6hbnAKEJMYHR0teeC7xln+QD1v + 7VUcaLLqhoHZA/Mzyazvsk911YNr1Jemy3UNfH7TgLS+/O3llao/M4vRgoCmiM/NkcjJmDoIxRF82 + SK8wX6ZBw==; +Received: from localhost ([::1] helo=merlin.infradead.org) + by merlin.infradead.org with esmtp (Exim 4.92.3 #3 (Red Hat Linux)) + id 1kWMNK-0003vW-Sw; Sat, 24 Oct 2020 16:26:38 +0000 +Received: from mail.kernel.org ([198.145.29.99]) + by merlin.infradead.org with esmtps (Exim 4.92.3 #3 (Red Hat Linux)) + id 1kWMMi-0003hy-Lc + for linux-arm-kernel@lists.infradead.org; Sat, 24 Oct 2020 16:26:03 +0000 +Received: from wens.tw (mirror2.csie.ntu.edu.tw [140.112.30.76]) + (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) + (No client certificate requested) + by mail.kernel.org (Postfix) with ESMTPSA id 8D65F2226B; + Sat, 24 Oct 2020 16:25:58 +0000 (UTC) +DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; + s=default; t=1603556758; + bh=KIwAKXdLj3a5BWgXyWItu2feZ52vZSa+S5FxpjArwBw=; + h=From:To:Cc:Subject:Date:In-Reply-To:References:From; + b=gqmYOsSXtL9SDrwjJwxsH2Gf0DAsJ7Ce/ZlLTEV0l8/qMBxFEBz9Bs8k4aScrhFlK + kt7EI8SObDN+JWYtILaYHqFN3PC28PfK3S/4roc2FMeIfAgh9DICAlN7d/4+g7WdRU + T3yUuWETvcPMMHlBAZz7y0dINK4F4sBA9ZacYHLg= +Received: by wens.tw (Postfix, from userid 1000) + id C3A9D5FEF3; Sun, 25 Oct 2020 00:25:46 +0800 (CST) +From: Chen-Yu Tsai +To: Maxime Ripard , + Jernej Skrabec +Subject: [PATCH 05/10] ARM: dts: sun8i: h3: orangepi-plus2e: Enable RGMII + RX/TX delay on Ethernet PHY +Date: Sun, 25 Oct 2020 00:25:10 +0800 +Message-Id: <20201024162515.30032-5-wens@kernel.org> +X-Mailer: git-send-email 2.28.0 +In-Reply-To: <20201024162515.30032-1-wens@kernel.org> +References: <20201024162515.30032-1-wens@kernel.org> +MIME-Version: 1.0 +X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 +X-CRM114-CacheID: sfid-20201024_122601_024346_F87C5C45 +X-CRM114-Status: GOOD ( 15.45 ) +X-BeenThere: linux-arm-kernel@lists.infradead.org +X-Mailman-Version: 2.1.29 +Precedence: list +List-Id: +List-Unsubscribe: + , + +List-Archive: +List-Post: +List-Help: +List-Subscribe: + , + +Cc: devicetree@vger.kernel.org, linux-sunxi@googlegroups.com, + Chen-Yu Tsai , linux-arm-kernel@lists.infradead.org, + linux-kernel@vger.kernel.org +Sender: "linux-arm-kernel" +Errors-To: + linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org + +From: Chen-Yu Tsai + +The Ethernet PHY on the Orange Pi Plus 2E has the RX and TX delays +enabled on the PHY, using pull-ups on the RXDLY and TXDLY pins. + +Fix the phy-mode description to correct reflect this so that the +implementation doesn't reconfigure the delays incorrectly. This +happened with commit bbc4d71d6354 ("net: phy: realtek: fix rtl8211e +rx/tx delay config"). + +Fixes: 4904337fe34f ("ARM: dts: sunxi: Restore EMAC changes (boards)") +Fixes: 7a78ef92cdc5 ("ARM: sun8i: h3: Enable EMAC with external PHY on Orange Pi Plus 2E") +Signed-off-by: Chen-Yu Tsai +Tested-by: Jernej Skrabec +Acked-by: Jernej Skrabec +--- + arch/arm/boot/dts/sun8i-h3-orangepi-plus2e.dts | 2 +- + 1 file changed, 1 insertion(+), 1 deletion(-) + +diff --git a/arch/arm/boot/dts/sun8i-h3-orangepi-plus2e.dts b/arch/arm/boot/dts/sun8i-h3-orangepi-plus2e.dts +index 6dbf7b2e0c13..b6ca45d18e51 100644 +--- a/arch/arm/boot/dts/sun8i-h3-orangepi-plus2e.dts ++++ b/arch/arm/boot/dts/sun8i-h3-orangepi-plus2e.dts +@@ -67,7 +67,7 @@ &emac { + pinctrl-0 = <&emac_rgmii_pins>; + phy-supply = <®_gmac_3v3>; + phy-handle = <&ext_rgmii_phy>; +- phy-mode = "rgmii"; ++ phy-mode = "rgmii-id"; + status = "okay"; + }; + + +From patchwork Sat Oct 24 16:25:11 2020 +Content-Type: text/plain; charset="utf-8" +MIME-Version: 1.0 +Content-Transfer-Encoding: 7bit +X-Patchwork-Submitter: Chen-Yu Tsai +X-Patchwork-Id: 11854913 +Return-Path: + +X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on + aws-us-west-2-korg-lkml-1.web.codeaurora.org +X-Spam-Level: +X-Spam-Status: No, score=-13.0 required=3.0 tests=BAYES_00,DKIMWL_WL_HIGH, + DKIM_SIGNED,DKIM_VALID,INCLUDES_PATCH,MAILING_LIST_MULTI,SIGNED_OFF_BY, + SPF_HELO_NONE,SPF_PASS,URIBL_BLOCKED,USER_AGENT_GIT autolearn=ham + autolearn_force=no version=3.4.0 +Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) + by smtp.lore.kernel.org (Postfix) with ESMTP id 9C984C55178 + for ; + Sat, 24 Oct 2020 16:29:12 +0000 (UTC) +Received: from merlin.infradead.org (merlin.infradead.org [205.233.59.134]) + (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) + (No client certificate requested) + by mail.kernel.org (Postfix) with ESMTPS id 425F722263 + for ; + Sat, 24 Oct 2020 16:29:12 +0000 (UTC) +Authentication-Results: mail.kernel.org; + dkim=pass (2048-bit key) header.d=lists.infradead.org + header.i=@lists.infradead.org header.b="ZpJO7cJI"; + dkim=fail reason="signature verification failed" (1024-bit key) + header.d=kernel.org header.i=@kernel.org header.b="r2rAd+2d" +DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 425F722263 +Authentication-Results: mail.kernel.org; + dmarc=fail (p=none dis=none) header.from=kernel.org +Authentication-Results: mail.kernel.org; + spf=none + smtp.mailfrom=linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org +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:Cc:List-Subscribe:List-Help:List-Post:List-Archive: + List-Unsubscribe:List-Id:MIME-Version:References:In-Reply-To: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:List-Owner; + bh=OErx1DG4ZtM1sSqCdb147Z+0rhtZDX6xw5PxIj7AVQA=; b=ZpJO7cJIRJV5Ui3TtLjIC36F8 + 5VKv0SXuV4Cy8MkS76tPfG4GduUjK5fhx9XldWNmNeDisos3XucvD29rTS4L4SzETeSevVQa7w5E7 + ssmJcNfT+RFzAJXZX1AJsuoP/ZEsUN0s8y/hMAjOa0Mv4bOVGZPGEsraClCF6scb1q4nT+XXandmH + B4SPjvm2s70+IFfFMhRmpdAyl5Vu66T32Yi00prTaPJjH2cTN7V1tEuRAu3PhzM+l29GEiQAKmAsS + CSIaDobWrqKDaL2iH81iQ5w5gJSB9bfjjn33G1pztkR/Ig/YQuT0z4CCPiAI1sA1BqjEd23gZHFfC + nQrynbMjA==; +Received: from localhost ([::1] helo=merlin.infradead.org) + by merlin.infradead.org with esmtp (Exim 4.92.3 #3 (Red Hat Linux)) + id 1kWMOH-0004IK-IS; Sat, 24 Oct 2020 16:27:37 +0000 +Received: from mail.kernel.org ([198.145.29.99]) + by merlin.infradead.org with esmtps (Exim 4.92.3 #3 (Red Hat Linux)) + id 1kWMMt-0003nF-DW + for linux-arm-kernel@lists.infradead.org; Sat, 24 Oct 2020 16:26:15 +0000 +Received: from wens.tw (mirror2.csie.ntu.edu.tw [140.112.30.76]) + (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) + (No client certificate requested) + by mail.kernel.org (Postfix) with ESMTPSA id A9820222BA; + Sat, 24 Oct 2020 16:26:10 +0000 (UTC) +DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; + s=default; t=1603556770; + bh=b33mSnzA5/E4PKY2LtTydWNfdZgZQ2kOjj46gwVlpUI=; + h=From:To:Cc:Subject:Date:In-Reply-To:References:From; + b=r2rAd+2dgtHFmRk95dg4p1pCHnBfEHPb5ZFOLnaGqtzdAGEj2PKcpqcdqPETQdOfG + aeCiEIoEfuPEFBksfdfCA4oTUxG6BhRgSIpIdvQpJcuN4LLIsA6+yargN1AZKC1NKz + 3QbChcHh+EVpbXDKkSvtY79bqlC+KO6AHrpPVLko= +Received: by wens.tw (Postfix, from userid 1000) + id E10BD60223; Sun, 25 Oct 2020 00:25:46 +0800 (CST) +From: Chen-Yu Tsai +To: Maxime Ripard , + Jernej Skrabec +Subject: [PATCH 06/10] ARM: dts: sun8i: a83t: Enable both RGMII RX/TX delay on + Ethernet PHY +Date: Sun, 25 Oct 2020 00:25:11 +0800 +Message-Id: <20201024162515.30032-6-wens@kernel.org> +X-Mailer: git-send-email 2.28.0 +In-Reply-To: <20201024162515.30032-1-wens@kernel.org> +References: <20201024162515.30032-1-wens@kernel.org> +MIME-Version: 1.0 +X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 +X-CRM114-CacheID: sfid-20201024_122611_860914_5D9ABF03 +X-CRM114-Status: GOOD ( 15.09 ) +X-BeenThere: linux-arm-kernel@lists.infradead.org +X-Mailman-Version: 2.1.29 +Precedence: list +List-Id: +List-Unsubscribe: + , + +List-Archive: +List-Post: +List-Help: +List-Subscribe: + , + +Cc: devicetree@vger.kernel.org, linux-sunxi@googlegroups.com, + Chen-Yu Tsai , linux-arm-kernel@lists.infradead.org, + linux-kernel@vger.kernel.org +Sender: "linux-arm-kernel" +Errors-To: + linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org + +From: Chen-Yu Tsai + +The Ethernet PHY on the Bananapi M3 and Cubietruck Plus have the RX +and TX delays enabled on the PHY, using pull-ups on the RXDLY and +TXDLY pins. + +Fix the phy-mode description to correct reflect this so that the +implementation doesn't reconfigure the delays incorrectly. This +happened with commit bbc4d71d6354 ("net: phy: realtek: fix rtl8211e +rx/tx delay config"). + +Fixes: 039359948a4b ("ARM: dts: sun8i: a83t: Enable Ethernet on two boards") +Signed-off-by: Chen-Yu Tsai +Acked-by: Jernej Skrabec +--- + arch/arm/boot/dts/sun8i-a83t-bananapi-m3.dts | 2 +- + arch/arm/boot/dts/sun8i-a83t-cubietruck-plus.dts | 2 +- + 2 files changed, 2 insertions(+), 2 deletions(-) + +diff --git a/arch/arm/boot/dts/sun8i-a83t-bananapi-m3.dts b/arch/arm/boot/dts/sun8i-a83t-bananapi-m3.dts +index 9d34eabba121..431f70234d36 100644 +--- a/arch/arm/boot/dts/sun8i-a83t-bananapi-m3.dts ++++ b/arch/arm/boot/dts/sun8i-a83t-bananapi-m3.dts +@@ -131,7 +131,7 @@ &emac { + pinctrl-0 = <&emac_rgmii_pins>; + phy-supply = <®_sw>; + phy-handle = <&rgmii_phy>; +- phy-mode = "rgmii"; ++ phy-mode = "rgmii-id"; + allwinner,rx-delay-ps = <700>; + allwinner,tx-delay-ps = <700>; + status = "okay"; +diff --git a/arch/arm/boot/dts/sun8i-a83t-cubietruck-plus.dts b/arch/arm/boot/dts/sun8i-a83t-cubietruck-plus.dts +index d9be511f054f..d8326a5c681d 100644 +--- a/arch/arm/boot/dts/sun8i-a83t-cubietruck-plus.dts ++++ b/arch/arm/boot/dts/sun8i-a83t-cubietruck-plus.dts +@@ -183,7 +183,7 @@ &emac { + pinctrl-0 = <&emac_rgmii_pins>; + phy-supply = <®_dldo4>; + phy-handle = <&rgmii_phy>; +- phy-mode = "rgmii"; ++ phy-mode = "rgmii-id"; + status = "okay"; + }; + + +From patchwork Sat Oct 24 16:25:12 2020 +Content-Type: text/plain; charset="utf-8" +MIME-Version: 1.0 +Content-Transfer-Encoding: 7bit +X-Patchwork-Submitter: Chen-Yu Tsai +X-Patchwork-Id: 11854911 +Return-Path: + +X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on + aws-us-west-2-korg-lkml-1.web.codeaurora.org +X-Spam-Level: +X-Spam-Status: No, score=-13.0 required=3.0 tests=BAYES_00,DKIMWL_WL_HIGH, + DKIM_SIGNED,DKIM_VALID,INCLUDES_PATCH,MAILING_LIST_MULTI,SIGNED_OFF_BY, + SPF_HELO_NONE,SPF_PASS,URIBL_BLOCKED,USER_AGENT_GIT autolearn=ham + autolearn_force=no version=3.4.0 +Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) + by smtp.lore.kernel.org (Postfix) with ESMTP id 35FC7C55178 + for ; + Sat, 24 Oct 2020 16:28:58 +0000 (UTC) +Received: from merlin.infradead.org (merlin.infradead.org [205.233.59.134]) + (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) + (No client certificate requested) + by mail.kernel.org (Postfix) with ESMTPS id D89A922263 + for ; + Sat, 24 Oct 2020 16:28:57 +0000 (UTC) +Authentication-Results: mail.kernel.org; + dkim=pass (2048-bit key) header.d=lists.infradead.org + header.i=@lists.infradead.org header.b="rgInazFI"; + dkim=fail reason="signature verification failed" (1024-bit key) + header.d=kernel.org header.i=@kernel.org header.b="KMectys8" +DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org D89A922263 +Authentication-Results: mail.kernel.org; + dmarc=fail (p=none dis=none) header.from=kernel.org +Authentication-Results: mail.kernel.org; + spf=none + smtp.mailfrom=linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org +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:Cc:List-Subscribe:List-Help:List-Post:List-Archive: + List-Unsubscribe:List-Id:MIME-Version:References:In-Reply-To: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:List-Owner; + bh=qStB+/tySuwZm9yLMq1gRZNUUh8+/ORHrI/Elz8zlh8=; b=rgInazFIUf4xOuIBpakV0R6Q/ + 9pmr6nJU89Amdw3U9NYNwqe3euUdYPLL0XTpbUtBWzAkJ/5LpKX+jlA7T9t2SXC2m7J7OleGn2Eb5 + WUYkl7TlleD+22PpjV06tWgQXV62lTIX6856XmOgwhS6HjtZFaTSSPb/0CVDiwS7lM9xpHem0u4MI + 3pvJ+Nry4iD1iT6vz5rOng00m8A1iv+UvlR5JZP5Akeq0hxMpHifbtYWd+Xqdl7yPlGS/vTuiQ/6U + gJMWOmFrNS8ZMN68gwPkExXMRIIBnrJdiSdphfbVa/GZl0krfIIdeWM5Wk64vnX1jTkPNq1PfM2nC + RcHSJx40g==; +Received: from localhost ([::1] helo=merlin.infradead.org) + by merlin.infradead.org with esmtp (Exim 4.92.3 #3 (Red Hat Linux)) + id 1kWMOC-0004EX-2R; Sat, 24 Oct 2020 16:27:32 +0000 +Received: from mail.kernel.org ([198.145.29.99]) + by merlin.infradead.org with esmtps (Exim 4.92.3 #3 (Red Hat Linux)) + id 1kWMMt-0003nJ-Gq + for linux-arm-kernel@lists.infradead.org; Sat, 24 Oct 2020 16:26:16 +0000 +Received: from wens.tw (mirror2.csie.ntu.edu.tw [140.112.30.76]) + (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) + (No client certificate requested) + by mail.kernel.org (Postfix) with ESMTPSA id C3C29223EA; + Sat, 24 Oct 2020 16:26:10 +0000 (UTC) +DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; + s=default; t=1603556770; + bh=exlq22lB2jCN3FykJN2ZZhvgbFVlODxJ/nUS036IGvY=; + h=From:To:Cc:Subject:Date:In-Reply-To:References:From; + b=KMectys8lMcr8lO7+LYN/jg3t0/dOuIP6FtU0Xq8/6Wb+mVe37optZzUOG8nd5gyM + CP7cyt91jBKMTdHnRIYYe44lVm6Yqi82Urnxu3yLY7vzyGOAU5npPLnAP+rY+IzSjL + WGlfYEbIbvGnOyODPCTdYvIfRjPzQK7dRSSSlH2g= +Received: by wens.tw (Postfix, from userid 1000) + id EC637602B0; Sun, 25 Oct 2020 00:25:46 +0800 (CST) +From: Chen-Yu Tsai +To: Maxime Ripard , + Jernej Skrabec +Subject: [PATCH 07/10] ARM: dts: sun9i: Enable both RGMII RX/TX delay on + Ethernet PHY +Date: Sun, 25 Oct 2020 00:25:12 +0800 +Message-Id: <20201024162515.30032-7-wens@kernel.org> +X-Mailer: git-send-email 2.28.0 +In-Reply-To: <20201024162515.30032-1-wens@kernel.org> +References: <20201024162515.30032-1-wens@kernel.org> +MIME-Version: 1.0 +X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 +X-CRM114-CacheID: sfid-20201024_122611_877987_BB5582B3 +X-CRM114-Status: GOOD ( 14.52 ) +X-BeenThere: linux-arm-kernel@lists.infradead.org +X-Mailman-Version: 2.1.29 +Precedence: list +List-Id: +List-Unsubscribe: + , + +List-Archive: +List-Post: +List-Help: +List-Subscribe: + , + +Cc: devicetree@vger.kernel.org, linux-sunxi@googlegroups.com, + Chen-Yu Tsai , linux-arm-kernel@lists.infradead.org, + linux-kernel@vger.kernel.org +Sender: "linux-arm-kernel" +Errors-To: + linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org + +From: Chen-Yu Tsai + +The Ethernet PHY on the Cubieboard 4 and A80 Optimus have the RX +and TX delays enabled on the PHY, using pull-ups on the RXDLY and +TXDLY pins. + +Fix the phy-mode description to correct reflect this so that the +implementation doesn't reconfigure the delays incorrectly. This +happened with commit bbc4d71d6354 ("net: phy: realtek: fix rtl8211e +rx/tx delay config"). + +Fixes: 98048143b7f8 ("ARM: dts: sun9i: cubieboard4: Enable GMAC") +Fixes: bc9bd03a44f9 ("ARM: dts: sun9i: a80-optimus: Enable GMAC") +Signed-off-by: Chen-Yu Tsai +Acked-by: Jernej Skrabec +--- + arch/arm/boot/dts/sun9i-a80-cubieboard4.dts | 2 +- + arch/arm/boot/dts/sun9i-a80-optimus.dts | 2 +- + 2 files changed, 2 insertions(+), 2 deletions(-) + +diff --git a/arch/arm/boot/dts/sun9i-a80-cubieboard4.dts b/arch/arm/boot/dts/sun9i-a80-cubieboard4.dts +index d3b337b043a1..484b93df20cb 100644 +--- a/arch/arm/boot/dts/sun9i-a80-cubieboard4.dts ++++ b/arch/arm/boot/dts/sun9i-a80-cubieboard4.dts +@@ -129,7 +129,7 @@ &gmac { + pinctrl-names = "default"; + pinctrl-0 = <&gmac_rgmii_pins>; + phy-handle = <&phy1>; +- phy-mode = "rgmii"; ++ phy-mode = "rgmii-id"; + phy-supply = <®_cldo1>; + status = "okay"; + }; +diff --git a/arch/arm/boot/dts/sun9i-a80-optimus.dts b/arch/arm/boot/dts/sun9i-a80-optimus.dts +index bbc6335e5631..5c3580d712e4 100644 +--- a/arch/arm/boot/dts/sun9i-a80-optimus.dts ++++ b/arch/arm/boot/dts/sun9i-a80-optimus.dts +@@ -124,7 +124,7 @@ &gmac { + pinctrl-names = "default"; + pinctrl-0 = <&gmac_rgmii_pins>; + phy-handle = <&phy1>; +- phy-mode = "rgmii"; ++ phy-mode = "rgmii-id"; + phy-supply = <®_cldo1>; + status = "okay"; + }; + +From patchwork Sat Oct 24 16:25:13 2020 +Content-Type: text/plain; charset="utf-8" +MIME-Version: 1.0 +Content-Transfer-Encoding: 7bit +X-Patchwork-Submitter: Chen-Yu Tsai +X-Patchwork-Id: 11854909 +Return-Path: + +X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on + aws-us-west-2-korg-lkml-1.web.codeaurora.org +X-Spam-Level: +X-Spam-Status: No, score=-13.0 required=3.0 tests=BAYES_00,DKIMWL_WL_HIGH, + DKIM_SIGNED,DKIM_VALID,INCLUDES_PATCH,MAILING_LIST_MULTI,SIGNED_OFF_BY, + SPF_HELO_NONE,SPF_PASS,URIBL_BLOCKED,USER_AGENT_GIT autolearn=ham + autolearn_force=no version=3.4.0 +Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) + by smtp.lore.kernel.org (Postfix) with ESMTP id E0083C2D0A3 + for ; + Sat, 24 Oct 2020 16:28:53 +0000 (UTC) +Received: from merlin.infradead.org (merlin.infradead.org [205.233.59.134]) + (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) + (No client certificate requested) + by mail.kernel.org (Postfix) with ESMTPS id 8714A22263 + for ; + Sat, 24 Oct 2020 16:28:53 +0000 (UTC) +Authentication-Results: mail.kernel.org; + dkim=pass (2048-bit key) header.d=lists.infradead.org + header.i=@lists.infradead.org header.b="qVpZygDZ"; + dkim=fail reason="signature verification failed" (1024-bit key) + header.d=kernel.org header.i=@kernel.org header.b="zWKrT6R3" +DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 8714A22263 +Authentication-Results: mail.kernel.org; + dmarc=fail (p=none dis=none) header.from=kernel.org +Authentication-Results: mail.kernel.org; + spf=none + smtp.mailfrom=linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org +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:Cc:List-Subscribe:List-Help:List-Post:List-Archive: + List-Unsubscribe:List-Id:MIME-Version:References:In-Reply-To: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:List-Owner; + bh=x5dBGAt+iGGRLrqa3XtYX3MzFNRXRpNH/fpX7jcE1Uw=; b=qVpZygDZEfKnVr95bZODmWNsX + kc9yG+DpEHuAbKxyhD/LQIWm8KLqw8gj471mwUjkkb+a6M8kTzAQqwv+f90e4CZnPAQ2CUnTBJJF8 + QG9bmkPQHstXjPEwJZn44ktwa/kHKBIYZUDGl0ZZLaZrJH2apzv8GIcx76M3wTmZ4Fa7qvIkYs46m + xPbIr8sCvCdnh3oA2iKr2xcnNBZkxz9p0DExsm5hf95p5RVY5nSut7pdkLlUoGgL+Dag3dhg7TDmO + ZcR59Ih0a+q0BCW/Fp33XIlJMX68aU9vY5HsBvRAq0uhs9MRp9/SEz0FyXC9g8R2jyqQzFaiw0vA7 + cm5ekGflw==; +Received: from localhost ([::1] helo=merlin.infradead.org) + by merlin.infradead.org with esmtp (Exim 4.92.3 #3 (Red Hat Linux)) + id 1kWMNw-000459-Eg; Sat, 24 Oct 2020 16:27:16 +0000 +Received: from mail.kernel.org ([198.145.29.99]) + by merlin.infradead.org with esmtps (Exim 4.92.3 #3 (Red Hat Linux)) + id 1kWMMt-0003nD-DS + for linux-arm-kernel@lists.infradead.org; Sat, 24 Oct 2020 16:26:13 +0000 +Received: from wens.tw (mirror2.csie.ntu.edu.tw [140.112.30.76]) + (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) + (No client certificate requested) + by mail.kernel.org (Postfix) with ESMTPSA id A17EA2226B; + Sat, 24 Oct 2020 16:26:10 +0000 (UTC) +DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; + s=default; t=1603556770; + bh=H279X0AxzPH1W9ziRhSoDhGJV5nVuqEtyBHwqaF/Wd8=; + h=From:To:Cc:Subject:Date:In-Reply-To:References:From; + b=zWKrT6R3iyfeS+IfjkalIiUYp0vLbBNh+vqz+Edt4YsERPJqZ4B6bbcqX8v13Yizn + xAQtDbblGYQWYejaLegQ/uFsNR6j8tc9SxZ8aiHAq39Dz9Axw0ZqJ3Ft/pI5wFjvrr + +a/8I7q99y9qvqJwa6lQ60vBvZ0i4S8IQ7xXpw7A= +Received: by wens.tw (Postfix, from userid 1000) + id 03596602ED; Sun, 25 Oct 2020 00:25:46 +0800 (CST) +From: Chen-Yu Tsai +To: Maxime Ripard , + Jernej Skrabec +Subject: [PATCH 08/10] ARM: dts: sunxi: bananapi-m2-plus: Enable RGMII RX/TX + delay on Ethernet PHY +Date: Sun, 25 Oct 2020 00:25:13 +0800 +Message-Id: <20201024162515.30032-8-wens@kernel.org> +X-Mailer: git-send-email 2.28.0 +In-Reply-To: <20201024162515.30032-1-wens@kernel.org> +References: <20201024162515.30032-1-wens@kernel.org> +MIME-Version: 1.0 +X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 +X-CRM114-CacheID: sfid-20201024_122611_738139_0864F717 +X-CRM114-Status: GOOD ( 15.50 ) +X-BeenThere: linux-arm-kernel@lists.infradead.org +X-Mailman-Version: 2.1.29 +Precedence: list +List-Id: +List-Unsubscribe: + , + +List-Archive: +List-Post: +List-Help: +List-Subscribe: + , + +Cc: devicetree@vger.kernel.org, linux-sunxi@googlegroups.com, + Chen-Yu Tsai , linux-arm-kernel@lists.infradead.org, + linux-kernel@vger.kernel.org +Sender: "linux-arm-kernel" +Errors-To: + linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org + +From: Chen-Yu Tsai + +The Ethernet PHY on the Bananapi M2+ has the RX and TX delays +enabled on the PHY, using pull-ups on the RXDLY and TXDLY pins. + +Fix the phy-mode description to correct reflect this so that the +implementation doesn't reconfigure the delays incorrectly. This +happened with commit bbc4d71d6354 ("net: phy: realtek: fix rtl8211e +rx/tx delay config"). + +Fixes: 8c7ba536e709 ("ARM: sun8i: bananapi-m2-plus: Enable dwmac-sun8i") +Fixes: 4904337fe34f ("ARM: dts: sunxi: Restore EMAC changes (boards)") +Fixes: aa8fee415f46 ("ARM: dts: sun8i: h3: Split out non-SoC-specific parts of Bananapi M2 Plus") +Signed-off-by: Chen-Yu Tsai +Tested-by: Jernej Skrabec +Acked-by: Jernej Skrabec +--- + arch/arm/boot/dts/sunxi-bananapi-m2-plus.dtsi | 2 +- + 1 file changed, 1 insertion(+), 1 deletion(-) + +diff --git a/arch/arm/boot/dts/sunxi-bananapi-m2-plus.dtsi b/arch/arm/boot/dts/sunxi-bananapi-m2-plus.dtsi +index 39263e74fbb5..8e5cb3b3fd68 100644 +--- a/arch/arm/boot/dts/sunxi-bananapi-m2-plus.dtsi ++++ b/arch/arm/boot/dts/sunxi-bananapi-m2-plus.dtsi +@@ -126,7 +126,7 @@ &emac { + pinctrl-0 = <&emac_rgmii_pins>; + phy-supply = <®_gmac_3v3>; + phy-handle = <&ext_rgmii_phy>; +- phy-mode = "rgmii"; ++ phy-mode = "rgmii-id"; + + status = "okay"; + }; + +From patchwork Sat Oct 24 16:25:14 2020 +Content-Type: text/plain; charset="utf-8" +MIME-Version: 1.0 +Content-Transfer-Encoding: 7bit +X-Patchwork-Submitter: Chen-Yu Tsai +X-Patchwork-Id: 11854907 +Return-Path: + +X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on + aws-us-west-2-korg-lkml-1.web.codeaurora.org +X-Spam-Level: +X-Spam-Status: No, score=-13.0 required=3.0 tests=BAYES_00,DKIMWL_WL_HIGH, + DKIM_SIGNED,DKIM_VALID,INCLUDES_PATCH,MAILING_LIST_MULTI,SIGNED_OFF_BY, + SPF_HELO_NONE,SPF_PASS,URIBL_BLOCKED,USER_AGENT_GIT autolearn=ham + autolearn_force=no version=3.4.0 +Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) + by smtp.lore.kernel.org (Postfix) with ESMTP id 50558C2D0A3 + for ; + Sat, 24 Oct 2020 16:28:57 +0000 (UTC) +Received: from merlin.infradead.org (merlin.infradead.org [205.233.59.134]) + (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) + (No client certificate requested) + by mail.kernel.org (Postfix) with ESMTPS id E7D0822263 + for ; + Sat, 24 Oct 2020 16:28:56 +0000 (UTC) +Authentication-Results: mail.kernel.org; + dkim=pass (2048-bit key) header.d=lists.infradead.org + header.i=@lists.infradead.org header.b="1bBq/cCv"; + dkim=fail reason="signature verification failed" (1024-bit key) + header.d=kernel.org header.i=@kernel.org header.b="NpIO9Jz4" +DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org E7D0822263 +Authentication-Results: mail.kernel.org; + dmarc=fail (p=none dis=none) header.from=kernel.org +Authentication-Results: mail.kernel.org; + spf=none + smtp.mailfrom=linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org +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:Cc:List-Subscribe:List-Help:List-Post:List-Archive: + List-Unsubscribe:List-Id:MIME-Version:References:In-Reply-To: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:List-Owner; + bh=vBSeY31U9oANVtHUrewmx08bkMPFxXZYojB0hhe9+8s=; b=1bBq/cCvUDqfSAclCvigDnIVa + So8Sf1fmui9xb8F/qw/rkx4DIU6e5DqtWbWx50en5YDls9CV7mIZIn7ZLvHTSIQN0qbeK7V56U2m9 + EN/bbFuddMZ78Z5zvTTMCU5xRr42Eh6V2UmY4H8y5DwZJSQD39ZZfIT+R0B3Iguy0A99TdcUYQKcH + +tcTDVhvR42ox9x20E+JD1NF49DdlFCEABTAiz6OkljvIuYmPdJsMquZonmkEhRq1yqkEYkqDSRLL + AxECae2UC5BXRovsHX1Euk6n8nmjTYZ0OuQrdsoRBWuofwU0Hof4x+sGjYoioWB8q47zOehMHH+Pw + V9sU7lX2g==; +Received: from localhost ([::1] helo=merlin.infradead.org) + by merlin.infradead.org with esmtp (Exim 4.92.3 #3 (Red Hat Linux)) + id 1kWMO4-0004AG-RW; Sat, 24 Oct 2020 16:27:25 +0000 +Received: from mail.kernel.org ([198.145.29.99]) + by merlin.infradead.org with esmtps (Exim 4.92.3 #3 (Red Hat Linux)) + id 1kWMMt-0003nB-DW + for linux-arm-kernel@lists.infradead.org; Sat, 24 Oct 2020 16:26:15 +0000 +Received: from wens.tw (mirror2.csie.ntu.edu.tw [140.112.30.76]) + (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) + (No client certificate requested) + by mail.kernel.org (Postfix) with ESMTPSA id 7DC9F20A8B; + Sat, 24 Oct 2020 16:26:10 +0000 (UTC) +DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; + s=default; t=1603556770; + bh=DGQXozz/QOncNsJAZRNKsUYHqiXV7ZkDzlddkGHhB8E=; + h=From:To:Cc:Subject:Date:In-Reply-To:References:From; + b=NpIO9Jz4nBlurKrQa46CC961tJc+F0xIS04YQQTWzf/+s4vcWDnLgpNqwfG76ScHp + ObTadfMFXtau9CHoz7IP7EX8yiQvxXesAvoILdLrwX+fvNs/DAxXYoaFUb6T/fBz3D + 5+0SWAxWCjsJ2eehQeang20FVDOwDkUTNeTSHCSM= +Received: by wens.tw (Postfix, from userid 1000) + id 0B36860310; Sun, 25 Oct 2020 00:25:47 +0800 (CST) +From: Chen-Yu Tsai +To: Maxime Ripard , + Jernej Skrabec +Subject: [PATCH 09/10] arm64: dts: allwinner: h5: libretech-all-h5-cc: Enable + RGMII RX/TX delay on PHY +Date: Sun, 25 Oct 2020 00:25:14 +0800 +Message-Id: <20201024162515.30032-9-wens@kernel.org> +X-Mailer: git-send-email 2.28.0 +In-Reply-To: <20201024162515.30032-1-wens@kernel.org> +References: <20201024162515.30032-1-wens@kernel.org> +MIME-Version: 1.0 +X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 +X-CRM114-CacheID: sfid-20201024_122611_793889_9F8B24CE +X-CRM114-Status: GOOD ( 14.72 ) +X-BeenThere: linux-arm-kernel@lists.infradead.org +X-Mailman-Version: 2.1.29 +Precedence: list +List-Id: +List-Unsubscribe: + , + +List-Archive: +List-Post: +List-Help: +List-Subscribe: + , + +Cc: devicetree@vger.kernel.org, linux-sunxi@googlegroups.com, + Chen-Yu Tsai , linux-arm-kernel@lists.infradead.org, + linux-kernel@vger.kernel.org +Sender: "linux-arm-kernel" +Errors-To: + linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org + +From: Chen-Yu Tsai + +The Ethernet PHY on the Libre Computer ALL-H5-CC has the RX and TX +delays enabled on the PHY, using pull-ups on the RXDLY and TXDLY pins. + +Fix the phy-mode description to correct reflect this so that the +implementation doesn't reconfigure the delays incorrectly. This +happened with commit bbc4d71d6354 ("net: phy: realtek: fix rtl8211e +rx/tx delay config"). + +Fixes: 60d0426d7603 ("arm64: dts: allwinner: h5: Add Libre Computer ALL-H5-CC H5 board") +Signed-off-by: Chen-Yu Tsai +Acked-by: Jernej Skrabec +--- + arch/arm64/boot/dts/allwinner/sun50i-h5-libretech-all-h5-cc.dts | 2 +- + 1 file changed, 1 insertion(+), 1 deletion(-) + +diff --git a/arch/arm64/boot/dts/allwinner/sun50i-h5-libretech-all-h5-cc.dts b/arch/arm64/boot/dts/allwinner/sun50i-h5-libretech-all-h5-cc.dts +index df1b9263ad0e..6e30a564c87f 100644 +--- a/arch/arm64/boot/dts/allwinner/sun50i-h5-libretech-all-h5-cc.dts ++++ b/arch/arm64/boot/dts/allwinner/sun50i-h5-libretech-all-h5-cc.dts +@@ -36,7 +36,7 @@ &emac { + pinctrl-0 = <&emac_rgmii_pins>; + phy-supply = <®_gmac_3v3>; + phy-handle = <&ext_rgmii_phy>; +- phy-mode = "rgmii"; ++ phy-mode = "rgmii-id"; + /delete-property/ allwinner,leds-active-low; + status = "okay"; + }; + +From patchwork Sat Oct 24 16:25:15 2020 +Content-Type: text/plain; charset="utf-8" +MIME-Version: 1.0 +Content-Transfer-Encoding: 7bit +X-Patchwork-Submitter: Chen-Yu Tsai +X-Patchwork-Id: 11854903 +Return-Path: + +X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on + aws-us-west-2-korg-lkml-1.web.codeaurora.org +X-Spam-Level: +X-Spam-Status: No, score=-13.0 required=3.0 tests=BAYES_00,DKIMWL_WL_HIGH, + DKIM_SIGNED,DKIM_VALID,INCLUDES_PATCH,MAILING_LIST_MULTI,SIGNED_OFF_BY, + SPF_HELO_NONE,SPF_PASS,URIBL_BLOCKED,USER_AGENT_GIT autolearn=ham + autolearn_force=no version=3.4.0 +Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) + by smtp.lore.kernel.org (Postfix) with ESMTP id 89A03C55178 + for ; + Sat, 24 Oct 2020 16:28:27 +0000 (UTC) +Received: from merlin.infradead.org (merlin.infradead.org [205.233.59.134]) + (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) + (No client certificate requested) + by mail.kernel.org (Postfix) with ESMTPS id 03C7820897 + for ; + Sat, 24 Oct 2020 16:28:26 +0000 (UTC) +Authentication-Results: mail.kernel.org; + dkim=pass (2048-bit key) header.d=lists.infradead.org + header.i=@lists.infradead.org header.b="OZdeTHtX"; + dkim=fail reason="signature verification failed" (1024-bit key) + header.d=kernel.org header.i=@kernel.org header.b="mU2s48k1" +DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 03C7820897 +Authentication-Results: mail.kernel.org; + dmarc=fail (p=none dis=none) header.from=kernel.org +Authentication-Results: mail.kernel.org; + spf=none + smtp.mailfrom=linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org +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:Cc:List-Subscribe:List-Help:List-Post:List-Archive: + List-Unsubscribe:List-Id:MIME-Version:References:In-Reply-To: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:List-Owner; + bh=qvm8ypbfF+pYSJ3Xx1FTpzbIFOfYlRpAlHVacTT0aJA=; b=OZdeTHtXFVF2tk5NCwr3VAlbM + xxf7ce1J4dsQvseCWdG8XL1JKO9Qc8yCLUYlJeeJMi2I490orIy8BioA6j+Ypd6f2buEBNIdoknYV + SnbVsMPu0IZOV1yAasSTzyAh1ZSZlUjo4xl5ea+D/JVOEuFSRc855Csr06Ud1D6ndx+cbGIRbKMGX + 9rqUweuone3Ep6ZuaU1MjIIPnO4S7ZRaqTTPKq/dZZp9VWCIOyOwd1wn9SLcFUdQ2YFyl8yiXjZzN + n/oc07QMW2ssVlNsVJ2l6BVYULOjXKFg041DykClk/Z4+Z2o8gnLGvtLmw1GSQdjthVXECApe6vBS + BBSDZHn+g==; +Received: from localhost ([::1] helo=merlin.infradead.org) + by merlin.infradead.org with esmtp (Exim 4.92.3 #3 (Red Hat Linux)) + id 1kWMNS-0003xB-8m; Sat, 24 Oct 2020 16:26:46 +0000 +Received: from mail.kernel.org ([198.145.29.99]) + by merlin.infradead.org with esmtps (Exim 4.92.3 #3 (Red Hat Linux)) + id 1kWMMt-0003nC-DT + for linux-arm-kernel@lists.infradead.org; Sat, 24 Oct 2020 16:26:13 +0000 +Received: from wens.tw (mirror2.csie.ntu.edu.tw [140.112.30.76]) + (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) + (No client certificate requested) + by mail.kernel.org (Postfix) with ESMTPSA id 95C582225F; + Sat, 24 Oct 2020 16:26:10 +0000 (UTC) +DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; + s=default; t=1603556770; + bh=YQRvPLQkc+2tqPQ6NrtoOsSzVY6oUqPsclAtr+kLRuc=; + h=From:To:Cc:Subject:Date:In-Reply-To:References:From; + b=mU2s48k1dMnS7g2lALBkSZj1ZMEFwy4/4Q9aqg/T3Kj381N37nCMI2ocA+iVUIfd9 + CoqZqCJyq9bpQOVglMoG1u+55yiuAdOzSFLhSXFs7j/j20Jjs+xTY8n3Q+fudfS6qx + 4dhCQaQBMBhPZhbhhaotPtFYFzS3f6OynKeYvFvQ= +Received: by wens.tw (Postfix, from userid 1000) + id 17C446036D; Sun, 25 Oct 2020 00:25:47 +0800 (CST) +From: Chen-Yu Tsai +To: Maxime Ripard , + Jernej Skrabec +Subject: [PATCH 10/10] arm64: dts: allwinner: a64: bananapi-m64: Enable RGMII + RX/TX delay on PHY +Date: Sun, 25 Oct 2020 00:25:15 +0800 +Message-Id: <20201024162515.30032-10-wens@kernel.org> +X-Mailer: git-send-email 2.28.0 +In-Reply-To: <20201024162515.30032-1-wens@kernel.org> +References: <20201024162515.30032-1-wens@kernel.org> +MIME-Version: 1.0 +X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 +X-CRM114-CacheID: sfid-20201024_122611_723316_75ACD320 +X-CRM114-Status: GOOD ( 14.84 ) +X-BeenThere: linux-arm-kernel@lists.infradead.org +X-Mailman-Version: 2.1.29 +Precedence: list +List-Id: +List-Unsubscribe: + , + +List-Archive: +List-Post: +List-Help: +List-Subscribe: + , + +Cc: devicetree@vger.kernel.org, linux-sunxi@googlegroups.com, + Chen-Yu Tsai , linux-arm-kernel@lists.infradead.org, + linux-kernel@vger.kernel.org +Sender: "linux-arm-kernel" +Errors-To: + linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org + +From: Chen-Yu Tsai + +The Ethernet PHY on the Bananapi M64 has the RX and TX delays +enabled on the PHY, using pull-ups on the RXDLY and TXDLY pins. + +Fix the phy-mode description to correct reflect this so that the +implementation doesn't reconfigure the delays incorrectly. This +happened with commit bbc4d71d6354 ("net: phy: realtek: fix rtl8211e +rx/tx delay config"). + +Fixes: e7295499903d ("arm64: allwinner: bananapi-m64: Enable dwmac-sun8i") +Fixes: 94f442886711 ("arm64: dts: allwinner: A64: Restore EMAC changes") +Signed-off-by: Chen-Yu Tsai +Tested-by: Corentin Labbe +Acked-by: Jernej Skrabec +--- + arch/arm64/boot/dts/allwinner/sun50i-a64-bananapi-m64.dts | 2 +- + 1 file changed, 1 insertion(+), 1 deletion(-) + +diff --git a/arch/arm64/boot/dts/allwinner/sun50i-a64-bananapi-m64.dts b/arch/arm64/boot/dts/allwinner/sun50i-a64-bananapi-m64.dts +index 3ea5182ca489..e5e840b9fbb4 100644 +--- a/arch/arm64/boot/dts/allwinner/sun50i-a64-bananapi-m64.dts ++++ b/arch/arm64/boot/dts/allwinner/sun50i-a64-bananapi-m64.dts +@@ -105,7 +105,7 @@ &ehci1 { + &emac { + pinctrl-names = "default"; + pinctrl-0 = <&rgmii_pins>; +- phy-mode = "rgmii"; ++ phy-mode = "rgmii-id"; + phy-handle = <&ext_rgmii_phy>; + phy-supply = <®_dc1sw>; + status = "okay"; diff --git a/kernel.spec b/kernel.spec index 43bde732f..297a36d92 100644 --- a/kernel.spec +++ b/kernel.spec @@ -897,6 +897,12 @@ Patch121: CVE-2020-16119-DCCP-CCID-structure-use-after-free.patch # Pending for inclusion into stable series Patch123: 0001-i2c-core-Restore-acpi_walk_dep_device_list-getting-c.patch +# A patch to fix some undocumented things broke a bunch of Allwinner networks due to wrong assumptions +Patch124: 0001-update-phy-on-pine64-a64-devices.patch +# https://patchwork.kernel.org/project/linux-arm-kernel/patch/20201024162515.30032-2-wens@kernel.org/ +Patch125: arm-sun8i-realtek-phy-fixes.patch +# https://patchwork.kernel.org/project/linux-arm-kernel/patch/20201025140144.28693-1-ats@offog.org/ +Patch126: ARM-dts-sun7i-pcduino3-nano-enable-RGMII-RX-TX-delay-on-PHY.patch # END OF PATCH DEFINITIONS %endif @@ -3010,6 +3016,9 @@ fi # # %changelog +* Wed Oct 28 2020 Peter Robinson +- Fixes for AllWinner wired network issues due to Realtek PHY driver change (rhbz 1889090) + * Mon Oct 19 07:15:01 CDT 2020 Justin M. Forbes - 5.8.16-300 - Linux v5.8.16 -- cgit