[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-Id: <20180713.182532.1042729931543841597.davem@davemloft.net>
Date: Fri, 13 Jul 2018 18:25:32 -0700 (PDT)
From: David Miller <davem@...emloft.net>
To: linus.walleij@...aro.org
Cc: andrew@...n.ch, f.fainelli@...il.com, netdev@...r.kernel.org,
Laurent.pinchart@...asonboard.com
Subject: Re: [PATCH] of: mdio: Support fixed links in
of_phy_get_and_connect()
From: Linus Walleij <linus.walleij@...aro.org>
Date: Wed, 11 Jul 2018 19:45:11 +0200
> By a simple extension of of_phy_get_and_connect() drivers
> that have a fixed link on e.g. RGMII can support also
> fixed links, so in addition to:
>
> ethernet-port {
> phy-mode = "rgmii";
> phy-handle = <&foo>;
> };
>
> This setup with a fixed-link node and no phy-handle will
> now also work just fine:
>
> ethernet-port {
> phy-mode = "rgmii";
> fixed-link {
> speed = <1000>;
> full-duplex;
> pause;
> };
> };
>
> This is very helpful for connecting random ethernet ports
> to e.g. DSA switches that typically reside on fixed links.
>
> The phy-mode is still there as the fixes link in this case
> is still an RGMII link.
>
> Tested on the Cortina Gemini driver with the Vitesse DSA
> router chip on a fixed 1Gbit link.
>
> Suggested-by: Andrew Lunn <andrew@...n.ch>
> Signed-off-by: Linus Walleij <linus.walleij@...aro.org>
Applied.
Powered by blists - more mailing lists