board: colibri-imx6ull: fix detecting ethernet phy
Now that it is possible to use regulator-fixed-clock make use of it. This makes U-Boot detect the PHY on first cold-boot. This commit also adjusts the code in setup_fec and follows how it is done in mx6ullevk.c This commit also slows down the boot-process by about 150ms as it now waits for the regulator-fixed-clock voltage that drives the PHY to go up. If you rely on very fast boot-speeds and don't need ethernet for your boot-process you can safely revert the changes on imx6ull-colibri.dtsi Signed-off-by: Philippe Schenker <philippe.schenker@toradex.com> Signed-off-by: Marcel Ziswiler <marcel.ziswiler@toradex.com>
This commit is contained in:
committed by
Stefano Babic
parent
f3b5100aff
commit
aa6f57d877
@@ -64,6 +64,18 @@
|
||||
gpio = <&gpio1 2 GPIO_ACTIVE_LOW>; /* USBH_PEN */
|
||||
vin-supply = <®_5v0>;
|
||||
};
|
||||
|
||||
reg_eth_phy: regulator-eth-phy {
|
||||
compatible = "regulator-fixed-clock";
|
||||
regulator-boot-on;
|
||||
regulator-min-microvolt = <3300000>;
|
||||
regulator-max-microvolt = <3300000>;
|
||||
regulator-name = "eth_phy";
|
||||
regulator-type = "voltage";
|
||||
vin-supply = <®_module_3v3>;
|
||||
clocks = <&clks IMX6UL_CLK_ENET2_REF_125M>;
|
||||
startup-delay-us = <150000>;
|
||||
};
|
||||
};
|
||||
|
||||
&adc1 {
|
||||
@@ -84,6 +96,7 @@
|
||||
pinctrl-0 = <&pinctrl_enet2>;
|
||||
phy-mode = "rmii";
|
||||
phy-handle = <ðphy1>;
|
||||
phy-supply = <®_eth_phy>;
|
||||
status = "okay";
|
||||
|
||||
mdio {
|
||||
|
||||
Reference in New Issue
Block a user