Re: [RFC PATCH 2/5] gpio: gpiolib: Add OF support for maintaining GPIO values on reset

2017-10-20 Thread Andrew Jeffery
On Fri, 2017-10-20 at 09:18 +0200, Linus Walleij wrote: > On Fri, Oct 20, 2017 at 5:37 AM, Andrew Jeffery > wrote: >  > > @@ -32,6 +32,7 @@ enum of_gpio_flags { > > OF_GPIO_SINGLE_ENDED = 0x2, > > OF_GPIO_OPEN_DRAIN = 0x4, > > OF_GPIO_SLEEP_MAY_LOSE_VALUE

Re: [RFC PATCH 2/5] gpio: gpiolib: Add OF support for maintaining GPIO values on reset

2017-10-20 Thread Linus Walleij
On Fri, Oct 20, 2017 at 5:37 AM, Andrew Jeffery wrote: > @@ -32,6 +32,7 @@ enum of_gpio_flags { > OF_GPIO_SINGLE_ENDED = 0x2, > OF_GPIO_OPEN_DRAIN = 0x4, > OF_GPIO_SLEEP_MAY_LOSE_VALUE = 0x8, > + OF_GPIO_RESET_TOLERANT = 0x16, Now you're mixing up

[RFC PATCH 2/5] gpio: gpiolib: Add OF support for maintaining GPIO values on reset

2017-10-19 Thread Andrew Jeffery
Add flags and the associated flag mappings between interfaces to enable GPIO reset tolerance to be specified via devicetree. Signed-off-by: Andrew Jeffery --- drivers/gpio/gpiolib-of.c | 2 ++ drivers/gpio/gpiolib.c | 5 + include/dt-bindings/gpio/gpio.h | 4