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\) 1788d5ecf4SThomas Chouconfig ALTERA_PIO 1888d5ecf4SThomas Chou bool "Altera PIO driver" 1988d5ecf4SThomas Chou depends on DM_GPIO 2088d5ecf4SThomas Chou help 2188d5ecf4SThomas Chou Select this to enable PIO for Altera devices. Please find 2288d5ecf4SThomas Chou details on the "Embedded Peripherals IP User Guide" of Altera. 2388d5ecf4SThomas Chou 24e30a70c2SMarek Vasutconfig DWAPB_GPIO 25e30a70c2SMarek Vasut bool "DWAPB GPIO driver" 26e30a70c2SMarek Vasut depends on DM && DM_GPIO 27e30a70c2SMarek Vasut default n 28e30a70c2SMarek Vasut help 29e30a70c2SMarek Vasut Support for the Designware APB GPIO driver. 30e30a70c2SMarek Vasut 312c62c56aSWenyou Yangconfig ATMEL_PIO4 322c62c56aSWenyou Yang bool "ATMEL PIO4 driver" 332c62c56aSWenyou Yang depends on DM 342c62c56aSWenyou Yang default n 352c62c56aSWenyou Yang help 362c62c56aSWenyou Yang Say yes here to support the Atmel PIO4 driver. 372c62c56aSWenyou Yang The PIO4 is new version of Atmel PIO controller, which manages 382c62c56aSWenyou Yang up to 128 fully programmable input/output lines. Each I/O line 392c62c56aSWenyou Yang may be dedicated as a general purpose I/O or be assigned to 402c62c56aSWenyou Yang a function of an embedded peripheral. 412c62c56aSWenyou Yang 42606f7047SAlbert ARIBAUD \(3ADEV\)config LPC32XX_GPIO 43606f7047SAlbert ARIBAUD \(3ADEV\) bool "LPC32XX GPIO driver" 44606f7047SAlbert ARIBAUD \(3ADEV\) depends on DM 45606f7047SAlbert ARIBAUD \(3ADEV\) default n 46606f7047SAlbert ARIBAUD \(3ADEV\) help 47606f7047SAlbert ARIBAUD \(3ADEV\) Support for the LPC32XX GPIO driver. 48d79c50afSSimon Glass 491f8f7730SSimon Glassconfig ROCKCHIP_GPIO 501f8f7730SSimon Glass bool "Rockchip GPIO driver" 511f8f7730SSimon Glass depends on DM_GPIO 521f8f7730SSimon Glass help 531f8f7730SSimon Glass Support GPIO access on Rockchip SoCs. The GPIOs are arranged into 541f8f7730SSimon Glass a number of banks (different for each SoC type) each with 32 GPIOs. 551f8f7730SSimon Glass The GPIOs for a device are defined in the device tree with one node 561f8f7730SSimon Glass for each bank. 571f8f7730SSimon Glass 58d79c50afSSimon Glassconfig SANDBOX_GPIO 59d79c50afSSimon Glass bool "Enable sandbox GPIO driver" 60d79c50afSSimon Glass depends on SANDBOX && DM && DM_GPIO 61d79c50afSSimon Glass help 62d79c50afSSimon Glass This driver supports some simulated GPIOs which can be adjusted 63d79c50afSSimon Glass using 'back door' functions like sandbox_gpio_set_value(). Then the 64d79c50afSSimon Glass GPIOs can be inspected through the normal get_get_value() 65d79c50afSSimon Glass interface. The purpose of this is to allow GPIOs to be used as 66d79c50afSSimon Glass normal in sandbox, perhaps with test code actually driving the 67d79c50afSSimon Glass behaviour of those GPIOs. 68d79c50afSSimon Glass 69d79c50afSSimon Glassconfig SANDBOX_GPIO_COUNT 70d79c50afSSimon Glass int "Number of sandbox GPIOs" 71d79c50afSSimon Glass depends on SANDBOX_GPIO 72d79c50afSSimon Glass default 128 73d79c50afSSimon Glass help 74d79c50afSSimon Glass The sandbox driver can support any number of GPIOs. Generally these 75d79c50afSSimon Glass are specified using the device tree. But you can also have a number 76d79c50afSSimon Glass of 'anonymous' GPIOs that do not belong to any device or bank. 77d79c50afSSimon Glass Select a suitable value depending on your needs. 78d348a943SBhuvanchandra DV 79*b9a66b63SMasahiro Yamadaconfig GPIO_UNIPHIER 80*b9a66b63SMasahiro Yamada bool "UniPhier GPIO" 81*b9a66b63SMasahiro Yamada depends on ARCH_UNIPHIER 82*b9a66b63SMasahiro Yamada help 83*b9a66b63SMasahiro Yamada Say yes here to support UniPhier GPIOs. 84*b9a66b63SMasahiro Yamada 85d348a943SBhuvanchandra DVconfig VYBRID_GPIO 86d348a943SBhuvanchandra DV bool "Vybrid GPIO driver" 87d348a943SBhuvanchandra DV depends on DM 88d348a943SBhuvanchandra DV default n 89d348a943SBhuvanchandra DV help 90d348a943SBhuvanchandra DV Say yes here to support Vybrid vf610 GPIOs. 910b11dbf7SMasahiro Yamada 92386d934eSPurna Chandra Mandalconfig PIC32_GPIO 93386d934eSPurna Chandra Mandal bool "Microchip PIC32 GPIO driver" 94386d934eSPurna Chandra Mandal depends on DM_GPIO && MACH_PIC32 95386d934eSPurna Chandra Mandal default y 96386d934eSPurna Chandra Mandal help 97386d934eSPurna Chandra Mandal Say yes here to support Microchip PIC32 GPIOs. 98386d934eSPurna Chandra Mandal 990b11dbf7SMasahiro Yamadaendmenu 100