]> git.dujemihanovic.xyz Git - u-boot.git/commitdiff
board: gateworks: venice: add GPIO name lookup
authorTim Harvey <tharvey@gateworks.com>
Tue, 2 May 2023 17:44:44 +0000 (10:44 -0700)
committerStefano Babic <sbabic@denx.de>
Tue, 11 Jul 2023 12:40:03 +0000 (14:40 +0200)
Add GPIO name lookup so that you can act on GPIO's by name vs controller
id:

Before:
u-boot=> gpio input pci_wdis#
GPIO: 'pci_wdis#' not found
Command 'gpio' failed: Error -22

After:
u-boot=> gpio input pci_wdis#
gpio: pin pci_wdis# (gpio 103) value is 1

Signed-off-by: Tim Harvey <tharvey@gateworks.com>
Reviewed-by: Fabio Estevam <festevam@denx.de>
configs/imx8mm_venice_defconfig
configs/imx8mn_venice_defconfig
configs/imx8mp_venice_defconfig

index 9d0d0ee315ed5f1dd91a60f745b0821529c8664f..2e729923af956c9d543ba20f8a3498aff9f6cc8a 100644 (file)
@@ -89,6 +89,7 @@ CONFIG_CLK_COMPOSITE_CCF=y
 CONFIG_SPL_CLK_IMX8MM=y
 CONFIG_CLK_IMX8MM=y
 CONFIG_GPIO_HOG=y
+CONFIG_DM_GPIO_LOOKUP_LABEL=y
 CONFIG_MXC_GPIO=y
 CONFIG_DM_I2C=y
 CONFIG_LED=y
index 3974a384d1e783fa136efd0aa995ade293890082..dc0bb01976ddfa752e77c6f3fc4096526baa7b0f 100644 (file)
@@ -90,6 +90,7 @@ CONFIG_SPL_DM=y
 CONFIG_SPL_CLK_IMX8MN=y
 CONFIG_CLK_IMX8MN=y
 CONFIG_GPIO_HOG=y
+CONFIG_DM_GPIO_LOOKUP_LABEL=y
 CONFIG_MXC_GPIO=y
 CONFIG_DM_I2C=y
 CONFIG_LED=y
index a6f6ec67c523410d26668fad94cf682636310624..3f68900fbe760b7a092049d06c9af8c519860d0f 100644 (file)
@@ -87,6 +87,7 @@ CONFIG_SPL_DM=y
 CONFIG_CLK_COMPOSITE_CCF=y
 CONFIG_CLK_IMX8MP=y
 CONFIG_GPIO_HOG=y
+CONFIG_DM_GPIO_LOOKUP_LABEL=y
 CONFIG_MXC_GPIO=y
 CONFIG_DM_I2C=y
 CONFIG_LED=y