Tool/software: Linux
Team
Our custom board use usb2_dx and gpmc_wen.gpio2_25 as OTG port. We try enable it by Device Tree as detailed below
&usb2 { status = "okay"; srp-disable; hnp-disable; adp-disable; }; &omap_dwc3_2 { status = "okay"; extcon = <&usb_id2>; }; usb_id2: usb_id2_extcon { pinctrl-names = "default"; pinctrl-0 = <&pinctrl_usb_id2>; compatible = "linux,extcon-usb-gpio"; id-gpio = <&gpio2 25 GPIO_ACTIVE_HIGH>; }; pinctrl_usb_id2: usb_id2_grp { pinctrl-single,pins = < DRA7XX_CORE_IOPAD(0x34cc, (PIN_INPUT_PULLUP | MUX_MODE14)) /* gpmc_wen.gpio2_25 */ >; };
We have several problems
- USB ID pin (gpmc_wen.gpio2_25) has 0V (zero) level, but it is configured as GPIO (mode 0xE) with PULL UP
- usb2_dX port is not working, it doesn't work as HOST (dmesg does't show any message when plugged it in any device and data lines doesn't start J/K USB protocol) nor DEVICE (several PC were tested but any activity was detected using PC dmesg). As HOST role we see that D+ rise to 3v3 and remains steady when device is plugged in
Are we missing anything?