Hi, I found this reference to axp209 gpio in u-boot code http://code.metager.de/source/xref/denx/u-boot/drivers/power/axp209.c Could we port this code to linux kernel ?
Regards, Eric On Saturday, March 21, 2015 at 12:42:56 PM UTC+1, Hans de Goede wrote: > > Hi, > > On 20-03-15 21:31, Karsten Merker wrote: > > On Fri, Mar 20, 2015 at 09:19:46PM +0100, Karsten Merker wrote: > > > >> I have just tried to take a look at the LeMaker Banana Pi schematics > >> on lemaker.org and am a bit confused... > >> > >> According to them, the OTG VBUS power supply is controlled by a SY6280 > >> switch, whose enable pin is driven by the USB0-DRV line. This USB0-DRV > >> line appears to be connected to both PB9 on the SoC as well as to GPIO2 > >> on the AXP209. Any idea why it goes to _both_ the A20 and the AXP209? > > > > Sorry, I misread the schematics - it goes to N_VBUSEN on the AXP209, > > not to GPIO2, so it is only controlled from the A20 via PB9. > > Thanks for figuring this out, unfortunately vbus-det is connected to > gpio1 of the axp209, and not to PH5 as the fex file says, so we need > axp209 gpio support in the kernel before we can get otg support going > on the bananapi. > > Regards, > > Hans > -- 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.