Re: [PATCH] gpio: emulate open drain & open source in dm_gpio_set_value()

2020-04-30 Thread Neil Armstrong
On 29/04/2020 20:04, Simon Glass wrote: > Hi Neil, > > On Wed, 29 Apr 2020 at 02:06, Neil Armstrong wrote: >> >> Handle the GPIOD_OPEN_DRAIN & GPIOD_OPEN_SOURCE flags to emulate open drain >> and open source by setting the GPIO line as input depending on the >> requested value. >> >> The behaviou

Re: [PATCH] gpio: emulate open drain & open source in dm_gpio_set_value()

2020-04-29 Thread Simon Glass
Hi Neil, On Wed, 29 Apr 2020 at 02:06, Neil Armstrong wrote: > > Handle the GPIOD_OPEN_DRAIN & GPIOD_OPEN_SOURCE flags to emulate open drain > and open source by setting the GPIO line as input depending on the > requested value. > > The behaviour is taken from the Linux gpiolib. > > It notably pe

[PATCH] gpio: emulate open drain & open source in dm_gpio_set_value()

2020-04-29 Thread Neil Armstrong
Handle the GPIOD_OPEN_DRAIN & GPIOD_OPEN_SOURCE flags to emulate open drain and open source by setting the GPIO line as input depending on the requested value. The behaviour is taken from the Linux gpiolib. It notably permits enabling a GPIO regulator used as Open Drain on the Amlogic G12A/g12B/S