test: dm: update test for pins configuration in gpio
authorPatrick Delaunay <patrick.delaunay@st.com>
Mon, 13 Jan 2020 10:35:14 +0000 (11:35 +0100)
committerTom Rini <trini@konsulko.com>
Fri, 17 Apr 2020 03:06:54 +0000 (23:06 -0400)
commitff52665d03e220ada14e3e02f8d485b48d8c8eaa
treee05a05e9d1e7be9808ab49c7f6e7556b690638c8
parent2c0f782e0fc0f0dcc619d81237c3a8718f4e282f
test: dm: update test for pins configuration in gpio

Add tests for new API set_dir_flags and set_dir_flags and associated
code in gpio uclass.

Test support for new flags GPIO_OPEN_DRAIN, GPIO_OPEN_SOURCE
GPIO_PULL_UP and GPIO_PULL_DOWN.

Reviewed-by: Simon Glass <sjg@chromium.org>
Signed-off-by: Patrick Delaunay <patrick.delaunay@st.com>
arch/sandbox/dts/test.dts
arch/sandbox/include/asm/gpio.h
drivers/gpio/sandbox.c
test/dm/gpio.c
test/dm/test-fdt.c