mbox series

[v2,0/3] Add DSA yaml binding

Message ID 20200720124939.4359-1-kurt@linutronix.de
Headers show
Series Add DSA yaml binding | expand

Message

Kurt Kanzenbach July 20, 2020, 12:49 p.m. UTC
Hi,

as discussed [1] [2] it makes sense to add a DSA yaml binding. This is the
second version and contains now two ways of specifying the switch ports: Either
by "ports" or by "ethernet-ports". That is why the third patch also adjusts the
DSA core for it.

Tested in combination with the hellcreek.yaml file.

Changes since v1:

 * Use select to not match unrelated switches
 * Allow ethernet-port(s)
 * List ethernet-controller properties
 * Include better description
 * Let dsa.txt refer to dsa.yaml

Thanks,
Kurt

[1] - https://lkml.kernel.org/netdev/449f0a03-a91d-ae82-b31f-59dfd1457ec5@gmail.com/
[2] - https://lkml.kernel.org/netdev/20200710090618.28945-1-kurt@linutronix.de/

Kurt Kanzenbach (3):
  dt-bindings: net: dsa: Add DSA yaml binding
  dt-bindings: net: dsa: Let dsa.txt refer to dsa.yaml
  net: dsa: of: Allow ethernet-ports as encapsulating node

 .../devicetree/bindings/net/dsa/dsa.txt       | 255 +-----------------
 .../devicetree/bindings/net/dsa/dsa.yaml      |  92 +++++++
 net/dsa/dsa2.c                                |   8 +-
 3 files changed, 99 insertions(+), 256 deletions(-)
 create mode 100644 Documentation/devicetree/bindings/net/dsa/dsa.yaml

Comments

David Miller July 22, 2020, 11:57 p.m. UTC | #1
From: Kurt Kanzenbach <kurt@linutronix.de>
Date: Mon, 20 Jul 2020 14:49:36 +0200

> as discussed [1] [2] it makes sense to add a DSA yaml binding. This is the
> second version and contains now two ways of specifying the switch ports: Either
> by "ports" or by "ethernet-ports". That is why the third patch also adjusts the
> DSA core for it.
> 
> Tested in combination with the hellcreek.yaml file.
> 
> Changes since v1:
> 
>  * Use select to not match unrelated switches
>  * Allow ethernet-port(s)
>  * List ethernet-controller properties
>  * Include better description
>  * Let dsa.txt refer to dsa.yaml
 ...
> [1] - https://lkml.kernel.org/netdev/449f0a03-a91d-ae82-b31f-59dfd1457ec5@gmail.com/
> [2] - https://lkml.kernel.org/netdev/20200710090618.28945-1-kurt@linutronix.de/

Series applied to net-next, thanks.