Received: by 2002:a05:7412:8521:b0:e2:908c:2ebd with SMTP id t33csp471141rdf; Fri, 3 Nov 2023 06:17:05 -0700 (PDT) X-Google-Smtp-Source: AGHT+IFczeAnvalErG+Md00Kfp04oZ/cLPTYRybAFQ1Z7BuyBi0PfsfL0qKyJmIoetPsojwyR76T X-Received: by 2002:a17:90b:3601:b0:27d:839:52ae with SMTP id ml1-20020a17090b360100b0027d083952aemr19136118pjb.32.1699017425637; Fri, 03 Nov 2023 06:17:05 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1699017425; cv=none; d=google.com; s=arc-20160816; b=wkXhEyaLRaWgHSaMqndvKKknw6oXTNtztxZqV1CS0BZu14fkvJ7E+NOLQQ6ZyLFpTI JhFgOd0xxAYcUy4uyAI/bWL1UlRWdmNpBCK4Bt55f6Px/m9GEgSwbMrKdqJ+VJ5PQ1IN O07iUNcSjA28cn3FUuJiwGBl9Hxxz7Lch9UguerCLoOurUxUppnjO/jEhajoV27vBu6B g5PQQ6boHb/GTR/saTolnXNy4sBkCBwe+J8D8cVupPRilg4+mdbhzxFbdh25b4leZU3b HU3CWw8QfioJJoha82b7j5DlnsZZB7jhV6iM9jMfE8Knzb1X2bfSNIHmMw6lNjfz8hs7 tiPg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature; bh=nwTWKoYVMjtqg+eD4pQ7/u3X9Unsi7vaWHDlXuxa8bQ=; fh=deVlqcyfLohruS71WdljXa8yQlFkgoNiCHd+VTsiNJM=; b=BrTmRm/VSNLuT2K/HdLfHQQoT0HEkBZXGfov+m8kMeLmMxMSJDIwgwBMKBCTruBuh5 zk8R1s/57FQXSW+E6+7Re2vqprwE5MLtwt9gEyOY0BYYMXnMduziAOGJWNs+DIGwZC9r WoASoMcuVKibTIWAwVY16O0o140c5HvfgXq7D0c2o0sb6s9k4vaNLi7Xs18wmU/2+1qO aEBhddsD+UjXx97cd5JCLC1DrX6dZddklG+0BZgJMHsCvcgVd+JV5kgwQ48InNmZFraz 5CSdN8AtycQagncjmja30uB4ZKO8S9RwGhDha6YkH8xRlhnjoRH5U+yl2/b0dPNayfCZ d6ug== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@lunn.ch header.s=20171124 header.b=OZupVKvF; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:3 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=lunn.ch Return-Path: Received: from lipwig.vger.email (lipwig.vger.email. [2620:137:e000::3:3]) by mx.google.com with ESMTPS id k7-20020a17090a658700b00280464bcd94si1666269pjj.130.2023.11.03.06.17.05 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 03 Nov 2023 06:17:05 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:3 as permitted sender) client-ip=2620:137:e000::3:3; Authentication-Results: mx.google.com; dkim=pass header.i=@lunn.ch header.s=20171124 header.b=OZupVKvF; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:3 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=lunn.ch Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by lipwig.vger.email (Postfix) with ESMTP id 5CEA280E760F; Fri, 3 Nov 2023 06:16:56 -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 S1377652AbjKCNPr (ORCPT + 99 others); Fri, 3 Nov 2023 09:15:47 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:50074 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1377680AbjKCNPq (ORCPT ); Fri, 3 Nov 2023 09:15:46 -0400 Received: from vps0.lunn.ch (vps0.lunn.ch [156.67.10.101]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id A74E0111; Fri, 3 Nov 2023 06:15:30 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lunn.ch; s=20171124; h=In-Reply-To:Content-Disposition:Content-Type:MIME-Version: References:Message-ID:Subject:Cc:To:From:Date:From:Sender:Reply-To:Subject: Date:Message-ID:To:Cc:MIME-Version:Content-Type:Content-Transfer-Encoding: Content-ID:Content-Description:Content-Disposition:In-Reply-To:References; bh=nwTWKoYVMjtqg+eD4pQ7/u3X9Unsi7vaWHDlXuxa8bQ=; b=OZupVKvFBP8yY5jXoQBkaxnAtd zdbW4wnM7MZgcVIsR5wkmaYoND36VDf+I9mKTcCETsUlI6DlzhH8zVaid2OZVXpQ8bVCC46xFVNxR Vd9nXkQa3APkuYXf0Ueqtef+ue3SFWfg/l8CsJS+mzby+e6r/v5ZSPHJ5x3APXBu4+Tk=; Received: from andrew by vps0.lunn.ch with local (Exim 4.94.2) (envelope-from ) id 1qyu1F-000of2-It; Fri, 03 Nov 2023 14:15:25 +0100 Date: Fri, 3 Nov 2023 14:15:25 +0100 From: Andrew Lunn To: Oleksij Rempel Cc: devicetree@vger.kernel.org, Fabio Estevam , kernel@pengutronix.de, Shawn Guo , Sascha Hauer , linux-kernel@vger.kernel.org, Rob Herring , NXP Linux Team , Krzysztof Kozlowski , =?iso-8859-1?Q?S=F8ren?= Andersen , Sam Ravnborg , linux-arm-kernel@lists.infradead.org Subject: Re: [PATCH v2 2/2] arm64: dts: freescale: Add SKOV IMX8MP CPU revB board Message-ID: <3261c311-4881-41e7-875d-380f711e8ac0@lunn.ch> References: <20231103105305.2459143-1-o.rempel@pengutronix.de> <20231103105305.2459143-2-o.rempel@pengutronix.de> <1ee285d7-6bc9-43ad-9ec9-a8aaed4452b5@lunn.ch> <20231103125306.GB40819@pengutronix.de> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20231103125306.GB40819@pengutronix.de> X-Spam-Status: No, score=-0.9 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, DKIM_VALID_AU,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:16:56 -0700 (PDT) On Fri, Nov 03, 2023 at 01:53:06PM +0100, Oleksij Rempel wrote: > Hi Andrew, > > 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? > > Yes. I even made a delay calculation by measuring this trace on PCB, > just to make sure I see it correctly. Cool. I need to keep this board in mind, its about the only one i know of which actually does this. > > > + 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. > > Without it the driver will complain: > https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/tree/drivers/net/dsa/microchip/ksz_common.c?h=v6.6#n3496 Ah! Humm. I forget how this all works. This is the port node, not the PHY. We are configuring the MAC delays with tx-internal-delay-ps. There is no PHY here, so phy-mode is not used by any PHY. All that might matter is that you indicate rgmii or some sort. Have you tried plain "rgmii". It then looks less like you have 4ns of delay. Andrew