summaryrefslogtreecommitdiff
path: root/arch/arm/boot/dts/imx7-colibri.dtsi
diff options
context:
space:
mode:
authorOleksandr Suvorov <oleksandr.suvorov@toradex.com>2021-06-17 12:11:24 +0300
committerPhilippe Schenker <philippe.schenker@toradex.com>2021-06-24 07:24:02 +0000
commit73a9a57a761090870683bc7d2aa08156f771712e (patch)
treec403d3fb61c6495cf373e3a5bbef8cf575778c80 /arch/arm/boot/dts/imx7-colibri.dtsi
parentb6f784f9ead1f42b87f852124fb16ba94735755b (diff)
ARM: dts: colibri-imx7: add delay for on-module PHY
There is a significant time for PHY Micrel KSZ8041 to get up. Add delay on startup/wakeup before FEC starts communicating with PHY. LDO1 takes 6ms, R39+C44 takes ~100ms, KSZ8041 datasheet asks for ~11ms before starting programming on the MIIM. Counting that, add a 200ms delay to be sure the PHY is ready for programming. Also, add the same off delay time to give the capacitor time to discharge in order to properly reset. Related-to: ELB-3963 Signed-off-by: Oleksandr Suvorov <oleksandr.suvorov@toradex.com>
Diffstat (limited to 'arch/arm/boot/dts/imx7-colibri.dtsi')
-rw-r--r--arch/arm/boot/dts/imx7-colibri.dtsi15
1 files changed, 13 insertions, 2 deletions
diff --git a/arch/arm/boot/dts/imx7-colibri.dtsi b/arch/arm/boot/dts/imx7-colibri.dtsi
index faa998a75f15..348d98e110fc 100644
--- a/arch/arm/boot/dts/imx7-colibri.dtsi
+++ b/arch/arm/boot/dts/imx7-colibri.dtsi
@@ -45,6 +45,17 @@
regulator-always-on;
};
+ reg_module_3v3_eth: regulator-module-3v3-eth {
+ compatible = "regulator-fixed";
+ off-on-delay-us = <200000>;
+ regulator-name = "+V3.3_ETH";
+ regulator-min-microvolt = <3300000>;
+ regulator-max-microvolt = <3300000>;
+ regulator-boot-on;
+ startup-delay-us = <200000>;
+ vin-supply = <&reg_LDO1>;
+ };
+
reserved-memory {
#address-cells = <1>;
#size-cells = <1>;
@@ -122,7 +133,7 @@
assigned-clock-parents = <&clks IMX7D_PLL_ENET_MAIN_100M_CLK>;
assigned-clock-rates = <0>, <100000000>;
phy-mode = "rmii";
- phy-supply = <&reg_LDO1>;
+ phy-supply = <&reg_module_3v3_eth>;
fsl,magic-packet;
phy-handle = <&ethphy0>;
@@ -408,7 +419,7 @@
};
reg_LDO1: LDO1 { /* PWR_EN_+V3.3_ETH */
- regulator-min-microvolt = <1800000>;
+ regulator-min-microvolt = <3300000>;
regulator-max-microvolt = <3300000>;
regulator-boot-on;
};