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.

USB2_DRV_VBUS Signal

Hi,

                  I have developed my custom board with DRA7xx_EVM as reference and in EVM USB_DRV_VBUS signal is connected to Active high enable pin IC. But in my custom board, i have used another IC and its enable pin is active low. Where can i change the pin state in u-boot code?

Thanks & Regards,

Ganesh

  • Hello Ganesh,

    See register - CTRL_CORE_PAD_USB1_DRVVBUS on address 0x4A00 3680

    [17] USB1_DRVVBUS_PULLTYPESELECT => 0x0: Pull Down is selected   0x1: Pull Up is selected

    [16] USB1_DRVVBUS_PULLUDENABLE => Enables weak Pull Up/Down 0x0; 0x1: Disables weak Pull Up/Down

    See in the files:

    u-boot:

    /u-boot/board/ti/dra7xx/mux_data.h:

    {USB1_DRVVBUS, (M0 | PIN_INPUT_PULLDOWN | PIN_INPUT_SLEW)}, /* usb1_drvvbus.usb1_drvvbus */

    {USB2_DRVVBUS, (M0 | PIN_INPUT_PULLDOWN | PIN_INPUT_SLEW)}, /* usb2_drvvbus.usb2_drvvbus */

    Kernel:

    board-support/linux/arch/arm/boot/dts/dra72-evm.dts:

     426   usb1_pins: pinmux_usb1_pins {

     427                  pinctrl-single,pins = <

     428: 0x280 (PIN_INPUT_SLEW | MUX_MODE0) /* usb1_drvvbus */

     429                  >;

     430          };

     ...

     432   usb2_pins: pinmux_usb2_pins {

     433                  pinctrl-single,pins = <

     434: 0x284 (PIN_INPUT_SLEW | MUX_MODE0) /* usb2_drvvbus */

     435                  >;

    Best regards,

    Yanko

  • Hi Yanko,


    I have tried by changing to PIN_INPUT_PULLUP. USB2_DRVVBUS, (0x000E0000)}, /* usb2_drvvbus.usb2_drvvbus */. But i want to drive this pin low in the code to get supply for USB, now this pin is at logic high. How to do that?

    Thanks & Regards,
    Ganesh