From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id D3E8CC4167B for ; Fri, 3 Nov 2023 19:17:46 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender: Content-Transfer-Encoding:Content-Type:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:In-Reply-To:MIME-Version:References: Message-ID:Subject:Cc: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=D0V/YZYig1j1lMTEYb/gyT0iuWZzQ8rjR/GVj1pLBD8=; b=n3IWgiQ0CC6Ne2 TcxAzXL6t1wj0aaECiL8CW+bSxUicih4XPWpA+1iwtKGk1YnQ+NXP0aEvbZ1ZBmYlUwklRq1UE6el Ed2fMLXXl/cggwpynPXbo+8HcUwzca8buLAiWzuszxgnWZVdpvbhDL1hVqwcU5fUIDojMR2n1e1oV XS8JdcQo1FNSzIZGtF2LDELS3P4kAbaLLcIjzWazChC+OkVAWO7/ziljxFfN/W3mxeJ7iY0dsc1Hl cIPYgR7BfDcOBWKjypmzEyg0fLepDXnjI7b7Daf+b54vMWOwBN8Skj/u0rKmUUh7YphzuN5HsTZQK ueXP/TCxm3EeB2vvJuzQ==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.96 #2 (Red Hat Linux)) id 1qyzfM-00C2lF-2K; Fri, 03 Nov 2023 19:17:12 +0000 Received: from metis.whiteo.stw.pengutronix.de ([2a0a:edc0:2:b01:1d::104]) by bombadil.infradead.org with esmtps (Exim 4.96 #2 (Red Hat Linux)) id 1qyzfD-00C2kC-2n for linux-arm-kernel@lists.infradead.org; Fri, 03 Nov 2023 19:17:10 +0000 Received: from drehscheibe.grey.stw.pengutronix.de ([2a0a:edc0:0:c01:1d::a2]) by metis.whiteo.stw.pengutronix.de with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1qyzes-0006vn-Cx; Fri, 03 Nov 2023 20:16:42 +0100 Received: from [2a0a:edc0:2:b01:1d::c0] (helo=ptx.whiteo.stw.pengutronix.de) by drehscheibe.grey.stw.pengutronix.de with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1qyzer-006OQX-A0; Fri, 03 Nov 2023 20:16:41 +0100 Received: from ore by ptx.whiteo.stw.pengutronix.de with local (Exim 4.92) (envelope-from ) id 1qyzer-000FWp-7D; Fri, 03 Nov 2023 20:16:41 +0100 Date: Fri, 3 Nov 2023 20:16:41 +0100 From: Oleksij Rempel To: "Russell King (Oracle)" Cc: Andrew Lunn , Shawn Guo , Sascha Hauer , Rob Herring , Krzysztof Kozlowski , =?utf-8?B?U8O4cmVu?= Andersen , Sam Ravnborg , kernel@pengutronix.de, linux-kernel@vger.kernel.org, devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org, NXP Linux Team , Fabio Estevam Subject: Re: [PATCH v2 2/2] arm64: dts: freescale: Add SKOV IMX8MP CPU revB board Message-ID: <20231103191641.GD40819@pengutronix.de> References: <20231103105305.2459143-1-o.rempel@pengutronix.de> <20231103105305.2459143-2-o.rempel@pengutronix.de> <1ee285d7-6bc9-43ad-9ec9-a8aaed4452b5@lunn.ch> MIME-Version: 1.0 Content-Disposition: inline In-Reply-To: X-Sent-From: Pengutronix Hildesheim X-URL: http://www.pengutronix.de/ X-Accept-Language: de,en X-Accept-Content-Type: text/plain User-Agent: Mutt/1.10.1 (2018-07-13) X-SA-Exim-Connect-IP: 2a0a:edc0:0:c01:1d::a2 X-SA-Exim-Mail-From: ore@pengutronix.de X-SA-Exim-Scanned: No (on metis.whiteo.stw.pengutronix.de); SAEximRunCond expanded to false X-PTX-Original-Recipient: linux-arm-kernel@lists.infradead.org X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20231103_121703_910080_6FE86A06 X-CRM114-Status: GOOD ( 30.24 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org On Fri, Nov 03, 2023 at 01:16:12PM +0000, Russell King (Oracle) wrote: > On Fri, Nov 03, 2023 at 01:35:46PM +0100, Andrew Lunn wrote: > > > + port@2 { > > > + reg = <2>; > > > + label = "cpu"; > > > + ethernet = <&eqos>; > > > + /* 2ns rgmii-rxid is implemented on PCB. > > > + * Switch should add only rgmii-txid. > > > + */ > > > > Its unusual to actually see that. Its even more unusual its only one > > clock line. Can you actually see it on the PCB? > > > > > + phy-mode = "rgmii-txid"; > > > + tx-internal-delay-ps = <2000>; > > > > Is this actually needed? rgmii-txid should add 2ns delay. Since this > > apparently works, i'm assuming setting tx-internal-delay-ps to 2ns > > does nothing, otherwise you would have a 4ns delay. > > Umm... I think we're getting confused again. > > Mode Local end Remote end > RGMII No added delays No added delays > RGMII-TXID No added delays 2ns delay on TX > RGMII-RXID No added delays 2ns delay on RX > RGMII-ID No added delays 2ns delay on both TX and RX > > In the case of a network interface with a PHY, "local end" is the > MAC and "remote end" is the PHY. > > For a switch port connected to an external PHY, the switch port is > as the "MAC" as above. > > For a switch port connected to an ethernet MAC: > - for the MAC declaration, the local end is the MAC. There is no > communication of the interface mode with the remote end under > Linux, so this is irrelevant for Linux. However, this is an > implementation, and it should be chosen according to the hardware. > > - for the switch port declaration, the local end is the switch port. > There is no communication of the interface mode with the remote > end under Linux. However, it should be chosen according to the > hardware. > > So, if the 2ns delay is implemented on the RX lines (from the switch > perspective) then shouldn't the MAC side be using "rgmii-txid" to > indicate that the delay is being applied by the remote end (switch). > The switch side should be using "rgmii" because no delays are required > from the remote end (MAC), and the delay on the TX lines should be > specified using "tx-internal-delay-ps"? Ack. It make sense. Will fix it. Regards, Oleksij -- Pengutronix e.K. | | Steuerwalder Str. 21 | http://www.pengutronix.de/ | 31137 Hildesheim, Germany | Phone: +49-5121-206917-0 | Amtsgericht Hildesheim, HRA 2686 | Fax: +49-5121-206917-5555 | _______________________________________________ linux-arm-kernel mailing list linux-arm-kernel@lists.infradead.org http://lists.infradead.org/mailman/listinfo/linux-arm-kernel