[PATCH 06/20] of: extra: Introduce ofnode_phy_is_fixed_link() API

Bin Meng bmeng.cn at gmail.com
Tue Mar 9 03:41:39 CET 2021


Hi Simon,

On Fri, Mar 5, 2021 at 12:08 PM Simon Glass <sjg at chromium.org> wrote:
>
> +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?

Yes, in patch 5:

dt-bindings: net: Add the old DT bindings for "fixed-link"
http://patchwork.ozlabs.org/project/uboot/patch/20210302153451.19440-6-bmeng.cn@gmail.com/

Regards,
Bin


More information about the U-Boot mailing list