Skip to contentSkip to conversation

ARM: dts: imx8mm-verdin: Set PHY mode to RGMII-ID

PATCH In review Marek Vasut 3 participants 7 messages Sep 11, 2021 – Oct 8, 2021

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 ARM: dts: imx8mm-verdin: Set PHY mode to RGMII-ID

Since c6df0e2ffdc ("net: phy: micrel: add support for DLL setup on ksz9131") the Micrel PHY driver correctly configures the delay register. The Verdin PHY is RGMII-ID, so reflect that in DT, otherwise the ethernet no longer works.

Cc Marcel Ziswiler <[email protected]>
Cc Max Krummenacher <[email protected]>
Cc Oleksandr Suvorov <[email protected]>
---
 arch/arm/dts/imx8mm-verdin.dts | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
arch/arm/dts/imx8mm-verdin.dts +1 -1
index fb0756d6e19..ac2a4b69d3c 100644
@@ -160,7 +160,7 @@
 &fec1 {
 	fsl,magic-packet;
 	phy-handle = <&ethphy0>;
-	phy-mode = "rgmii";
+	phy-mode = "rgmii-id";
 	phy-supply = <&reg_ethphy>;
 	pinctrl-names = "default", "sleep";
 	pinctrl-0 = <&pinctrl_fec1>;
Signature · 1 line
2.33.0
#1 lore raw

Hi Marek

Quoted 3 lines · Marek Vasut

Since c6df0e2ffdc ("net: phy: micrel: add support for DLL setup on ksz9131") the Micrel PHY driver correctly configures the delay register. The Verdin PHY is RGMII-ID, so reflect that in DT, otherwise the ethernet no longer works.

Yes, however, one should also get rid of the proprietary PHY setup in our board setup.

Remember, I already did send this as part of my target refresh series:

https://marc.info/?l=u-boot&m=162990456210415

Quoted 13 lines
Cc Marcel Ziswiler <[email protected]>
Cc Max Krummenacher <[email protected]>
Cc Oleksandr Suvorov <[email protected]>

---
 arch/arm/dts/imx8mm-verdin.dts | 2 +-

 1 file changed, 1 insertion(+), 1 deletion(-)
arch/arm/dts/imx8mm-verdin.dts +0 -0
index fb0756d6e19..ac2a4b69d3c 100644

arch/arm/dts/imx8mm-verdin.dts line 166

Quoted 8 lines
arch/arm/dts/imx8mm-verdin.dts +1 -1
@@ -160,7 +160,7 @@
  &fec1 {
         fsl,magic-packet;
         phy-handle = <&ethphy0>;
-       phy-mode = "rgmii";
+       phy-mode = "rgmii-id";
         phy-supply = <&reg_ethphy>;
         pinctrl-names = "default", "sleep";
         pinctrl-0 = <&pinctrl_fec1>;

Cheers

Marcel

#2 lore raw
Quoted 7 lines · Marcel Ziswiler

Hi Marek

Quoted 3 lines · Marek Vasut

Since c6df0e2ffdc ("net: phy: micrel: add support for DLL setup on ksz9131") the Micrel PHY driver correctly configures the delay register. The Verdin PHY is RGMII-ID, so reflect that in DT, otherwise the ethernet no longer works.

Quoted 5 lines

Yes, however, one should also get rid of the proprietary PHY setup in our board setup.

Remember, I already did send this as part of my target refresh series:

https://marc.info/?l=u-boot&m=162990456210415

ACK, that patch of yours is a better patch too.

#3 lore raw

PATCH 1/1 ARM: dts: imx8mm-verdin: Set PHY mode to RGMII-ID

In reply to Marek Vasut
Quoted 7 lines

Since c6df0e2ffdc ("net: phy: micrel: add support for DLL setup on ksz9131") the Micrel PHY driver correctly configures the delay register. The Verdin PHY is RGMII-ID, so reflect that in DT, otherwise the ethernet no longer works.

Cc Marcel Ziswiler <[email protected]>
Cc Max Krummenacher <[email protected]>
Cc Oleksandr Suvorov <[email protected]>

Applied to u-boot-imx, master, thanks !

Best regards,
Stefano Babic

Signature · 5 lines
=====================================================================
DENX Software Engineering GmbH,      Managing Director: Wolfgang Denk
HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany
Phone: +49-8142-66989-53 Fax: +49-8142-66989-80 Email: [email protected]
=====================================================================
#4 lore raw
Quoted 8 lines · On Thu, 2021-10-07 at 16:12 +0200, [email protected] wrote:
Quoted 7 lines

Since c6df0e2ffdc ("net: phy: micrel: add support for DLL setup on ksz9131") the Micrel PHY driver correctly configures the delay register. The Verdin PHY is RGMII-ID, so reflect that in DT, otherwise the ethernet no longer works.

Cc Marcel Ziswiler <[email protected]>
Cc Max Krummenacher <[email protected]>
Cc Oleksandr Suvorov <[email protected]>

Applied to u-boot-imx, master, thanks !

No, remember, you should not have picked that one but rather my patch series instead!

Quoted 2 lines

Best regards,
Stefano Babic

#5 lore raw
Quoted 11 lines · Marcel Ziswiler
Quoted 8 lines · On Thu, 2021-10-07 at 16:12 +0200, [email protected] wrote:
Quoted 7 lines

Since c6df0e2ffdc ("net: phy: micrel: add support for DLL setup on ksz9131") the Micrel PHY driver correctly configures the delay register. The Verdin PHY is RGMII-ID, so reflect that in DT, otherwise the ethernet no longer works.

Cc Marcel Ziswiler <[email protected]>
Cc Max Krummenacher <[email protected]>
Cc Oleksandr Suvorov <[email protected]>

Applied to u-boot-imx, master, thanks !

No, remember, you should not have picked that one but rather my patch series instead!

Okay, let me send a v5 of my patch series re-based on top of this now with another fixes tag (;-p).

Quoted 2 lines
Quoted 2 lines

Best regards,
Stefano Babic

#6 lore raw
Quoted 9 lines · Marcel Ziswiler
Quoted 8 lines · Marcel Ziswiler
Quoted 7 lines · On Thu, 2021-10-07 at 16:12 +0200, [email protected] wrote:
Quoted 7 lines

Since c6df0e2ffdc ("net: phy: micrel: add support for DLL setup on ksz9131") the Micrel PHY driver correctly configures the delay register. The Verdin PHY is RGMII-ID, so reflect that in DT, otherwise the ethernet no longer works.

Cc Marcel Ziswiler <[email protected]>
Cc Max Krummenacher <[email protected]>
Cc Oleksandr Suvorov <[email protected]>
Quoted 5 lines
Quoted 3 lines
Quoted 1 line

Applied to u-boot-imx, master, thanks !

No, remember, you should not have picked that one but rather my patch series instead!

Okay, let me send a v5 of my patch series re-based on top of this now with another fixes tag (;-p).

Ah sigh, thanks.