Skip to contentSkip to conversation

arm64: configs: Select REALTEK_PHY as built-in

PATCH Applied Fabio Estevam 3 participants 4 messages Mar 18, 2021 – Mar 29, 2021

Subsystems (2)
lore
Share & tools
lore

Fabio Estevam

author reviewer
#0 lore raw

PATCH 1/2 arm64: configs: Select REALTEK_PHY as built-in

On the i.MX8MP EVK board there is a RTL8211 EThernet PHY and a typical use case is to boot via NFS. In this case the Ethernet PHY driver needs to be built-in, so select the driver as built-in by default.

---
 arch/arm64/configs/defconfig | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
arch/arm64/configs/defconfig +1 -1
index 8080978c27ca..40c14c5fac51 100644
@@ -359,7 +359,7 @@ CONFIG_MESON_GXL_PHY=m
 CONFIG_MICREL_PHY=y
 CONFIG_MICROSEMI_PHY=y
 CONFIG_AT803X_PHY=y
-CONFIG_REALTEK_PHY=m
+CONFIG_REALTEK_PHY=y
 CONFIG_ROCKCHIP_PHY=y
 CONFIG_VITESSE_PHY=y
 CONFIG_USB_PEGASUS=m
Signature · 7 lines
2.25.1


_______________________________________________
linux-arm-kernel mailing list
[email protected]
http://lists.infradead.org/mailman/listinfo/linux-arm-kernel
author reviewer
#1 lore raw

PATCH 2/2 arm64: dts: imx8mp-evk: Improve the Ethernet PHY description

According to the datasheet RTL8211, it must be asserted low for at least 10ms and at least 72ms "for internal circuits settling time" before accessing the PHY registers.

Add properties to describe such requirements.

---
 arch/arm64/boot/dts/freescale/imx8mp-evk.dts | 2 ++
 1 file changed, 2 insertions(+)
arch/arm64/boot/dts/freescale/imx8mp-evk.dts +2 -0
index 7db4273cc88b..2c28e589677e 100644
@@ -98,6 +98,8 @@ ethphy1: ethernet-phy@1 {
 			reg = <1>;
 			eee-broken-1000t;
 			reset-gpios = <&gpio4 2 GPIO_ACTIVE_LOW>;
+			reset-assert-us = <10000>;
+			reset-deassert-us = <80000>;
 		};
 	};
 };
Signature · 7 lines
2.25.1


_______________________________________________
linux-arm-kernel mailing list
[email protected]
http://lists.infradead.org/mailman/listinfo/linux-arm-kernel
Tested-by on v1 1/2
#2 lore raw
In reply to Fabio Estevam

For these two patches:

Best Regards,
Joakim Zhang

Quoted 23 lines

-----Original Message-----
From: Fabio Estevam <[email protected]>
Sent: 2021年3月18日 19:13
To: [email protected]
Cc: [email protected]; Joakim Zhang <[email protected]>; Fabio Estevam <[email protected]>
Subject: [PATCH 1/2] arm64: configs: Select REALTEK_PHY as built-in

On the i.MX8MP EVK board there is a RTL8211 EThernet PHY and a typical use case is to boot via NFS. In this case the Ethernet PHY driver needs to be built-in, so select the driver as built-in by default.

---
 arch/arm64/configs/defconfig | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
arch/arm64/configs/defconfig index renamed from arch/arm64/configs/defconfig +0 -0

8080978c27ca..40c14c5fac51 100644

arch/arm64/configs/defconfig +0 -0
@@ -359,7 +359,7 @@ CONFIG_MESON_GXL_PHY=m
Quoted 8 lines

CONFIG_MICREL_PHY=y CONFIG_MICROSEMI_PHY=y
CONFIG_AT803X_PHY=y -CONFIG_REALTEK_PHY=m
+CONFIG_REALTEK_PHY=y
CONFIG_ROCKCHIP_PHY=y
CONFIG_VITESSE_PHY=y
CONFIG_USB_PEGASUS=m
--
2.25.1

_______________________________________________
linux-arm-kernel mailing list
[email protected]
http://lists.infradead.org/mailman/listinfo/linux-arm-kernel

Applied
#3 lore raw
In reply to Fabio Estevam
Quoted 7 lines · Fabio Estevam

On the i.MX8MP EVK board there is a RTL8211 EThernet PHY and a typical use case is to boot via NFS. In this case the Ethernet PHY driver needs to be built-in, so select the driver as built-in by default.

Applied both, thanks.

_______________________________________________
linux-arm-kernel mailing list
[email protected]
http://lists.infradead.org/mailman/listinfo/linux-arm-kernel