* [PATCH] ARM: dts: imx7d-smegw01: Describe USBOTG1 as host
@ 2023-02-09 13:04 Fabio Estevam
2023-03-13 8:08 ` Shawn Guo
0 siblings, 1 reply; 4+ messages in thread
From: Fabio Estevam @ 2023-02-09 13:04 UTC (permalink / raw)
To: shawnguo; +Cc: linux-arm-kernel, Fabio Estevam
The USBOTG1 port will always operate in host mode in Linux,
so describe dr_mode accordingly.
Signed-off-by: Fabio Estevam <festevam@denx.de>
---
arch/arm/boot/dts/imx7d-smegw01.dts | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/arch/arm/boot/dts/imx7d-smegw01.dts b/arch/arm/boot/dts/imx7d-smegw01.dts
index c0f00f5db11e..386485755676 100644
--- a/arch/arm/boot/dts/imx7d-smegw01.dts
+++ b/arch/arm/boot/dts/imx7d-smegw01.dts
@@ -190,7 +190,7 @@ &uart3 {
&usbotg1 {
pinctrl-names = "default";
pinctrl-0 = <&pinctrl_usbotg1_lpsr>;
- dr_mode = "otg";
+ dr_mode = "host";
vbus-supply = <®_usbotg_vbus>;
status = "okay";
};
--
2.25.1
_______________________________________________
linux-arm-kernel mailing list
linux-arm-kernel@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/linux-arm-kernel
^ permalink raw reply related [flat|nested] 4+ messages in thread* Re: [PATCH] ARM: dts: imx7d-smegw01: Describe USBOTG1 as host
2023-02-09 13:04 [PATCH] ARM: dts: imx7d-smegw01: Describe USBOTG1 as host Fabio Estevam
@ 2023-03-13 8:08 ` Shawn Guo
2023-03-13 9:52 ` Fabio Estevam
0 siblings, 1 reply; 4+ messages in thread
From: Shawn Guo @ 2023-03-13 8:08 UTC (permalink / raw)
To: Fabio Estevam; +Cc: linux-arm-kernel
On Thu, Feb 09, 2023 at 10:04:29AM -0300, Fabio Estevam wrote:
> 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
> so describe dr_mode accordingly.
>
> Signed-off-by: Fabio Estevam <festevam@denx.de>
> ---
> arch/arm/boot/dts/imx7d-smegw01.dts | 2 +-
> 1 file changed, 1 insertion(+), 1 deletion(-)
>
> diff --git a/arch/arm/boot/dts/imx7d-smegw01.dts b/arch/arm/boot/dts/imx7d-smegw01.dts
> index c0f00f5db11e..386485755676 100644
> --- a/arch/arm/boot/dts/imx7d-smegw01.dts
> +++ b/arch/arm/boot/dts/imx7d-smegw01.dts
> @@ -190,7 +190,7 @@ &uart3 {
> &usbotg1 {
> pinctrl-names = "default";
> pinctrl-0 = <&pinctrl_usbotg1_lpsr>;
> - dr_mode = "otg";
> + dr_mode = "host";
> vbus-supply = <®_usbotg_vbus>;
> status = "okay";
> };
> --
> 2.25.1
>
_______________________________________________
linux-arm-kernel mailing list
linux-arm-kernel@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/linux-arm-kernel
^ permalink raw reply [flat|nested] 4+ messages in thread* Re: [PATCH] ARM: dts: imx7d-smegw01: Describe USBOTG1 as host
2023-03-13 8:08 ` Shawn Guo
@ 2023-03-13 9:52 ` Fabio Estevam
2023-03-13 14:14 ` Shawn Guo
0 siblings, 1 reply; 4+ messages in thread
From: Fabio Estevam @ 2023-03-13 9:52 UTC (permalink / raw)
To: Shawn Guo; +Cc: linux-arm-kernel
Hi Shawn,
On 13/03/2023 05:08, Shawn Guo wrote:
> On Thu, Feb 09, 2023 at 10:04:29AM -0300, Fabio Estevam wrote:
>> 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
linux-arm-kernel@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/linux-arm-kernel
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: [PATCH] ARM: dts: imx7d-smegw01: Describe USBOTG1 as host
2023-03-13 9:52 ` Fabio Estevam
@ 2023-03-13 14:14 ` Shawn Guo
0 siblings, 0 replies; 4+ messages in thread
From: Shawn Guo @ 2023-03-13 14:14 UTC (permalink / raw)
To: Fabio Estevam; +Cc: linux-arm-kernel
On Mon, Mar 13, 2023 at 06:52:32AM -0300, Fabio Estevam wrote:
> Hi Shawn,
>
> On 13/03/2023 05:08, Shawn Guo wrote:
> > On Thu, Feb 09, 2023 at 10:04:29AM -0300, Fabio Estevam wrote:
> > > 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
linux-arm-kernel@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/linux-arm-kernel
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2023-03-13 14:15 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2023-02-09 13:04 [PATCH] ARM: dts: imx7d-smegw01: Describe USBOTG1 as host Fabio Estevam
2023-03-13 8:08 ` Shawn Guo
2023-03-13 9:52 ` Fabio Estevam
2023-03-13 14:14 ` Shawn Guo
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).