From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 4CA4EECAAD2 for ; Mon, 29 Aug 2022 13:11:39 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229449AbiH2NLh (ORCPT ); Mon, 29 Aug 2022 09:11:37 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:53588 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229709AbiH2NLM (ORCPT ); Mon, 29 Aug 2022 09:11:12 -0400 Received: from vps0.lunn.ch (vps0.lunn.ch [185.16.172.187]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id E2B231096; Mon, 29 Aug 2022 06:10:34 -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=yMN137tQOiEvCCugp8sfYuKyYpdctIsrHd3N7Y4xCc0=; b=HVYaRpe8Vtcbr+q8D2qz1UeUrA ApHFNDSSLiZ2wHmuhVzqrwsX3/lNtzgjy/UfWdtupPVPxRrTOUiJuhkupRQLkVKQAn5caCje96480 Jt6vaOzi/UHjLAUwOE6YQS/xoYJS+7yuuGDVJzOZyCdBcqxdlgWItzVchN/4+JQlW3Y8=; Received: from andrew by vps0.lunn.ch with local (Exim 4.94.2) (envelope-from ) id 1oSeWZ-00ExtK-M7; Mon, 29 Aug 2022 15:09:55 +0200 Date: Mon, 29 Aug 2022 15:09:55 +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: <20220829065044.1736-2-anand@edgeble.ai> 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. Andrew