Received: by 2002:a25:e7d8:0:0:0:0:0 with SMTP id e207csp1649117ybh; Fri, 13 Mar 2020 05:05:27 -0700 (PDT) X-Google-Smtp-Source: ADFU+vvqvdQgsctAl8V58B+tUS51N9C0Elpsel2qKiGMQnzAzCSPtoV2t+bK4eHgdemAGIBRspE1 X-Received: by 2002:a9d:6f86:: with SMTP id h6mr10967837otq.309.1584101127236; Fri, 13 Mar 2020 05:05:27 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1584101127; cv=none; d=google.com; s=arc-20160816; b=k0wO73d1wu0AE1M8pCB81RJ0MgFkmS3ha10o6JNC6GaLDlCvOt1uLl18GMH737DRRc qPDe38EuUJlCsj8RZMr1mOjptOwsQK3Yno+zh0yrppSasNM3q9hrs2dNEbafjfC5op6e n3igVUVQTB1aqiEPdDcjK63S6wc4ZJ9QbtnO++wgh2+nd9WSPHzDKGn4XkIe7rPcciIA saGMmfnpQ1DrCImT4vl8daVzY/j3cMjYuYMRpNGB7HptEbw67jayuGYb4Gm//j9tNx3t I2BRcJo5p4YMDSAa6RqQkkGXtWsJWDOTfu34tUdYIaZ82hIAyhCPlYHfJyBxNyAesViD 03XQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:reply-to:references:in-reply-to :message-id:date:subject:cc:to:from; bh=U2cpXfKw1ZYauZTZzcoMfTazsNHi/Hg+cIh/Tq5HXLg=; b=uPfBldFJSgKtX+aNGWsQOgwQMGTOXyDZk9ViokfJ1/QKQ/hlpxXqdp14OY4XIZsW7c F+Uk5bNrc6VJswWX8Vvab+970RsE4tiF3YfbIdUJO/EX7nHrJLs+6knoczbKGmtzrLrx a/71mamKf+86mZ9NAY13iQDrdfum0ehuHLKqujQJt1SdSR/JVMJAOiDTyHz6H/qIInzp /npchE5I+7i5hLMg7QOVwZ0XRxGyf38MUj9Ahjfw86c2qzIp3jague8pSDy/4Ig4oh5h dmPCDl5z1vrmo0vV15wcQMx9iNRA12jAQS4681Y/KbsMwB/DEKBtJQoUXekE07J/zUBD ZSjg== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=nxp.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id t3si4188660oic.83.2020.03.13.05.05.12; Fri, 13 Mar 2020 05:05:27 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=nxp.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726761AbgCMMEi (ORCPT + 99 others); Fri, 13 Mar 2020 08:04:38 -0400 Received: from inva021.nxp.com ([92.121.34.21]:45154 "EHLO inva021.nxp.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726678AbgCMMEg (ORCPT ); Fri, 13 Mar 2020 08:04:36 -0400 Received: from inva021.nxp.com (localhost [127.0.0.1]) by inva021.eu-rdc02.nxp.com (Postfix) with ESMTP id 9C67D2012B3; Fri, 13 Mar 2020 13:04:34 +0100 (CET) Received: from inva024.eu-rdc02.nxp.com (inva024.eu-rdc02.nxp.com [134.27.226.22]) by inva021.eu-rdc02.nxp.com (Postfix) with ESMTP id 8F8EC2012B2; Fri, 13 Mar 2020 13:04:34 +0100 (CET) Received: from fsr-fed2164-101.ea.freescale.net (fsr-fed2164-101.ea.freescale.net [10.171.82.91]) by inva024.eu-rdc02.nxp.com (Postfix) with ESMTP id 2831720465; Fri, 13 Mar 2020 13:04:34 +0100 (CET) From: Madalin Bucur To: davem@davemloft.net, netdev@vger.kernel.org Cc: devicetree@vger.kernel.org, shawnguo@kernel.org, leoyang.li@nxp.com, robh+dt@kernel.org, mark.rutland@arm.com, linux-kernel@vger.kernel.org, Madalin Bucur Subject: [PATCH net 2/3] arm64: dts: ls1043a-rdb: correct RGMII delay mode to rgmii-id Date: Fri, 13 Mar 2020 14:04:24 +0200 Message-Id: <1584101065-3482-3-git-send-email-madalin.bucur@oss.nxp.com> X-Mailer: git-send-email 2.1.0 In-Reply-To: <1584101065-3482-1-git-send-email-madalin.bucur@oss.nxp.com> References: <1584101065-3482-1-git-send-email-madalin.bucur@oss.nxp.com> Content-Type: text/plain; charset="us-ascii" Reply-to: madalin.bucur@oss.nxp.com X-Virus-Scanned: ClamAV using ClamSMTP Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org The correct setting for the RGMII ports on LS1043ARDB is to enable delay on both Rx and Tx so the interface mode used must be PHY_INTERFACE_MODE_RGMII_ID. Since commit 1b3047b5208a80 ("net: phy: realtek: add support for configuring the RX delay on RTL8211F") the Realtek 8211F PHY driver has control over the RGMII RX delay and it is disabling it for RGMII_TXID. The LS1043ARDB uses two such PHYs in RGMII_ID mode but in the device tree the mode was described as "rgmii_txid". This issue was not apparent at the time as the PHY driver took the same action for RGMII_TXID and RGMII_ID back then but it became visible (RX no longer working) after the above patch. Changing the phy-connection-type to "rgmii-id" to address the issue. Fixes: bf02f2ffe59c ("arm64: dts: add LS1043A DPAA FMan support") Signed-off-by: Madalin Bucur --- arch/arm64/boot/dts/freescale/fsl-ls1043a-rdb.dts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/arch/arm64/boot/dts/freescale/fsl-ls1043a-rdb.dts b/arch/arm64/boot/dts/freescale/fsl-ls1043a-rdb.dts index 4223a2352d45..dde50c88f5e3 100644 --- a/arch/arm64/boot/dts/freescale/fsl-ls1043a-rdb.dts +++ b/arch/arm64/boot/dts/freescale/fsl-ls1043a-rdb.dts @@ -119,12 +119,12 @@ ethernet@e4000 { phy-handle = <&rgmii_phy1>; - phy-connection-type = "rgmii-txid"; + phy-connection-type = "rgmii-id"; }; ethernet@e6000 { phy-handle = <&rgmii_phy2>; - phy-connection-type = "rgmii-txid"; + phy-connection-type = "rgmii-id"; }; ethernet@e8000 { -- 2.1.0