Skip to main content
SChen.11
Associate III
June 21, 2019
Solved

The usb OTG can not recognise the hogplug devices

  • June 21, 2019
  • 1 reply
  • 1216 views

Hi, my custom board has OTG interface. So I reference the dk2 board to configure usbotg_hs as otg mode. But now, the otg interface only recognise on system starting up. It's can not recoginse the hotplug devices. Below is my dts code. My board use ID line to switch the OTG_VBUS.

696 &usbh_ehci {
697 phys = <&usbphyc_port0>;
698 phy-names = "usb";
699 status = "okay";
700 };
701
702 &usbotg_hs {
703 pinctrl-names = "default";
704 pinctrl-0 = <&usbotg_hs_pins_a>;
705 dr_mode = "otg";
706 phys = <&usbphyc_port1 0>;
707 phy-names = "usb2-phy";
708 status = "okay";
709 };
710
711 &usbphyc {
712 vdd3v3-supply = <&vdd_usb>;
713 status = "okay";
714 };
715
716 &usbphyc_port0 {
717 st,phy-tuning = <&usb_phy_tuning>;
718 };
719
720 &usbphyc_port1 {
721 st,phy-tuning = <&usb_phy_tuning>;
722 };

Now, on my some test cases. The system only recognise after I manual rmmod and insmod the dwc2 driver module, then usb device can be probe. Use lsusb can watch the new usb device info. Did I missing something about usbotg_hs sectiong in dts file?

This topic has been closed for replies.
Best answer by PatrickF

Hello,

this issue in usb dwc2 driver should have been corrected in latest OpenSTLinux kernel release r1.3, see https://wiki.st.com/stm32mpu/wiki/STM32MP15_OpenSTLinux_release_note_-_v1.0.0#v1-0-3 and https://github.com/STMicroelectronics/linux/releases/tag/v4.19-stm32mp-r1.3

1 reply

PatrickF
PatrickFBest answer
Technical Moderator
June 21, 2019

Hello,

this issue in usb dwc2 driver should have been corrected in latest OpenSTLinux kernel release r1.3, see https://wiki.st.com/stm32mpu/wiki/STM32MP15_OpenSTLinux_release_note_-_v1.0.0#v1-0-3 and https://github.com/STMicroelectronics/linux/releases/tag/v4.19-stm32mp-r1.3

In order to give better visibility on the answered topics, please click on 'Accept as Solution' on the reply which solved your issue or answered your question.NEW ! Sidekick STM32 AI agent, see here
SChen.11
SChen.11Author
Associate III
June 21, 2019

Thanks, it's help for me.