u-boot-brain/drivers/gpio
Mario Six 1e5f89881a gpio: pca953x_gpio: Support label setting from DT
The PCA953x driver uses "gpio@%x_" as the GPIO bank name, where "%x" is
instantiated with the I2C address of the chip. While this works, it
becomes very confusing if a board has multiple PCAs with the same
address on different I2C busses, and it also becomes an issue when a
GPIO's value is to be set via the 'gpio' command, because this command
only ever sets the value of the first device it encounters, leaving the
other devices inaccessible to the command.

As to not break boards that rely on this naming scheme, we introduce a
new device tree string property "label" for the driver. If it exists, it
is used to build a bank name of the form "%s@%x_" (where %x is still
instantiated with the I2C address). If it does not exist, the legacy
labeling scheme is used.

Signed-off-by: Mario Six <mario.six@gdsys.cc>
2018-03-05 10:06:05 -05:00
..
74x164_gpio.c dm: gpio: Refactor to prepare for live tree support 2017-06-01 07:03:10 -06:00
adi_gpio2.c dm: gpio: Correct use of -ENODEV in drivers 2017-10-08 20:41:09 -06:00
altera_pio.c dm: Rename dev_addr..() functions 2017-06-01 07:03:01 -06:00
at91_gpio.c dm: Rename dev_addr..() functions 2017-06-01 07:03:01 -06:00
atmel_pio4.c dm: gpio: Correct use of -ENODEV in drivers 2017-10-08 20:41:09 -06:00
axp_gpio.c sunxi: axp: Generalize register macros for VBUS drive GPIO 2016-03-31 17:03:52 +02:00
bcm2835_gpio.c bcm283x: Add pinctrl driver 2018-01-28 12:27:32 -05:00
bcm6345_gpio.c dm: bcm6345_gpio: Set proper output level in bcm6345_gpio_direction_output 2017-06-12 08:38:41 -04:00
da8xx_gpio.c Add GPL-2.0+ SPDX-License-Identifier to source files 2013-07-24 09:44:38 -04:00
db8500_gpio.c GPIO: Correct doc typo "confguration" -> "configuration" 2017-02-08 16:24:29 -05:00
dwapb_gpio.c dm: core: Replace of_offset with accessor 2017-02-08 06:12:14 -07:00
gpio-rcar.c gpio: rmobile: Add RCar Gen2 compatible string 2018-01-27 20:38:53 +01:00
gpio-uclass.c gpio: add static to get_function() 2017-07-06 13:09:36 -04:00
gpio-uniphier.c gpio: uniphier: import dt-binginds header from Linux 2017-11-29 00:28:59 +09:00
hi6220_gpio.c dm: gpio: hi6220: Add a hi6220 GPIO driver model driver. 2015-08-12 20:47:58 -04:00
hsdk-creg-gpio.c ARC: HSDK: introduce CREG GPIO driver 2017-11-24 19:37:56 +03:00
imx_rgpio2p.c dm: gpio: Correct use of -ENODEV in drivers 2017-10-08 20:41:09 -06:00
intel_broadwell_gpio.c dm: core: Replace of_offset with accessor 2017-02-08 06:12:14 -07:00
intel_ich6_gpio.c dm: core: Replace of_offset with accessor (part 2) 2017-06-01 07:03:04 -06:00
Kconfig microblaze: Added Kconfig support for CONFIG_XILINX_GPIO 2018-03-01 15:43:45 +01:00
kona_gpio.c gpio: kona: Add Kona gpio driver 2014-02-22 19:30:27 +01:00
kw_gpio.c bitops: collect BIT macros to include/linux/bitops.h 2017-11-29 00:28:57 +09:00
lpc32xx_gpio.c dm: Fix up inclusion of common.h 2017-06-01 07:03:03 -06:00
Makefile gpio: mpc8xxx: Rename Kconfig option, structures, and functions 2018-01-28 09:36:28 -05:00
mpc8xxx_gpio.c gpio: mpc8xxx: Make live-tree compatible 2018-01-28 09:36:28 -05:00
mpc83xx_gpio.c Add GPL-2.0+ SPDX-License-Identifier to source files 2013-07-24 09:44:38 -04:00
msm_gpio.c dm: Rename dev_addr..() functions 2017-06-01 07:03:01 -06:00
mvebu_gpio.c dm: Rename dev_addr..() functions 2017-06-01 07:03:01 -06:00
mvgpio.c Update Maintainer and Author's email address 2016-12-27 11:24:17 -05:00
mvgpio.h Update Maintainer and Author's email address 2016-12-27 11:24:17 -05:00
mvmfp.c gpio: mvmfp: support newer MFP bit definitions 2015-04-23 13:59:18 -04:00
mxc_gpio.c gpio: mxc: add i.MX8M support 2018-02-04 12:00:58 +01:00
mxs_gpio.c treewide: replace #include <asm/errno.h> with <linux/errno.h> 2016-09-23 17:55:42 -04:00
omap_gpio.c dm: gpio: Correct use of -ENODEV in drivers 2017-10-08 20:41:09 -06:00
pca953x_gpio.c gpio: pca953x_gpio: Support label setting from DT 2018-03-05 10:06:05 -05:00
pca953x.c GPIO: pca953x: Rework to not include commands in SPL 2018-01-19 15:49:29 -05:00
pca9698.c treewide: replace #include <asm/errno.h> with <linux/errno.h> 2016-09-23 17:55:42 -04:00
pcf8575_gpio.c dm: core: Replace of_offset with accessor 2017-02-08 06:12:14 -07:00
pic32_gpio.c dm: core: Replace of_offset with accessor 2017-02-08 06:12:14 -07:00
pm8916_gpio.c db820c: enable pmic gpios for pm8994 2018-01-15 16:29:02 -05:00
rk_gpio.c rockchip: gpio: remove dead code 2018-02-13 12:52:47 +01:00
s5p_gpio.c dm: Rename dev_addr..() functions 2017-06-01 07:03:01 -06:00
sandbox.c sandbox: Rename 'num-gpios' property to avoid dtc warning 2018-02-18 15:53:32 -07:00
sh_pfc.c gpio: rcar_gen3: Fix GPIO read support 2017-05-22 04:37:30 +09:00
spear_gpio.c gpio: spear_gpio: Fix gpio_set_value() implementation 2014-07-04 21:37:29 +02:00
stm32f7_gpio.c stm32: fix STMicroelectronics copyright 2017-11-06 09:51:01 -05:00
sunxi_gpio.c gpio: sunxi: Add compatible string for H5 PIO 2018-01-26 20:02:33 +05:30
tca642x.c GPIO: tca642x: Rework to not include commands in SPL 2018-01-19 15:49:29 -05:00
tegra186_gpio_priv.h gpio: add Tegra186 GPIO driver 2016-05-31 09:54:24 -07:00
tegra186_gpio.c dm: gpio: Correct use of -ENODEV in drivers 2017-10-08 20:41:09 -06:00
tegra_gpio.c dm: tegra: gpio: Convert to support livetree 2017-07-28 12:02:47 -06:00
vybrid_gpio.c dm: gpio: vybrid_gpio: Correct driver's use of bind() method 2017-10-08 20:08:19 -06:00
xilinx_gpio.c Add GPL-2.0+ SPDX-License-Identifier to source files 2013-07-24 09:44:38 -04:00
zynq_gpio.c dm: Rename dev_addr..() functions 2017-06-01 07:03:01 -06:00