USB over-current detection

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

USB over-current detection

Jump to solution
3,116 Views
Kazuma_Sasaki
Senior Contributor I

Hi,

In our products, we are using over-current detection to control Vbus supply using USB_H1_PWR pin.

When iMX6DL detect USB over-current event via USB_H1_OC pin, iMX6DL assert a USB_H1_PWR pin soon.

We don't would like to assert USB_H1_PWR signal if the input of the over-current event is less than 1ms.

Is it possible by any register settings change or software change? 

<Our Environment>

SoC : i.MX6DL

OS : Linux BSP 4.1.15_2.0.0_ga

Best Regards,

Kazuma Sasaki.

Labels (1)
Tags (1)
0 Kudos
Reply
1 Solution
2,946 Views
igorpadykov
NXP Employee
NXP Employee

Hi Kazuma

>Is it possible by any register settings change or software change? 

for delay there is no hardware register setting, delay control may be provided via software.

Best regards
igor
-----------------------------------------------------------------------------------------------------------------------
Note: If this post answers your question, please click the Correct Answer button. Thank you!
-----------------------------------------------------------------------------------------------------------------------

View solution in original post

0 Kudos
Reply
8 Replies
2,947 Views
igorpadykov
NXP Employee
NXP Employee

Hi Kazuma

>Is it possible by any register settings change or software change? 

for delay there is no hardware register setting, delay control may be provided via software.

Best regards
igor
-----------------------------------------------------------------------------------------------------------------------
Note: If this post answers your question, please click the Correct Answer button. Thank you!
-----------------------------------------------------------------------------------------------------------------------

0 Kudos
Reply
2,946 Views
Kazuma_Sasaki
Senior Contributor I

Hi Igor,

I appreciate your support.

I am checking usb driver's source code in linux BSP.

But, I could not find controlling code.

Could you please point-out source code asserting USB_H1_PWR signal?

Best Regards,

Kazuma Sasaki.

0 Kudos
Reply
2,946 Views
igorpadykov
NXP Employee
NXP Employee

Hi Kazuma

some third party boards control it in uboot:

cm_fx6.c\cm_fx6\compulab\board - uboot-imx - i.MX U-Boot 

One can add additional control for it in usb driver codes

using Linux 4.1.15_2.1.0 BSP & Multimedia Codecs Documentation

and driver sources

chipidea\usb\drivers - linux-imx - i.MX Linux kernel 

Best regards
igor

0 Kudos
Reply
2,946 Views
Kazuma_Sasaki
Senior Contributor I

Hi Igor,

Thank you so much. I've checked their design. it looks like using GPIO pin instead of USB_H1_PWR pin.
Which register should we control to output USB_H1_PWR signal?

Best Regards,
Kazuma Sasaki.

0 Kudos
Reply
2,946 Views
igorpadykov
NXP Employee
NXP Employee

Hi Kazuma

if gpio is used as USB_H1_PWR signal, it is necessary to use

gpio registers described in Chapter 29 General Purpose Input/Output (GPIO)

i.MX 6Solo/6DualLite Applications Processor Reference Manual

Best regards
igor

0 Kudos
Reply
2,946 Views
Kazuma_Sasaki
Senior Contributor I

Hi Igor,

Sorry for the confusion.

From RM:

pastedImage_1.png

- We are configuring EIM_D31 pad as USB_H1_PWR function.

- EIM_D31 pad is connecting to enable pad of power IC for cutting VBUS supply.

- When iMX6 detect over-current event, I am expecting EIM_D31 output high signal. 

I would like to know the control procedure outputting  a high signal from EIM_D31 pad with USB_H1_PWR function.

Best Regards,

Kazuma Sasaki.

0 Kudos
Reply
2,946 Views
igorpadykov
NXP Employee
NXP Employee

Hi Kazuma

since this is new question please create new thread for it.

Original was about software delay and it is answered.

Best regards
igor

0 Kudos
Reply
2,946 Views
Kazuma_Sasaki
Senior Contributor I

Hi Igor,

Okay, Thank you for your advice. I created new thread.

https://community.nxp.com/message/1272205 

Best Regards,

Kazuma Sasaki.

0 Kudos
Reply