arm64: dts: imx8mp-evk: enable usb1 as host mode
authorLi Jun <jun.li@nxp.com>
Mon, 8 Jun 2020 02:51:30 +0000 (10:51 +0800)
committerDong Aisheng <aisheng.dong@nxp.com>
Mon, 14 Dec 2020 03:23:02 +0000 (11:23 +0800)
Enable usb host port with type-A connector on imx8mp-evk board.

Signed-off-by: Li Jun <jun.li@nxp.com>
arch/arm64/boot/dts/freescale/imx8mp-evk.dts

index e47fb5d..21b0b3f 100644 (file)
        status = "okay";
 };
 
+&usb3_phy1 {
+       status = "okay";
+};
+
+&usb3_1 {
+       status = "okay";
+};
+
+&usb_dwc3_1 {
+       pinctrl-names = "default";
+       pinctrl-0 = <&pinctrl_usb1_vbus>;
+       dr_mode = "host";
+       status = "okay";
+};
+
 &usdhc2 {
        assigned-clocks = <&clk IMX8MP_CLK_USDHC2>;
        assigned-clock-rates = <400000000>;
                >;
        };
 
+       pinctrl_usb1_vbus: usb1grp {
+               fsl,pins = <
+                       MX8MP_IOMUXC_GPIO1_IO14__HSIOMIX_usb2_OTG_PWR   0x19
+               >;
+       };
+
        pinctrl_usdhc2: usdhc2grp {
                fsl,pins = <
                        MX8MP_IOMUXC_SD2_CLK__USDHC2_CLK        0x190