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.
已解决! 转到解答。
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!
-----------------------------------------------------------------------------------------------------------------------
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!
-----------------------------------------------------------------------------------------------------------------------
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.
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
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.
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
Hi Igor,
Sorry for the confusion.
From RM:
- 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.
Hi Igor,
Okay, Thank you for your advice. I created new thread.
https://community.nxp.com/message/1272205
Best Regards,
Kazuma Sasaki.