Olimex Support Forum

OLinuXino Android / Linux boards and System On Modules => A20 => Topic started by: salviador on June 30, 2016, 05:52:26 PM

Title: USB host enable/disable power
Post by: salviador on June 30, 2016, 05:52:26 PM
Hi. I have this board " A20-OLinuXIno-LIME2"

In the Schematic I notice that USB is connect SY6250, the pin 4 (EN) USBx-DRV is drive to ARM.

My question is , How to drive with bash or python this pin for enable or disable power in usb host?

(https://s32.postimg.org/58jcwgszl/MWSnap032.jpg) (https://postimg.org/image/58jcwgszl/)
Title: Re: USB host enable/disable power
Post by: Gerrit on June 30, 2016, 06:28:20 PM
USB2-DRV and USB1-DRV are GPIO PH3 and PH6 if you assign a pin to them in the fex file you should be able to change them in bash