devicetree.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Rob Herring <robh@kernel.org>
To: Pawel Dembicki <paweldembicki@gmail.com>
Cc: netdev@vger.kernel.org, Andrew Lunn <andrew@lunn.ch>,
	Florian Fainelli <f.fainelli@gmail.com>,
	Vladimir Oltean <olteanv@gmail.com>,
	"David S. Miller" <davem@davemloft.net>,
	Eric Dumazet <edumazet@google.com>,
	Jakub Kicinski <kuba@kernel.org>, Paolo Abeni <pabeni@redhat.com>,
	Krzysztof Kozlowski <krzk+dt@kernel.org>,
	Conor Dooley <conor+dt@kernel.org>,
	Linus Walleij <linus.walleij@linaro.org>,
	devicetree@vger.kernel.org, linux-kernel@vger.kernel.org
Subject: Re: [PATCH net-next v2 2/2] dt-bindings: net: dsa: vsc73xx: add {rx,tx}-internal-delay-ps
Date: Mon, 22 Jul 2024 20:47:08 -0600	[thread overview]
Message-ID: <20240723024708.GA192141-robh@kernel.org> (raw)
In-Reply-To: <20240717212732.1775267-2-paweldembicki@gmail.com>

On Wed, Jul 17, 2024 at 11:27:33PM +0200, Pawel Dembicki wrote:
> Add a schema validator to vitesse,vsc73xx.yaml for MAC-level RGMII delays
> in the CPU port. Additionally, valid values for VSC73XX were defined,
> and a common definition for the RX and TX valid range was created.
> 
> Signed-off-by: Pawel Dembicki <paweldembicki@gmail.com>
> 
> ---
> v2:
>   - added info about default value when the rx/tx delay property
>     is missing
> ---
>  .../bindings/net/dsa/vitesse,vsc73xx.yaml     | 33 +++++++++++++++++++
>  1 file changed, 33 insertions(+)
> 
> diff --git a/Documentation/devicetree/bindings/net/dsa/vitesse,vsc73xx.yaml b/Documentation/devicetree/bindings/net/dsa/vitesse,vsc73xx.yaml
> index b99d7a694b70..7022a6afde5c 100644
> --- a/Documentation/devicetree/bindings/net/dsa/vitesse,vsc73xx.yaml
> +++ b/Documentation/devicetree/bindings/net/dsa/vitesse,vsc73xx.yaml
> @@ -52,6 +52,25 @@ properties:
>  allOf:
>    - $ref: dsa.yaml#/$defs/ethernet-ports
>  
> +patternProperties:
> +  "^(ethernet-)?ports$":
> +    additionalProperties: true
> +    patternProperties:
> +      "^(ethernet-)?port@6$":
> +        allOf:
> +          - if:
> +              properties:
> +                phy-mode:
> +                  contains:
> +                    enum:
> +                      - rgmii
> +            then:
> +              properties:
> +                rx-internal-delay-ps:
> +                  $ref: "#/$defs/internal-delay-ps"
> +                tx-internal-delay-ps:
> +                  $ref: "#/$defs/internal-delay-ps"
> +
>  # This checks if reg is a chipselect so the device is on an SPI
>  # bus, the if-clause will fail if reg is a tuple such as for a
>  # platform device.
> @@ -67,6 +86,16 @@ required:
>    - compatible
>    - reg
>  
> +$defs:
> +  internal-delay-ps:
> +    description:
> +      Disable tunable delay lines using 0 ps, or enable them and select
> +      the phase between 1400 ps and 2000 ps in increments of 300 ps.
> +      When the property is missing, the delay value is set to 2000 ps
> +      by default.

       default: 2000

Not freeform text.

> +    enum:
> +      [0, 1400, 1700, 2000]
> +
>  unevaluatedProperties: false
>  
>  examples:
> @@ -108,6 +137,8 @@ examples:
>              reg = <6>;
>              ethernet = <&gmac1>;
>              phy-mode = "rgmii";
> +            rx-internal-delay-ps = <0>;
> +            tx-internal-delay-ps = <0>;
>              fixed-link {
>                speed = <1000>;
>                full-duplex;
> @@ -150,6 +181,8 @@ examples:
>            ethernet-port@6 {
>              reg = <6>;
>              ethernet = <&enet0>;
> +            rx-internal-delay-ps = <0>;
> +            tx-internal-delay-ps = <0>;
>              phy-mode = "rgmii";
>              fixed-link {
>                speed = <1000>;
> -- 
> 2.34.1
> 

  parent reply	other threads:[~2024-07-23  2:47 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2024-07-17 21:27 [PATCH net-next v2 1/2] net: dsa: vsc73xx: make RGMII delays configurable Pawel Dembicki
2024-07-17 21:27 ` [PATCH net-next v2 2/2] dt-bindings: net: dsa: vsc73xx: add {rx,tx}-internal-delay-ps Pawel Dembicki
2024-07-18  1:36   ` Andrew Lunn
2024-07-23  2:47   ` Rob Herring [this message]
2024-07-18  1:35 ` [PATCH net-next v2 1/2] net: dsa: vsc73xx: make RGMII delays configurable Andrew Lunn
2024-07-18  9:01 ` Paolo Abeni

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=20240723024708.GA192141-robh@kernel.org \
    --to=robh@kernel.org \
    --cc=andrew@lunn.ch \
    --cc=conor+dt@kernel.org \
    --cc=davem@davemloft.net \
    --cc=devicetree@vger.kernel.org \
    --cc=edumazet@google.com \
    --cc=f.fainelli@gmail.com \
    --cc=krzk+dt@kernel.org \
    --cc=kuba@kernel.org \
    --cc=linus.walleij@linaro.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=netdev@vger.kernel.org \
    --cc=olteanv@gmail.com \
    --cc=pabeni@redhat.com \
    --cc=paweldembicki@gmail.com \
    /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;
as well as URLs for NNTP newsgroup(s).