Skip to content
Snippets Groups Projects
Commit 18419b19 authored by Gianfranco Mariotti's avatar Gianfranco Mariotti
Browse files

[D18] enable usb

parent aee447cf
No related merge requests found
......@@ -36,6 +36,18 @@
<0x1 0x00000000 0 0xc0000000>;
};
reg_usb1_host_vbus: regulator-usb1-vbus {
compatible = "regulator-fixed";
regulator-name = "usb1_host_vbus";
pinctrl-names = "default";
pinctrl-0 = <&pinctrl_usb1_vbus>;
regulator-min-microvolt = <5000000>;
regulator-max-microvolt = <5000000>;
gpio = <&gpio1 12 GPIO_ACTIVE_HIGH>;
enable-active-high;
regulator-always-on;
};
reg_usdhc2_vmmc: regulator-usdhc2 {
compatible = "regulator-fixed";
regulator-name = "VSD_3V3";
......@@ -558,7 +570,10 @@
};
&usb_dwc3_0 {
dr_mode = "otg";
pinctrl-names = "default";
pinctrl-0 = <&pinctrl_usb_dwc3_0>;
vbus-supply = <&reg_usb1_host_vbus>;
dr_mode = "host";
hnp-disable;
srp-disable;
adp-disable;
......@@ -651,6 +666,8 @@
/* GPIO expander 0x20 */
MX8MP_IOMUXC_GPIO1_IO07__GPIO1_IO07 0x40000
/* GPIOs and USB OC */
MX8MP_IOMUXC_SAI1_TXD7__GPIO4_IO19 0x0 /* USB0_EN_OC#_1V8_IN */
>;
};
......@@ -787,6 +804,12 @@
>;
};
pinctrl_usb_dwc3_0: usb-dwc3-0grp {
fsl,pins = <
MX8MP_IOMUXC_GPIO1_IO10__USB1_ID 0x0
>;
};
pinctrl_sai2: sai2grp {
fsl,pins = <
MX8MP_IOMUXC_SAI2_TXC__AUDIOMIX_SAI2_TX_BCLK 0xd6
......@@ -823,12 +846,6 @@
>;
};
pinctrl_typec: typec1grp {
fsl,pins = <
MX8MP_IOMUXC_SAI1_TXD7__GPIO4_IO19 0x1c4
>;
};
pinctrl_uart2: uart2grp {
fsl,pins = <
MX8MP_IOMUXC_UART2_RXD__UART2_DCE_RX 0x49
......@@ -854,7 +871,8 @@
pinctrl_usb1_vbus: usb1grp {
fsl,pins = <
MX8MP_IOMUXC_GPIO1_IO14__USB2_PWR 0x19
MX8MP_IOMUXC_GPIO1_IO12__GPIO1_IO12 0x20
MX8MP_IOMUXC_SAI1_RXD1__GPIO4_IO03 0x0
>;
};
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment