Linux-ARM-Kernel Archive on lore.kernel.org
 help / color / mirror / Atom feed
From: Stefan Wahren <wahrenst@gmx.net>
To: Xu Yang <xu.yang_2@oss.nxp.com>
Cc: Xu Yang <xu.yang_2@nxp.com>, Frank Li <Frank.Li@nxp.com>,
	Jun Li <jun.li@nxp.com>,
	Alexander Stein <alexander.stein@ew.tq-group.com>,
	Greg Kroah-Hartman <gregkh@linuxfoundation.org>,
	Linux ARM <linux-arm-kernel@lists.infradead.org>,
	"linux-usb@vger.kernel.org" <linux-usb@vger.kernel.org>
Subject: Re: chipidea: usbmisc_imx: i.MX93 support
Date: Wed, 24 Jun 2026 12:05:00 +0200	[thread overview]
Message-ID: <07bc94cf-2b89-45ce-b36e-d07af6749ef9@gmx.net> (raw)
In-Reply-To: <lwo7rsdsfuibceyz5qoi46bbrhmofjpb2e3ukzdawieou3uo7m@5o2ral3q4oaf>

Hi Xu,

Am 24.06.26 um 11:11 schrieb Xu Yang:
> On Wed, Jun 24, 2026 at 08:30:00AM +0200, Stefan Wahren wrote:
> What's your issue on i.MX93?
we have an i.MX93 board using both USB interfaces:

USB1:
- external available via USB-C connector
- OTG interface should be able to switch between host and peripheral
- as USB-C interface control we use the TI TUSB321AI [1] (while its DIR, 
OUT1, OUT2, CURRENT_MODE, PORT is unconnected or tied to GND)

  USB2:
- used as internal host interface

  We have the problem that 5 seconds after disconnecting a USB device 
from USB-C (USB1) interface, the USB driver complains that the VBUS is 
still to high:

[  144.078347] usb 2-1: USB disconnect, device number 2
[  144.083425] ci_hdrc ci_hdrc.0: remove, state 1
[  144.083521] usb 2-1.1: USB disconnect, device number 3
[  144.090310] usb usb2: USB disconnect, device number 1
[  144.139325] usb 2-1.5: USB disconnect, device number 4
[  144.158700] ci_hdrc ci_hdrc.0: USB bus 2 deregistered
[  149.190274] ci_hdrc ci_hdrc.0: timeout waiting for 00000800 in OTGSC
[  149.196741] usbmisc_imx 4c100200.usbmisc: vbus is error
[  149.202078] usbmisc_imx 4c100200.usbmisc: Error occurs during 
detection: -22

But except of this, both roles works as expected.

Here are the relevant device tree parts:

                 reg_usb_otg1_vbus: regulator-usb-otg1-vbus {
                                pinctrl-names = "default";
                                pinctrl-0 = <&pinctrl_usbotg1grp>;
                                compatible = "regulator-fixed";
                                regulator-name = "usb_otg1_vbus";
                                regulator-min-microvolt = <5000000>;
                                regulator-max-microvolt = <5000000>;
                                gpio = <&gpio4 13 GPIO_ACTIVE_HIGH>;
                                enable-active-high;
                                regulator-boot-on;
                 };

                 &usbotg1 {
                                vbus-supply = <&reg_usb_otg1_vbus>;
                                over-current-active-low;
                                status = "okay";
                 };

Thanks
Stefan

[1] - https://www.ti.com/lit/ds/symlink/tusb321ai.pdf
>
> Thanks,
> Xu Yang


  reply	other threads:[~2026-06-24 10:05 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2026-06-23 10:23 chipidea: usbmisc_imx: i.MX93 support Stefan Wahren
2026-06-24  2:50 ` Xu Yang
2026-06-24  6:30   ` Stefan Wahren
2026-06-24  9:11     ` Xu Yang
2026-06-24 10:05       ` Stefan Wahren [this message]
2026-06-25  3:07         ` Xu Yang

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=07bc94cf-2b89-45ce-b36e-d07af6749ef9@gmx.net \
    --to=wahrenst@gmx.net \
    --cc=Frank.Li@nxp.com \
    --cc=alexander.stein@ew.tq-group.com \
    --cc=gregkh@linuxfoundation.org \
    --cc=jun.li@nxp.com \
    --cc=linux-arm-kernel@lists.infradead.org \
    --cc=linux-usb@vger.kernel.org \
    --cc=xu.yang_2@nxp.com \
    --cc=xu.yang_2@oss.nxp.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox