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

Simon Glass sjg at chromium.org
Wed Apr 29 20:04:46 CEST 2020


Hi Neil,

On Wed, 29 Apr 2020 at 02:06, Neil Armstrong <narmstrong at baylibre.com> 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 permits enabling a GPIO regulator used as Open Drain on the
> Amlogic G12A/g12B/SM1 platforms for HDMI output feature.
>
> Signed-off-by: Neil Armstrong <narmstrong at baylibre.com>
> ---
>  drivers/gpio/gpio-uclass.c | 13 +++++++++++++
>  1 file changed, 13 insertions(+)

Can you update the GPIO test please?

Regards,
Simon


More information about the U-Boot mailing list