From: Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org>
To: "Michał Grzelak" <mig@semihalf.com>, devicetree@vger.kernel.org
Cc: davem@davemloft.net, edumazet@google.com, kuba@kernel.org,
pabeni@redhat.com, robh+dt@kernel.org,
krzysztof.kozlowski+dt@linaro.org, andrew@lunn.ch,
chris.packham@alliedtelesis.co.nz, netdev@vger.kernel.org,
upstream@semihalf.com, linux-kernel@vger.kernel.org
Subject: Re: [net PATCH 2/2] dt-bindings: net: marvell,orion-mdio: Fix examples
Date: Tue, 27 Dec 2022 09:10:16 +0100 [thread overview]
Message-ID: <7f6a2072-f26b-e2f0-9c07-d2ea43c8c4bc@linaro.org> (raw)
In-Reply-To: <20221227010523.59328-3-mig@semihalf.com>
On 27/12/2022 02:05, Michał Grzelak wrote:
> As stated in marvell-orion-mdio.txt deleted in 'commit 0781434af811f
> ("dt-bindings: net: orion-mdio: Convert to JSON schema")' if
Drop '' quotes.
BTW, read the original binding to find the answer for your first patch.
> 'interrupts' property is present, width of 'reg' should be 0x84.
> Otherwise, width of 'reg' should be 0x4. Fix 'examples:' and extend it
> by second example from marvell-orion-mdio.txt.
The original binding did not say that, unless you mean giving different
examples? Examples are not a binding.
>
> Signed-off-by: Michał Grzelak <mig@semihalf.com>
> ---
> .../devicetree/bindings/net/marvell,orion-mdio.yaml | 12 +++++++++++-
> 1 file changed, 11 insertions(+), 1 deletion(-)
>
> diff --git a/Documentation/devicetree/bindings/net/marvell,orion-mdio.yaml b/Documentation/devicetree/bindings/net/marvell,orion-mdio.yaml
> index 2b2b3f8709fc..d260794e92c5 100644
> --- a/Documentation/devicetree/bindings/net/marvell,orion-mdio.yaml
> +++ b/Documentation/devicetree/bindings/net/marvell,orion-mdio.yaml
> @@ -47,9 +47,10 @@ unevaluatedProperties: false
>
> examples:
> - |
> + // MDIO binding with interrupt
> mdio@d0072004 {
> compatible = "marvell,orion-mdio";
> - reg = <0xd0072004 0x4>;
> + reg = <0xd0072004 0x84>;
> #address-cells = <1>;
> #size-cells = <0>;
> interrupts = <30>;
> @@ -62,3 +63,12 @@ examples:
> reg = <1>;
> };
> };
> +
> + - |
> + // MDIO binding without interrupt
> + mdio@d0072004 {
> + compatible = "marvell,orion-mdio";
> + reg = <0xd0072004 0x4>;
> + #address-cells = <1>;
> + #size-cells = <0>;
> + };
Why? The same compatible, the same nodes. No differences. Missing pieces
is not a big difference justifying new example.
Best regards,
Krzysztof
next prev parent reply other threads:[~2022-12-27 8:10 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 [this message]
2022-12-28 1:54 ` [PATCH v2] " Michał Grzelak
2022-12-29 8:24 ` Krzysztof Kozlowski
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=7f6a2072-f26b-e2f0-9c07-d2ea43c8c4bc@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;
as well as URLs for NNTP newsgroup(s).