Mauro Carvalho Chehab | dc7a12b | 2019-04-14 15:51:10 -0300 | [diff] [blame] | 1 | =========================== |
| 2 | Samsung GPIO implementation |
| 3 | =========================== |
Ben Dooks | d192bae | 2010-05-24 12:13:30 +0900 | [diff] [blame] | 4 | |
| 5 | Introduction |
| 6 | ------------ |
| 7 | |
| 8 | This outlines the Samsung GPIO implementation and the architecture |
Sylwester Nawrocki | 98025c8 | 2012-09-07 06:40:29 +0900 | [diff] [blame] | 9 | specific calls provided alongside the drivers/gpio core. |
Ben Dooks | d192bae | 2010-05-24 12:13:30 +0900 | [diff] [blame] | 10 | |
| 11 | |
| 12 | S3C24XX (Legacy) |
| 13 | ---------------- |
| 14 | |
Mauro Carvalho Chehab | dc7a12b | 2019-04-14 15:51:10 -0300 | [diff] [blame] | 15 | See Documentation/arm/samsung-s3c24xx/gpio.rst for more information |
Sylwester Nawrocki | 98025c8 | 2012-09-07 06:40:29 +0900 | [diff] [blame] | 16 | about these devices. Their implementation has been brought into line |
Ben Dooks | d192bae | 2010-05-24 12:13:30 +0900 | [diff] [blame] | 17 | with the core samsung implementation described in this document. |
| 18 | |
| 19 | |
| 20 | GPIOLIB integration |
| 21 | ------------------- |
| 22 | |
| 23 | The gpio implementation uses gpiolib as much as possible, only providing |
| 24 | specific calls for the items that require Samsung specific handling, such |
| 25 | as pin special-function or pull resistor control. |
| 26 | |
| 27 | GPIO numbering is synchronised between the Samsung and gpiolib system. |
| 28 | |
| 29 | |
| 30 | PIN configuration |
| 31 | ----------------- |
| 32 | |
Sylwester Nawrocki | 98025c8 | 2012-09-07 06:40:29 +0900 | [diff] [blame] | 33 | Pin configuration is specific to the Samsung architecture, with each SoC |
Ben Dooks | d192bae | 2010-05-24 12:13:30 +0900 | [diff] [blame] | 34 | registering the necessary information for the core gpio configuration |
| 35 | implementation to configure pins as necessary. |
| 36 | |
| 37 | The s3c_gpio_cfgpin() and s3c_gpio_setpull() provide the means for a |
| 38 | driver or machine to change gpio configuration. |
| 39 | |
Krzysztof Kozlowski | 0f12999 | 2020-09-11 16:33:41 +0200 | [diff] [blame] | 40 | See arch/arm/mach-s3c/gpio-cfg.h for more information on these functions. |