Skip to content

Commit

Permalink
imx8qm_var_som: add eth1 regulators
Browse files Browse the repository at this point in the history
Signed-off-by: Nate Drude <nate.d@variscite.com>
  • Loading branch information
nsdrude authored and FrancescoFerraro committed Jun 28, 2022
1 parent ce72cb6 commit b9a2810
Showing 1 changed file with 23 additions and 0 deletions.
23 changes: 23 additions & 0 deletions arch/arm/dts/fsl-imx8qm-var-som.dts
Expand Up @@ -68,6 +68,27 @@
regulator-max-microvolt = <3300000>;
regulator-always-on;
};

reg_ethphy1: regulator-ethphy1 {
compatible = "regulator-fixed";
vin-supply = <&reg_vselect>;
regulator-name = "reg_ethphy1";
regulator-min-microvolt = <1800000>;
regulator-max-microvolt = <1800000>;
gpio = <&pca9534 7 GPIO_ACTIVE_HIGH>;
enable-active-high;
regulator-always-on;
};

reg_vselect: regulator-vselect {
compatible = "regulator-fixed";
regulator-name = "reg_vselect";
regulator-min-microvolt = <3300000>;
regulator-max-microvolt = <3300000>;
regulator-always-on;
gpio = <&pca9534 6 GPIO_ACTIVE_HIGH>;
enable-active-high;
};
};
};

Expand Down Expand Up @@ -305,6 +326,8 @@
pinctrl-0 = <&pinctrl_fec2>;
phy-mode = "rgmii-rxid";
phy-handle = <&ethphy1>;
phy-supply = <&reg_ethphy1>;
phy-supply-vselect = <&reg_vselect>;
fsl,magic-packet;
phy-reset-gpios = <&pca9534 5 GPIO_ACTIVE_LOW>;
phy-reset-duration = <10>;
Expand Down

0 comments on commit b9a2810

Please sign in to comment.