summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMax Krummenacher <max.krummenacher@toradex.com>2021-07-19 19:54:22 +0200
committerMax Krummenacher <max.krummenacher@toradex.com>2021-07-19 20:19:07 +0200
commit9443377ef940e51025f3d5df5a9232a6f994e5ff (patch)
tree30ddf75600afaef2f2143ce7ffe2cc9aba381c8b
parent2abf52a7e31e5bc0ba2b693b894063f860afcabd (diff)
arm64: dts: verdin-imx8mp: rework usb vbus enabletoradex_5.4-2.3.x-imx
The USB VBus enable signals can be handled by the HW dedicated VBUS functionality and its driver. There is no need to modulate it with a regulator with GPIO. For the USB1 in peripheral mode the current solution does not switch off VBUS which leads to backfeeding during shutdown. Related to: ELB-4002 Signed-off-by: Max Krummenacher <max.krummenacher@toradex.com>
-rwxr-xr-xarch/arm64/boot/dts/freescale/imx8mp-verdin.dtsi54
1 files changed, 16 insertions, 38 deletions
diff --git a/arch/arm64/boot/dts/freescale/imx8mp-verdin.dtsi b/arch/arm64/boot/dts/freescale/imx8mp-verdin.dtsi
index bb0aa90cacba..85422979b11b 100755
--- a/arch/arm64/boot/dts/freescale/imx8mp-verdin.dtsi
+++ b/arch/arm64/boot/dts/freescale/imx8mp-verdin.dtsi
@@ -99,30 +99,6 @@
vin-supply = <&buck4_reg>;
};
- reg_usb0_vbus: regulator-usb0-vbus {
- compatible = "regulator-fixed";
- enable-active-high;
- /* Verdin USB1_EN */
- gpio = <&gpio1 12 GPIO_ACTIVE_HIGH>;
- pinctrl-names = "default";
- pinctrl-0 = <&pinctrl_reg_usb1_en>;
- regulator-max-microvolt = <5000000>;
- regulator-min-microvolt = <5000000>;
- regulator-name = "usb0_vbus";
- };
-
- reg_usb1_vbus: regulator-usb1-vbus {
- compatible = "regulator-fixed";
- enable-active-high;
- /* Verdin USB_2_EN (SODIMM 185) */
- gpio = <&gpio1 14 GPIO_ACTIVE_HIGH>;
- pinctrl-names = "default";
- pinctrl-0 = <&pinctrl_reg_usb2_en>;
- regulator-max-microvolt = <5000000>;
- regulator-min-microvolt = <5000000>;
- regulator-name = "usb1_vbus";
- };
-
reg_usdhc2_vmmc: regulator-usdhc2 {
compatible = "regulator-fixed";
enable-active-high;
@@ -732,7 +708,6 @@
fsl,phy-tx-preemp-amp-tune = <3>;
fsl,phy-tx-rise-tune = <0>;
fsl,phy-tx-vref-tune = <6>;
- vbus-supply = <&reg_usb0_vbus>;
};
&usb_dwc3_0 {
@@ -742,16 +717,19 @@
srp-disable;
adp-disable;
usb-role-switch;
+ pinctrl-names = "default";
+ pinctrl-0 = <&pinctrl_usb1_en>;
};
/* Verdin USB_2 */
&usb3_phy1 {
fsl,phy-tx-preemp-amp-tune = <2>;
- vbus-supply = <&reg_usb1_vbus>;
};
&usb_dwc3_1 {
dr_mode = "host";
+ pinctrl-names = "default";
+ pinctrl-0 = <&pinctrl_usb2_en>;
};
/* Verdin SD_1 */
@@ -1131,18 +1109,6 @@
>;
};
- pinctrl_reg_usb1_en: regusb1engrp {
- fsl,pins = <
- MX8MP_IOMUXC_GPIO1_IO12__GPIO1_IO12 0x184 /* SODIMM 155 */
- >;
- };
-
- pinctrl_reg_usb2_en: regusb2engrp {
- fsl,pins = <
- MX8MP_IOMUXC_GPIO1_IO14__GPIO1_IO14 0x184 /* SODIMM 185 */
- >;
- };
-
pinctrl_sai1: sai1grp {
fsl,pins = <
MX8MP_IOMUXC_SAI5_RXD1__AUDIOMIX_SAI1_TX_SYNC 0x1d6 /* SODIMM 32 */
@@ -1201,6 +1167,18 @@
>;
};
+ pinctrl_usb1_en: usb1engrp {
+ fsl,pins = <
+ MX8MP_IOMUXC_GPIO1_IO12__USB1_PWR 0x184 /* SODIMM 155 */
+ >;
+ };
+
+ pinctrl_usb2_en: usb2engrp {
+ fsl,pins = <
+ MX8MP_IOMUXC_GPIO1_IO14__USB2_PWR 0x184 /* SODIMM 185 */
+ >;
+ };
+
/* On-module Wi-Fi/BT */
pinctrl_usdhc1: usdhc1grp {
fsl,pins = <