IMX6UL, enable pullup on USB_n_DP

キャンセル
次の結果を表示 
表示  限定  | 次の代わりに検索 
もしかして: 

IMX6UL, enable pullup on USB_n_DP

2,540件の閲覧回数
bobosv
Contributor II

I would like to enable the pullup on USB_1_DP on an IMX6UL

(for charger detection)

I can find the pullup resistor in figure 66-2 of the datasheet, which shows the 1500 ohm resistor connected to DP pin.

The control signal is named 'RPU_ENABLE'

I can not find this control signal in the register!!

How do i enable this pullup??

/Bo

ラベル(1)
4 返答(返信)

2,333件の閲覧回数
gusarambula
NXP TechSupport
NXP TechSupport

Hello bo sv,

You would need to first enable the override control of the USB_DP on the bits USBPHYx_DEBUGn[ENHSTPULLDOWN] and then control it with bits USBPHYx_DEBUGn[HSTPULLDOWN].  Please check Section 56.3.6 of the i.MX6UL Reference Manual.

I hope this information helps!

0 件の賞賛
返信

2,333件の閲覧回数
bobosv
Contributor II

Hello Gusarambula!

Thank you for your reply, i checked your suggestion, but to me, those bits seem only control the pull down available on the USB transmitter PHY

ENHSTPULLDOWN: Set bit 5 to 1 to override the control of the USB_DP 15-KOhm pulldown.

                                 Set bit 4 to 1 to override the control of the USB_DM 15-KOhm pulldown.

                                 Clear to 0 to disable.

HSTPULLDOWN       Set bit 3 to 1 to pull down 15-KOhm on USB_DP line.

                                  Set bit 2 to 1 to pull down 15-KOhm on USB_DM line.

                                  Clear to 0 to disable.

To me that is the two lower 15000 ohm resistors in Figure 66-2, I want to control the 1500 ohm resistor above those, connected to RPU Enable...

The datasheet mentions that this is what should be done to detect a dedicated charger, in the chapter 66.2.7.3, Charger Detector!

Untitled.png

/Bo

2,333件の閲覧回数
bobosv
Contributor II

Now i found the correct bit!!

I disabled the ENHSTPULLDOWN and HSTPULLDOWN as you suggested Gusarambula

Then i enabled the bit ENDEVPLUGINDETECT

  ENDEVPLUGINDETECT  4     For device mode, enables 200-KOhm pullups for detecting connectivity to the host.

That seems to work formy purposes!

/Bo

2,333件の閲覧回数
gusarambula
NXP TechSupport
NXP TechSupport

Hello Bo Sv,

I'm glad you found the information! Thanks for posting your findings! I'm sure they will help other users.

Just for reference, I would recommend checking for the latest documentation available since the figure you shared is now Figure 56-1 of the latest revision of the i.MX6UL Reference Manual. (I wanted to leave this information on the post in case other users may need to find the image on the document).

Regards,