From: Rob Herring <robh@kernel.org>
To: Ante Knezic <ante.knezic@helmholz.de>
Cc: netdev@vger.kernel.org, woojung.huh@microchip.com,
andrew@lunn.ch, f.fainelli@gmail.com, olteanv@gmail.com,
davem@davemloft.net, edumazet@google.com, kuba@kernel.org,
pabeni@redhat.com, krzysztof.kozlowski+dt@linaro.org,
conor+dt@kernel.org, marex@denx.de, devicetree@vger.kernel.org,
linux-kernel@vger.kernel.org, UNGLinuxDriver@microchip.com
Subject: Re: [PATCH net-next v6 1/2] dt-bindings: net: microchip,ksz: document microchip,rmii-clk-internal
Date: Tue, 28 Nov 2023 09:02:03 -0600 [thread overview]
Message-ID: <20231128150203.GA3264915-robh@kernel.org> (raw)
In-Reply-To: <7f1f89010743a06c4880fd224149ea495fe32512.1701091042.git.ante.knezic@helmholz.de>
On Mon, Nov 27, 2023 at 02:20:42PM +0100, Ante Knezic wrote:
> Add documentation for selecting reference rmii clock on KSZ88X3 devices
>
> Signed-off-by: Ante Knezic <ante.knezic@helmholz.de>
> ---
> .../devicetree/bindings/net/dsa/microchip,ksz.yaml | 38 +++++++++++++++++++++-
> 1 file changed, 37 insertions(+), 1 deletion(-)
You forgot Conor's ack.
>
> diff --git a/Documentation/devicetree/bindings/net/dsa/microchip,ksz.yaml b/Documentation/devicetree/bindings/net/dsa/microchip,ksz.yaml
> index b3029c64d0d5..6fd482f2656b 100644
> --- a/Documentation/devicetree/bindings/net/dsa/microchip,ksz.yaml
> +++ b/Documentation/devicetree/bindings/net/dsa/microchip,ksz.yaml
> @@ -11,7 +11,6 @@ maintainers:
> - Woojung Huh <Woojung.Huh@microchip.com>
>
> allOf:
> - - $ref: dsa.yaml#/$defs/ethernet-ports
> - $ref: /schemas/spi/spi-peripheral-props.yaml#
>
> properties:
> @@ -78,6 +77,43 @@ required:
> - compatible
> - reg
>
> +if:
> + not:
> + properties:
> + compatible:
> + enum:
> + - microchip,ksz8863
> + - microchip,ksz8873
> +then:
> + $ref: dsa.yaml#/$defs/ethernet-ports
> +else:
> + patternProperties:
> + "^(ethernet-)?ports$":
> + patternProperties:
> + "^(ethernet-)?port@[0-2]$":
> + $ref: dsa-port.yaml#
> + properties:
> + microchip,rmii-clk-internal:
> + $ref: /schemas/types.yaml#/definitions/flag
> + description:
> + When ksz88x3 is acting as clock provier (via REFCLKO) it
> + can select between internal and external RMII reference
> + clock. Internal reference clock means that the clock for
> + the RMII of ksz88x3 is provided by the ksz88x3 internally
> + and the REFCLKI pin is unconnected. For the external
> + reference clock, the clock needs to be fed back to ksz88x3
> + via REFCLKI.
> + If microchip,rmii-clk-internal is set, ksz88x3 will provide
> + rmii reference clock internally, otherwise reference clock
> + should be provided externally.
> + if:
> + not:
> + required: [ ethernet ]
> + then:
> + properties:
> + microchip,rmii-clk-internal: false
This can be expressed as:
dependencies:
microchip,rmii-clk-internal: [ethernet]
> + unevaluatedProperties: false
Move this under the $ref.
> +
> unevaluatedProperties: false
>
> examples:
> --
> 2.11.0
>
next prev parent reply other threads:[~2023-11-28 15:02 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2023-11-27 13:20 [PATCH net-next v6 0/2] net: dsa: microchip: enable setting rmii reference Ante Knezic
2023-11-27 13:20 ` [PATCH net-next v6 1/2] dt-bindings: net: microchip,ksz: document microchip,rmii-clk-internal Ante Knezic
2023-11-28 15:02 ` Rob Herring [this message]
2023-11-28 17:29 ` Conor Dooley
2023-11-27 13:20 ` [PATCH net-next v6 2/2] net: dsa: microchip: add property to select internal RMII reference clock Ante Knezic
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=20231128150203.GA3264915-robh@kernel.org \
--to=robh@kernel.org \
--cc=UNGLinuxDriver@microchip.com \
--cc=andrew@lunn.ch \
--cc=ante.knezic@helmholz.de \
--cc=conor+dt@kernel.org \
--cc=davem@davemloft.net \
--cc=devicetree@vger.kernel.org \
--cc=edumazet@google.com \
--cc=f.fainelli@gmail.com \
--cc=krzysztof.kozlowski+dt@linaro.org \
--cc=kuba@kernel.org \
--cc=linux-kernel@vger.kernel.org \
--cc=marex@denx.de \
--cc=netdev@vger.kernel.org \
--cc=olteanv@gmail.com \
--cc=pabeni@redhat.com \
--cc=woojung.huh@microchip.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).