Skip to contentSkip to conversation

ARM: dts: imx7d-smegw01: Describe USBOTG1 as host

PATCH In review Fabio Estevam 2 participants 4 messages Feb 9, 2023 – Mar 13, 2023

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 ARM: dts: imx7d-smegw01: Describe USBOTG1 as host

The USBOTG1 port will always operate in host mode in Linux, so describe dr_mode accordingly.

---
 arch/arm/boot/dts/imx7d-smegw01.dts | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
arch/arm/boot/dts/imx7d-smegw01.dts +1 -1
index c0f00f5db11e..386485755676 100644
@@ -190,7 +190,7 @@ &uart3 {
 &usbotg1 {
 	pinctrl-names = "default";
 	pinctrl-0 = <&pinctrl_usbotg1_lpsr>;
-	dr_mode = "otg";
+	dr_mode = "host";
 	vbus-supply = <&reg_usbotg_vbus>;
 	status = "okay";
 };
Signature · 7 lines
2.25.1


_______________________________________________
linux-arm-kernel mailing list
[email protected]
http://lists.infradead.org/mailman/listinfo/linux-arm-kernel
#1 lore raw
Quoted 1 line · Fabio Estevam

The USBOTG1 port will always operate in host mode in Linux,

in Linux? It could operate in otg mode in bootloader or other OS?

Shawn

Quoted 23 lines

so describe dr_mode accordingly.

---
 arch/arm/boot/dts/imx7d-smegw01.dts | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
arch/arm/boot/dts/imx7d-smegw01.dts +1 -1
index c0f00f5db11e..386485755676 100644
@@ -190,7 +190,7 @@ &uart3 {
 &usbotg1 {
 	pinctrl-names = "default";
 	pinctrl-0 = <&pinctrl_usbotg1_lpsr>;
-	dr_mode = "otg";
+	dr_mode = "host";
 	vbus-supply = <&reg_usbotg_vbus>;
 	status = "okay";
 };
Signature · 1 line
2.25.1

_______________________________________________
linux-arm-kernel mailing list
[email protected]
http://lists.infradead.org/mailman/listinfo/linux-arm-kernel

#2 lore raw

Hi Shawn,

Quoted 4 lines · Shawn Guo
Quoted 1 line · Fabio Estevam

The USBOTG1 port will always operate in host mode in Linux,

in Linux? It could operate in otg mode in bootloader or other OS?

Yes, in U-Boot it can operate in OTG mode where it can be used in serial download mode.

In Linux, the USB port only operates in host mode.

_______________________________________________
linux-arm-kernel mailing list
[email protected]
http://lists.infradead.org/mailman/listinfo/linux-arm-kernel

#3 lore raw
Quoted 4 lines · Fabio Estevam

Hi Shawn,

Quoted 1 line · Shawn Guo

On Thu, Feb 09, 2023 at 10:04:29AM -0300, Fabio Estevam wrote:

Quoted 8 lines
Quoted 3 lines
Quoted 1 line

The USBOTG1 port will always operate in host mode in Linux,

in Linux? It could operate in otg mode in bootloader or other OS?

Yes, in U-Boot it can operate in OTG mode where it can be used in serial download mode.

In Linux, the USB port only operates in host mode.

What stops the USB port from operating in OTG mode?

That doesn't sound right, as DT is a description of hardware capability rather than Linux.

Shawn

_______________________________________________
linux-arm-kernel mailing list
[email protected]
http://lists.infradead.org/mailman/listinfo/linux-arm-kernel