Re: [PATCH 2/4] dt-bindings: net: dsa: Add SoC-e switch IP and DSA bindings
From: Benedikt Spranger
Date: Wed Aug 05 2026 - 10:28:24 EST
Am Wed, 5 Aug 2026 15:53:59 +0200
schrieb Andrew Lunn <andrew@xxxxxxx>:
> 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