We use cookies to provide our visitors with an optimal site experience. View our privacy notice and cookie notice to learn more about how we use cookies and how to manage your settings. By proceeding on our website you consent to the use of cookies.
Having a few small issues getting started with the DK2 board following the rather excellent instructions (thanks Robert!) at Debian: Getting Started with the STM32MP157 , specifically the biggest issue is that my USB powers down after boot. Extracts from from syslog;
[ 14.896426] dwc2 49000000.usb-otg: supply vusb_d not found, using dummy regulator
[ 14.896835] dwc2 49000000.usb-otg: supply vusb_a not found, using dummy regulator
[ 14.985167] stm32-dwmac 5800a000.ethernet eth0: Link is Up - 1Gbps/Full - flow control off
[ 14.985239] IPv6: ADDRCONF(NETDEV_CHANGE): eth0: link becomes ready
[ 15.028098] dwc2 49000000.usb-otg: EPs: 9, dedicated fifos, 952 entries in SPRAM
[ 15.036614] dwc2 49000000.usb-otg: DWC OTG Controller
[ 15.036694] dwc2 49000000.usb-otg: new USB bus registered, assigned bus number 2
[ 15.037272] dwc2 49000000.usb-otg: irq 53, io mem 0x49000000
[ 15.041225] usb usb2: New USB device found, idVendor=1d6b, idProduct=0002, bcdDevice= 5.10
[ 15.041251] usb usb2: New USB device strings: Mfr=3, Product=2, SerialNumber=1
[ 15.041263] usb usb2: Product: DWC OTG Controller
[ 15.041274] usb usb2: Manufacturer: Linux 5.10.41-armv7-lpae-x41 dwc2_hsotg
[ 15.041285] usb usb2: SerialNumber: 49000000.usb-otg
[ 15.043447] hub 2-0:1.0: USB hub found
[ 15.045352] hub 2-0:1.0: 1 port detected
…and if I have a usb memory stick plugged in at this point it will init it, but later;
[ 33.763695] vref: supplied by vdd
[ 33.763930] reg11: supplied by vdd
[ 33.764060] usb33: supplied by vdd_usb
[ 33.764222] vref: disabling
[ 33.764241] reg11: disabling
[ 33.764268] vdda: disabling
…and my memory stick is still there as /dev/sda1, but gives me access errors. Really a bit stuck on this one!
The second issue is that I cannot bring up WiFi, but I’ll keep fighting on that one because I suspect the problem is between the screen and the keyboard rather than anywhere inside the SoC.
Not sure I quite understand what you’re saying. I’m using the 4-port USB-A on the board which, I think, is behind a hub. I don’t see those two phrases (regulator-always-on, regulator-boot-on) in the file armv7-lpae-multiplatform/KERNEL/arch/arm/boot/dts/stm32mp151.dtsi anywhere…are you suggesting I should add them under the usbotg_hs and usbphyc configurations?
So as soon as the 3v3 rail is turns ‘off’ then ‘on’ the usb phy reset’s… I suppose that would work, i’d rather that was a gpio we could toggle… But i have a feeling, the usb hub is reseting when jumping from u-boot → linux…
Robert,
I tried the device tree change, with no effect. The v3v3 matches to what you have above and doesn’t seem to an issue.
The usb is powering up correctly and the hub is being initialised by Linux. I think the power supplies might be a red herring since the usb doesn’t seem to be dependent on any of the supplies that are being disabled. From what I can see even VDDA33 on U7 is powered from the 3v3 rail, and the SDA/SDL are DNF so I don’t see that having any impact either. I’d be very surprised if the 3v3 were being toggled as it is needed all over the place.
If I have a keyboard plugged in at boot it comes up like this;
001/input/input2
Jun 22 21:26:00 arm kernel: [ 19.591324] hid-generic 0003:0472:0065.0001: input,hidraw0: USB HID v1.00 Keyboard [Chicony PFU-65 USB Keyboard] on usb-5800d000.usb-1.2
.1/input0
…
The usb interface that is in use appears to be defined by this;
So, just to run this one to ground. The problem is reg11 in stm32mp151.dsti. If you modify that to always be on, then the USB behaves itself. @RobertCNelson Is this a patch that I need to submit somewhere, or can you handle it from this PR?
Great! I’m off to bed but will pick this up again tomorrow. The WiFi looks like it might have gotten tangled in the brcm* → cy* renaming process, but I’ve not looked into that one yet. Once again, thanks for the great work on this. It’s appreciated.