From patchwork Tue May 5 08:43:16 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Neil Armstrong X-Patchwork-Id: 245106 List-Id: U-Boot discussion From: narmstrong at baylibre.com (Neil Armstrong) Date: Tue, 5 May 2020 10:43:16 +0200 Subject: [PATCH v2 0/2] gpio: add gpio open-drain & open-source emulation Message-ID: <20200505084318.15307-1-narmstrong@baylibre.com> 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(-)