[PATCH v2 0/2] gpio: add gpio open-drain & open-source emulation

Neil Armstrong narmstrong at baylibre.com
Tue May 5 10:43:16 CEST 2020


When a line is in open-drain or open-source mode, U-Boot doesn't handle it
directly.

Let's add gpio open-drain & open-source emulation in gpio u-class to make
it transparent to driver using a gpio line from DT.

Changes since v1:
- fixed all open-drain/open source cases
- updated dm gpio test

Neil Armstrong (2):
  gpio: emulate open drain & open source in dm_gpio_set_value()
  test: dm: update test for open-drain/open-source emulation in
    gpio-uclass

 arch/sandbox/dts/test.dts  |  4 +-
 drivers/gpio/gpio-uclass.c | 15 +++++++
 test/dm/gpio.c             | 89 ++++++++++++++++++++++++++++++++++++++
 3 files changed, 107 insertions(+), 1 deletion(-)

-- 
2.22.0



More information about the U-Boot mailing list