On 8/20/19 2:09 PM, Timo Schlüßler wrote: >> First add support for the Inputs and Outputs. >I will give it a try. Please find attached a first try. I tested all GPIOs with a MCP2515 connected to a Raspberry Pi 3 Model B. I have two questions: 1. How to handle power management? Does the driver have to restore the previous gpio state? 2. I used spi_device.modalias as name for the gpiochip because that translates nicely to mcp{251{0,5},25625} at least when loaded by the device tree. I didn't test but suppose that the same name will be used when loaded without device tree. Is that correct? Regards Timo Schlüßler
Attachment:
mcp251x-gpio-v1.patch
Description: mcp251x-gpio-v1.patch