Skip to content

Commit f161cea

Browse files
hvilleneuvedooShawn Guo
authored andcommitted
arm64: dts: imx8mn-var-som: fix PHY detection bug by adding deassert delay
While testing the ethernet interface on a Variscite symphony carrier board using an imx8mn SOM with an onboard ADIN1300 PHY (EC hardware configuration), the ethernet PHY is not detected. The ADIN1300 datasheet indicate that the "Management interface active (t4)" state is reached at most 5ms after the reset signal is deasserted. The device tree in Variscite custom git repository uses the following property: phy-reset-post-delay = <20>; Add a new MDIO property 'reset-deassert-us' of 20ms to have the same delay inside the ethphy node. Adding this property fixes the problem with the PHY detection. Note that this SOM can also have an Atheros AR8033 PHY. In this case, a 1ms deassert delay is sufficient. Add a comment to that effect. Fixes: ade0176 ("arm64: dts: imx8mn-var-som: Add Variscite VAR-SOM-MX8MN System on Module") Signed-off-by: Hugo Villeneuve <[email protected]> Signed-off-by: Shawn Guo <[email protected]>
1 parent 2ac6c4a commit f161cea

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

arch/arm64/boot/dts/freescale/imx8mn-var-som.dtsi

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -98,11 +98,17 @@
9898
#address-cells = <1>;
9999
#size-cells = <0>;
100100

101-
ethphy: ethernet-phy@4 {
101+
ethphy: ethernet-phy@4 { /* AR8033 or ADIN1300 */
102102
compatible = "ethernet-phy-ieee802.3-c22";
103103
reg = <4>;
104104
reset-gpios = <&gpio1 9 GPIO_ACTIVE_LOW>;
105105
reset-assert-us = <10000>;
106+
/*
107+
* Deassert delay:
108+
* ADIN1300 requires 5ms.
109+
* AR8033 requires 1ms.
110+
*/
111+
reset-deassert-us = <20000>;
106112
};
107113
};
108114
};

0 commit comments

Comments
 (0)