USB over-current detection

取消
显示结果 
显示  仅  | 搜索替代 
您的意思是: 
已解决

USB over-current detection

跳至解决方案
4,563 次查看
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.

标签 (1)
标记 (1)
0 项奖励
回复
1 解答
4,393 次查看
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 项奖励
回复
8 回复数
4,394 次查看
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 项奖励
回复
4,393 次查看
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 项奖励
回复
4,393 次查看
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 项奖励
回复
4,393 次查看
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 项奖励
回复
4,393 次查看
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 项奖励
回复
4,393 次查看
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 项奖励
回复
4,393 次查看
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 项奖励
回复
4,393 次查看
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 项奖励
回复