]> git.ipfire.org Git - thirdparty/u-boot.git/commitdiff
Merge patch series "reenable dm_gpio tests, add support for gpio-line-names lookup"
authorTom Rini <trini@konsulko.com>
Tue, 11 Nov 2025 20:53:47 +0000 (14:53 -0600)
committerTom Rini <trini@konsulko.com>
Tue, 11 Nov 2025 20:53:47 +0000 (14:53 -0600)
Rasmus Villemoes <ravi@prevas.dk> says:

Hopefully third time's the charm.

I merely wanted to add support (mostly for use by the 'gpio' shell
command) for looking up a gpio via the gpio-line-names DT property. We
already have a "gpio_request_by_line_name()", but cmd/gpio.c does a
separate "lookup + request", so it felt more natural to teach the
lookup machinery this as well. That ran into
OF_CONTROL-but-not-OF_LIBFDT being a thing for SPL, so here's yet
another attempt.

Now, when trying to do my civic duty and add tests for this, I found
that test/dm/gpio.c has been defunct for a couple of years, and
reinstating it is not entirely trivial.

After a couple of rounds CI is now happy with this:
https://github.com/u-boot/u-boot/pull/828

Link: https://lore.kernel.org/r/20251104174458.3385564-1-ravi@prevas.dk
1  2 
drivers/gpio/gpio-uclass.c

Simple merge