Re: [RFC net-next 1/2] dt-bindings: net: dsa: add bindings for GSW Series switches

From: Vladimir Oltean
Date: Thu Oct 27 2022 - 09:57:53 EST


Hi Camel,

On Thu, Oct 27, 2022 at 08:46:27AM -0400, Krzysztof Kozlowski wrote:
> > >> +      - enum:
> > >> +          - mxl,gsw145-mdio
> > >
> > > Why "mdio" suffix?
> >
> > Inspired by others dsa chips.
> > lan9303.txt:  - "smsc,lan9303-mdio" for mdio managed mode
> > lantiq-gswip.txt:- compatible   : "lantiq,xrx200-mdio" for the MDIO bus
> > inside the GSWIP
> > nxp,sja1105.yaml:                  - nxp,sja1110-base-t1-mdio
>
> As I replied to Andrew, this is discouraged.

Let's compare apples to apples, shall we?
"nxp,sja1110-base-t1-mdio" is the 100Base-T1 MDIO controller of the
NXP SJA1110 switch, hence the name. It is not a SJA1110 switch connected
over MDIO.