public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
From: Andrew Lunn <andrew@lunn.ch>
To: Dan Murphy <dmurphy@ti.com>
Cc: f.fainelli@gmail.com, hkallweit1@gmail.com, davem@davemloft.net,
	robh@kernel.org, netdev@vger.kernel.org,
	linux-kernel@vger.kernel.org, devicetree@vger.kernel.org
Subject: Re: [PATCH net-next v7 1/6] dt-bindings: net: Add tx and rx internal delays
Date: Thu, 18 Jun 2020 04:01:01 +0200	[thread overview]
Message-ID: <20200618020101.GJ249144@lunn.ch> (raw)
In-Reply-To: <20200617182019.6790-2-dmurphy@ti.com>

On Wed, Jun 17, 2020 at 01:20:14PM -0500, Dan Murphy wrote:
> tx-internal-delays and rx-internal-delays are a common setting for RGMII
> capable devices.
> 
> These properties are used when the phy-mode or phy-controller is set to
> rgmii-id, rgmii-rxid or rgmii-txid.  These modes indicate to the
> controller that the PHY will add the internal delay for the connection.
> 
> Signed-off-by: Dan Murphy <dmurphy@ti.com>
> ---
>  .../devicetree/bindings/net/ethernet-phy.yaml         | 11 +++++++++++
>  1 file changed, 11 insertions(+)
> 
> diff --git a/Documentation/devicetree/bindings/net/ethernet-phy.yaml b/Documentation/devicetree/bindings/net/ethernet-phy.yaml
> index 9b1f1147ca36..b2887476fe6a 100644
> --- a/Documentation/devicetree/bindings/net/ethernet-phy.yaml
> +++ b/Documentation/devicetree/bindings/net/ethernet-phy.yaml
> @@ -162,6 +162,17 @@ properties:
>      description:
>        Specifies a reference to a node representing a SFP cage.
>  
> +
> +  rx-internal-delay-ps:
> +    description: |
> +      RGMII Receive PHY Clock Delay defined in pico seconds.  This is used for
> +      PHY's that have configurable RX internal delays.
> +
> +  tx-internal-delay-ps:
> +    description: |
> +      RGMII Transmit PHY Clock Delay defined in pico seconds.  This is used for
> +      PHY's that have configurable TX internal delays.
> +

So in a later patch you have:

default: 2000

That seems to apply that these values only apply when the phy mode
indicates a delay is needed. It would be good to document that here,
when each of these properties will be used. Also, that they default to
2000 when not present.

     Andrew

  parent reply	other threads:[~2020-06-18  2:01 UTC|newest]

Thread overview: 15+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2020-06-17 18:20 [PATCH net-next v7 0/6] RGMII Internal delay common property Dan Murphy
2020-06-17 18:20 ` [PATCH net-next v7 1/6] dt-bindings: net: Add tx and rx internal delays Dan Murphy
2020-06-18  1:43   ` Andrew Lunn
2020-06-18  2:01   ` Andrew Lunn [this message]
2020-06-18 13:44     ` Dan Murphy
2020-06-17 18:20 ` [PATCH net-next v7 2/6] net: phy: Add a helper to return the index for of the internal delay Dan Murphy
2020-06-18  1:51   ` Andrew Lunn
2020-06-18 13:41     ` Dan Murphy
2020-06-17 18:20 ` [PATCH net-next v7 3/6] dt-bindings: net: Add RGMII internal delay for DP83869 Dan Murphy
2020-06-17 18:20 ` [PATCH net-next v7 4/6] net: dp83869: Add RGMII internal delay configuration Dan Murphy
2020-06-17 18:20 ` [PATCH net-next v7 5/6] dt-bindings: net: dp83822: Add TI dp83822 phy Dan Murphy
2020-07-09 20:30   ` Rob Herring
2020-06-17 18:20 ` [PATCH net-next v7 6/6] net: phy: DP83822: Add ability to advertise Fiber connection Dan Murphy
2020-06-17 18:27   ` Dan Murphy
2020-06-18  0:00   ` Jakub Kicinski

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20200618020101.GJ249144@lunn.ch \
    --to=andrew@lunn.ch \
    --cc=davem@davemloft.net \
    --cc=devicetree@vger.kernel.org \
    --cc=dmurphy@ti.com \
    --cc=f.fainelli@gmail.com \
    --cc=hkallweit1@gmail.com \
    --cc=linux-kernel@vger.kernel.org \
    --cc=netdev@vger.kernel.org \
    --cc=robh@kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox