Skip to contentSkip to conversation

imx8m{m,n}-venice-gw7902: add support for GPY111 phy

PATCH New Tim Harvey 2 participants 2 messages Apr 13, 2022 – Apr 21, 2022

Subsystems (2)
lore
Share & tools
lore

Tim Harvey

author
#0 lore raw

PATCH v2 1/1 imx8m{m,n}-venice-gw7902: add support for GPY111 phy

The TI DP83867 phy has been replaced with the MaxLinear GPY111 phy due to part availability. Add support for it:
- increase post-reset time to 300ms per datasheet
- add tx-delay/rx-delay config

---
v2: rebase on imx/master

---
 arch/arm/dts/imx8mm-venice-gw7902-u-boot.dtsi | 2 +-
 arch/arm/dts/imx8mm-venice-gw7902.dts         | 4 ++++
 arch/arm/dts/imx8mn-venice-gw7902-u-boot.dtsi | 2 +-
 arch/arm/dts/imx8mn-venice-gw7902.dts         | 4 ++++
 4 files changed, 10 insertions(+), 2 deletions(-)
arch/arm/dts/imx8mm-venice-gw7902-u-boot.dtsi +1 -1
index 1e1769f55127..f21e46b12dd7 100644
@@ -158,7 +158,7 @@
 &fec1 {
 	phy-reset-gpios = <&gpio1 10 GPIO_ACTIVE_LOW>;
 	phy-reset-duration = <1>;
-	phy-reset-post-delay = <1>;
+	phy-reset-post-delay = <300>;
 };
 
 &pinctrl_fec1 {
arch/arm/dts/imx8mm-venice-gw7902.dts +4 -0
index adf521632d63..b0404ec4c8af 100644
@@ -243,10 +243,14 @@
 		ethphy0: ethernet-phy@0 {
 			compatible = "ethernet-phy-ieee802.3-c22";
 			reg = <0>;
+			/* TI DP83867 props */
 			ti,rx-internal-delay = <DP83867_RGMIIDCTL_2_00_NS>;
 			ti,tx-internal-delay = <DP83867_RGMIIDCTL_2_00_NS>;
 			tx-fifo-depth = <DP83867_PHYCR_FIFO_DEPTH_4_B_NIB>;
 			rx-fifo-depth = <DP83867_PHYCR_FIFO_DEPTH_4_B_NIB>;
+			/* GPY111 props */
+			rx-internal-delay-ps = <2000>;
+			tx-internal-delay-ps = <2500>;
 		};
 	};
 };
arch/arm/dts/imx8mn-venice-gw7902-u-boot.dtsi +1 -1
index 9431e2a6cde7..17e6828c79f8 100644
@@ -116,7 +116,7 @@
 &fec1 {
 	phy-reset-gpios = <&gpio1 10 GPIO_ACTIVE_LOW>;
 	phy-reset-duration = <1>;
-	phy-reset-post-delay = <1>;
+	phy-reset-post-delay = <300>;
 };
 
 &pinctrl_fec1 {
arch/arm/dts/imx8mn-venice-gw7902.dts +4 -0
index 29897c161b96..d026d965580e 100644
@@ -242,10 +242,14 @@
 		ethphy0: ethernet-phy@0 {
 			compatible = "ethernet-phy-ieee802.3-c22";
 			reg = <0>;
+			/* TI DP83867 props */
 			ti,rx-internal-delay = <DP83867_RGMIIDCTL_2_00_NS>;
 			ti,tx-internal-delay = <DP83867_RGMIIDCTL_2_00_NS>;
 			tx-fifo-depth = <DP83867_PHYCR_FIFO_DEPTH_4_B_NIB>;
 			rx-fifo-depth = <DP83867_PHYCR_FIFO_DEPTH_4_B_NIB>;
+			/* GPY111 props */
+			rx-internal-delay-ps = <2000>;
+			tx-internal-delay-ps = <2500>;
 		};
 	};
 };
Signature · 1 line
2.17.1
#1 lore raw

PATCH v2 1/1 imx8m{m,n}-venice-gw7902: add support for GPY111 phy

Quoted 5 lines

The TI DP83867 phy has been replaced with the MaxLinear GPY111 phy due to part availability. Add support for it:
- increase post-reset time to 300ms per datasheet
- add tx-delay/rx-delay config

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]
=====================================================================