sandbox, test: add test for GPIO_HOG function
authorHeiko Schocher <hs@denx.de>
Fri, 22 May 2020 09:08:58 +0000 (11:08 +0200)
committerTom Rini <trini@konsulko.com>
Sun, 5 Jul 2020 12:06:09 +0000 (08:06 -0400)
commit9ba84329dc45f28f8581e95de155b5bf0373bb3d
tree7a276566b545e1a8df7f2113d67baaace3c5b2e8
parentcd2faeba1abc08e5adba736e75dc665742cc310c
sandbox, test: add test for GPIO_HOG function

currently gpio hog function is not tested with "ut dm gpio"
so add some basic tests for gpio hog functionality.

For this enable GPIO_HOG in sandbox_defconfig, add
in DTS some gpio hog entries, and add testcase in
"ut dm gpio" command.

Signed-off-by: Heiko Schocher <hs@denx.de>
Reviewed-by: Simon Glass <sjg@chromium.org>
arch/sandbox/dts/test.dts
configs/sandbox64_defconfig
configs/sandbox_defconfig
configs/sandbox_flattree_defconfig
configs/sandbox_spl_defconfig
test/dm/gpio.c