Received: by 2002:a05:7412:8521:b0:e2:908c:2ebd with SMTP id t33csp471542rdf; Fri, 3 Nov 2023 06:17:37 -0700 (PDT) X-Google-Smtp-Source: AGHT+IEpC0ItauBpFDdhGqqihwVMeyfDqTTVPrVDZDyPVv8grK9Cx5BEhMDQ0zyQEH3QJrQ6lhFj X-Received: by 2002:a17:902:f312:b0:1cc:29ef:df8d with SMTP id c18-20020a170902f31200b001cc29efdf8dmr14203944ple.63.1699017456798; Fri, 03 Nov 2023 06:17:36 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1699017456; cv=none; d=google.com; s=arc-20160816; b=TQPxm/Zxa67CFK1fTl1IhZH8HgvAvYTKdPvnjJ1Y2BZ+a/Fe+RIWWqC6DL+Va/H86Z 056XjOZgZ/orpVwprBMJxxD00pdA7hrQnMM9Fawc2LNKPlYt2RIZ/aUJ+EBEGgKbugZ4 QKAvxpY/5HSfX6MY5yOl3QeRWzbVcN4a4t3+nfSyfAZmy6Ot9T9bX8hq9V7wfGNB0VW4 AhWgNNfX71jC5H1I+FcTAesrrlTzzbCaoKo3wPce/OnGLnWw8I/j1JzpiisqgE0URGFZ KUhVZH7GxYOO048otWFdAZ5JDil3vE6GJ4Qun5FnRcr5PhxHvlbrVfrtdK/3wjZLZrN6 dv8Q== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:in-reply-to:content-disposition :mime-version:references:message-id:subject:cc:to:from:date :dkim-signature; bh=XUoUlhIW7TwMqkgphOP0uuquEKi9nLTWmd6P0wlkvck=; fh=tcMnh6W6lyrg8KJJJhSOKHBFQKJCkLGEOt0ss7PQRwE=; b=L0jQVdmDKJmKWk7K3kDoJ7R9q+2/donsCWwaMLPuewLI41DwS+uoqflg4gq168d3Mk rhkoCBHvAQTGhZ1ojJf7y51T8gRXfuA9eNHiBaqEqIpO3w5GN1YjvUedxMbb+OlIDvlP z0aA2Cd0lUQSTSU8l7tFBRZpR2QOs+5XfSQmFdKmY0PBOkcB2liIgxI0RopvybTqPvzi VRON/T+p0araL6dScFGYzY/K0XNuU2z1s3S60SS5K41PAvvzzEJSFXXflY5+5vDIo7as v5YzF2eP7deWkxniAIb7YTOgfZBQDsr0AB9kpKyuealoIsq0VDx/UrwqD4ew1lOzTa38 aZpg== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail (test mode) header.i=@armlinux.org.uk header.s=pandora-2019 header.b=HVsdk43g; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.33 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=armlinux.org.uk Return-Path: Received: from lipwig.vger.email (lipwig.vger.email. [23.128.96.33]) by mx.google.com with ESMTPS id ka14-20020a170903334e00b001c5bb1f0cccsi1465909plb.275.2023.11.03.06.17.36 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 03 Nov 2023 06:17:36 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.33 as permitted sender) client-ip=23.128.96.33; Authentication-Results: mx.google.com; dkim=fail (test mode) header.i=@armlinux.org.uk header.s=pandora-2019 header.b=HVsdk43g; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.33 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=armlinux.org.uk Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by lipwig.vger.email (Postfix) with ESMTP id EF89B829A572; Fri, 3 Nov 2023 06:17:31 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at lipwig.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1377701AbjKCNQc (ORCPT + 99 others); Fri, 3 Nov 2023 09:16:32 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:42104 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1377628AbjKCNQb (ORCPT ); Fri, 3 Nov 2023 09:16:31 -0400 Received: from pandora.armlinux.org.uk (pandora.armlinux.org.uk [IPv6:2001:4d48:ad52:32c8:5054:ff:fe00:142]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 599BE19D; Fri, 3 Nov 2023 06:16:25 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=armlinux.org.uk; s=pandora-2019; h=Sender:In-Reply-To:Content-Type: MIME-Version:References:Message-ID:Subject:Cc:To:From:Date:Reply-To: Content-Transfer-Encoding:Content-ID:Content-Description:Resent-Date: Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Id: List-Help:List-Unsubscribe:List-Subscribe:List-Post:List-Owner:List-Archive; bh=XUoUlhIW7TwMqkgphOP0uuquEKi9nLTWmd6P0wlkvck=; b=HVsdk43gWifGDK+Mlw/qeo0e6u WetGuSwRM3dD6HJfbhCVxWwiNaDHSx2Xro9bORaaUGP8NrGsiaGEHNvixSni0v0P35b/jEvCooAf4 rYSn5zejZ5R8rXLMqEUX7Jj3vlByYhtVv7dYyYFibKbKhskzy4BTZKOVjtfTWnvX0sywdu1yRxFlg gbLL1uCW87i1+EG1EGxKJomNvngp2eIpcnotD9kRcizXara6IbyG1uvuwbgMtKHhmhpmDFFUbLNCP tkpdZyDojnNh9S2saxIOhWgNn3QsrZPPNY6drVgBAAFIiFLE/kiVdagMQeoqjUVXxmK0SYPfuckrD jogBtwEA==; Received: from shell.armlinux.org.uk ([fd8f:7570:feb6:1:5054:ff:fe00:4ec]:44854) by pandora.armlinux.org.uk with esmtpsa (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.96) (envelope-from ) id 1qyu20-0005Yh-0l; Fri, 03 Nov 2023 13:16:12 +0000 Received: from linux by shell.armlinux.org.uk with local (Exim 4.94.2) (envelope-from ) id 1qyu20-0008RM-RX; Fri, 03 Nov 2023 13:16:12 +0000 Date: Fri, 3 Nov 2023 13:16:12 +0000 From: "Russell King (Oracle)" To: Andrew Lunn Cc: Oleksij Rempel , Shawn Guo , Sascha Hauer , Rob Herring , Krzysztof Kozlowski , =?iso-8859-1?Q?S=F8ren?= 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: 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=us-ascii Content-Disposition: inline In-Reply-To: <1ee285d7-6bc9-43ad-9ec9-a8aaed4452b5@lunn.ch> Sender: Russell King (Oracle) X-Spam-Status: No, score=-0.6 required=5.0 tests=DKIM_INVALID,DKIM_SIGNED, 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 lipwig.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 (lipwig.vger.email [0.0.0.0]); Fri, 03 Nov 2023 06:17:32 -0700 (PDT) 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"? -- RMK's Patch system: https://www.armlinux.org.uk/developer/patches/ FTTP is here! 80Mbps down 10Mbps up. Decent connectivity at last!