xref: /openbmc/u-boot/drivers/gpio/Kconfig (revision f7de9e82f64b04ca03ab920815c05312b9be621d)
10b11dbf7SMasahiro Yamada#
20b11dbf7SMasahiro Yamada# GPIO infrastructure and drivers
30b11dbf7SMasahiro Yamada#
40b11dbf7SMasahiro Yamada
50b11dbf7SMasahiro Yamadamenu "GPIO Support"
60b11dbf7SMasahiro Yamada
7da333ae7SMasahiro Yamadaconfig DM_GPIO
8da333ae7SMasahiro Yamada	bool "Enable Driver Model for GPIO drivers"
9da333ae7SMasahiro Yamada	depends on DM
10da333ae7SMasahiro Yamada	help
11f94a1bedSSimon Glass	  Enable driver model for GPIO access. The standard GPIO
12f94a1bedSSimon Glass	  interface (gpio_get_value(), etc.) is then implemented by
13f94a1bedSSimon Glass	  the GPIO uclass. Drivers provide methods to query the
14f94a1bedSSimon Glass	  particular GPIOs that they provide. The uclass interface
15f94a1bedSSimon Glass	  is defined in include/asm-generic/gpio.h.
16606f7047SAlbert ARIBAUD \(3ADEV\)
17dab778a2SHeiko Schocherconfig GPIO_HOG
1804c095b2SHeiko Schocher	bool "Enable GPIO hog support"
1904c095b2SHeiko Schocher	depends on DM_GPIO
2004c095b2SHeiko Schocher	default n
2104c095b2SHeiko Schocher	help
2204c095b2SHeiko Schocher	  Enable gpio hog support
2304c095b2SHeiko Schocher	  The GPIO chip may contain GPIO hog definitions. GPIO hogging
2404c095b2SHeiko Schocher	  is a mechanism providing automatic GPIO request and config-
2504c095b2SHeiko Schocher	  uration as part of the gpio-controller's driver probe function.
2604c095b2SHeiko Schocher
27*f7de9e82SEddie Jamesconfig SPL_GPIO_HOG
28*f7de9e82SEddie James	bool "Enable GPIO hog support in SPL"
29*f7de9e82SEddie James	depends on SPL_GPIO_SUPPORT
30*f7de9e82SEddie James	default n
31*f7de9e82SEddie James	help
32*f7de9e82SEddie James	  Enable gpio hog support in SPL
33*f7de9e82SEddie James	  The GPIO chip may contain GPIO hog definitions. GPIO hogging
34*f7de9e82SEddie James	  is a mechanism providing automatic GPIO request and config-
35*f7de9e82SEddie James	  uration as part of the gpio-controller's driver probe function.
36*f7de9e82SEddie James
3788d5ecf4SThomas Chouconfig ALTERA_PIO
3888d5ecf4SThomas Chou	bool "Altera PIO driver"
3988d5ecf4SThomas Chou	depends on DM_GPIO
4088d5ecf4SThomas Chou	help
4188d5ecf4SThomas Chou	  Select this to enable PIO for Altera devices. Please find
4288d5ecf4SThomas Chou	  details on the "Embedded Peripherals IP User Guide" of Altera.
4388d5ecf4SThomas Chou
44e64bdb2fSÁlvaro Fernández Rojasconfig BCM6345_GPIO
45e64bdb2fSÁlvaro Fernández Rojas	bool "BCM6345 GPIO driver"
46e64bdb2fSÁlvaro Fernández Rojas	depends on DM_GPIO && ARCH_BMIPS
47e64bdb2fSÁlvaro Fernández Rojas	help
48e64bdb2fSÁlvaro Fernández Rojas	  This driver supports the GPIO banks on BCM6345 SoCs.
49e64bdb2fSÁlvaro Fernández Rojas
50e30a70c2SMarek Vasutconfig DWAPB_GPIO
51e30a70c2SMarek Vasut	bool "DWAPB GPIO driver"
52e30a70c2SMarek Vasut	depends on DM && DM_GPIO
53e30a70c2SMarek Vasut	default n
54e30a70c2SMarek Vasut	help
55e30a70c2SMarek Vasut	  Support for the Designware APB GPIO driver.
56e30a70c2SMarek Vasut
575a07a5f9SWenyou Yangconfig AT91_GPIO
585a07a5f9SWenyou Yang	bool "AT91 PIO GPIO driver"
595a07a5f9SWenyou Yang	depends on DM_GPIO
605a07a5f9SWenyou Yang	default n
615a07a5f9SWenyou Yang	help
625a07a5f9SWenyou Yang	  Say yes here to select AT91 PIO GPIO driver. AT91 PIO
635a07a5f9SWenyou Yang	  controller manages up to 32 fully programmable input/output
645a07a5f9SWenyou Yang	  lines. Each I/O line may be dedicated as a general-purpose
655a07a5f9SWenyou Yang	  I/O or be assigned to a function of an embedded peripheral.
665a07a5f9SWenyou Yang	  The assignment to a function of an embedded peripheral is
675a07a5f9SWenyou Yang	  the responsibility of AT91 Pinctrl driver. This driver is
685a07a5f9SWenyou Yang	  responsible for the general-purpose I/O.
695a07a5f9SWenyou Yang
702c62c56aSWenyou Yangconfig ATMEL_PIO4
712c62c56aSWenyou Yang	bool "ATMEL PIO4 driver"
72ee3311dbSWenyou Yang	depends on DM_GPIO
732c62c56aSWenyou Yang	default n
742c62c56aSWenyou Yang	help
752c62c56aSWenyou Yang	  Say yes here to support the Atmel PIO4 driver.
762c62c56aSWenyou Yang	  The PIO4 is new version of Atmel PIO controller, which manages
772c62c56aSWenyou Yang	  up to 128 fully programmable input/output lines. Each I/O line
782c62c56aSWenyou Yang	  may be dedicated as a general purpose I/O or be assigned to
792c62c56aSWenyou Yang	  a function of an embedded peripheral.
802c62c56aSWenyou Yang
81b84e1c88Sryan_chenconfig ASPEED_GPIO
82b84e1c88Sryan_chen	bool "Aspeed GPIO Driver"
83b84e1c88Sryan_chen	help
84b84e1c88Sryan_chen	  This driver supports the Aspeed GPIO controller
85b84e1c88Sryan_chen
865d653afcSAdam Fordconfig DA8XX_GPIO
875d653afcSAdam Ford	bool "DA8xx GPIO Driver"
885d653afcSAdam Ford	help
895d653afcSAdam Ford	  This driver supports the DA8xx GPIO controller
905d653afcSAdam Ford
9164b17977SSimon Glassconfig INTEL_BROADWELL_GPIO
9264b17977SSimon Glass	bool "Intel Broadwell GPIO driver"
9364b17977SSimon Glass	depends on DM
9464b17977SSimon Glass	help
9564b17977SSimon Glass	  This driver supports Broadwell U devices which have an expanded
9664b17977SSimon Glass	  GPIO feature set. The difference is large enough to merit a separate
9764b17977SSimon Glass	  driver from the common Intel ICH6 driver. It supports a total of
9864b17977SSimon Glass	  95 GPIOs which can be configured from the device tree.
9964b17977SSimon Glass
10072436892SBin Mengconfig INTEL_ICH6_GPIO
10172436892SBin Meng	bool "Intel ICH6 compatible legacy GPIO driver"
10272436892SBin Meng	depends on DM_GPIO
10372436892SBin Meng	help
10472436892SBin Meng	  Say yes here to select Intel ICH6 compatible legacy GPIO driver.
10572436892SBin Meng
106d665eb61SPeng Fanconfig IMX_RGPIO2P
107d665eb61SPeng Fan	bool "i.MX7ULP RGPIO2P driver"
108d665eb61SPeng Fan	depends on DM
109d665eb61SPeng Fan	default n
110d665eb61SPeng Fan	help
111d665eb61SPeng Fan	  This driver supports i.MX7ULP Rapid GPIO2P controller.
112d665eb61SPeng Fan
1133194c3cdSEugeniy Paltsevconfig HSDK_CREG_GPIO
1143194c3cdSEugeniy Paltsev	bool "HSDK CREG GPIO griver"
115d5fbcd57SAlexey Brodkin	depends on DM_GPIO
1163194c3cdSEugeniy Paltsev	default n
1173194c3cdSEugeniy Paltsev	help
1183194c3cdSEugeniy Paltsev	  This driver supports CREG GPIOs on Synopsys HSDK SOC.
1193194c3cdSEugeniy Paltsev
120606f7047SAlbert ARIBAUD \(3ADEV\)config LPC32XX_GPIO
121606f7047SAlbert ARIBAUD \(3ADEV\)	bool "LPC32XX GPIO driver"
122606f7047SAlbert ARIBAUD \(3ADEV\)	depends on DM
123606f7047SAlbert ARIBAUD \(3ADEV\)	default n
124606f7047SAlbert ARIBAUD \(3ADEV\)	help
125606f7047SAlbert ARIBAUD \(3ADEV\)	  Support for the LPC32XX GPIO driver.
126d79c50afSSimon Glass
127be8313feSLars Povlsenconfig MSCC_SGPIO
128be8313feSLars Povlsen	bool "Microsemi Serial GPIO driver"
129be8313feSLars Povlsen	depends on DM_GPIO && SOC_VCOREIII
130be8313feSLars Povlsen	help
131be8313feSLars Povlsen	  Support for the VCoreIII SoC serial GPIO device. By using a
132be8313feSLars Povlsen          serial interface, the SIO controller significantly extends
133be8313feSLars Povlsen          the number of available GPIOs with a minimum number of
134be8313feSLars Povlsen          additional pins on the device. The primary purpose of the
135be8313feSLars Povlsen          SIO controller is to connect control signals from SFP
136be8313feSLars Povlsen          modules and to act as an LED controller.
137be8313feSLars Povlsen
13881a87e18SMateusz Kulikowskiconfig MSM_GPIO
13981a87e18SMateusz Kulikowski	bool "Qualcomm GPIO driver"
14081a87e18SMateusz Kulikowski	depends on DM_GPIO
14181a87e18SMateusz Kulikowski	default n
14281a87e18SMateusz Kulikowski	help
14381a87e18SMateusz Kulikowski	  Support GPIO controllers on Qualcomm Snapdragon family of SoCs.
14481a87e18SMateusz Kulikowski	  This controller have single bank (default name "soc"), every
14581a87e18SMateusz Kulikowski	  gpio has it's own set of registers.
14681a87e18SMateusz Kulikowski	  Only simple GPIO operations are supported (get/set, change of
14781a87e18SMateusz Kulikowski	  direction and checking pin function).
14881a87e18SMateusz Kulikowski	  Supported devices:
14981a87e18SMateusz Kulikowski	  - APQ8016
15081a87e18SMateusz Kulikowski	  - MSM8916
15181a87e18SMateusz Kulikowski
1528bbff6a7SAdam Fordconfig MXC_GPIO
1538fd05fccSHannes Schmelzer	bool "Freescale/NXP MXC GPIO driver"
1548bbff6a7SAdam Ford	help
1558bbff6a7SAdam Ford	  Support GPIO controllers on various i.MX platforms
1568bbff6a7SAdam Ford
15729cb2b3bSTom Riniconfig OMAP_GPIO
15829cb2b3bSTom Rini	bool "TI OMAP GPIO driver"
15929cb2b3bSTom Rini	depends on ARCH_OMAP2PLUS
16029cb2b3bSTom Rini	default y
16129cb2b3bSTom Rini	help
16229cb2b3bSTom Rini	  Support GPIO controllers on the TI OMAP3/4/5 and related (such as
16329cb2b3bSTom Rini	  AM335x/AM43xx/AM57xx/DRA7xx/etc) families of SoCs.
16429cb2b3bSTom Rini
1650091362cSSimon Glassconfig CMD_PCA953X
1660091362cSSimon Glass	bool "Enable the pca953x command"
1670091362cSSimon Glass	help
1680091362cSSimon Glass	  Deprecated: This should be converted to driver model.
1690091362cSSimon Glass
1700091362cSSimon Glass	  This command provides access to a pca953x GPIO device using the
1710091362cSSimon Glass	  legacy GPIO interface. Several subcommands are provided which mirror
1720091362cSSimon Glass	  the standard 'gpio' command. It should use that instead.
1730091362cSSimon Glass
174120800dfSMateusz Kulikowskiconfig PM8916_GPIO
175120800dfSMateusz Kulikowski	bool "Qualcomm PM8916 PMIC GPIO/keypad driver"
176120800dfSMateusz Kulikowski	depends on DM_GPIO && PMIC_PM8916
177120800dfSMateusz Kulikowski	help
178120800dfSMateusz Kulikowski	  Support for GPIO pins and power/reset buttons found on
179120800dfSMateusz Kulikowski	  Qualcomm PM8916 PMIC.
180120800dfSMateusz Kulikowski	  Default name for GPIO bank is "pm8916".
181120800dfSMateusz Kulikowski	  Power and reset buttons are placed in "pm8916_key" bank and
182120800dfSMateusz Kulikowski          have gpio numbers 0 and 1 respectively.
183120800dfSMateusz Kulikowski
1845746b0dfSVignesh Rconfig PCF8575_GPIO
1855746b0dfSVignesh R	bool "PCF8575 I2C GPIO Expander driver"
1865746b0dfSVignesh R	depends on DM_GPIO && DM_I2C
1875746b0dfSVignesh R	help
1885746b0dfSVignesh R	 Support for PCF8575 I2C 16-bit GPIO expander. Most of these
1895746b0dfSVignesh R	 chips are from NXP and TI.
1905746b0dfSVignesh R
191f5f69594SMarek Vasutconfig RCAR_GPIO
192f5f69594SMarek Vasut	bool "Renesas RCar GPIO driver"
193f5f69594SMarek Vasut	depends on DM_GPIO && ARCH_RMOBILE
194f5f69594SMarek Vasut	help
195f5f69594SMarek Vasut	  This driver supports the GPIO banks on Renesas RCar SoCs.
196f5f69594SMarek Vasut
1971f8f7730SSimon Glassconfig ROCKCHIP_GPIO
1981f8f7730SSimon Glass	bool "Rockchip GPIO driver"
1991f8f7730SSimon Glass	depends on DM_GPIO
2001f8f7730SSimon Glass	help
2011f8f7730SSimon Glass	  Support GPIO access on Rockchip SoCs. The GPIOs are arranged into
2021f8f7730SSimon Glass	  a number of banks (different for each SoC type) each with 32 GPIOs.
2031f8f7730SSimon Glass	  The GPIOs for a device are defined in the device tree with one node
2041f8f7730SSimon Glass	  for each bank.
2051f8f7730SSimon Glass
206d79c50afSSimon Glassconfig SANDBOX_GPIO
207d79c50afSSimon Glass	bool "Enable sandbox GPIO driver"
208d79c50afSSimon Glass	depends on SANDBOX && DM && DM_GPIO
209d79c50afSSimon Glass	help
210d79c50afSSimon Glass	  This driver supports some simulated GPIOs which can be adjusted
211d79c50afSSimon Glass	  using 'back door' functions like sandbox_gpio_set_value(). Then the
212d79c50afSSimon Glass	  GPIOs can be inspected through the normal get_get_value()
213d79c50afSSimon Glass	  interface. The purpose of this is to allow GPIOs to be used as
214d79c50afSSimon Glass	  normal in sandbox, perhaps with test code actually driving the
215d79c50afSSimon Glass	  behaviour of those GPIOs.
216d79c50afSSimon Glass
217d79c50afSSimon Glassconfig SANDBOX_GPIO_COUNT
218d79c50afSSimon Glass	int "Number of sandbox GPIOs"
219d79c50afSSimon Glass	depends on SANDBOX_GPIO
220d79c50afSSimon Glass	default 128
221d79c50afSSimon Glass	help
222d79c50afSSimon Glass	  The sandbox driver can support any number of GPIOs. Generally these
223d79c50afSSimon Glass	  are specified using the device tree. But you can also have a number
224d79c50afSSimon Glass	  of 'anonymous' GPIOs that do not belong to any device or bank.
225d79c50afSSimon Glass	  Select a suitable value depending on your needs.
226d348a943SBhuvanchandra DV
22771d5a142SVipul Kumarconfig XILINX_GPIO
22871d5a142SVipul Kumar	bool "Xilinx GPIO driver"
2294a693669SMichal Simek	depends on DM_GPIO
23071d5a142SVipul Kumar	help
23171d5a142SVipul Kumar	  This config enable the Xilinx GPIO driver for Microblaze.
23271d5a142SVipul Kumar
23390d99e59SSimon Glassconfig CMD_TCA642X
23490d99e59SSimon Glass	bool "tca642x - Command to access tca642x state"
23590d99e59SSimon Glass	help
23690d99e59SSimon Glass	  DEPRECATED - This needs conversion to driver model
23790d99e59SSimon Glass
23890d99e59SSimon Glass	  This provides a way to looking at the pin state of this device.
23990d99e59SSimon Glass	  This mirrors the 'gpio' command and that should be used in preference
24090d99e59SSimon Glass	  to custom code.
24190d99e59SSimon Glass
242601800beSStephen Warrenconfig TEGRA_GPIO
243601800beSStephen Warren	bool "Tegra20..210 GPIO driver"
244601800beSStephen Warren	depends on DM_GPIO
245601800beSStephen Warren	help
246601800beSStephen Warren	  Support for the GPIO controller contained in NVIDIA Tegra20 through
247601800beSStephen Warren	  Tegra210.
248601800beSStephen Warren
249074a1fddSStephen Warrenconfig TEGRA186_GPIO
250074a1fddSStephen Warren	bool "Tegra186 GPIO driver"
251074a1fddSStephen Warren	depends on DM_GPIO
252074a1fddSStephen Warren	help
253074a1fddSStephen Warren	  Support for the GPIO controller contained in NVIDIA Tegra186. This
254074a1fddSStephen Warren	  covers both the "main" and "AON" controller instances, even though
255074a1fddSStephen Warren	  they have slightly different register layout.
256074a1fddSStephen Warren
257b9a66b63SMasahiro Yamadaconfig GPIO_UNIPHIER
258b9a66b63SMasahiro Yamada	bool "UniPhier GPIO"
259b9a66b63SMasahiro Yamada	depends on ARCH_UNIPHIER
260b9a66b63SMasahiro Yamada	help
261b9a66b63SMasahiro Yamada	  Say yes here to support UniPhier GPIOs.
262b9a66b63SMasahiro Yamada
263d348a943SBhuvanchandra DVconfig VYBRID_GPIO
264d348a943SBhuvanchandra DV	bool "Vybrid GPIO driver"
265d348a943SBhuvanchandra DV	depends on DM
266d348a943SBhuvanchandra DV	default n
267d348a943SBhuvanchandra DV	help
268d348a943SBhuvanchandra DV	  Say yes here to support Vybrid vf610 GPIOs.
2690b11dbf7SMasahiro Yamada
270386d934eSPurna Chandra Mandalconfig PIC32_GPIO
271386d934eSPurna Chandra Mandal	bool "Microchip PIC32 GPIO driver"
272386d934eSPurna Chandra Mandal	depends on DM_GPIO && MACH_PIC32
273386d934eSPurna Chandra Mandal	default y
274386d934eSPurna Chandra Mandal	help
275386d934eSPurna Chandra Mandal	  Say yes here to support Microchip PIC32 GPIOs.
276386d934eSPurna Chandra Mandal
27777417102SVikas Manochaconfig STM32F7_GPIO
27877417102SVikas Manocha	bool "ST STM32 GPIO driver"
2792514c2d0SPatrick Delaunay	depends on DM_GPIO && (STM32 || ARCH_STM32MP)
28077417102SVikas Manocha	default y
28177417102SVikas Manocha	help
28277417102SVikas Manocha	  Device model driver support for STM32 GPIO controller. It should be
28377417102SVikas Manocha	  usable on many stm32 families like stm32f4 & stm32H7.
28477417102SVikas Manocha	  Tested on STM32F7.
28577417102SVikas Manocha
286704d9a64SStefan Roeseconfig MVEBU_GPIO
287704d9a64SStefan Roese	bool "Marvell MVEBU GPIO driver"
288704d9a64SStefan Roese	depends on DM_GPIO && ARCH_MVEBU
289704d9a64SStefan Roese	default y
290704d9a64SStefan Roese	help
291704d9a64SStefan Roese	  Say yes here to support Marvell MVEBU (Armada XP/38x) GPIOs.
292704d9a64SStefan Roese
2932978ae23SSiva Durga Prasad Paladuguconfig ZYNQ_GPIO
2942978ae23SSiva Durga Prasad Paladugu	bool "Zynq GPIO driver"
295251ab06dSSiva Durga Prasad Paladugu	depends on DM_GPIO && (ARCH_ZYNQ || ARCH_ZYNQMP)
2962978ae23SSiva Durga Prasad Paladugu	default y
2972978ae23SSiva Durga Prasad Paladugu	help
2982978ae23SSiva Durga Prasad Paladugu	  Supports GPIO access on Zynq SoC.
2992978ae23SSiva Durga Prasad Paladugu
3009300f711SPeng Fanconfig DM_74X164
3019300f711SPeng Fan	bool "74x164 serial-in/parallel-out 8-bits shift register"
3029300f711SPeng Fan	depends on DM_GPIO
3039300f711SPeng Fan	help
3049300f711SPeng Fan	  Driver for 74x164 compatible serial-in/parallel-out 8-outputs
3059300f711SPeng Fan	  shift registers, such as 74lv165, 74hc595.
3069300f711SPeng Fan	  This driver can be used to provide access to more gpio outputs.
3079300f711SPeng Fan
30803773439SPeng Fanconfig DM_PCA953X
30903773439SPeng Fan	bool "PCA95[357]x, PCA9698, TCA64xx, and MAX7310 I/O ports"
31003773439SPeng Fan	depends on DM_GPIO
31103773439SPeng Fan	help
31203773439SPeng Fan	  Say yes here to provide access to several register-oriented
31303773439SPeng Fan	  SMBus I/O expanders, made mostly by NXP or TI.  Compatible
31403773439SPeng Fan	  models include:
31503773439SPeng Fan
31603773439SPeng Fan	  4 bits:	pca9536, pca9537
31703773439SPeng Fan
31803773439SPeng Fan	  8 bits:	max7310, max7315, pca6107, pca9534, pca9538, pca9554,
31903773439SPeng Fan			pca9556, pca9557, pca9574, tca6408, xra1202
32003773439SPeng Fan
32103773439SPeng Fan	  16 bits:	max7312, max7313, pca9535, pca9539, pca9555, pca9575,
32203773439SPeng Fan			tca6416
32303773439SPeng Fan
32403773439SPeng Fan	  24 bits:	tca6424
32503773439SPeng Fan
32603773439SPeng Fan	  40 bits:	pca9505, pca9698
32703773439SPeng Fan
32803773439SPeng Fan	  Now, max 24 bits chips and PCA953X compatible chips are
32903773439SPeng Fan	  supported
33007d31f8fSmario.six@gdsys.cc
33116103682SPeng Fanconfig SPL_DM_PCA953X
33216103682SPeng Fan	bool "PCA95[357]x, PCA9698, TCA64xx, and MAX7310 I/O ports in SPL"
33316103682SPeng Fan	depends on DM_GPIO
33416103682SPeng Fan	help
33516103682SPeng Fan	  Say yes here to provide access to several register-oriented
33616103682SPeng Fan	  SMBus I/O expanders, made mostly by NXP or TI.  Compatible
33716103682SPeng Fan	  models include:
33816103682SPeng Fan
33916103682SPeng Fan	  4 bits:	pca9536, pca9537
34016103682SPeng Fan
34116103682SPeng Fan	  8 bits:	max7310, max7315, pca6107, pca9534, pca9538, pca9554,
34216103682SPeng Fan			pca9556, pca9557, pca9574, tca6408, xra1202
34316103682SPeng Fan
34416103682SPeng Fan	  16 bits:	max7312, max7313, pca9535, pca9539, pca9555, pca9575,
34516103682SPeng Fan			tca6416
34616103682SPeng Fan
34716103682SPeng Fan	  24 bits:	tca6424
34816103682SPeng Fan
34916103682SPeng Fan	  40 bits:	pca9505, pca9698
35016103682SPeng Fan
35116103682SPeng Fan	  Now, max 24 bits chips and PCA953X compatible chips are
35216103682SPeng Fan	  supported
35316103682SPeng Fan
3543c216834SMario Sixconfig MPC8XXX_GPIO
3553c216834SMario Six	bool "Freescale MPC8XXX GPIO driver"
35607d31f8fSmario.six@gdsys.cc	depends on DM_GPIO
35707d31f8fSmario.six@gdsys.cc	help
3583c216834SMario Six	  This driver supports the built-in GPIO controller of MPC8XXX CPUs.
35907d31f8fSmario.six@gdsys.cc	  Each GPIO bank is identified by its own entry in the device tree,
36007d31f8fSmario.six@gdsys.cc	  i.e.
36107d31f8fSmario.six@gdsys.cc
36207d31f8fSmario.six@gdsys.cc	  gpio-controller@fc00 {
36307d31f8fSmario.six@gdsys.cc		#gpio-cells = <2>;
36407d31f8fSmario.six@gdsys.cc		compatible = "fsl,pq3-gpio";
36507d31f8fSmario.six@gdsys.cc		reg = <0xfc00 0x100>
36607d31f8fSmario.six@gdsys.cc	  }
36707d31f8fSmario.six@gdsys.cc
36807d31f8fSmario.six@gdsys.cc	  By default, each bank is assumed to have 32 GPIOs, but the ngpios
36907d31f8fSmario.six@gdsys.cc	  setting is honored, so the number of GPIOs for each bank is
37007d31f8fSmario.six@gdsys.cc	  configurable to match the actual GPIO count of the SoC (e.g. the
37107d31f8fSmario.six@gdsys.cc	  32/32/23 banks of the P1022 SoC).
37207d31f8fSmario.six@gdsys.cc
37351781783Smario.six@gdsys.cc	  Aside from the standard functions of input/output mode, and output
37451781783Smario.six@gdsys.cc	  value setting, the open-drain feature, which can configure individual
37551781783Smario.six@gdsys.cc	  GPIOs to work as open-drain outputs, is supported.
3764751e559SStefan Roese
3774751e559SStefan Roeseconfig MT7621_GPIO
3784751e559SStefan Roese	bool "MediaTek MT7621 GPIO driver"
3794751e559SStefan Roese	depends on DM_GPIO && ARCH_MT7620
3804751e559SStefan Roese	default y
3814751e559SStefan Roese	help
3824751e559SStefan Roese	  Say yes here to support MediaTek MT7621 compatible GPIOs.
3834751e559SStefan Roese
3840b11dbf7SMasahiro Yamadaendmenu
385