Received: by 2002:a05:7412:8521:b0:e2:908c:2ebd with SMTP id t33csp701723rdf; Fri, 3 Nov 2023 12:17:31 -0700 (PDT) X-Google-Smtp-Source: AGHT+IEEnVSGlyo0A3yDfaPW/+VXgRU6unLVKj1uRgxv+dRgPG7OUdPqaw7r571YoPMnbPecXMyp X-Received: by 2002:a50:d55d:0:b0:543:5281:2ad8 with SMTP id f29-20020a50d55d000000b0054352812ad8mr10519789edj.18.1699039050820; Fri, 03 Nov 2023 12:17:30 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1699039050; cv=none; d=google.com; s=arc-20160816; b=Qs9sg4vs7apdLJEjEjGJVLE2I8d7AxkIpDR7dO6suDWUbXA1GxDXjrJn5nieFLfJpy UT5vSn+HqkRTcYwXJ5Anp6BaPuIrHP51JzFIe0RF0Hsxno/284AfZo07kyTF1kXBEmsv LwJQ9w+vhVCmVZaVa3+qZPTTBXbU+fd0m5Li62Xb6awddskfJN2R1IjdquY0BjckInUH c08gJHhmpqgEXd2bqP6l3uCicJyUiv5YcCzRiR+St/SPpuUl1jfCgFy770daRPyhDF3K g+d/6I/rR+o2Y9IO2v1berxkveFTcv9FldXW9rrylfVefP0u2OTkhtF4TYiedGAMGP90 MpGA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:user-agent:in-reply-to:content-disposition :mime-version:references:message-id:subject:cc:to:from:date; bh=yk/eTT7/wKaSd6tX+7M4qldvBUPS3gUGdKIccUl+AOs=; fh=psjGi94zYNAO9r4cy4MZpwtTn1BZG7uwSRRqqbxWpjg=; b=RkptOqtFS+KGFnE0KK6w1o4xF24CDXWng9ON980GL4LtJGHS/yMgiSAfBTkKJ+nYEa PKSIYUsniJzPVgdLzJe4n09KZBuOzquh18I9rYZptYRifKDY8Z8xJfHqqOGHUtIVLn8N QnoMcB+rirpKiGyMiCoI+ERezUTjn+UaknUmtVvrCb3EfbAltYgsxIw1rGSfgG36pl6z MizaZuymqJAaa11xXWCPWnI1k/3fBkOuJlV95K4IqW/FJJjgU9US2NqzxAXHpnGQpyl2 da+gCqIAOPtmj9fzKeSwJ2/+9t6EqMJ68tcavaAxnAsfI/jbH+qxxFAiZFwSMC18oF3F Rc+Q== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.38 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from fry.vger.email (fry.vger.email. [23.128.96.38]) by mx.google.com with ESMTPS id f6-20020a50a6c6000000b0054331262495si1168531edc.547.2023.11.03.12.17.30 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 03 Nov 2023 12:17:30 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.38 as permitted sender) client-ip=23.128.96.38; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.38 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by fry.vger.email (Postfix) with ESMTP id BD0A781F00B8; Fri, 3 Nov 2023 12:17:22 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at fry.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231196AbjKCTRC (ORCPT + 99 others); Fri, 3 Nov 2023 15:17:02 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:41048 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229605AbjKCTRB (ORCPT ); Fri, 3 Nov 2023 15:17:01 -0400 Received: from metis.whiteo.stw.pengutronix.de (metis.whiteo.stw.pengutronix.de [IPv6:2a0a:edc0:2:b01:1d::104]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 7BDADD47 for ; Fri, 3 Nov 2023 12:16:55 -0700 (PDT) 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-Type: text/plain; charset=utf-8 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-kernel@vger.kernel.org X-Spam-Status: No, score=-0.8 required=5.0 tests=HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on fry.vger.email Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (fry.vger.email [0.0.0.0]); Fri, 03 Nov 2023 12:17:23 -0700 (PDT) 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 |