Re: [PATCH 2/4] dt-bindings: net: dsa: Add SoC-e switch IP and DSA bindings

Benedikt Spranger <[email protected]>
Newsgroups org.kernel.vger.netdev,org.kernel.vger.linux-devicetree,org.kernel.vger.linux-kernel
Organization Linutronix GmbH
Message-ID <20260805162705.1a3467ea@mitra>
Am Wed, 5 Aug 2026 15:53:59 +0200
schrieb Andrew Lunn <[email protected]>:

> So i suspect you will need to support integration specific
> compatibles.

Me too. But for *now* things are, better seem to be, simple. The aim is
not to plug forseeable future development.

> One way to consider this. Look at your FPGA design. Delete the
> licensed core. What do you have left? Does it need software to drive
> it?
The minimal IP core is an unmanaged switch. No need for a DSA driver
here. The IP core profides a MDIO bus, therefor a MDIO driver would be
good. The version register in combination with some feature register
can be determined to get the needed information to configure the DSA
driver, or in the minimal case to return -ENODEV.

Thats, why I suggest to have a compatible string, which reflects the
register layout needed to determine the switch configuration:

1) Read the version register
2) Upon the version read the feature register
3) Be happy and configure the switch.

Regards
    Bene
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.