USB works for me. Didn't check before ... but I did add this to ATF. This is boot log:
http://ix.io/12WM Dne četrtek, 22. marec 2018 21.48.08 UTC+1 je oseba André Przywara napisala: > > Hi, > > On 22/03/18 10:45, Martin Lucina wrote: > > On Tuesday, 20.03.2018 at 11:10, Andre Przywara wrote: > >>> Tried a flash drive in the standard-size USB with these changes, > nothing > >>> shows up. Is there an easy way of testing the micro-USB (OTG?) port? > >> > >> Can you try to measure if there is 5V on the outer pins of the USB > socket? > >> > >> For testing I would use an USB-OTG adaptor, that kind of dongle like > >> cable with a micro-B plug on one end and an USB A socket on the other > >> (used with tablets and phones to connect normal USB peripherals). Then > >> use a normal flash drive. This avoids you setting up the USB OTG/device > >> stuff in Linux. You might want to use: dr_mode = "host"; in the DT in > >> this case. > > > > Ok, I just measured both ports (via a cannibalised USB cable + OTG for > the > > micro-USB) and there's no power on either of them. Cross-checked the > > measurement setup against an old Thinkpad to be sure. > > OK, remote debugging! > > Can you please try to play around with GPIO PG9 from Linux? Basically: > # cd /sys/class/gpio > # echo 201 > export > # cd gpio201 > # echo out > direction > # echo 1 > value > > And then try to measure the USB voltage again? Try 0 for "value" as > well. If the export complains, try to remove the DT parts I gave you > (switch back to the normal mainline DT). 201 is ('G'-'A') * 32 + 9. > Something like that should enable the voltage on the USB-A socket > (regardless of the DT used). > > For the micro-B port: Can you try to add the following line to the ATF > source, into plat/sun50iw1p1/sunxi_power.c, somewhere in the > pmic_setup() function: > sunxi_pmic_write(0x30, sunxi_pmic_read(0x30) | BIT(2)); > > That should power the DRIVEVBUS/N_VBUSEN pin, ideally turning on the > power of the OTG port. > If that works, I can make a Linux patch to do this there as well. > > Cheers, > Andre > > -- You received this message because you are subscribed to the Google Groups "linux-sunxi" group. To unsubscribe from this group and stop receiving emails from it, send an email to linux-sunxi+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/d/optout.