From patchwork Sat Feb 1 08:02:13 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Heiko Schocher X-Patchwork-Id: 235760 List-Id: U-Boot discussion From: hs at denx.de (Heiko Schocher) Date: Sat, 1 Feb 2020 09:02:13 +0100 Subject: [PATCH v2 0/2] gpio: add possibility to search for gpio label name Message-ID: <20200201080215.596439-1-hs@denx.de> 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/644219338 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/gpio-uclass.c | 38 ++++++++++++++++++++++++++++++ test/dm/gpio.c | 30 +++++++++++++++++++++++ 7 files changed, 96 insertions(+)