cancel
Showing results for 
Search instead for 
Did you mean: 

The usb OTG can not recognise the hogplug devices

SChen.11
Associate III

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?

1 ACCEPTED SOLUTION

Accepted Solutions
PatrickF
ST Employee

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.

View solution in original post

2 REPLIES 2
PatrickF
ST Employee

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.

Thanks, it's help for me.