Received: by 2002:a05:6a10:f3d0:0:0:0:0 with SMTP id a16csp4447152pxv; Tue, 29 Jun 2021 07:15:57 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwOqQ2VV45SMckqxY+SehIFg4S1/edN1FGpVpjzCyyDjwd67iDbRsSAfvfbRzzV69YROwjz X-Received: by 2002:aa7:c3d8:: with SMTP id l24mr4499772edr.172.1624976157480; Tue, 29 Jun 2021 07:15:57 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1624976157; cv=none; d=google.com; s=arc-20160816; b=05AvNqN8B5qkd2GiKkRaR/aO16hLxuV00iohaJZSo7p6Oe7Tb7Emo7tLK+UB+bEiJ9 Z+iEWMTO+RY4hodqryEGL0WyTqWIWAPLE4N5XliKUCMPmeXyECUk5wCQ1dGPb3XHO10L WDnQwWnf4ILlptbo1DmD6BMXr6REp3mBwsVqxH1UqXIp17zOgHozh86X6iug4bdgv9js kxLSWpZ3+bVETKwWeedE3TEWr+0OwgcVottOosnkVE0J/o/s4s1pc3AeGLK7qSTePFPs MD1G7fGBIo2NU3zxrX5Jm6W77GE5dIjLJJNssmk2cUUZR9zVBcMlWBlJ0jHUI8E+1oFV 6NUg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:cc:to:subject:message-id:date:from:in-reply-to :references:mime-version; bh=tmZ+Lxjw1WXJMeYyugIhhkUfVxchpfwqB5EDg1VAF0I=; b=VL7iyxjiIUsof7Z2BNFEM5oHj8vbLn89XbnOCFwxLWwOy6ZythwLD61n81tqJGk8xz gZvjrSn/rVfSWA9qKeGSQWqs4VWOg6z/HPoKBfs3dJbHsr2uYSWqLiCFD0RJvUztQ2bO 0TunZQmjRvH/eAR2DC8i6fHGK5vwshfAj/eSpqGnGvXuHjsIsoH3TXTu2Kasz6OqEzWd YDLaZ9Lm8FgVgDSvmsBLJLSkWHTyqCET9754YrNN3tJc5OqZw1jade5SwANz8doKPy56 9QD5G3eFYy2sVn8WTINf5tTvzDcyg5Or6+10Tq6blJsmMcm3vjpmGFH/61CAkf/xIKNT JWEw== ARC-Authentication-Results: i=1; mx.google.com; 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; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=xilinx.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id yl15si17339977ejb.231.2021.06.29.07.15.34; Tue, 29 Jun 2021 07:15:57 -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; 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; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=xilinx.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S234286AbhF2OOH (ORCPT + 99 others); Tue, 29 Jun 2021 10:14:07 -0400 Received: from mail-yb1-f182.google.com ([209.85.219.182]:34710 "EHLO mail-yb1-f182.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233052AbhF2OOF (ORCPT ); Tue, 29 Jun 2021 10:14:05 -0400 Received: by mail-yb1-f182.google.com with SMTP id c8so24679634ybq.1; Tue, 29 Jun 2021 07:11:37 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=tmZ+Lxjw1WXJMeYyugIhhkUfVxchpfwqB5EDg1VAF0I=; b=sIymig5z9HvtwsNpqb2gzjITHiwI+5v1Q9px2OG5kBRSkOHk5xeV7PKheOzLnP7k76 vn+KgFIBVREVvkiIMpi5kvscL2oW4tMswcSuMzp+AHElTSIcXhRRbfcaiTRKwEdzXwmy X8u5J9dDITZXXi1pM/aj5z+z6VZBCjVLyFxeOV81O8eXJy6kY4KkNmMadPf4v1uqx1TF GTbmbnMB1Ly6JU67QakzsP7umrsaUVrlyKCYWzH8FGtOL6xbw3F7P4SyeJMOwbEjfD+Q Ajk46oY+JfmV2Pkb3oJTEDwR2wXo9t7E2aK7Mk7rsXpiWjoqpYWyegUmESlGuWgAsivQ ZIUA== X-Gm-Message-State: AOAM531z1Nd/gyWl1Dl7WAV9IKW0jP1xyUZD3VPxv9rKynWICljJ0GCI 173nRQgUoOowdKACbOlgMm8tOpjko48+ePG6Sb0= X-Received: by 2002:a25:c004:: with SMTP id c4mr36715186ybf.39.1624975897205; Tue, 29 Jun 2021 07:11:37 -0700 (PDT) MIME-Version: 1.0 References: <20210629094038.18610-1-harini.katakam@xilinx.com> <20210629094038.18610-3-harini.katakam@xilinx.com> In-Reply-To: From: Harini Katakam Date: Tue, 29 Jun 2021 19:41:25 +0530 Message-ID: Subject: Re: [PATCH 2/3] dt-bindings: mscc: Add RGMII RX and TX delay tuning To: Andrew Lunn Cc: Harini Katakam , Rob Herring , Heiner Kallweit , linux@armlinux.org.uk, David Miller , kuba@kernel.org, steen.hegelund@microchip.com, bjarni.jonasson@microchip.com, ioana.ciornei@nxp.com, likaige@loongson.cn, devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, Michal Simek , radhey.shyam.pandey@xilinx.com Content-Type: text/plain; charset="UTF-8" Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi Andrew, On Tue, Jun 29, 2021 at 7:37 PM Andrew Lunn wrote: > > On Tue, Jun 29, 2021 at 03:10:37PM +0530, Harini Katakam wrote: > > Add optional properties to tune RGMII RX and TX delay. > > > > Signed-off-by: Harini Katakam > > Signed-off-by: Radhey Shyam Pandey > > Signed-off-by: Michal Simek > > --- > > .../devicetree/bindings/net/mscc-phy-vsc8531.txt | 9 ++++++++- > > 1 file changed, 8 insertions(+), 1 deletion(-) > > > > diff --git a/Documentation/devicetree/bindings/net/mscc-phy-vsc8531.txt b/Documentation/devicetree/bindings/net/mscc-phy-vsc8531.txt > > index 87a27d775d48..e201d24d8e27 100644 > > --- a/Documentation/devicetree/bindings/net/mscc-phy-vsc8531.txt > > +++ b/Documentation/devicetree/bindings/net/mscc-phy-vsc8531.txt > > @@ -33,7 +33,14 @@ Optional properties: > > VSC8531_DUPLEX_COLLISION (8). > > - load-save-gpios : GPIO used for the load/save operation of the PTP > > hardware clock (PHC). > > - > > +- vsc8531,rx-delay : RGMII RX delay. Allowed values are defined in > > + "include/dt-bindings/net/mscc-phy-vsc8531.h". > > + Default value, set by the driver is > > + VSC8531_RGMII_CLK_DELAY_2_0_NS. > > +- vsc8531,tx-delay : RGMII TX delay. Allowed values are defined in > > + "include/dt-bindings/net/mscc-phy-vsc8531.h". > > + Default value, set by the driver is > > + VSC8531_RGMII_CLK_DELAY_2_0_NS. > > The default values need better explanation. So you are saying they are > only used when 'rgmii' is not used. And they replace the default 2ns > delay, they don't add to the default 2ns delay. Thanks for the review. Yes, I'm saying that they replace the default 2ns delay. But they only come in when rgmii or rgmii-id is used. When that's not used, the default 0.2ns in the driver is retained. I'll update the DT description here to be clear. Regards, Harini