Re: [RFC 2/3] net: Provide switchdev driver for NXP's More Than IP L2 switch
From: Andrew Lunn
Date: Mon Jun 28 2021 - 09:23:22 EST
> The best I could get would be:
>
> ð_switch {
> compatible = "imx,mtip-l2switch";
> reg = <0x800f8000 0x400>, <0x800fC000 0x4000>;
>
> interrupts = <100>;
> status = "okay";
>
> ethernet-ports {
> port1@1 {
> reg = <1>;
> label = "eth0";
> phys = <&mac0 0>;
> };
>
> port2@2 {
> reg = <2>;
> label = "eth1";
> phys = <&mac1 1>;
> };
> };
> };
>
> Which would abuse the "phys" properties usages - as 'mac[01]' are
> referring to ethernet controllers.
This is not how a dedicated driver would have its binding. We should
not establish this as ABI.
So, sorry, but no.
Andrew