Re: [PATCH net-next v2 2/4] dt-bindings: net: dsa: Add SoC-e SWIP switch
From: Andrew Lunn
Date: Mon Sep 07 2026 - 15:03:23 EST
> > ethernet-ports
> >
> > > + patternProperties:
> > > + '^(ethernet-)?port@[0-9a-f]+$':
> >
> > ethernet-port
> >
>
> Is there a reason for such a restriction?
> The pattern intentionally follows the generic DSA binding in dsa.yaml,
You need to be careful with the DSA binding. It is old, and uses some
things which are not considered best practices today. But they cannot
be removed because of backwards compatibility.
Andrew