]> git.baikalelectronics.ru Git - uboot.git/commit
armv8/ls1043ardb: RGMII ports require internal delay
authorMadalin Bucur <madalin.bucur@oss.nxp.com>
Thu, 12 Mar 2020 12:53:45 +0000 (14:53 +0200)
committerPriyanka Jain <priyanka.jain@nxp.com>
Mon, 30 Mar 2020 02:36:52 +0000 (08:06 +0530)
commit41123277e03e84a11e5c9b872c935849226f2bb5
tree86dbd14ba07f72594650a6242ac05fe0af14d741
parent0150c1291b8cdbab0b612b3122304f3b6162b566
armv8/ls1043ardb: RGMII ports require internal delay

The correct setting for the RGMII ports on LS1043ARDB is to
enable delay on both Rx and Tx so the interface mode used must
be PHY_INTERFACE_MODE_RGMII_ID. There is a pull-up that turns
on Rx internal delay by default and the u-boot does not
override that (yet) so in u-boot the interface is functional.
In Linux the PHY driver is clearing the Rx delay for the
"rgmii-txid" mode and the reception does not work.
Changing the RGMII mode to internal delay here ensures that
device tree fix-ups for the PHY connection type turn on both
Tx and Rx internal delay in Linux.

Fixes: 05e89a4bb4cd ("armv8/ls1043a: RGMII PHY requires internal
delay on Tx")
Signed-off-by: Madalin Bucur <madalin.bucur@oss.nxp.com>
Reviewed-by: Priyanka Jain <priyanka.jain@nxp.com>
drivers/net/fm/ls1043.c