From bd41383b0b9f687f39b2bc9d774b9cd5829c85bd Mon Sep 17 00:00:00 2001 From: Ye Li Date: Thu, 28 Dec 2017 21:27:58 -0600 Subject: MLK-17324 DTS: imx8qm_mek: Add USBOTG1 node Since android needs the USB OTG port on base board to run fastboot, add the USBOTG1 node to imx8qm mek DTS, so that the OTG can work on reworked board. Tested-by: Chen Guoyin Signed-off-by: Ye Li (cherry picked from commit f347ebae3610c41f9b6eec33baff485192547761) --- arch/arm/dts/fsl-imx8qm-mek.dts | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) diff --git a/arch/arm/dts/fsl-imx8qm-mek.dts b/arch/arm/dts/fsl-imx8qm-mek.dts index ee437ee876..518f29810a 100644 --- a/arch/arm/dts/fsl-imx8qm-mek.dts +++ b/arch/arm/dts/fsl-imx8qm-mek.dts @@ -30,6 +30,16 @@ #address-cells = <1>; #size-cells = <0>; + reg_usb_otg1_vbus: regulator@0 { + compatible = "regulator-fixed"; + reg = <0>; + regulator-name = "usb_otg1_vbus"; + regulator-min-microvolt = <5000000>; + regulator-max-microvolt = <5000000>; + gpio = <&gpio4 3 GPIO_ACTIVE_HIGH>; + enable-active-high; + }; + reg_usdhc2_vmmc: usdhc2_vmmc { compatible = "regulator-fixed"; regulator-name = "sw-3p3-sd1"; @@ -50,6 +60,7 @@ imx8qm-mek { pinctrl_hog_1: hoggrp-1 { fsl,pins = < + SC_P_USB_SS3_TC0_LSIO_GPIO4_IO03 0x06000048 SC_P_LVDS0_I2C0_SCL_LSIO_GPIO1_IO06 0x06000021 SC_P_LVDS0_I2C0_SDA_LSIO_GPIO1_IO07 0x06000021 SC_P_QSPI1A_SS1_B_LSIO_GPIO4_IO20 0x06000021 @@ -285,6 +296,15 @@ status = "okay"; }; +&usbotg1 { + vbus-supply = <®_usb_otg1_vbus>; + srp-disable; + hnp-disable; + adp-disable; + disable-over-current; + status = "okay"; +}; + &usb2 { status = "okay"; }; -- cgit v1.2.3