From mboxrd@z Thu Jan 1 00:00:00 1970 From: Bin Meng Date: Tue, 9 Mar 2021 10:41:39 +0800 Subject: [PATCH 06/20] of: extra: Introduce ofnode_phy_is_fixed_link() API In-Reply-To: References: <20210302153451.19440-1-bmeng.cn@gmail.com> <20210302153451.19440-7-bmeng.cn@gmail.com> Message-ID: List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de Hi Simon, On Fri, Mar 5, 2021 at 12:08 PM Simon Glass wrote: > > +Joe Hershberger > > On Tue, 2 Mar 2021 at 10:35, Bin Meng 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 > > --- > > > > drivers/core/of_extra.c | 26 ++++++++++++++++++++++++++ > > include/dm/of_extra.h | 18 ++++++++++++++++++ > > 2 files changed, 44 insertions(+) > > Reviewed-by: Simon Glass > > 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 at gmail.com/ Regards, Bin