Received: by 2002:a05:6358:45e:b0:b5:b6eb:e1f9 with SMTP id 30csp3138231rwe; Mon, 29 Aug 2022 06:32:17 -0700 (PDT) X-Google-Smtp-Source: AA6agR48pfyF28uNCvV92J9d1lJtaSPCotNDw/Me333o1qKgtd0SCIZKVMxBe+mSvS8YrE4A0GGM X-Received: by 2002:a62:1616:0:b0:537:ab37:fe90 with SMTP id 22-20020a621616000000b00537ab37fe90mr16375410pfw.24.1661779936951; Mon, 29 Aug 2022 06:32:16 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1661779936; cv=none; d=google.com; s=arc-20160816; b=i/6giJu3Hujca7O5FiVLUYxBxoX4m6W6sOVwInW3V3f+FtTlQdBW3yDC/syQsKsZhO /h22RIW489U1a/il+7KzQBzp93Yw12f/37HZYyGurqGHuy8K5BVoOLORMT5EsJ943/86 aqrjzw9FcOqxFCjLC+w2gBD3xz+yTeEvEr6wI7HmanOzN8b8oitYOtrLnq/So1cGyh1G EcXHtwybU/mHfwSMvbfhgiYvvy7GaYFEynXI6r6JrLUO2a7hO67rsqRGEd14R2lrtQZv 0VrHw3vKIKGG5a+EPiQAOXMOd7Hle3/A4Uwz8LHN5yt8EiGyemBKGx+2eZDJrsWPRUSO 08DA== 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=yMN137tQOiEvCCugp8sfYuKyYpdctIsrHd3N7Y4xCc0=; b=gFG4DUnw5qs+CQNhUyIs5MYrdgH/SM00NyHlj4fWz1aQ35je+22aYcCzRCIhB7RQBg dNAQHaWKbY5GJ1Jl4k5on8P+qol6HBX8KHb6bWbhyMQGFB6EJKPqBAIYUJHajOCrpFNP kvq7q7vuHzFJPDmLARbXK6Jnt4GeLrVhII699VE+WIPK5TXFf7TwPvDE9qbqTY+9R2J5 rvIgEDyimtdeFCGPdbn3yqaQRWpimm+fQWTd3K3IuFIn0cLsnxEKC2D32nU9FntcEb+x LKPUEfZsYlUYQLc5BfkgCmf0TLB0NsqBt+noSZQcv3ST03BhKxnadncGkEM4mGfqHXtz URGQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@lunn.ch header.s=20171124 header.b=HVYaRpe8; 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 w190-20020a6382c7000000b0042b358412bcsi9079070pgd.510.2022.08.29.06.32.04; Mon, 29 Aug 2022 06:32:16 -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=HVYaRpe8; 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 S230051AbiH2NLg (ORCPT + 99 others); Mon, 29 Aug 2022 09:11:36 -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> 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. Andrew