arm64: dts: meson: sm1: add Ethernet PHY reset line for ODROID-C4/HC4
authorDongjin Kim <tobetter@gmail.com>
Thu, 26 Aug 2021 03:28:32 +0000 (12:28 +0900)
committerNeil Armstrong <narmstrong@baylibre.com>
Mon, 13 Sep 2021 07:45:53 +0000 (09:45 +0200)
commit9d02214f8332d5dbbcce3d6c5c915e54d43a0c46
tree0293a4252660a90656abd3af7ffa8795fd448e23
parent6880fa6c56601bb8ed59df6c30fd390cc5f6dd8f
arm64: dts: meson: sm1: add Ethernet PHY reset line for ODROID-C4/HC4

This patch is to fix an issue that the ethernet link doesn't come up
when using ip link set down/up:
   [   11.428114] meson8b-dwmac ff3f0000.ethernet eth0: Link is Down
   [   14.428595] meson8b-dwmac ff3f0000.ethernet eth0: PHY [0.0:00] driver [RTL8211F Gigabit Ethernet] (irq=31)
   [   14.428610] meson8b-dwmac ff3f0000.ethernet: Failed to reset the dma
   [   14.428974] meson8b-dwmac ff3f0000.ethernet eth0: stmmac_hw_setup: DMA engine initialization failed
   [   14.711185] meson8b-dwmac ff3f0000.ethernet eth0: stmmac_open: Hw setup failed

This fix refers to two commits applied for ODROID-N2 (G12B).
    commit 658e4129bb81 ("arm64: dts: meson: g12b: odroid-n2: add the Ethernet PHY reset line")
    commit 1c7412530d5d0 ("arm64: dts: meson: g12b: odroid-n2: fix PHY deassert timing requirements")

Fixes: 88d537bc92ca ("arm64: dts: meson: convert meson-sm1-odroid-c4 to dtsi")
Signed-off-by: Dongjin Kim <tobetter@gmail.com>
Reviewed-by: Martin Blumenstingl <martin.blumenstingl@googlemail.com>
[narmstrong: added fixes tag and typo in commit log]
Signed-off-by: Neil Armstrong <narmstrong@baylibre.com>
Link: https://lore.kernel.org/r/YScKYFWlYymgGw3l@anyang-linuxfactory-or-kr
arch/arm64/boot/dts/amlogic/meson-sm1-odroid.dtsi