From patchwork Thu Jan 28 11:18:42 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Hermann.Lauer@uni-heidelberg.de X-Patchwork-Id: 12053383 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=-15.5 required=3.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,HEADER_FROM_DIFFERENT_DOMAINS,INCLUDES_CR_TRAILER, INCLUDES_PATCH,MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS,URIBL_BLOCKED, USER_AGENT_SANE_1 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 77A98C433E0 for ; Thu, 28 Jan 2021 11:20:10 +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 CA19B64DA1 for ; Thu, 28 Jan 2021 11:20:09 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org CA19B64DA1 Authentication-Results: mail.kernel.org; dmarc=none (p=none dis=none) header.from=uni-heidelberg.de 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:In-Reply-To:MIME-Version:References:Message-ID: Subject:To:From:Date:Reply-To:Content-ID:Content-Description:Resent-Date: Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Owner; bh=JEQU5iaMuwom2OtTSTo2ZDD98v95Qcew6AHT4Wb+WmM=; b=u828E2w0MR2+PBzQPVEziET+Q fotcy9HFRSEIP/m5XbtYiJaKNF5tOS8apPrpYVIlHu6GpEPcingA2Dm5JztLWN2TNUGM+mqwXc1oJ iASxAkHZopFsA0p6gFktweBnc6+3C011muWGu9FlfCI9PJEzKZb/izKXMcrrWSJiPzMhjCyKwi6p/ uOiywtrJY+DzkE+aBrygIp2p278L632qk3QoMrpMQfXAQHZkfH38edl/YBp3qMAfqFHIfT5JOpuMz kzbcX4c4LClDCIYNd8H11JVULIz4Ct7l5Ae6LZN00m7FGBLbgR+z50AaETJ1FGpiJA1FHa6UcDlAH DlBbwerAQ==; Received: from localhost ([::1] helo=merlin.infradead.org) by merlin.infradead.org with esmtp (Exim 4.92.3 #3 (Red Hat Linux)) id 1l55K6-0008Am-Go; Thu, 28 Jan 2021 11:18:50 +0000 Received: from relay2.uni-heidelberg.de ([129.206.119.212]) by merlin.infradead.org with esmtps (Exim 4.92.3 #3 (Red Hat Linux)) id 1l55K3-00089s-RJ for linux-arm-kernel@lists.infradead.org; Thu, 28 Jan 2021 11:18:48 +0000 X-IPAS-Result: A2D1AwCNnBJg/1BqzoFiHAEBAQEBAQcBARIBAQQEAQFAgU+DDGtlg3pGriMBAQEBAQEBAQEJLAECBAEBhEqBegIlOBMCAwEBAQMCAwEBAQEGAQEBAQEGBIZfhXQGI1YQJQImAgIUKDSGLbUTgTKJIoEtgQ4qixuCSYIbhGiEBVYwgkw0giwEgkeBDoEDgh2PKgkXpmGCBgeeXwINIpMdj2eRX4Vlnm6BbYF6Mz6DOFAZDZxrQzA3AgYKAQEDCVkBAYh0gkYBAQ X-IronPort-Anti-Spam-Filtered: true Received: from lemon.iwr.uni-heidelberg.de ([129.206.106.80]) by relay2.uni-heidelberg.de with ESMTP/TLS/ECDHE-RSA-AES128-GCM-SHA256; 28 Jan 2021 12:18:43 +0100 Received: from hlauer by lemon.iwr.uni-heidelberg.de with local (Exim 4.92) (envelope-from ) id 1l55Jy-00037W-KT; Thu, 28 Jan 2021 12:18:42 +0100 Date: Thu, 28 Jan 2021 12:18:42 +0100 From: Hermann.Lauer@uni-heidelberg.de To: linux-arm-kernel@lists.infradead.org Subject: [PATCH v4] ARM: dts: sun7i: a20: bananapro: Fix ethernet phy-mode Message-ID: <20210128111842.GA11919@lemon.iwr.uni-heidelberg.de> References: <20210121170836.GA4948@lemon.iwr.uni-heidelberg.de> <20210128094040.GD11559@lemon.iwr.uni-heidelberg.de> MIME-Version: 1.0 Content-Disposition: inline In-Reply-To: <20210128094040.GD11559@lemon.iwr.uni-heidelberg.de> User-Agent: Mutt/1.10.1 (2018-07-13) X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20210128_061848_094903_52FE1931 X-CRM114-Status: GOOD ( 11.54 ) 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, jernej.skrabec@siol.net, linux-kernel@vger.kernel.org, mripard@kernel.org, wens@csie.org, robh+dt@kernel.org Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org BPi Pro needs TX and RX delay for Gbit to work reliable and avoid high packet loss rates. The realtek phy driver overrides the settings of the pull ups for the delays, so fix this for BananaPro. Fix the phy-mode description to correctly 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: 10662a33dcd9 ("ARM: dts: sun7i: Add dts file for Bananapro board") Signed-off-by: Hermann Lauer --- arch/arm/boot/dts/sun7i-a20-bananapro.dts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/arch/arm/boot/dts/sun7i-a20-bananapro.dts b/arch/arm/boot/dts/sun7i-a20-bananapro.dts --- a/arch/arm/boot/dts/sun7i-a20-bananapro.dts +++ b/arch/arm/boot/dts/sun7i-a20-bananapro.dts @@ -110,7 +110,7 @@ pinctrl-names = "default"; pinctrl-0 = <&gmac_rgmii_pins>; phy-handle = <&phy1>; - phy-mode = "rgmii"; + phy-mode = "rgmii-id"; phy-supply = <®_gmac_3v3>; status = "okay"; };