2 # GPIO infrastructure and expanders
6 tristate "GPIO /proc interface"
7 depends on PXA25x || PXA27x
9 This enables an interface under /proc/gpio which allows reading or setting
10 of any GPIO, and also changing the GPIO alt function mode of any line.
12 config PROC_GPIO_DEBUG
13 boolean "Enable /proc/gpio debug logging"
16 This enables printk logging of activity done through /proc/gpio
18 config ARCH_WANT_OPTIONAL_GPIOLIB
21 Select this config option from the architecture Kconfig, if
22 it is possible to use gpiolib on the architecture, but let the
23 user decide whether to actually build it or not.
24 Select this instead of ARCH_REQUIRE_GPIOLIB, if your architecture does
25 not depend on GPIOs being available, but rather let the user
26 decide whether he needs it or not.
28 config ARCH_REQUIRE_GPIOLIB
32 Platforms select gpiolib if they use this infrastructure
33 for all their GPIOs, usually starting with ones integrated
35 Selecting this from the architecture code will cause the gpiolib
36 code to always get built in.
42 depends on ARCH_WANT_OPTIONAL_GPIOLIB || ARCH_REQUIRE_GPIOLIB
45 This enables GPIO support through the generic GPIO library.
46 You only need to enable this, if you also want to enable
47 one or more of the GPIO expansion card drivers below.
54 bool "Debug GPIO calls"
55 depends on DEBUG_KERNEL
57 Say Y here to add some extra checks and diagnostics to GPIO calls.
58 These checks help ensure that GPIOs have been properly initialized
59 before they are used, and that sleeping calls are not made from
60 non-sleeping contexts. They can make bitbanged serial protocols
61 slower. The diagnostics help catch the type of setup errors
62 that are most common when setting up new platforms or boards.
65 bool "/sys/class/gpio/... (sysfs interface)"
66 depends on SYSFS && EXPERIMENTAL
68 Say Y here to add a sysfs interface for GPIOs.
70 This is mostly useful to work around omissions in a system's
71 kernel support. Those are common in custom and semicustom
72 hardware assembled using standard kernels with a minimum of
73 custom patches. In those cases, userspace code may import
74 a given GPIO from the kernel, if no kernel driver requested it.
76 Kernel drivers may also request that a particular GPIO be
77 exported to userspace; this can be useful when debugging.
79 # put expanders in the right section, in alphabetical order
81 comment "Memory mapped GPIO expanders:"
84 bool "PrimeCell PL061 GPIO support"
87 Say yes here to support the PrimeCell PL061 GPIO device
90 bool "Xilinx GPIO support"
91 depends on PPC_OF || MICROBLAZE
93 Say yes here to support the Xilinx FPGA GPIO device
96 tristate "NEC VR4100 series General-purpose I/O Uint support"
99 Say yes here to support the NEC VR4100 series General-purpose I/O Uint
101 comment "I2C GPIO expanders:"
104 tristate "MAX7319, MAX7320-7327 I2C Port Expanders"
107 Say yes here to support the MAX7319, MAX7320-7327 series of I2C
108 Port Expanders. Each IO port on these chips has a fixed role of
109 Input (designated by 'I'), Push-Pull Output ('O'), or Open-Drain
110 Input and Output (designed by 'P'). The combinations are listed
113 8 bits: max7319 (8I), max7320 (8O), max7321 (8P),
114 max7322 (4I4O), max7323 (4P4O)
116 16 bits: max7324 (8I8O), max7325 (8P8O),
117 max7326 (4I12O), max7327 (4P12O)
119 Board setup code must specify the model to use, and the start
120 number for these GPIOs.
123 tristate "PCA953x, PCA955x, TCA64xx, and MAX7310 I/O ports"
126 Say yes here to provide access to several register-oriented
127 SMBus I/O expanders, made mostly by NXP or TI. Compatible
130 4 bits: pca9536, pca9537
132 8 bits: max7310, pca9534, pca9538, pca9554, pca9557,
135 16 bits: pca9535, pca9539, pca9555, tca6416
137 This driver can also be built as a module. If so, the module
138 will be called pca953x.
141 tristate "PCF857x, PCA{85,96}7x, and MAX732[89] I2C GPIO expanders"
144 Say yes here to provide access to most "quasi-bidirectional" I2C
145 GPIO expanders used for additional digital outputs or inputs.
146 Most of these parts are from NXP, though TI is a second source for
147 some of them. Compatible models include:
149 8 bits: pcf8574, pcf8574a, pca8574, pca8574a,
150 pca9670, pca9672, pca9674, pca9674a,
153 16 bits: pcf8575, pcf8575c, pca8575,
154 pca9671, pca9673, pca9675
156 Your board setup code will need to declare the expanders in
157 use, and assign numbers to the GPIOs they expose. Those GPIOs
158 can then be used from drivers and other kernel code, just like
159 other GPIOs, but only accessible from task contexts.
161 This driver provides an in-kernel interface to those GPIOs using
162 platform-neutral GPIO calls.
165 tristate "TWL4030, TWL5030, and TPS659x0 GPIOs"
166 depends on TWL4030_CORE
168 Say yes here to access the GPIO signals of various multi-function
169 power management chips from Texas Instruments.
172 tristate "WM831x GPIOs"
173 depends on MFD_WM831X
175 Say yes here to access the GPIO signals of WM831x power management
176 chips from Wolfson Microelectronics.
179 tristate "GPIO Support for ADP5520 PMIC"
180 depends on PMIC_ADP5520
182 This option enables support for on-chip GPIO found
183 on Analog Devices ADP5520 PMICs.
185 To compile this driver as a module, choose M here: the module will
186 be called adp5520-gpio.
188 comment "PCI GPIO expanders:"
191 tristate "BT8XX GPIO abuser"
192 depends on PCI && VIDEO_BT848=n
194 The BT8xx frame grabber chip has 24 GPIO pins than can be abused
195 as a cheap PCI GPIO card.
197 This chip can be found on Miro, Hauppauge and STB TV-cards.
199 The card needs to be physically altered for using it as a
200 GPIO card. For more information on how to build a GPIO card
201 from a BT8xx TV card, see the documentation file at
202 Documentation/bt8xxgpio.txt
207 bool "Intel Moorestown Platform Langwell GPIO support"
210 Say Y here to support Intel Moorestown platform GPIO.
212 comment "SPI GPIO expanders:"
215 tristate "Maxim MAX7301 GPIO expander"
216 depends on SPI_MASTER
218 gpio driver for Maxim MAX7301 SPI GPIO expander.
221 tristate "Microchip MCP23S08 I/O expander"
222 depends on SPI_MASTER
224 SPI driver for Microchip MCP23S08 I/O expander. This provides
225 a GPIO interface supporting inputs and outputs.
228 tristate "Freescale MC33880 high-side/low-side switch"
229 depends on SPI_MASTER
231 SPI driver for Freescale MC33880 high-side/low-side switch.
232 This provides GPIO interface supporting inputs and outputs.
234 comment "AC97 GPIO expanders:"
237 bool "Philips UCB1400 GPIO"
238 depends on UCB1400_CORE
240 This enables support for the Philips UCB1400 GPIO pins.
241 The UCB1400 is an AC97 audio codec.
243 To compile this driver as a module, choose M here: the
244 module will be called ucb1400_gpio.