summaryrefslogtreecommitdiff
path: root/arch
diff options
context:
space:
mode:
authorTom Rini <[email protected]>2025-11-11 14:53:47 -0600
committerTom Rini <[email protected]>2025-11-11 14:53:47 -0600
commit10fec1b7a36dcd902274fe136ff1e3ba280ecef4 (patch)
tree57c4d7e03a950d09cd80091f353ab99a5a973adc /arch
parent62e89de7698a637c673b08ec129941d8079a5405 (diff)
parente5e4b60c55e448e6a9a6bf6f7e9cfd01fe3103e1 (diff)
Merge patch series "reenable dm_gpio tests, add support for gpio-line-names lookup"
Rasmus Villemoes <[email protected]> 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/[email protected]
Diffstat (limited to 'arch')
-rw-r--r--arch/sandbox/dts/test.dts2
1 files changed, 2 insertions, 0 deletions
diff --git a/arch/sandbox/dts/test.dts b/arch/sandbox/dts/test.dts
index a2c739a2044..13d8e498b03 100644
--- a/arch/sandbox/dts/test.dts
+++ b/arch/sandbox/dts/test.dts
@@ -823,6 +823,7 @@
#gpio-cells = <1>;
gpio-bank-name = "a";
sandbox,gpio-count = <25>;
+ gpio-line-names = "", "eth1-reset", "rtc-irq";
hog_input_active_low {
gpio-hog;
input;
@@ -851,6 +852,7 @@
#gpio-cells = <5>;
gpio-bank-name = "b";
sandbox,gpio-count = <10>;
+ gpio-line-names = "factory-reset";
};
gpio_c: pinmux-gpios {