lkml.org 
[lkml]   [2020]   [Jun]   [23]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
    Patch in this message
    /
    From
    Subject[PATCH 4.19 099/206] arm64: tegra: Fix ethernet phy-mode for Jetson Xavier
    Date
    From: Jon Hunter <jonathanh@nvidia.com>

    [ Upstream commit bba25915b172c72f6fa635f091624d799e3c9cae ]

    The 'phy-mode' property is currently defined as 'rgmii' for Jetson
    Xavier. This indicates that the RGMII RX and TX delays are set by the
    MAC and the internal delays set by the PHY are not used.

    If the Marvell PHY driver is enabled, such that it is used and not the
    generic PHY, ethernet failures are seen (DHCP is failing to obtain an
    IP address) and this is caused because the Marvell PHY driver is
    disabling the internal RX and TX delays. For Jetson Xavier the internal
    PHY RX and TX delay should be used and so fix this by setting the
    'phy-mode' to 'rgmii-id' and not 'rgmii'.

    Fixes: f89b58ce71a9 ("arm64: tegra: Add ethernet controller on Tegra194")
    Signed-off-by: Jon Hunter <jonathanh@nvidia.com>
    Signed-off-by: Thierry Reding <treding@nvidia.com>
    Signed-off-by: Sasha Levin <sashal@kernel.org>
    ---
    arch/arm64/boot/dts/nvidia/tegra194-p2888.dtsi | 2 +-
    1 file changed, 1 insertion(+), 1 deletion(-)

    diff --git a/arch/arm64/boot/dts/nvidia/tegra194-p2888.dtsi b/arch/arm64/boot/dts/nvidia/tegra194-p2888.dtsi
    index 57d3f00464cea..7352954e12be2 100644
    --- a/arch/arm64/boot/dts/nvidia/tegra194-p2888.dtsi
    +++ b/arch/arm64/boot/dts/nvidia/tegra194-p2888.dtsi
    @@ -32,7 +32,7 @@

    phy-reset-gpios = <&gpio TEGRA194_MAIN_GPIO(G, 5) GPIO_ACTIVE_LOW>;
    phy-handle = <&phy>;
    - phy-mode = "rgmii";
    + phy-mode = "rgmii-id";

    mdio {
    #address-cells = <1>;
    --
    2.25.1


    \
     
     \ /
      Last update: 2020-06-23 23:02    [W:4.024 / U:0.032 seconds]
    ©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site