* [PATCH net] dt-bindings: net: sparx5: correct LAN969x register space windows
@ 2025-09-25 13:19 Robert Marko
2025-09-25 19:25 ` Conor Dooley
` (2 more replies)
0 siblings, 3 replies; 4+ messages in thread
From: Robert Marko @ 2025-09-25 13:19 UTC (permalink / raw)
To: andrew+netdev, davem, kuba, pabeni, robh, krzk+dt, conor+dt,
Steen.Hegelund, daniel.machon, UNGLinuxDriver, lars.povlsen,
netdev, devicetree, linux-arm-kernel, linux-kernel
Cc: luka.perkov, benjamin.ryzman, Robert Marko
LAN969x needs only 2 register space windows as GCB is already covered by
the "devices" register space window, so expect only 2 "reg" and "reg-names"
properties.
Fixes: 41c6439fdc2b ("dt-bindings: net: add compatible strings for lan969x targets")
Signed-off-by: Robert Marko <robert.marko@sartura.hr>
---
.../bindings/net/microchip,sparx5-switch.yaml | 22 +++++++++++++++++++
1 file changed, 22 insertions(+)
diff --git a/Documentation/devicetree/bindings/net/microchip,sparx5-switch.yaml b/Documentation/devicetree/bindings/net/microchip,sparx5-switch.yaml
index 082982c59a55..5caa3779660d 100644
--- a/Documentation/devicetree/bindings/net/microchip,sparx5-switch.yaml
+++ b/Documentation/devicetree/bindings/net/microchip,sparx5-switch.yaml
@@ -55,12 +55,14 @@ properties:
- const: microchip,lan9691-switch
reg:
+ minItems: 2
items:
- description: cpu target
- description: devices target
- description: general control block target
reg-names:
+ minItems: 2
items:
- const: cpu
- const: devices
@@ -168,6 +170,26 @@ required:
- interrupt-names
- ethernet-ports
+allOf:
+ - if:
+ properties:
+ compatible:
+ contains:
+ enum:
+ - microchip,lan9691-switch
+ then:
+ properties:
+ reg:
+ minItems: 2
+ reg-names:
+ minItems: 2
+ else:
+ properties:
+ reg:
+ minItems: 3
+ reg-names:
+ minItems: 3
+
additionalProperties: false
examples:
--
2.51.0
^ permalink raw reply related [flat|nested] 4+ messages in thread* Re: [PATCH net] dt-bindings: net: sparx5: correct LAN969x register space windows
2025-09-25 13:19 [PATCH net] dt-bindings: net: sparx5: correct LAN969x register space windows Robert Marko
@ 2025-09-25 19:25 ` Conor Dooley
2025-09-26 21:30 ` patchwork-bot+netdevbpf
2025-10-26 10:11 ` Krzysztof Kozlowski
2 siblings, 0 replies; 4+ messages in thread
From: Conor Dooley @ 2025-09-25 19:25 UTC (permalink / raw)
To: Robert Marko
Cc: andrew+netdev, davem, kuba, pabeni, robh, krzk+dt, conor+dt,
Steen.Hegelund, daniel.machon, UNGLinuxDriver, lars.povlsen,
netdev, devicetree, linux-arm-kernel, linux-kernel, luka.perkov,
benjamin.ryzman
[-- Attachment #1: Type: text/plain, Size: 52 bytes --]
Acked-by: Conor Dooley <conor.dooley@microchip.com>
[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 228 bytes --]
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: [PATCH net] dt-bindings: net: sparx5: correct LAN969x register space windows
2025-09-25 13:19 [PATCH net] dt-bindings: net: sparx5: correct LAN969x register space windows Robert Marko
2025-09-25 19:25 ` Conor Dooley
@ 2025-09-26 21:30 ` patchwork-bot+netdevbpf
2025-10-26 10:11 ` Krzysztof Kozlowski
2 siblings, 0 replies; 4+ messages in thread
From: patchwork-bot+netdevbpf @ 2025-09-26 21:30 UTC (permalink / raw)
To: Robert Marko
Cc: andrew+netdev, davem, kuba, pabeni, robh, krzk+dt, conor+dt,
Steen.Hegelund, daniel.machon, UNGLinuxDriver, lars.povlsen,
netdev, devicetree, linux-arm-kernel, linux-kernel, luka.perkov,
benjamin.ryzman
Hello:
This patch was applied to netdev/net-next.git (main)
by Jakub Kicinski <kuba@kernel.org>:
On Thu, 25 Sep 2025 15:19:49 +0200 you wrote:
> LAN969x needs only 2 register space windows as GCB is already covered by
> the "devices" register space window, so expect only 2 "reg" and "reg-names"
> properties.
>
> Fixes: 41c6439fdc2b ("dt-bindings: net: add compatible strings for lan969x targets")
> Signed-off-by: Robert Marko <robert.marko@sartura.hr>
>
> [...]
Here is the summary with links:
- [net] dt-bindings: net: sparx5: correct LAN969x register space windows
https://git.kernel.org/netdev/net-next/c/267bca002c50
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] 4+ messages in thread* Re: [PATCH net] dt-bindings: net: sparx5: correct LAN969x register space windows
2025-09-25 13:19 [PATCH net] dt-bindings: net: sparx5: correct LAN969x register space windows Robert Marko
2025-09-25 19:25 ` Conor Dooley
2025-09-26 21:30 ` patchwork-bot+netdevbpf
@ 2025-10-26 10:11 ` Krzysztof Kozlowski
2 siblings, 0 replies; 4+ messages in thread
From: Krzysztof Kozlowski @ 2025-10-26 10:11 UTC (permalink / raw)
To: Robert Marko, andrew+netdev, davem, kuba, pabeni, robh, krzk+dt,
conor+dt, Steen.Hegelund, daniel.machon, UNGLinuxDriver,
lars.povlsen, netdev, devicetree, linux-arm-kernel, linux-kernel
Cc: luka.perkov, benjamin.ryzman
On 25/09/2025 15:19, Robert Marko wrote:
> LAN969x needs only 2 register space windows as GCB is already covered by
> the "devices" register space window, so expect only 2 "reg" and "reg-names"
> properties.
>
> Fixes: 41c6439fdc2b ("dt-bindings: net: add compatible strings for lan969x targets")
> Signed-off-by: Robert Marko <robert.marko@sartura.hr>
> ---
> .../bindings/net/microchip,sparx5-switch.yaml | 22 +++++++++++++++++++
> 1 file changed, 22 insertions(+)
>
> diff --git a/Documentation/devicetree/bindings/net/microchip,sparx5-switch.yaml b/Documentation/devicetree/bindings/net/microchip,sparx5-switch.yaml
> index 082982c59a55..5caa3779660d 100644
> --- a/Documentation/devicetree/bindings/net/microchip,sparx5-switch.yaml
> +++ b/Documentation/devicetree/bindings/net/microchip,sparx5-switch.yaml
> @@ -55,12 +55,14 @@ properties:
> - const: microchip,lan9691-switch
>
> reg:
> + minItems: 2
> items:
> - description: cpu target
> - description: devices target
> - description: general control block target
>
> reg-names:
> + minItems: 2
> items:
> - const: cpu
> - const: devices
> @@ -168,6 +170,26 @@ required:
> - interrupt-names
> - ethernet-ports
>
> +allOf:
> + - if:
> + properties:
> + compatible:
> + contains:
> + enum:
> + - microchip,lan9691-switch
> + then:
> + properties:
> + reg:
> + minItems: 2
This is wrong. You wanted maxItems.
Best regards,
Krzysztof
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2025-10-26 10:11 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2025-09-25 13:19 [PATCH net] dt-bindings: net: sparx5: correct LAN969x register space windows Robert Marko
2025-09-25 19:25 ` Conor Dooley
2025-09-26 21:30 ` patchwork-bot+netdevbpf
2025-10-26 10:11 ` Krzysztof Kozlowski
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).