* [PATCH v3] dt-bindings: net: marvell,orion-mdio: Fix examples
@ 2022-12-29 14:22 Michał Grzelak
2022-12-29 14:30 ` Krzysztof Kozlowski
2023-01-01 15:10 ` patchwork-bot+netdevbpf
0 siblings, 2 replies; 5+ messages in thread
From: Michał Grzelak @ 2022-12-29 14:22 UTC (permalink / raw)
To: linux-kernel
Cc: davem, edumazet, kuba, pabeni, robh+dt, krzysztof.kozlowski+dt,
andrew, chris.packham, netdev, devicetree, upstream, mw,
mchl.grzlk, Michał Grzelak
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:
v2->v3
- drop quotes and blank line
v1->v2
- remove second example
- add 'if:' constraint to 'allOf:'
- move 'allOf:' before 'examples:'
.../bindings/net/marvell,orion-mdio.yaml | 30 ++++++++++++++++---
1 file changed, 26 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..e35da8b01dc2 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,38 @@ required:
- compatible
- reg
+allOf:
+ - $ref: mdio.yaml#
+
+ - 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
+
unevaluatedProperties: false
examples:
- |
mdio@d0072004 {
compatible = "marvell,orion-mdio";
- reg = <0xd0072004 0x4>;
+ reg = <0xd0072004 0x84>;
#address-cells = <1>;
#size-cells = <0>;
interrupts = <30>;
--
2.34.1
^ permalink raw reply related [flat|nested] 5+ messages in thread* Re: [PATCH v3] dt-bindings: net: marvell,orion-mdio: Fix examples
2022-12-29 14:22 [PATCH v3] dt-bindings: net: marvell,orion-mdio: Fix examples Michał Grzelak
@ 2022-12-29 14:30 ` Krzysztof Kozlowski
2022-12-29 14:51 ` Michał Grzelak
2023-01-01 15:10 ` patchwork-bot+netdevbpf
1 sibling, 1 reply; 5+ messages in thread
From: Krzysztof Kozlowski @ 2022-12-29 14:30 UTC (permalink / raw)
To: Michał Grzelak, linux-kernel
Cc: davem, edumazet, kuba, pabeni, robh+dt, krzysztof.kozlowski+dt,
andrew, chris.packham, netdev, devicetree, upstream, mw,
mchl.grzlk
On 29/12/2022 15:22, 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>
This is a friendly reminder during the review process.
It looks like you received a tag and forgot to add it.
If you do not know the process, here is a short explanation:
Please add Acked-by/Reviewed-by/Tested-by tags when posting new
versions. However, there's no need to repost patches *only* to add the
tags. The upstream maintainer will do that for acks received on the
version they apply.
https://elixir.bootlin.com/linux/v5.17/source/Documentation/process/submitting-patches.rst#L540
If a tag was not added on purpose, please state why and what changed.
Reviewed-by: Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org>
Best regards,
Krzysztof
^ permalink raw reply [flat|nested] 5+ messages in thread* Re: [PATCH v3] dt-bindings: net: marvell,orion-mdio: Fix examples
2022-12-29 14:30 ` Krzysztof Kozlowski
@ 2022-12-29 14:51 ` Michał Grzelak
2022-12-29 15:00 ` Krzysztof Kozlowski
0 siblings, 1 reply; 5+ messages in thread
From: Michał Grzelak @ 2022-12-29 14:51 UTC (permalink / raw)
To: Krzysztof Kozlowski
Cc: linux-kernel, davem, edumazet, kuba, pabeni, robh+dt,
krzysztof.kozlowski+dt, andrew, chris.packham, netdev, devicetree,
upstream, mw, mchl.grzlk
Hi Krzysztof,
On Thu, Dec 29, 2022 at 3:30 PM Krzysztof Kozlowski
<krzysztof.kozlowski@linaro.org> wrote:
>
> On 29/12/2022 15:22, 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>
>
> This is a friendly reminder during the review process.
>
> It looks like you received a tag and forgot to add it.
>
> If you do not know the process, here is a short explanation:
> Please add Acked-by/Reviewed-by/Tested-by tags when posting new
> versions. However, there's no need to repost patches *only* to add the
> tags. The upstream maintainer will do that for acks received on the
> version they apply.
>
> https://elixir.bootlin.com/linux/v5.17/source/Documentation/process/submitting-patches.rst#L540
>
> If a tag was not added on purpose, please state why and what changed.
Deletion of tag wasn't on purpose, it was done by accident. Would you
like me to resend the patch with it being added, or leave it as is?
Best regards,
Michał
^ permalink raw reply [flat|nested] 5+ messages in thread* Re: [PATCH v3] dt-bindings: net: marvell,orion-mdio: Fix examples
2022-12-29 14:51 ` Michał Grzelak
@ 2022-12-29 15:00 ` Krzysztof Kozlowski
0 siblings, 0 replies; 5+ messages in thread
From: Krzysztof Kozlowski @ 2022-12-29 15:00 UTC (permalink / raw)
To: Michał Grzelak
Cc: linux-kernel, davem, edumazet, kuba, pabeni, robh+dt,
krzysztof.kozlowski+dt, andrew, chris.packham, netdev, devicetree,
upstream, mw, mchl.grzlk
On 29/12/2022 15:51, Michał Grzelak wrote:
> Hi Krzysztof,
>
> On Thu, Dec 29, 2022 at 3:30 PM Krzysztof Kozlowski
> <krzysztof.kozlowski@linaro.org> wrote:
>>
>> On 29/12/2022 15:22, 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>
>>
>> This is a friendly reminder during the review process.
>>
>> It looks like you received a tag and forgot to add it.
>>
>> If you do not know the process, here is a short explanation:
>> Please add Acked-by/Reviewed-by/Tested-by tags when posting new
>> versions. However, there's no need to repost patches *only* to add the
>> tags. The upstream maintainer will do that for acks received on the
>> version they apply.
>>
>> https://elixir.bootlin.com/linux/v5.17/source/Documentation/process/submitting-patches.rst#L540
>>
>> If a tag was not added on purpose, please state why and what changed.
>
> Deletion of tag wasn't on purpose, it was done by accident. Would you
> like me to resend the patch with it being added, or leave it as is?
No need, I added it here, so will be picked-up by maintainers.
Best regards,
Krzysztof
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: [PATCH v3] dt-bindings: net: marvell,orion-mdio: Fix examples
2022-12-29 14:22 [PATCH v3] dt-bindings: net: marvell,orion-mdio: Fix examples Michał Grzelak
2022-12-29 14:30 ` Krzysztof Kozlowski
@ 2023-01-01 15:10 ` patchwork-bot+netdevbpf
1 sibling, 0 replies; 5+ messages in thread
From: patchwork-bot+netdevbpf @ 2023-01-01 15:10 UTC (permalink / raw)
To: =?utf-8?q?Micha=C5=82_Grzelak_=3Cmig=40semihalf=2Ecom=3E?=
Cc: linux-kernel, davem, edumazet, kuba, pabeni, robh+dt,
krzysztof.kozlowski+dt, andrew, chris.packham, netdev, devicetree,
upstream, mw, mchl.grzlk
Hello:
This patch was applied to netdev/net.git (master)
by David S. Miller <davem@davemloft.net>:
On Thu, 29 Dec 2022 15:22:19 +0100 you 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.
>
> [...]
Here is the summary with links:
- [v3] dt-bindings: net: marvell,orion-mdio: Fix examples
https://git.kernel.org/netdev/net/c/91e2286160ed
You are awesome, thank you!
--
Deet-doot-dot, I am a bot.
https://korg.docs.kernel.org/patchwork/pwbot.html
^ permalink raw reply [flat|nested] 5+ messages in thread
end of thread, other threads:[~2023-01-01 15:10 UTC | newest]
Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2022-12-29 14:22 [PATCH v3] dt-bindings: net: marvell,orion-mdio: Fix examples Michał Grzelak
2022-12-29 14:30 ` Krzysztof Kozlowski
2022-12-29 14:51 ` Michał Grzelak
2022-12-29 15:00 ` Krzysztof Kozlowski
2023-01-01 15:10 ` patchwork-bot+netdevbpf
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).