On Tue, May 27, 2014 at 10:00 AM, Johan Hovold <jhovold@xxxxxxxxx> wrote: > On Tue, May 27, 2014 at 09:46:16AM +0200, Benjamin Henrion wrote: >> On Tue, May 27, 2014 at 9:35 AM, Johan Hovold <jhovold@xxxxxxxxx> wrote: >> > [ +CC: linux-usb ] >> > >> > On Thu, May 15, 2014 at 01:31:04PM +0200, Benjamin Henrion wrote: >> >> Hi, >> >> >> >> I am using this patch for supporting cp2104 GPIOs: >> >> >> >> https://github.com/ondrej1024/crelay/blob/master/cp210x/kernel-3.10.y/cp210x.c.patch >> >> >> >> Any idea if you plan to integrate GPIO support in cp210x.c? >> > >> > Not with the interface of the patch you refer to (driver-specific ioctl) >> > at least. >> > >> > We have a generic gpio interface in the kernel which would have to be >> > used. >> > >> > A quick glance at the datasheet also reveals that the gpio pins are >> > only one-time configurable (default to inputs) when flashing the device >> > ROM. So I doubt it'd be worthwhile to try to implement generic support >> >> That's a severe limitation. Do you know if it is the same case for >> FT232R or the new PL2303HX revD? > > I have no idea, sorry. > > But either way, no USB serial driver currently implements GPIO support > AFAIK. I know, most of them uses libusb user space packets with custom code you have to write yourself, like here: http://hackaday.com/2009/09/22/introduction-to-ftdi-bitbang-mode/ I am investigating how I could access those GPIOs via sysfs, which is super easy for many people. -- Benjamin Henrion <bhenrion at ffii.org> FFII Brussels - +32-484-566109 - +32-2-4148403 "In July 2005, after several failed attempts to legalise software patents in Europe, the patent establishment changed its strategy. Instead of explicitly seeking to sanction the patentability of software, they are now seeking to create a central European patent court, which would establish and enforce patentability rules in their favor, without any possibility of correction by competing courts or democratically elected legislators." -- To unsubscribe from this list: send the line "unsubscribe linux-usb" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html