2018-05-06 21:58:06 +00:00
|
|
|
# SPDX-License-Identifier: GPL-2.0+
|
2008-12-17 22:36:21 +00:00
|
|
|
#
|
|
|
|
# Copyright 2000-2008
|
|
|
|
# Wolfgang Denk, DENX Software Engineering, wd@denx.de.
|
|
|
|
|
2014-07-23 12:54:56 +00:00
|
|
|
ifndef CONFIG_SPL_BUILD
|
2015-06-23 13:54:19 +00:00
|
|
|
obj-$(CONFIG_DWAPB_GPIO) += dwapb_gpio.o
|
2015-04-25 15:25:14 +00:00
|
|
|
obj-$(CONFIG_AXP_GPIO) += axp_gpio.o
|
2020-01-29 16:58:02 +00:00
|
|
|
obj-$(CONFIG_DM_74X164) += 74x164_gpio.o
|
2014-07-23 12:54:56 +00:00
|
|
|
endif
|
2019-12-07 04:41:35 +00:00
|
|
|
obj-$(CONFIG_$(SPL_TPL_)DM_GPIO) += gpio-uclass.o
|
2014-02-26 22:59:24 +00:00
|
|
|
|
2018-12-21 06:21:21 +00:00
|
|
|
obj-$(CONFIG_$(SPL_)DM_PCA953X) += pca953x_gpio.o
|
dm: gpio: pca953x: introduce driver model support for pca953x
Introduce a new driver that supports driver model for pca953x.
The pca953x chips are used as I2C I/O expanders.
This driver is designed to support the following chips:
"
4 bits: pca9536, pca9537
8 bits: max7310, max7315, pca6107, pca9534, pca9538, pca9554,
pca9556, pca9557, pca9574, tca6408, xra1202
16 bits: max7312, max7313, pca9535, pca9539, pca9555, pca9575,
tca6416
24 bits: tca6424
40 bits: pca9505, pca9698
"
But for now this driver only supports max 24 bits and pca953x compatible
chips. pca957x compatible chips are not supported now.
These can be addressed when we need to add such support for the different
chips.
This driver has been tested on i.MX6 SoloX Sabreauto board with max7310
i2c expander using gpio command as following:
=>gpio status -a
Bank gpio@30_:
gpio@30_0: input: 1 [ ]
=> dm tree:
i2c [ ] | | `-- i2c@021a8000
gpio [ ] | | |-- gpio@30
gpio [ ] | | `-- gpio@32
Signed-off-by: Peng Fan <van.freenix@gmail.com>
Cc: Simon Glass <sjg@chromium.org>
Cc: Masahiro Yamada <yamada.masahiro@socionext.com>
Cc: Wenyou Yang <wenyou.yang@atmel.com>
Cc: Daniel Schwierzeck <daniel.schwierzeck@gmail.com>
Cc: Purna Chandra Mandal <purna.mandal@microchip.com>
Cc: Thomas Chou <thomas@wytron.com.tw>
Cc: Bhuvanchandra DV <bhuvanchandra.dv@toradex.com>
Cc: Andrea Scian <andrea.scian@dave.eu>
Cc: Michal Simek <michal.simek@xilinx.com>
Cc: Stefano Babic <sbabic@denx.de>
Cc: Fabio Estevam <fabio.estevam@nxp.com>
Acked-by: Simon Glass <sjg@chromium.org>
Tested-by: Michal Simek <michal.simek@xilinx.com> #on ZynqMP zcu102
2016-04-14 13:45:06 +00:00
|
|
|
|
2013-10-17 08:34:57 +00:00
|
|
|
obj-$(CONFIG_AT91_GPIO) += at91_gpio.o
|
2015-11-04 06:25:13 +00:00
|
|
|
obj-$(CONFIG_ATMEL_PIO4) += atmel_pio4.o
|
2017-05-07 18:09:30 +00:00
|
|
|
obj-$(CONFIG_BCM6345_GPIO) += bcm6345_gpio.o
|
2020-01-30 20:34:56 +00:00
|
|
|
obj-$(CONFIG_CORTINA_GPIO) += cortina_gpio.o
|
2021-11-21 16:05:16 +00:00
|
|
|
obj-$(CONFIG_FXL6408_GPIO) += gpio-fxl6408.o
|
2019-12-07 04:42:54 +00:00
|
|
|
obj-$(CONFIG_INTEL_GPIO) += intel_gpio.o
|
2013-10-17 08:34:57 +00:00
|
|
|
obj-$(CONFIG_INTEL_ICH6_GPIO) += intel_ich6_gpio.o
|
2016-03-12 05:07:27 +00:00
|
|
|
obj-$(CONFIG_INTEL_BROADWELL_GPIO) += intel_broadwell_gpio.o
|
2020-05-05 17:56:46 +00:00
|
|
|
obj-$(CONFIG_IPROC_GPIO) += iproc_gpio.o
|
2013-10-17 08:34:57 +00:00
|
|
|
obj-$(CONFIG_KIRKWOOD_GPIO) += kw_gpio.o
|
2014-02-11 19:06:35 +00:00
|
|
|
obj-$(CONFIG_KONA_GPIO) += kona_gpio.o
|
2013-10-17 08:34:57 +00:00
|
|
|
obj-$(CONFIG_MARVELL_GPIO) += mvgpio.o
|
2021-07-15 15:40:00 +00:00
|
|
|
obj-$(CONFIG_MCP230XX_GPIO) += mcp230xx_gpio.o
|
2013-10-17 08:34:57 +00:00
|
|
|
obj-$(CONFIG_MXC_GPIO) += mxc_gpio.o
|
|
|
|
obj-$(CONFIG_MXS_GPIO) += mxs_gpio.o
|
|
|
|
obj-$(CONFIG_PCA953X) += pca953x.o
|
|
|
|
obj-$(CONFIG_PCA9698) += pca9698.o
|
2015-08-30 22:55:27 +00:00
|
|
|
obj-$(CONFIG_ROCKCHIP_GPIO) += rk_gpio.o
|
2017-09-15 19:13:56 +00:00
|
|
|
obj-$(CONFIG_RCAR_GPIO) += gpio-rcar.o
|
2019-05-04 14:00:17 +00:00
|
|
|
obj-$(CONFIG_RZA1_GPIO) += gpio-rza1.o
|
2013-10-17 08:34:57 +00:00
|
|
|
obj-$(CONFIG_S5P) += s5p_gpio.o
|
2021-08-07 13:24:12 +00:00
|
|
|
obj-$(CONFIG_SANDBOX_GPIO) += sandbox.o sandbox_test.o
|
2013-10-17 08:34:57 +00:00
|
|
|
obj-$(CONFIG_TEGRA_GPIO) += tegra_gpio.o
|
2016-05-25 20:38:51 +00:00
|
|
|
obj-$(CONFIG_TEGRA186_GPIO) += tegra186_gpio.o
|
2013-10-17 08:34:57 +00:00
|
|
|
obj-$(CONFIG_DA8XX_GPIO) += da8xx_gpio.o
|
|
|
|
obj-$(CONFIG_DM644X_GPIO) += da8xx_gpio.o
|
|
|
|
obj-$(CONFIG_ALTERA_PIO) += altera_pio.o
|
|
|
|
obj-$(CONFIG_MPC83XX_GPIO) += mpc83xx_gpio.o
|
2018-01-15 10:07:48 +00:00
|
|
|
obj-$(CONFIG_MPC8XXX_GPIO) += mpc8xxx_gpio.o
|
2020-02-11 15:20:22 +00:00
|
|
|
obj-$(CONFIG_MPC83XX_SPISEL_BOOT) += mpc83xx_spisel_boot.o
|
2013-10-17 08:34:57 +00:00
|
|
|
obj-$(CONFIG_SH_GPIO_PFC) += sh_pfc.o
|
|
|
|
obj-$(CONFIG_OMAP_GPIO) += omap_gpio.o
|
|
|
|
obj-$(CONFIG_BCM2835_GPIO) += bcm2835_gpio.o
|
|
|
|
obj-$(CONFIG_XILINX_GPIO) += xilinx_gpio.o
|
|
|
|
obj-$(CONFIG_ADI_GPIO2) += adi_gpio2.o
|
|
|
|
obj-$(CONFIG_TCA642X) += tca642x.o
|
2014-06-05 18:00:15 +00:00
|
|
|
obj-$(CONFIG_SUNXI_GPIO) += sunxi_gpio.o
|
2015-03-31 09:40:46 +00:00
|
|
|
obj-$(CONFIG_LPC32XX_GPIO) += lpc32xx_gpio.o
|
2019-06-21 13:39:22 +00:00
|
|
|
obj-$(CONFIG_STM32_GPIO) += stm32_gpio.o
|
2016-02-16 08:03:48 +00:00
|
|
|
obj-$(CONFIG_GPIO_UNIPHIER) += gpio-uniphier.o
|
2015-03-20 15:00:25 +00:00
|
|
|
obj-$(CONFIG_ZYNQ_GPIO) += zynq_gpio.o
|
2015-06-01 13:07:16 +00:00
|
|
|
obj-$(CONFIG_VYBRID_GPIO) += vybrid_gpio.o
|
2015-07-30 17:55:18 +00:00
|
|
|
obj-$(CONFIG_HIKEY_GPIO) += hi6220_gpio.o
|
2017-10-16 13:21:32 +00:00
|
|
|
obj-$(CONFIG_HSDK_CREG_GPIO) += hsdk-creg-gpio.o
|
2017-02-22 08:21:45 +00:00
|
|
|
obj-$(CONFIG_IMX_RGPIO2P) += imx_rgpio2p.o
|
2016-01-28 10:00:13 +00:00
|
|
|
obj-$(CONFIG_PIC32_GPIO) += pic32_gpio.o
|
2020-07-30 11:56:13 +00:00
|
|
|
obj-$(CONFIG_OCTEON_GPIO) += octeon_gpio.o
|
2016-02-12 12:46:50 +00:00
|
|
|
obj-$(CONFIG_MVEBU_GPIO) += mvebu_gpio.o
|
2016-03-31 21:12:15 +00:00
|
|
|
obj-$(CONFIG_MSM_GPIO) += msm_gpio.o
|
2016-08-02 04:44:24 +00:00
|
|
|
obj-$(CONFIG_$(SPL_)PCF8575_GPIO) += pcf8575_gpio.o
|
2021-08-07 13:24:12 +00:00
|
|
|
obj-$(CONFIG_$(SPL_TPL_)PM8916_GPIO) += pm8916_gpio.o
|
2020-11-12 08:36:33 +00:00
|
|
|
obj-$(CONFIG_MT7620_GPIO) += mt7620_gpio.o
|
2018-10-08 10:38:01 +00:00
|
|
|
obj-$(CONFIG_MT7621_GPIO) += mt7621_gpio.o
|
2019-01-02 08:52:21 +00:00
|
|
|
obj-$(CONFIG_MSCC_SGPIO) += mscc_sgpio.o
|
2020-07-10 17:07:27 +00:00
|
|
|
obj-$(CONFIG_NX_GPIO) += nx_gpio.o
|
2019-10-01 17:00:46 +00:00
|
|
|
obj-$(CONFIG_SIFIVE_GPIO) += sifive-gpio.o
|
2021-07-02 15:06:18 +00:00
|
|
|
obj-$(CONFIG_NOMADIK_GPIO) += nmk_gpio.o
|
2021-10-01 11:37:57 +00:00
|
|
|
obj-$(CONFIG_MAX7320_GPIO) += max7320_gpio.o
|
2022-02-25 12:40:24 +00:00
|
|
|
obj-$(CONFIG_SL28CPLD_GPIO) += sl28cpld-gpio.o
|
2021-10-29 11:11:43 +00:00
|
|
|
obj-$(CONFIG_ZYNQMP_GPIO_MODEPIN) += zynqmp_gpio_modepin.o
|