Re: [PATCH net-next v5 3/9] dt-bindings: net: dsa: Add SoC-e SWIP switch function
From: Krzysztof Kozlowski
Date: Sun Nov 22 2026 - 09:54:30 EST
On Fri, Nov 20, 2026 at 03:52:20PM +0100, Vasilij Strassheim wrote:
> +$ref: dsa.yaml#/$defs/ethernet-ports
> +
> +properties:
> + compatible:
> + const: soce,swip-switch-00-04-0c-10
> + description:
> + This compatible identifies the register layout; its suffix gives
> + the offsets of the core version and feature identification
> + registers (0x00, 0x04, 0x0c, and 0x10). Port counts and optional
> + features depend on the FPGA synthesis configuration and are
> + detected at runtime using this register layout.
> +
> + reg:
> + description:
> + Register window of the IP core. Switch register blocks are located at
> + offsets defined by the compatible. The MDIO controller and bus
> + multiplexer occupy separate subregions described by sibling nodes.
> + maxItems: 1
> +
> + ethernet-ports:
> + type: object
I guess this should follow:
https://lore.kernel.org/r/20261120002549.1908299-7-prabhakar.mahadev-lad.rj@xxxxxxxxxxxxxx/
so: additionalProperties: true
> + patternProperties:
> + '^ethernet-port@[0-9a-f]+$':
and:
'^ethernet-port@':
> + type: object
Best regards,
Krzysztof