|
|
|
# SPDX-License-Identifier: GPL-2.0+
|
|
|
|
#
|
|
|
|
# Copyright 2000-2008
|
|
|
|
# Wolfgang Denk, DENX Software Engineering, wd@denx.de.
|
|
|
|
|
|
|
|
ifndef CONFIG_SPL_BUILD
|
|
|
|
obj-$(CONFIG_DWAPB_GPIO) += dwapb_gpio.o
|
|
|
|
obj-$(CONFIG_AXP_GPIO) += axp_gpio.o
|
|
|
|
endif
|
|
|
|
obj-$(CONFIG_DM_GPIO) += gpio-uclass.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
9 years ago
|
|
|
obj-$(CONFIG_DM_PCA953X) += pca953x_gpio.o
|
|
|
|
obj-$(CONFIG_DM_74X164) += 74x164_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
9 years ago
|
|
|
|
|
|
|
obj-$(CONFIG_AT91_GPIO) += at91_gpio.o
|
|
|
|
obj-$(CONFIG_ATMEL_PIO4) += atmel_pio4.o
|
|
|
|
obj-$(CONFIG_BCM6345_GPIO) += bcm6345_gpio.o
|
|
|
|
obj-$(CONFIG_INTEL_ICH6_GPIO) += intel_ich6_gpio.o
|
|
|
|
obj-$(CONFIG_INTEL_BROADWELL_GPIO) += intel_broadwell_gpio.o
|
|
|
|
obj-$(CONFIG_KIRKWOOD_GPIO) += kw_gpio.o
|
|
|
|
obj-$(CONFIG_KONA_GPIO) += kona_gpio.o
|
|
|
|
obj-$(CONFIG_MARVELL_GPIO) += mvgpio.o
|
|
|
|
obj-$(CONFIG_MARVELL_MFP) += mvmfp.o
|
|
|
|
obj-$(CONFIG_MXC_GPIO) += mxc_gpio.o
|
|
|
|
obj-$(CONFIG_MXS_GPIO) += mxs_gpio.o
|
|
|
|
obj-$(CONFIG_PCA953X) += pca953x.o
|
|
|
|
obj-$(CONFIG_PCA9698) += pca9698.o
|
|
|
|
obj-$(CONFIG_ROCKCHIP_GPIO) += rk_gpio.o
|
|
|
|
obj-$(CONFIG_RCAR_GPIO) += gpio-rcar.o
|
|
|
|
obj-$(CONFIG_S5P) += s5p_gpio.o
|
|
|
|
obj-$(CONFIG_SANDBOX_GPIO) += sandbox.o
|
|
|
|
obj-$(CONFIG_SPEAR_GPIO) += spear_gpio.o
|
|
|
|
obj-$(CONFIG_TEGRA_GPIO) += tegra_gpio.o
|
|
|
|
obj-$(CONFIG_TEGRA186_GPIO) += tegra186_gpio.o
|
|
|
|
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
|
|
|
|
obj-$(CONFIG_MPC8XXX_GPIO) += mpc8xxx_gpio.o
|
|
|
|
obj-$(CONFIG_SH_GPIO_PFC) += sh_pfc.o
|
|
|
|
obj-$(CONFIG_OMAP_GPIO) += omap_gpio.o
|
|
|
|
obj-$(CONFIG_DB8500_GPIO) += db8500_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
|
|
|
|
obj-$(CONFIG_SUNXI_GPIO) += sunxi_gpio.o
|
|
|
|
obj-$(CONFIG_LPC32XX_GPIO) += lpc32xx_gpio.o
|
|
|
|
obj-$(CONFIG_STM32F7_GPIO) += stm32f7_gpio.o
|
|
|
|
obj-$(CONFIG_GPIO_UNIPHIER) += gpio-uniphier.o
|
|
|
|
obj-$(CONFIG_ZYNQ_GPIO) += zynq_gpio.o
|
|
|
|
obj-$(CONFIG_VYBRID_GPIO) += vybrid_gpio.o
|
|
|
|
obj-$(CONFIG_HIKEY_GPIO) += hi6220_gpio.o
|
|
|
|
obj-$(CONFIG_HSDK_CREG_GPIO) += hsdk-creg-gpio.o
|
|
|
|
obj-$(CONFIG_IMX_RGPIO2P) += imx_rgpio2p.o
|
|
|
|
obj-$(CONFIG_PIC32_GPIO) += pic32_gpio.o
|
|
|
|
obj-$(CONFIG_MVEBU_GPIO) += mvebu_gpio.o
|
|
|
|
obj-$(CONFIG_MSM_GPIO) += msm_gpio.o
|
|
|
|
obj-$(CONFIG_$(SPL_)PCF8575_GPIO) += pcf8575_gpio.o
|
|
|
|
obj-$(CONFIG_PM8916_GPIO) += pm8916_gpio.o
|