This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

AM335x USBx_DRVVBUS as GPIO

I have custom AM335x hardware and am not using USB0 or USB1.  I've hooked up USB0/1 DRVVBUS for use as GPIO but am having trouble configuring the proper registers for GPIO mode (GPIO0_18 and GPIO3_13).  Any help and/or examples would be appreciated.

  • Hi Jared,
     
    The relevant control module registers are:
     
    conf_usb0_drvvbus at address 0x44E1 0A1C
    conf_usb1_drvvbus at address 0x44E1 0A34
     
    For GPIO you should set the mode bits to 7. See AM335X Technical Reference Manual section 9.3.50 for details on register settings.