[PATCH] sandbox, test: change hog gpio

Simon Glass sjg at chromium.org
Tue Jul 28 20:57:22 CEST 2020


Hello Philippe,

Am 24.07.2020 um 15:51 schrieb Philippe Reynes:
> Since commit 9ba84329dc45 ("sandbox, test: add test for GPIO_HOG
> function"), the gpio_a 0,1,2 and 3 are used by hog in test.dts.
> But 2 leds 'sandbox:red' and 'sandbox:green' are using gpio_a 0
> and 1. As hog always request his gpios, the led command on both
> led is broken:
>
> => led sandbox:red
> LED 'sandbox:red' not found (err=-16)
>
> The gpio is already requested by hog, so it can't be enabled
> for led 'sandbox:red'.
>
> This commit change the gpio used by hog to 10, 11, 12 and 13,
> so the led command could be used again with 'sandbox:red' and
> 'sandbox:green'.
>
> Signed-off-by: Philippe Reynes <philippe.reynes at softathome.com>
> ---
>   arch/sandbox/dts/test.dts |  8 ++++----
>   test/dm/gpio.c            | 12 ++++++------
>   2 files changed, 10 insertions(+), 10 deletions(-)

Thanks!

Reviewed-by: Heiko Schocher <hs at denx.de>

bye,
Heiko
-- 
DENX Software Engineering GmbH,      Managing Director: Wolfgang Denk
HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany
Phone: +49-8142-66989-52   Fax: +49-8142-66989-80   Email: hs at denx.de

Applied to u-boot-dm, thanks!


More information about the U-Boot mailing list