使用usb otg 1烧录和adb调试。烧录ok,adb 不通。
其中usbotg3作为host是好的,可以插鼠标使用。
麻烦大家帮忙分析一下,谢谢大家了!
软件配置
&usbotg1 {
vbus-supply = <®_usb_otg1_vbus>;
dr_mode = "otg";/*peripheral*//* host */
srp-disable;
hnp-disable;
adp-disable;
power-polarity-active-high;
disable-over-current;
status = "okay";
};
&usbotg3 {
vbus-supply = <®_usb_otg1_vbus>;
dr_mode = "host";/*peripheral*//* host */
srp-disable;
hnp-disable;
adp-disable;
power-polarity-active-high;
disable-over-current;
status = "okay";
};
原理图
Solved! Go to Solution.
Hello @xinchuan_2023,
I hope you are doing well.
"+ setprop vendor.usb.config "ci_hdrc.0"
I'm glad that this change made the issue resolved.
Hence Can I mark this case as closed?
Thanks & Regards,
Sanket Parekh
Hello @xinchuan_2023,
I hope you are doing well.
Please provide more details on the issue.
What are the error logs related to that?
Please provide the dmesg logs or console logs to debug the issue further.
Thanks & Regards,
Sanket Parekh
Hello @xinchuan_2023,
I hope you are doing well.
Please make sure to check if one has soldered anything related to USB or not, if it's the case one can refer to the below-given link for reference.
https://community.nxp.com/t5/i-MX-Processors/imx6-USB-OTG/td-p/1216358
Please also make sure to check the voltage is ok.
One can manage the USB Host support through the kernel configuration options:
Support for Host-side USB (CONFIG_USB)
EHCI HCD (USB 2.0) support (CONFIG_USB_EHCI_HCD)
ChipIdea Highspeed Dual Role Controller (CONFIG_USB_CHIPIDEA)
ChipIdea device controller (CONFIG_USB_CHIPIDEA_UDC)
ChipIdea host controller (CONFIG_USB_CHIPIDEA_HOST)
Freescale MXS USB PHY support (CONFIG_USB_MXS_PHY)
One can manage the USB OTG support through the kernel configuration option:
OTG support (CONFIG_USB_OTG)
Please make sure to check the device tree configurations from the below-given location in the Linux source code.
Documentation/devicetree/bindings/usb/fsl-usb.txt.
One can find USB HOST as well as OTG-related configurations.
I hope this helps!
Thanks & Regards,
Sanket Parekh
Hello Sanket ,
make changes as below. adb is ok.
- setprop vendor.usb.config "5b110000.usb3"
+ setprop vendor.usb.config "ci_hdrc.0"
thanks.
Hello @xinchuan_2023,
I hope you are doing well.
"+ setprop vendor.usb.config "ci_hdrc.0"
I'm glad that this change made the issue resolved.
Hence Can I mark this case as closed?
Thanks & Regards,
Sanket Parekh
Hello Sanket,
Please mark this case as closed.
Thanks.