Re: [PATCH v9] USB: serial: cp210x: Add support for GPIOs on CP2108

2021-04-19 Thread Johan Hovold
On Thu, Apr 08, 2021 at 05:36:07PM +0700, Pho Tran wrote: > From: Pho Tran > > Similar to other CP210x devices, GPIO interfaces (gpiochip) should be > supported for CP2108. > > CP2108 has 4 serial interfaces but only 1 set of GPIO pins are shared > to all of those interfaces. So, just need to in

[PATCH v9] USB: serial: cp210x: Add support for GPIOs on CP2108

2021-04-08 Thread Pho Tran
From: Pho Tran Similar to other CP210x devices, GPIO interfaces (gpiochip) should be supported for CP2108. CP2108 has 4 serial interfaces but only 1 set of GPIO pins are shared to all of those interfaces. So, just need to initialize GPIOs of CP2108 with only one interface (I use interface 0). It