[PATCH v2 3/3] net: stmmac: Add RK3566 SoC support

Ezequiel Garcia ezequiel at collabora.com
Wed Apr 21 22:06:13 BST 2021


On Wed, 2021-04-21 at 22:49 +0200, Johan Jonker wrote:
> On 4/21/21 10:34 PM, Ezequiel Garcia wrote:
> > From: David Wu <david.wu at rock-chips.com>
> > 
> > Add constants and callback functions for the dwmac present
> > on RK3566 SoCs. As can be seen, the base structure
> > is the same, only registers and the bits in them moved slightly.
> > 
> > The dwmac IP core version v5.1, and so the compatible string
> > is expected to be:
> > 
> >   compatible = "rockchip,rk3566-gmac", "snps,dwmac-4.20a";
> > 
> > Signed-off-by: David Wu <david.wu at rock-chips.com>
> > [Ezequiel: Separate rk3566-gmac support]
> > Signed-off-by: Ezequiel Garcia <ezequiel at collabora.com>
> > ---
> >  .../bindings/net/rockchip-dwmac.txt           |  1 +
> >  .../net/ethernet/stmicro/stmmac/dwmac-rk.c    | 89 +++++++++++++++++++
> >  2 files changed, 90 insertions(+)
> > 
> > diff --git a/Documentation/devicetree/bindings/net/rockchip-dwmac.txt b/Documentation/devicetree/bindings/net/rockchip-dwmac.txt
> > index 3b71da7e8742..3bd4bbcd6c65 100644
> > --- a/Documentation/devicetree/bindings/net/rockchip-dwmac.txt
> > +++ b/Documentation/devicetree/bindings/net/rockchip-dwmac.txt
> > @@ -12,6 +12,7 @@ Required properties:
> >     "rockchip,rk3366-gmac": found on RK3366 SoCs
> >     "rockchip,rk3368-gmac": found on RK3368 SoCs
> >     "rockchip,rk3399-gmac": found on RK3399 SoCs
> 
> > +   "rockchip,rk3566-gmac", "snps,dwmac-4.20a": found on RK3566 SoCs
> 
> This is still a text document.
> rob+dt has now scripts that check for undocumented compatibility
> strings, so first convert rockchip-dwmac.txt to YAML and then add this
> in a separated patch.
> 

Is it a showstopper to convert devicetree bindings to YAML, for driver submission?

Thanks,
Ezequiel




More information about the Linux-rockchip mailing list