From patchwork Thu Mar 12 12:53:43 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: "Madalin Bucur \(OSS\)" X-Patchwork-Id: 243590 List-Id: U-Boot discussion From: madalin.bucur at oss.nxp.com (Madalin Bucur) Date: Thu, 12 Mar 2020 14:53:43 +0200 Subject: [PATCH 0/3] armv8/ls104xardb: RGMII ports require internal delay Message-ID: <1584017626-8547-1-git-send-email-madalin.bucur@oss.nxp.com> The correct setting for the RGMII ports on LS1043/6ARDB 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. The patch set also ensures all internal delay modes are supported in the MEMAC code. Tested on LS1043ARDB and LS1046ARDB. Madalin Bucur (3): net: fman: add support for all RGMII delay modes armv8/ls1043ardb: RGMII ports require internal delay armv8/ls1046ardb: RGMII ports require internal delay drivers/net/fm/ls1043.c | 4 ++-- drivers/net/fm/ls1046.c | 4 ++-- drivers/net/fm/memac.c | 4 ++++ 3 files changed, 8 insertions(+), 4 deletions(-)