[PATCH 06/20] of: extra: Introduce ofnode_phy_is_fixed_link() API
Simon Glass
sjg at chromium.org
Fri Mar 5 05:08:43 CET 2021
+Joe Hershberger
On Tue, 2 Mar 2021 at 10:35, Bin Meng <bmeng.cn at gmail.com> wrote:
>
> Introduce a helper API ofnode_phy_is_fixed_link() to detect whether
> the ethernet controller connects to a fixed-link pseudo-PHY device.
>
> Note there are two ways to describe a fixed PHY attached to an
> Ethernet device:
>
> - the new DT binding, where 'fixed-link' is a sub-node of the
> Ethernet device
> - the old DT binding, where 'fixed-link' is a property with 5
> cells encoding various information about the fixed PHY
>
> Signed-off-by: Bin Meng <bmeng.cn at gmail.com>
> ---
>
> drivers/core/of_extra.c | 26 ++++++++++++++++++++++++++
> include/dm/of_extra.h | 18 ++++++++++++++++++
> 2 files changed, 44 insertions(+)
Reviewed-by: Simon Glass <sjg at chromium.org>
Is the binding in U-Boot?
More information about the U-Boot
mailing list