[PATCH v2 13/14] test: dm: update test for pins configuration in gpio

Simon Glass sjg at chromium.org
Mon Dec 30 02:21:17 CET 2019


On Tue, 26 Nov 2019 at 01:49, Patrick Delaunay <patrick.delaunay at st.com> wrote:
>
> 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.
>
> Signed-off-by: Patrick Delaunay <patrick.delaunay at st.com>
> ---
>
> Changes in v2:
> - simplify sandbox GPIO driver: save dir_flags (GPIOD_...)
>   and remove internal flags (GPIOF_...); the previous path
>   "gpio: sandbox: cleanup flag support" is no more needed
> - add unitary test in dm_test_gpio for set_dir_flags
> - add some function check in dm_test_gpio_phandles
> - dm_test_gpio_pin_config change to dm_test_gpio_get_dir_flags
>
>  arch/sandbox/dts/test.dts       | 16 ++++++
>  arch/sandbox/include/asm/gpio.h | 20 ++++++++
>  drivers/gpio/sandbox.c          | 86 +++++++++++++++++++++++++--------
>  test/dm/gpio.c                  | 66 ++++++++++++++++++++++---
>  test/dm/test-fdt.c              |  2 +-
>  5 files changed, 163 insertions(+), 27 deletions(-)

Reviewed-by: Simon Glass <sjg at chromium.org>


More information about the U-Boot mailing list