From b9a28104221c36705d22c0eb6eb33eae56bb2a32 Mon Sep 17 00:00:00 2001 From: Nate Drude Date: Fri, 24 Jun 2022 14:22:36 -0500 Subject: [PATCH] imx8qm_var_som: add eth1 regulators Signed-off-by: Nate Drude --- arch/arm/dts/fsl-imx8qm-var-som.dts | 23 +++++++++++++++++++++++ 1 file changed, 23 insertions(+) diff --git a/arch/arm/dts/fsl-imx8qm-var-som.dts b/arch/arm/dts/fsl-imx8qm-var-som.dts index 7f79e9e3be3..c787b66349b 100644 --- a/arch/arm/dts/fsl-imx8qm-var-som.dts +++ b/arch/arm/dts/fsl-imx8qm-var-som.dts @@ -68,6 +68,27 @@ regulator-max-microvolt = <3300000>; regulator-always-on; }; + + reg_ethphy1: regulator-ethphy1 { + compatible = "regulator-fixed"; + vin-supply = <®_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; + }; }; }; @@ -305,6 +326,8 @@ pinctrl-0 = <&pinctrl_fec2>; phy-mode = "rgmii-rxid"; phy-handle = <ðphy1>; + phy-supply = <®_ethphy1>; + phy-supply-vselect = <®_vselect>; fsl,magic-packet; phy-reset-gpios = <&pca9534 5 GPIO_ACTIVE_LOW>; phy-reset-duration = <10>;