IMX6SX USB: how to enable/disable internal 1.5K pullup for USB D+ line?
‎11-15-2019
01:30 AM
2,803 Views
liushuo
Contributor I
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
I'm using USBOTG2 in peripheral mode. After loading the USB gadget serial driver(g_serial.ko), the D+ line is automatically pulled HIGH, even though it is not connected to a host yet. However, I don't want the D+ line to be pulled up if it's not connected to the host. Is it possible to control this D+ line?
I found the following information online. Is this "firmware control" supported by IMX6SX? Thanks.
Speed Identification
A USB device must indicate its speed by pulling either the D+ or D- line high to 3.3 volts. A full speed device, pictured below will use a pull up resistor attached to D+ to specify itself as a full speed device. These pull up resistors at the device end will also be used by the host or hub to detect the presence of a device connected to its port. Without a pull up resistor, USB assumes there is nothing connected to the bus. Some devices have this resistor built into its silicon, which can be turned on and off under firmware control, others require an external resistor.
2 Replies
‎11-17-2019
09:49 AM
2,634 Views


NXP TechSupport
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
According to the Reference Manual 67.2.5.4 Switchable 1.5KΩ USB_DP Pullup Resistor
This product contains a switchable 1.5 KΩ pullup resistor on the USB_n_DP signal. This resistor is switched on to indicate to the host/hub controller that a full-speed-capable device is on the USB cable, powered on, and ready. This resistor is switched off at power-on reset so the host does not recognize a USB device until the processor software enables the announcement of a full-speed device.
However, we do not recommend that you manually change this configuration, because the USB driver will control it.
‎11-17-2019
07:07 PM
2,633 Views
liushuo
Contributor I
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Thanks for your answer!
