From: Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org>
To: "Michał Grzelak" <mig@semihalf.com>
Cc: andrew@lunn.ch, chris.packham@alliedtelesis.co.nz,
davem@davemloft.net, devicetree@vger.kernel.org,
edumazet@google.com, krzysztof.kozlowski+dt@linaro.org,
kuba@kernel.org, linux-kernel@vger.kernel.org,
netdev@vger.kernel.org, pabeni@redhat.com, robh+dt@kernel.org,
upstream@semihalf.com
Subject: Re: [PATCH v2] dt-bindings: net: marvell,orion-mdio: Fix examples
Date: Thu, 29 Dec 2022 09:24:11 +0100 [thread overview]
Message-ID: <86e83233-4dde-04dc-ae05-fb38ab774316@linaro.org> (raw)
In-Reply-To: <20221228015433.73919-1-mig@semihalf.com>
On 28/12/2022 02:54, Michał Grzelak wrote:
> As stated in marvell-orion-mdio.txt deleted in commit 0781434af811f
> ("dt-bindings: net: orion-mdio: Convert to JSON schema") if
> 'interrupts' property is present, width of 'reg' should be 0x84.
> Otherwise, width of 'reg' should be 0x4. Fix 'examples:' and add
> constraints checking whether 'interrupts' property is present
> and validate it against fixed values in reg.
>
> Signed-off-by: Michał Grzelak <mig@semihalf.com>
> ---
> Changelog:
> v1->v2:
> - remove second example
> - add 'if:' constraint to 'allOf:'
> - move 'allOf:' before 'examples:'
>
> .../bindings/net/marvell,orion-mdio.yaml | 31 ++++++++++++++++---
> 1 file changed, 27 insertions(+), 4 deletions(-)
>
> diff --git a/Documentation/devicetree/bindings/net/marvell,orion-mdio.yaml b/Documentation/devicetree/bindings/net/marvell,orion-mdio.yaml
> index d2906b4a0f59..381cd8edebed 100644
> --- a/Documentation/devicetree/bindings/net/marvell,orion-mdio.yaml
> +++ b/Documentation/devicetree/bindings/net/marvell,orion-mdio.yaml
> @@ -16,9 +16,6 @@ description: |
> 8k has a second unit which provides an interface with the xMDIO bus. This
> driver handles these interfaces.
>
> -allOf:
> - - $ref: "mdio.yaml#"
> -
> properties:
> compatible:
> enum:
> @@ -39,13 +36,39 @@ required:
> - compatible
> - reg
>
> +allOf:
> +
Drop blank line.
> + - $ref: "mdio.yaml#"
Drop quotes while moving it.
> +
> + - if:
> + required:
> + - interrupts
> +
> + then:
> + properties:
> + reg:
> + items:
> + - items:
> + - $ref: /schemas/types.yaml#/definitions/cell
> + - const: 0x84
> +
> + else:
> + properties:
> + reg:
> + items:
> + - items:
> + - $ref: /schemas/types.yaml#/definitions/cell
> + - enum:
> + - 0x4
> + - 0x10
Rest looks good.
Reviewed-by: Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org>
Best regards,
Krzysztof
prev parent reply other threads:[~2022-12-29 8:25 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2022-12-27 1:05 [net PATCH 0/2] Orion MDIO DT binding fixes Michał Grzelak
2022-12-27 1:05 ` [net PATCH 1/2] dt-bindings: net: marvell,orion-mdio: Fix error Michał Grzelak
2022-12-27 8:06 ` Krzysztof Kozlowski
2022-12-27 1:05 ` [net PATCH 2/2] dt-bindings: net: marvell,orion-mdio: Fix examples Michał Grzelak
2022-12-27 8:10 ` Krzysztof Kozlowski
2022-12-28 1:54 ` [PATCH v2] " Michał Grzelak
2022-12-29 8:24 ` Krzysztof Kozlowski [this message]
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=86e83233-4dde-04dc-ae05-fb38ab774316@linaro.org \
--to=krzysztof.kozlowski@linaro.org \
--cc=andrew@lunn.ch \
--cc=chris.packham@alliedtelesis.co.nz \
--cc=davem@davemloft.net \
--cc=devicetree@vger.kernel.org \
--cc=edumazet@google.com \
--cc=krzysztof.kozlowski+dt@linaro.org \
--cc=kuba@kernel.org \
--cc=linux-kernel@vger.kernel.org \
--cc=mig@semihalf.com \
--cc=netdev@vger.kernel.org \
--cc=pabeni@redhat.com \
--cc=robh+dt@kernel.org \
--cc=upstream@semihalf.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
all inboxes | Powered by JetHome®