Received: by 2002:a25:1985:0:0:0:0:0 with SMTP id 127csp714414ybz; Wed, 22 Apr 2020 06:43:19 -0700 (PDT) X-Google-Smtp-Source: APiQypLWzhE1WK6yEGu9pqCc8XRzIyqoD9UErekkDbQzVefBHEVMgA9zA2s6d5R1tTLnCHyXOD/g X-Received: by 2002:a50:bb25:: with SMTP id y34mr22568536ede.237.1587562999263; Wed, 22 Apr 2020 06:43:19 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1587562999; cv=none; d=google.com; s=arc-20160816; b=lZONHiMRkf5RLtpLvV1outXSZeQ+XYJM+w077o64H1elJ8i6rUHTBuO7OvZghlui0U WUPH2UY9Wk60r+8K67798WCsBLwVtUV3ykVzmHNWoFpa0GPBBE80JmqpeiU2R82jXsDf PJIDEEd0FKGIKIjdh+xFzDR6E/TJgJtWRjkaDNZGCOkjHiJnhin6OH6NuqfEDJq7uzQH PFvnJkOPsFBZGWZCopkbMfhANuAJ+kyX7rQ4y/DWcU4FgfIomdpOxvXWsyGSkWijl33o PIls8iVOM11ygRJU/QtUt81AE+m/JUyfRtnEl2PEYgVn3U6IBmZzEYqGF7jjUxfDf3HP IMTA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:in-reply-to:content-disposition :mime-version:references:message-id:subject:cc:to:from:date :dkim-signature; bh=k+1cIh8XjYZNIJTil34Mdg1G0PNol/tREUjipVfCnrY=; b=UXsOqDCtSPUr98zDzXo477ehzLsivsi0qHk+gCauas00Dqf+ve/XAFfH1muostY33f 64/GIs4SQ1je3eBqIZKh+xp27f+BbZ6zu9quj1yrD4VY5P25ft48YQIRmZiB/NZycORe GfDma8Et3xOG4QPZm4ma4nzuQ9l2fbQhu1E2s7MnrN8fr15FS0Ygqq+38qdk1n/2YOHB te7YIYLFYwrnASbbUOJ32l+bl3fAnjA2tQEqHXgk5FrKTspPtnvB3xgVTXz4hoT68J/z v0MmXY4aOXvaW2CdIEw3X2zN45XMc2YHvcuMBcHVy3gsu1AR0URc/HOWRm03a0wr7JVd OAig== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@lunn.ch header.s=20171124 header.b=5yXS+Gp2; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id u15si3523848ejj.129.2020.04.22.06.42.55; Wed, 22 Apr 2020 06:43:19 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=fail header.i=@lunn.ch header.s=20171124 header.b=5yXS+Gp2; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726537AbgDVNjc (ORCPT + 99 others); Wed, 22 Apr 2020 09:39:32 -0400 Received: from vps0.lunn.ch ([185.16.172.187]:56274 "EHLO vps0.lunn.ch" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725810AbgDVNjb (ORCPT ); Wed, 22 Apr 2020 09:39:31 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lunn.ch; s=20171124; h=In-Reply-To:Content-Type:MIME-Version:References:Message-ID: Subject:Cc:To:From:Date:Sender:Reply-To:Content-Transfer-Encoding:Content-ID: Content-Description:Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc :Resent-Message-ID:List-Id:List-Help:List-Unsubscribe:List-Subscribe: List-Post:List-Owner:List-Archive; bh=k+1cIh8XjYZNIJTil34Mdg1G0PNol/tREUjipVfCnrY=; b=5yXS+Gp2kRNtwZC+GWd7ec6S9C ArpFHQok6rG9P31AYY4mjSNnrgrFOXtLx0HyZJucIv9v05OnD/zsWJH+sKznoZv0+voggepI1GITW Fk8/jIo7um77GRCw7JiQHifdZndY58ZP2QeH5tPk/LoFl+Z/QAzNYcLRIvoXzXMSyU8I=; Received: from andrew by vps0.lunn.ch with local (Exim 4.93) (envelope-from ) id 1jRFaz-004D3b-A3; Wed, 22 Apr 2020 15:39:21 +0200 Date: Wed, 22 Apr 2020 15:39:21 +0200 From: Andrew Lunn To: Oleksij Rempel Cc: Florian Fainelli , Heiner Kallweit , David Jander , "David S. Miller" , kernel@pengutronix.de, linux-kernel@vger.kernel.org, netdev@vger.kernel.org, Philippe Schenker , Russell King Subject: Re: [PATCH net-next v3] net: phy: micrel: add phy-mode support for the KSZ9031 PHY Message-ID: <20200422133921.GA974925@lunn.ch> References: <20200422072137.8517-1-o.rempel@pengutronix.de> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20200422072137.8517-1-o.rempel@pengutronix.de> Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, Apr 22, 2020 at 09:21:37AM +0200, Oleksij Rempel wrote: > Add support for following phy-modes: rgmii, rgmii-id, rgmii-txid, rgmii-rxid. > > This PHY has an internal RX delay of 1.2ns and no delay for TX. > > The pad skew registers allow to set the total TX delay to max 1.38ns and > the total RX delay to max of 2.58ns (configurable 1.38ns + build in > 1.2ns) and a minimal delay of 0ns. > > According to the RGMII v1.3 specification the delay provided by PCB traces > should be between 1.5ns and 2.0ns. The RGMII v2.0 allows to provide this > delay by MAC or PHY. So, we configure this PHY to the best values we can > get by this HW: TX delay to 1.38ns (max supported value) and RX delay to > 1.80ns (best calculated delay) > > The phy-modes can still be fine tuned/overwritten by *-skew-ps > device tree properties described in: > Documentation/devicetree/bindings/net/micrel-ksz90x1.txt > > Signed-off-by: Oleksij Rempel Reviewed-by: Andrew Lunn Andrew