imx6 USB OC functionality, used GPIOs

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

imx6 USB OC functionality, used GPIOs

1,358 Views
Ikal
Contributor II

Hi, folks!

Is it possible to use GPIOs other than

MX6Q_PAD_KEY_COL4__USBOH3_USBOTG_OC or MX6Q_PAD_EIM_D21__USBOH3_USBOTG_OC

and

MX6Q_PAD_KEY_ROW4__USBOH3_USBOTG_PWR or MX6Q_PAD_EIM_D22__USBOH3_USBOTG_PWR

for the related functions?

As I understood in case of xxx_OC this pin is only used to store the information inside a register, isn’t it?

As far as I know, in case of xxx_PWR it might be possible to enable/disable the USB voltage from USB SW driver by using setting/clearing GPIO function instead of writing to the port ctrl. regsitster, isn’t it?

Or is it all done by the imx hardware block directly without the possibility of modifying the SW driver?

TIA.

Kr, Ingo

Labels (2)
Tags (1)
0 Kudos
3 Replies

1,008 Views
igorpadykov
NXP Employee
NXP Employee

Hi Ingo

you are right: it just stores the information inside a register, so one can use

gpios for these signals, modifying SW driver.

Best regards

igor

-----------------------------------------------------------------------------------------------------------------------

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

-----------------------------------------------------------------------------------------------------------------------

0 Kudos

1,008 Views
Ikal
Contributor II

Hi Igor.

Thanks for your reply.

So, I would assume I have to register an IRQ service for the OC and set the information inside the register, too?

Who is working on that information?

May you give me a hint where to add switching the 5V for the USB OTG part based on the 3.14.38 kernel from the GA Lollipop drop, please?

TIA.

Kr, Ingo

0 Kudos

1,008 Views
igorpadykov
NXP Employee
NXP Employee

Hi Ingo

please look at attached Linux Manual Chapter 41 CHIPIDEA USB Driver,

in particular sect.41.2.2 Source Code Structure

Best regards

igor

0 Kudos