From c7741f0f7f645faca681efcfbb737537246b6fdc Mon Sep 17 00:00:00 2001 From: Shenwei Wang Date: Mon, 11 Jan 2021 18:51:54 -0600 Subject: [PATCH] MLK-25166-2 : arm64: dts: imx8dxl-evk: enable on-board phy for enet0 by default add the gpio-scu node and enable on-board phy for enet0 by default. remove "enable-active-high" property from mii_select node to use the enet module. Signed-off-by: Shenwei Wang --- .../boot/dts/freescale/imx8dxl-evk-enet0.dts | 4 ++++ arch/arm64/boot/dts/freescale/imx8dxl-evk.dts | 21 ++++++++++++++++++- 2 files changed, 24 insertions(+), 1 deletion(-) diff --git a/arch/arm64/boot/dts/freescale/imx8dxl-evk-enet0.dts b/arch/arm64/boot/dts/freescale/imx8dxl-evk-enet0.dts index 394cdc8864e6..9f4d94ec6e76 100644 --- a/arch/arm64/boot/dts/freescale/imx8dxl-evk-enet0.dts +++ b/arch/arm64/boot/dts/freescale/imx8dxl-evk-enet0.dts @@ -15,6 +15,10 @@ status = "okay"; }; +&mii_select { + /delete-property/ enable-active-high; +}; + &eqos { status = "disabled"; }; diff --git a/arch/arm64/boot/dts/freescale/imx8dxl-evk.dts b/arch/arm64/boot/dts/freescale/imx8dxl-evk.dts index ceb76f82093f..e06bbe62b566 100644 --- a/arch/arm64/boot/dts/freescale/imx8dxl-evk.dts +++ b/arch/arm64/boot/dts/freescale/imx8dxl-evk.dts @@ -145,7 +145,7 @@ regulator-name = "fec1_supply"; regulator-min-microvolt = <3300000>; regulator-max-microvolt = <3300000>; - gpio = <&pca6416_1 11 GPIO_ACTIVE_LOW>; + gpio = <&pca6416_1 11 GPIO_ACTIVE_HIGH>; regulator-always-on; status = "disabled"; }; @@ -249,6 +249,25 @@ "LINPUT1", "Mic Jack", "Mic Jack", "MICB"; }; + + scu_gpio0: scu-gpio0 { + compatible = "fsl,imx-scu-gpio"; + gpio-controller; + #gpio-cells = <2>; + #interrupt-cells = <2>; + }; + + mii_select: mii_select { + compatible = "regulator-fixed"; + regulator-name = "mii-select"; + regulator-min-microvolt = <3300000>; + regulator-max-microvolt = <3300000>; + gpio = <&scu_gpio0 6 GPIO_ACTIVE_HIGH>; + + enable-active-high; + regulator-always-on; + }; + }; &adc0 { -- 2.17.1