From 087011ad7eb37db4ad1285bb832769dd6a0d1aa8 Mon Sep 17 00:00:00 2001 From: Josep Orga Date: Mon, 11 Oct 2021 09:28:01 +0200 Subject: [PATCH] arm64: dts: imx8mn-somdevices.dtsi: Set proper configuration to usb1 (otg). Signed-off-by: Josep Orga --- .../boot/dts/freescale/imx8mn-somdevices.dtsi | 27 ++++++++++++++----- 1 file changed, 20 insertions(+), 7 deletions(-) diff --git a/arch/arm64/boot/dts/freescale/imx8mn-somdevices.dtsi b/arch/arm64/boot/dts/freescale/imx8mn-somdevices.dtsi index a794c2dd64ad..45914e036d96 100644 --- a/arch/arm64/boot/dts/freescale/imx8mn-somdevices.dtsi +++ b/arch/arm64/boot/dts/freescale/imx8mn-somdevices.dtsi @@ -59,6 +59,15 @@ off-on-delay-us = <12000>; enable-active-high; }; + + reg_usb1: regulator-usb1 { + compatible = "regulator-fixed"; + regulator-name = "vbus1_regulator"; + regulator-min-microvolt = <5000000>; + regulator-max-microvolt = <5000000>; + gpio = <&gpio1 12 GPIO_ACTIVE_HIGH>; + enable-active-high; + }; }; &A53_0 { @@ -373,13 +382,10 @@ &usbotg1 { dr_mode = "otg"; - hnp-disable; - srp-disable; - adp-disable; - usb-role-switch; - disable-over-current; - samsung,picophy-pre-emp-curr-control = <3>; - samsung,picophy-dc-vol-level-adjust = <7>; + over-current-active-low; + pinctrl-names = "default"; + pinctrl-0 = <&pinctrl_usbotg1>; + vbus-supply = <®_usb1>; status = "okay"; }; @@ -563,6 +569,13 @@ >; }; + pinctrl_usbotg1: usbotg1grp { + fsl,pins = < + MX8MN_IOMUXC_GPIO1_IO12_GPIO1_IO12 0x16 + MX8MN_IOMUXC_GPIO1_IO13_USB1_OTG_OC 0x156 + >; + }; + pinctrl_usdhc1_gpio: usdhc1grpgpio { fsl,pins = < MX8MN_IOMUXC_SD1_RESET_B_GPIO2_IO10 0x41 -- 2.17.1