[PATCH 3/6] net: ti: am65-cpsw-nuss: Add logic to support MDIO reset

Tom Rini trini at konsulko.com
Fri Jul 21 21:36:17 CEST 2023


On Sat, Jul 08, 2023 at 04:15:20PM +0530, Siddharth Vadapalli wrote:

> From: Suman Anna <s-anna at ti.com>
> 
> Enhance the AM65 CPSW NUSS driver to perform a MDIO reset using a GPIO
> line. Logic is also added to perform a pre and post delay around reset
> using the optional 'reset-delay-us' and 'reset-post-delay-us' properties.
> This is similar to the reset being performed in the Linux kernel. The
> reset is done once when the CPSW MDIO bus is being initialized.
> 
> Signed-off-by: Suman Anna <s-anna at ti.com>
> Signed-off-by: Siddharth Vadapalli <s-vadapalli at ti.com>
> ---
>  drivers/net/ti/am65-cpsw-nuss.c | 34 ++++++++++++++++++++++++++++++++-
>  1 file changed, 33 insertions(+), 1 deletion(-)

So this breaks building on am62x_evm_a53 because now TI_AM65_CPSW_NUSS
needs to select DM_GPIO.  And the next problem is that we don't enable a
GPIO driver on that platform as we should I suspect make DA8XX_GPIO
default y if K3.

-- 
Tom
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 659 bytes
Desc: not available
URL: <https://lists.denx.de/pipermail/u-boot/attachments/20230721/ba7f5e73/attachment.sig>


More information about the U-Boot mailing list