Received: by 2002:a05:6358:45e:b0:b5:b6eb:e1f9 with SMTP id 30csp621833rwe; Thu, 1 Sep 2022 05:21:49 -0700 (PDT) X-Google-Smtp-Source: AA6agR67aYqZilQNl+8w96aJ+Qa4rn14bK5/KAxH9BGRuvRIRCFHoktB4qlmN03Cu8QLHddtYxNW X-Received: by 2002:a05:6402:241d:b0:443:39c5:808b with SMTP id t29-20020a056402241d00b0044339c5808bmr28990071eda.39.1662034909509; Thu, 01 Sep 2022 05:21:49 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1662034909; cv=none; d=google.com; s=arc-20160816; b=DIBnIzQ7YPi8QkI+bajjKDErnhS90UG5TpEobtbM0+Oav9Hhn5RCqc5rXvb5AxLikw v+HPQi3TpnIx0O9U+55NB7IZUcQ+FDXCkxfA6TFuXU7DI0aI+DADMl3EvuJg4As0L9UW LcfSHct0udwca4hs/j0rEQFImIIfSbjiLvExRrQ7292lnx7QESMtB5uV3FRYRhByZh2c DAobIIXm2jVOdrAiF+w2D1nRR8lJXMLkUhCupARqeEDNZoLEc9YRQw9DRrspyMObF1nE PwULy6JwINTiD6VwNOWTYF8d41T/R2e7UrnwXy6h0OxL+KKjpkRnkJZEv/a6X5Gkj56n gdhg== 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=Z32zyNm2q9oNI20LFO4oRcR+yDJE4HnerOl4N12iFtc=; b=v45YqbrWC4kishsDTmIDCLvLVevJpflVVgo96sQRsgJg9p+SfCBxBJXtX9yzVTngKz nP9jogV0qTVBhbvyeYpDAM7+kCw1IVYUKYGs187cnR+5KDIBgFRGOi4cG4IoMZ0RohVX OU2NguxxMYdt3pbG/3iECxUG0ig8YHEf9xL1Uam8LjGAJDn5QjL3Yp/6iFrcb6T0zrCb sy6Kng6ktgVXZmf6PhkBRb36kWY6yNkmbpVvSuVVFdt03g/T9wAzQUUuoad0sPgW6xsq mNa63XwFROKCc5RXbnXJQ8A97c1CSpAHiCsmUr6wnj2jtsTPUc/91Jy1GT9puDTmhzxw ydNA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@lunn.ch header.s=20171124 header.b=HMmdDxma; 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 j10-20020a170906430a00b0072af35fca64si10637437ejm.484.2022.09.01.05.21.13; Thu, 01 Sep 2022 05:21:49 -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=HMmdDxma; 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 S233331AbiIAMM6 (ORCPT + 99 others); Thu, 1 Sep 2022 08:12:58 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:45744 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233317AbiIAMMz (ORCPT ); Thu, 1 Sep 2022 08:12:55 -0400 Received: from vps0.lunn.ch (vps0.lunn.ch [185.16.172.187]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id E2986116E38; Thu, 1 Sep 2022 05:12:51 -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=Z32zyNm2q9oNI20LFO4oRcR+yDJE4HnerOl4N12iFtc=; b=HMmdDxmavhLwaqId+oNxLibqnx oQUdQEd2uBcf1xjgqu5yuxKOo2Uq7B27yE1CoyTv8xmgv0P28FQEERnsyRbFbIxM1eEcdLA6x0+mL dPMCHdB5TeibVefHYtyVJmIwnvh4uk0M8UgS9em0LaXYS7CdRQm5URcdi6KByaNE1W3w=; Received: from andrew by vps0.lunn.ch with local (Exim 4.94.2) (envelope-from ) id 1oTj3k-00FIiu-A7; Thu, 01 Sep 2022 14:12:36 +0200 Date: Thu, 1 Sep 2022 14:12:36 +0200 From: Andrew Lunn To: Jagan Teki Cc: Anand Moon , Giuseppe Cavallaro , Alexandre Torgue , Jose Abreu , "David S. Miller" , Eric Dumazet , Jakub Kicinski , Paolo Abeni , Maxime Coquelin , Sugar Zhang , David Wu , 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 Thu, Sep 01, 2022 at 12:56:09PM +0530, Jagan Teki wrote: > On Mon, 29 Aug 2022 at 18:40, Andrew Lunn wrote: > > > > 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? > > These are MAC receive clock delay lengths. > > > > > 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. > > Yes, but these are specific to MAC, not related to PHY delays. Similar > to what is there in other Rockchip SoC families like RK3366, 3368, > 3399, 3128, but these MAC clock delay lengths are grouped based on the > iomux group in RV1126. We have iomux group 0 (M0) and group 1 (M1), so > the rgmii has to set these lengths irrespective of whether PHY add's > or not. So this is just fine tuning, in the order of pico seconds? If that is all it is, then this is fine. It becomes a problem when it is 2ns. Andrew