Re: [PATCH net-next v3 3/8] dt-bindings: net: dsa: Add SoC-e SWIP switch
From: Rob Herring
Date: Wed Oct 07 2026 - 16:58:04 EST
On Wed, Sep 23, 2026 at 12:39:30PM +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.
>
> Describe the Ethernet ports and the optional integrated MDIO controller
> with its generic MMIO mux and child buses.
>
> Signed-off-by: Vasilij Strassheim <v.strassheim@xxxxxxxxxxxxx>
> ---
> .../devicetree/bindings/net/dsa/soce,swip.yaml | 162 +++++++++++++++++++++
> 1 file changed, 162 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..d614fb2a29d3
> --- /dev/null
> +++ b/Documentation/devicetree/bindings/net/dsa/soce,swip.yaml
> @@ -0,0 +1,162 @@
> +# 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. An integrated
> + MDIO controller accesses the per-port external buses through a mux.
> +
> +$ref: dsa.yaml#
Doesn't look like you use any DSA properties. Can you use
ethernet-switch.yaml instead. Also, if you don't have any custom
properties, you need to ref "dsa.yaml#/$defs/ethernet-ports" instead.
> +
> +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.
Do you expect these to change? Kind of an odd compatible, but okay...
> + Switch instances using this register layout are autodetected from
> + these registers and use this compatible regardless of their
> + synthesis-time feature and port configuration.