Unified the handling of CP2108 and other types andĢ. : Patch v5 Modified code according to comment of Johan:ġ. : Patch v6 Fixed build warning reported by kernel test robot : Patch v7 Modified commit message follow Greg's comment. : Patch v8 Fixed build warning reported by kernel test robot Should be mask all pins which are not in GPIO mode in cp2108_gpio_init() Like CP2104, CP2108 have GPIO pins with configurable options. Of the device to use correct data format before sending commands to Will be different from other CP210x devices. This doesn't affect otherīecause CP2108 has 16 GPIO pins, the parameter passed by cp210x functions Instead of u8(in struct cp210x_serial_private). It means just only 1 gpiochipĬP2108 has 16 GPIOs, So data types of several variables need to be is u16 With only one interface (I use interface 0). So, just need to initialize GPIOs of CP2108 Similar to other CP210x devices, GPIO interfaces (gpiochip) should beĬP2108 has 4 serial interfaces but only 1 set of GPIO pins are shared To: johan, gregkh +Cc: linux-usb, linux-kernel, Hung.Nguyen, Tung.Pham, Pho Tran 14:52 ` Johan Hovold 0 siblings, 2 replies 7+ messages in thread USB: serial: cp210x: Add support for GPIOs on CP2108 archive mirror help / color / mirror / Atom feed * USB: serial: cp210x: Add support for GPIOs on CP2108 10:36 Pho Tran
0 Comments
Leave a Reply. |