Skip to content

Commit

Permalink
USB: serial: ftdi_sio: implement GPIO support for FT-X devices
Browse files Browse the repository at this point in the history
This patch allows using the CBUS pins of FT-X devices as GPIO in CBUS
bitbanging mode. There is no conflict between the GPIO and VCP
functionality in this mode. Tested on FT230X and FT231X.

As there is no way to request the current CBUS register configuration
from the device, all CBUS pins are set to a known state when the first
GPIO is requested. This allows using libftdi to set the GPIO pins
before loading this module for UART functionality, a behavior that
existing applications might be relying upon (though no specific case
is known to the authors of this patch).

Signed-off-by: Karoly Pados <pados@pados.hu>
[ johan: minor style changes ]
Signed-off-by: Johan Hovold <johan@kernel.org>
  • Loading branch information
Karoly Pados authored and Johan Hovold committed Sep 26, 2018
1 parent bbc1f57 commit ba93cc7
Show file tree
Hide file tree
Showing 2 changed files with 385 additions and 2 deletions.
Loading

0 comments on commit ba93cc7

Please sign in to comment.