pinctrl: mcp23s08: Add optional reset GPIO
authorAndreas Kaessens <akaessens@gmail.com>
Thu, 10 Jun 2021 13:24:37 +0000 (15:24 +0200)
committerLinus Walleij <linus.walleij@linaro.org>
Fri, 11 Jun 2021 23:58:10 +0000 (01:58 +0200)
commit4e73bfa3ee37277e3f3e636786fd52d89273bd79
treeb454c349471be824e1c10deeb3e7f92a413c9824
parentca199e1952cc7cfce9b416547108b52df05f61d4
pinctrl: mcp23s08: Add optional reset GPIO

The MCP23x port expander RESET# line can be connected to a host GPIO.
The optional reset-gpio must be set to LOW if the reset is asserted
at probing time.

On page 5 in the datasheet [0] the "Device Active After Reset high"
time is specified at 0 µs. Therefore no waiting is needed after the
reset transition.

[0] https://ww1.microchip.com/downloads/en/DeviceDoc/20001952C.pdf

Signed-off-by: Andreas Kaessens <akaessens@gmail.com>
Signed-off-by: Darian Biastoch <d.biastoch@gmail.com>
Link: https://lore.kernel.org/r/20210610132438.3085841-1-akaessens@gmail.com
Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
drivers/pinctrl/pinctrl-mcp23s08.c
drivers/pinctrl/pinctrl-mcp23s08.h