Re: [PATCH net-next v2 2/4] dt-bindings: net: dsa: Add SoC-e SWIP switch
From: Krzysztof Kozlowski
Date: Mon Sep 07 2026 - 05:26:00 EST
On Thu, Sep 03, 2026 at 08:10:59PM +0200, Vasilij Strassheim wrote:
> Add a binding for SoC-e FPGA-based Ethernet switch IP cores.
>
> The compatible identifies a register layout characterized by the core
> and feature identification registers at the encoded offsets. The
> concrete synthesis-time configuration is then autodetected from these
> registers.
>
> Signed-off-by: Vasilij Strassheim <v.strassheim@xxxxxxxxxxxxx>
> ---
> .../devicetree/bindings/net/dsa/soce,swip.yaml | 161 +++++++++++++++++++++
> 1 file changed, 161 insertions(+)
>
> diff --git a/Documentation/devicetree/bindings/net/dsa/soce,swip.yaml b/Documentation/devicetree/bindings/net/dsa/soce,swip.yaml
> new file mode 100644
> index 000000000000..508e444e10da
> --- /dev/null
> +++ b/Documentation/devicetree/bindings/net/dsa/soce,swip.yaml
> @@ -0,0 +1,161 @@
> +# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
> +%YAML 1.2
> +---
> +$id: http://devicetree.org/schemas/net/dsa/soce,swip.yaml#
> +$schema: http://devicetree.org/meta-schemas/core.yaml#
> +
> +title: SoC-e ethernet switch IP core for FPGAs
> +
> +maintainers:
> + - Vasilij Strassheim <v.strassheim@xxxxxxxxxxxxx>
> +
> +description:
> + SoC-e Ethernet switch IP cores are FPGA-based switches whose features
> + and number of ports are selected at synthesis time. Ports can connect
> + to CPUs, external PHYs, FPGA logic, or other switch cores. The
> + integrated MDIO controller provides multiple independently selectable
> + external outputs.
> +
> +$ref: dsa.yaml#
> +
> +properties:
> + compatible:
> + const: soce,swip-00-04-0c-10
> + description:
> + Register layout with the core version register at offset 0x00 and
> + feature identification registers at offsets 0x04, 0x0c, and 0x10.
> + Switch instances using this register layout are autodetected from
> + these registers and use this compatible regardless of their
> + synthesis-time feature and port configuration.
There is no traceable and documented version or model name?
> +
> + reg:
> + maxItems: 1
> +
> + mdios:
> + type: object
> + additionalProperties: false
> + description:
> + External MDIO buses provided by the integrated MDIO controller.
> + Each child bus selects one controller output.
> +
> + properties:
> + '#address-cells':
> + const: 1
> + '#size-cells':
> + const: 0
> +
> + patternProperties:
> + '^mdio@[0-9a-f]+$':
> + $ref: /schemas/net/mdio.yaml#
> + unevaluatedProperties: false
> +
> + properties:
> + reg:
> + maximum: 30
> + description:
> + MDIO controller output index, which must be lower than the
> + number of implemented switch ports.
> +
> + required:
> + - reg
> +
> + required:
> + - '#address-cells'
> + - '#size-cells'
> +
> +patternProperties:
> + '^(ethernet-)?ports$':
ethernet-ports
> + patternProperties:
> + '^(ethernet-)?port@[0-9a-f]+$':
ethernet-port
> + $ref: dsa-port.yaml#
> + unevaluatedProperties: false
> +
> + properties:
> + reg:
> + maximum: 30
> + description:
> + Switch port index. Supported switch configurations have
> + up to 31 ports, numbered from 0 through 30.
Best regards,
Krzysztof