2019-06-21 01:41 AM
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?
Solved! Go to Solution.
2019-06-21 06:02 AM
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
2019-06-21 06:02 AM
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
2019-06-21 10:51 AM
Thanks, it's help for me.