Received: by 2002:a05:6358:45e:b0:b5:b6eb:e1f9 with SMTP id 30csp647889rwe; Thu, 1 Sep 2022 05:46:09 -0700 (PDT) X-Google-Smtp-Source: AA6agR6mCdxy8uijBDaNaWsvv8xUsw+XRxKzVwHY8Xpmy6yya5LOqxovhBlJ8GJj6ykoxNhAxRmS X-Received: by 2002:a17:90b:4b81:b0:1fd:bc88:680b with SMTP id lr1-20020a17090b4b8100b001fdbc88680bmr8510583pjb.19.1662036369654; Thu, 01 Sep 2022 05:46:09 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1662036369; cv=none; d=google.com; s=arc-20160816; b=HMfPr6ParB/HCA1pXGzFd8XnLA0/Hw7UqkHE4EJPuFpGzGZMf5ZmbORGPED1VKdkYC i/eJWBMDmQjwcW4uFtvquYCFMY1nJy1OOhUgApJIo4in78d5P9fed5ACCnOp17mj77Qd VfJWtJO5qAQ+fELx19vbQhFhwi2vIpYhujmkyYAW1BZPaam1NzWJ3fBYyB5OQ5BeqH03 Q8Tm8HdvPBls/Ne57Akbnw4RnYp4iDl71P8E9fwWAFRgrIJOV8hPbutXZy/7eB3bd6oJ bKE3nmooesUHmQJxQQLoM0xZQ1kahLOG12wl4i3xM9R+YPSEt3iKrSeMBxsO23tjf6JY y/8A== 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=LaFtjcKE2V/P1S6QroWS+3k5zrDKN1D6ktj5C2pZ8Ek=; b=TYOIETyrmImja8v2CllAeIHbQN5hEAXajF4Tk9c/iEY+fe04+skMw+d0YM7lwqqZ57 C85IB+JcLQv0phAPgoZ8BgRezKTr821SsIa4UDoVT3hfotVDDOf8nsFIHUDKO/YS+EAv q13u7WWqfVQ00j8StgNBXsQPD48aPdBw0QOQucGM71GWyNrGMbQ8D3fOwMgr5jqMqx0R pw2lkN/Q2WubgYpJeWniRZopWjn2u3hTYnMCj+tq5vilMW4tLRro4a5/jeuieYpSiVoH cX4a17XSp+Sryx4EI3vi9o8HHhF/MPFUKOjfPRM78Huw7FaRgYCGkvICglcKmdqPF2zp 6M4g== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@lunn.ch header.s=20171124 header.b=U6GQYqOE; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id k15-20020aa788cf000000b00537b1bc9683si6046203pff.36.2022.09.01.05.45.58; Thu, 01 Sep 2022 05:46:09 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@lunn.ch header.s=20171124 header.b=U6GQYqOE; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S233312AbiIAMIz (ORCPT + 99 others); Thu, 1 Sep 2022 08:08:55 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:38586 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232065AbiIAMIw (ORCPT ); Thu, 1 Sep 2022 08:08:52 -0400 Received: from vps0.lunn.ch (vps0.lunn.ch [185.16.172.187]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id E40E4EA338; Thu, 1 Sep 2022 05:08:48 -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=LaFtjcKE2V/P1S6QroWS+3k5zrDKN1D6ktj5C2pZ8Ek=; b=U6GQYqOERXA3BfsLz0EQzJErri lMNRyeaGK8SIJHmNPrIyRs+84fwcuZNoDn5kha7nFPApyY4FU1OcVBnb/CHF6vOBkKyqXQQjyB9ZS HpUPy2KGpcnKvC+bejy0wSRfHMqDxCs8cRhSa26mOJWKxkRBpnzyYijxnIyvvgWW4DK0=; Received: from andrew by vps0.lunn.ch with local (Exim 4.94.2) (envelope-from ) id 1oTizf-00FIgL-Q0; Thu, 01 Sep 2022 14:08:23 +0200 Date: Thu, 1 Sep 2022 14:08:23 +0200 From: Andrew Lunn To: Anand Moon Cc: Giuseppe Cavallaro , Alexandre Torgue , Jose Abreu , "David S. Miller" , Eric Dumazet , Jakub Kicinski , Paolo Abeni , Maxime Coquelin , Sugar Zhang , David Wu , Jagan Teki , netdev@vger.kernel.org, linux-stm32@st-md-mailman.stormreply.com, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH 2/2] net: ethernet: stmicro: stmmac: dwmac-rk: Add rv1126 support Message-ID: References: <20220829065044.1736-1-anand@edgeble.ai> <20220829065044.1736-2-anand@edgeble.ai> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,SPF_HELO_PASS,SPF_PASS, T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org > > On Mon, Aug 29, 2022 at 06:50:42AM +0000, Anand Moon wrote: > > > Rockchip RV1126 has GMAC 10/100/1000M ethernet controller > > > via RGMII and RMII interfaces are configured via M0 and M1 pinmux. > > > > > > This patch adds rv1126 support by adding delay lines of M0 and M1 > > > simultaneously. > > > > What does 'delay lines' mean with respect to RGMII? > > > > The RGMII signals need a 2ns delay between the clock and the data > > lines. There are three places this can happen: > > > > 1) In the PHY > > 2) Extra long lines on the PCB > > 3) In the MAC > > > > Generally, 1) is used, and controlled via phy-mode. A value of > > PHY_INTERFACE_MODE_RGMII_ID passed to the PHY driver means it will add > > these delays. > > > > You don't want both the MAC and the PHY adding delays. > > > These are set to enable MAC transmit clock delay set for Tx and Rx for > iomux group. Which does not answer my question. Is this the same as, or different to, the 2ns delay required by RGMII? Andrew