Linux 6.7-rc7
[linux-modified.git] / Documentation / arch / arm / samsung / gpio.rst
1 ===========================
2 Samsung GPIO implementation
3 ===========================
4
5 Introduction
6 ------------
7
8 This outlines the Samsung GPIO implementation and the architecture
9 specific calls provided alongside the drivers/gpio core.
10
11
12 GPIOLIB integration
13 -------------------
14
15 The gpio implementation uses gpiolib as much as possible, only providing
16 specific calls for the items that require Samsung specific handling, such
17 as pin special-function or pull resistor control.
18
19 GPIO numbering is synchronised between the Samsung and gpiolib system.
20
21
22 PIN configuration
23 -----------------
24
25 Pin configuration is specific to the Samsung architecture, with each SoC
26 registering the necessary information for the core gpio configuration
27 implementation to configure pins as necessary.
28
29 The s3c_gpio_cfgpin() and s3c_gpio_setpull() provide the means for a
30 driver or machine to change gpio configuration.
31
32 See arch/arm/mach-s3c/gpio-cfg.h for more information on these functions.