From: Neil Armstrong Date: Thu, 30 Apr 2020 14:27:55 +0200 Subject: [PATCH] gpio: emulate open drain & open source in dm_gpio_set_value() In-Reply-To: References: <20200429080634.355-1-narmstrong@baylibre.com> Message-ID: <0d92a05f-049f-06cd-18f6-bebd04555f48@baylibre.com> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de 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 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 >> --- >> drivers/gpio/gpio-uclass.c | 13 +++++++++++++ >> 1 file changed, 13 insertions(+) > > Can you update the GPIO test please? > > Regards, > Simon > Sure, Thanks, Neil