- 积分
- 14
贡献66
飞刀13 FD
注册时间2017-5-10
在线时间1 小时
扫一扫,手机访问本帖
|
Hi,
使用贵公司imx6u核心板,发现USB OTG无法使用. USB_OTG_ID接高,usb应该devices,编译usb gadget U盘,接入PC机
测量USB VBUS为5V,串口无任何输出,udc加打印,发现PC机都没有去枚举imx6ul.
USB_OTG_ID接地应该为usb host,此时串口输出:
root@freescale ~$ [ 1124.648580] ci_hdrc ci_hdrc.0: timeout waiting for 00000800 in 12
[ 1124.654792] ci_hdrc ci_hdrc.0: EHCI Host Controller
[ 1124.662448] ci_hdrc ci_hdrc.0: new USB bus registered, assigned bus number 2
[ 1124.688475] ci_hdrc ci_hdrc.0: USB 2.0 started, EHCI 1.00
[ 1124.700570] hub 2-0:1.0: USB hub found
[ 1124.713394] hub 2-0:1.0: 1 port detected
[ 1180.245562] ci_hdrc ci_hdrc.0: remove, state 4
[ 1180.252721] usb usb2: USB disconnect, device number 1
[ 1180.265053] ci_hdrc ci_hdrc.0: USB bus 2 deregistered
[ 1212.174466] ci_hdrc ci_hdrc.0: EHCI Host Controller
[ 1212.182080] ci_hdrc ci_hdrc.0: new USB bus registered, assigned bus number 2
[ 1212.208461] ci_hdrc ci_hdrc.0: USB 2.0 started, EHCI 1.00
[ 1212.220611] hub 2-0:1.0: USB hub found
这个是正确的,但usb vbus没有5V电压。VBUS_EN和开发板一样使用LCD_HSYNC,我们没有接屏,dts把lcd io全屏蔽了。
dts如下:
pinctrl_usb_otg1_id: usbotg1idgrp {
fsl,pins = <
MX6UL_PAD_GPIO1_IO00__ANATOP_OTG1_ID 0x17059
>;
};
pinctrl_usb_otg1: usbotg1grp {
fsl,pins = <
MX6UL_PAD_LCD_HSYNC__GPIO3_IO02 0x10b0
>;
};
reg_usb_otg1_vbus: regulator@2 {
compatible = "regulator-fixed";
reg = <2>;
pinctrl-names = "default";
pinctrl-0 = <&pinctrl_usb_otg1>;
regulator-name = "usb_otg1_vbus";
regulator-min-microvolt = <5000000>;
regulator-max-microvolt = <5000000>;
gpio = <&gpio3 2 GPIO_ACTIVE_HIGH>;
enable-active-high;
};
&usbotg1 {
vbus-supply = <®_usb_otg1_vbus>;
dr_mode = "otg";
pinctrl-names = "default";
pinctrl-0 = <&pinctrl_usb_otg1_id>;
srp-disable;
hnp-disable;
adp-disable;
status = "okay";
};
|
|