summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPhilippe Schenker <philippe.schenker@toradex.com>2020-12-23 19:03:21 +0100
committerPhilippe Schenker <philippe.schenker@toradex.com>2020-12-23 19:10:04 +0100
commitd50eadb865445cfb05b137a1453503956f595caa (patch)
tree6a9f4a152805b401b7bfc93e13b5d568b019dcde
parent2aee0bee125b72197864712da80bdcd154dbf067 (diff)
ARM64: dts: colibri-imx6ull: Use regulator-fixed-clock for powering PHY
There is a switch on the colibri-imx6ull that is switched with the clock for the ethernet phy. To make this properly work we need this regulator. Make use of that. Signed-off-by: Philippe Schenker <philippe.schenker@toradex.com>
-rw-r--r--arch/arm/boot/dts/imx6ull-colibri.dtsi13
1 files changed, 13 insertions, 0 deletions
diff --git a/arch/arm/boot/dts/imx6ull-colibri.dtsi b/arch/arm/boot/dts/imx6ull-colibri.dtsi
index 881f2ca739ca..81b1e1de3a2e 100644
--- a/arch/arm/boot/dts/imx6ull-colibri.dtsi
+++ b/arch/arm/boot/dts/imx6ull-colibri.dtsi
@@ -47,6 +47,18 @@
states = <1800000 0x1 3300000 0x0>;
vin-supply = <&reg_module_3v3>;
};
+
+ 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 = <&reg_module_3v3>;
+ clocks = <&clks IMX6UL_CLK_ENET2_REF_125M>;
+ startup-delay-us = <150000>;
+ };
};
&adc1 {
@@ -68,6 +80,7 @@
pinctrl-0 = <&pinctrl_enet2>;
phy-mode = "rmii";
phy-handle = <&ethphy1>;
+ phy-supply = <&reg_eth_phy>;
status = "okay";
mdio {