All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH v3 0/2] gpio: add possibility to search for gpio label name
@ 2020-02-05  6:19 Heiko Schocher
  2020-02-05  6:19 ` [PATCH v3 1/2] sandbox, test: add test for GPIO_HOG function Heiko Schocher
  2020-02-05  6:19 ` [PATCH v3 2/2] gpio: search for gpio label if gpio is not found through bank name Heiko Schocher
  0 siblings, 2 replies; 13+ messages in thread
From: Heiko Schocher @ 2020-02-05  6:19 UTC (permalink / raw)
  To: u-boot

search for gpio label if gpio name from bankname is not found.

This makes sense on boards with different hardware verions. You
can now search for the gpio label name, and can give the gpio
a unique name. The real gpio pin number is not needed in board
code anymore.

while at it add basic gpio hog test functions in seperate patch.

Travis build:
https://travis-ci.org/hsdenx/u-boot-test/builds/645826819

Changes in v3:
- add comment from Simon Glass
  make this new function configurable through Kconfig
  option DM_GPIO_LOOKUP_LABEL

Changes in v2:
- add basic gpio hog test functions
- add comment from Simon Glass
  move code into seperate function dm_gpio_lookup_label()
  add test if dm_gpio_lookup_label() works

Heiko Schocher (2):
  sandbox, test: add test for GPIO_HOG function
  gpio: search for gpio label if gpio is not found through bank name

 arch/sandbox/dts/test.dts          | 24 +++++++++++++++
 configs/sandbox64_defconfig        |  1 +
 configs/sandbox_defconfig          |  1 +
 configs/sandbox_flattree_defconfig |  1 +
 configs/sandbox_spl_defconfig      |  1 +
 drivers/gpio/Kconfig               | 22 ++++++++++++++
 drivers/gpio/gpio-uclass.c         | 47 ++++++++++++++++++++++++++++++
 test/dm/gpio.c                     | 30 +++++++++++++++++++
 8 files changed, 127 insertions(+)

-- 
2.24.1

^ permalink raw reply	[flat|nested] 13+ messages in thread

end of thread, other threads:[~2020-05-15  7:13 UTC | newest]

Thread overview: 13+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-02-05  6:19 [PATCH v3 0/2] gpio: add possibility to search for gpio label name Heiko Schocher
2020-02-05  6:19 ` [PATCH v3 1/2] sandbox, test: add test for GPIO_HOG function Heiko Schocher
2020-02-05 17:59   ` Simon Glass
2020-04-24 17:45   ` Tom Rini
2020-04-27  5:16     ` Heiko Schocher
2020-04-27  6:47       ` Heiko Schocher
2020-05-12  6:26         ` Heiko Schocher
2020-05-12  7:32           ` Heiko Schocher
2020-05-14 13:47             ` Patrick DELAUNAY
2020-05-15  6:01               ` Heiko Schocher
2020-05-15  7:13                 ` Patrick DELAUNAY
2020-02-05  6:19 ` [PATCH v3 2/2] gpio: search for gpio label if gpio is not found through bank name Heiko Schocher
2020-02-05 17:59   ` Simon Glass

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.