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

Neil Armstrong narmstrong at baylibre.com
Thu Apr 30 14:27:55 CEST 2020


On 29/04/2020 20:04, Simon Glass wrote:
> 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
> 

Sure,

Thanks,
Neil


More information about the U-Boot mailing list