diff options
Diffstat (limited to 'Documentation')
-rw-r--r-- | Documentation/ABI/testing/sysfs-gpio | 1 | ||||
-rw-r--r-- | Documentation/gpio.txt | 7 |
2 files changed, 8 insertions, 0 deletions
diff --git a/Documentation/ABI/testing/sysfs-gpio b/Documentation/ABI/testing/sysfs-gpio index 8aab8092ad35..80f4c94c7bef 100644 --- a/Documentation/ABI/testing/sysfs-gpio +++ b/Documentation/ABI/testing/sysfs-gpio | |||
@@ -19,6 +19,7 @@ Description: | |||
19 | /gpioN ... for each exported GPIO #N | 19 | /gpioN ... for each exported GPIO #N |
20 | /value ... always readable, writes fail for input GPIOs | 20 | /value ... always readable, writes fail for input GPIOs |
21 | /direction ... r/w as: in, out (default low); write: high, low | 21 | /direction ... r/w as: in, out (default low); write: high, low |
22 | /edge ... r/w as: none, falling, rising, both | ||
22 | /gpiochipN ... for each gpiochip; #N is its first GPIO | 23 | /gpiochipN ... for each gpiochip; #N is its first GPIO |
23 | /base ... (r/o) same as N | 24 | /base ... (r/o) same as N |
24 | /label ... (r/o) descriptive, not necessarily unique | 25 | /label ... (r/o) descriptive, not necessarily unique |
diff --git a/Documentation/gpio.txt b/Documentation/gpio.txt index 566edaa56a53..fa4dc077ae0e 100644 --- a/Documentation/gpio.txt +++ b/Documentation/gpio.txt | |||
@@ -524,6 +524,13 @@ and have the following read/write attributes: | |||
524 | is configured as an output, this value may be written; | 524 | is configured as an output, this value may be written; |
525 | any nonzero value is treated as high. | 525 | any nonzero value is treated as high. |
526 | 526 | ||
527 | "edge" ... reads as either "none", "rising", "falling", or | ||
528 | "both". Write these strings to select the signal edge(s) | ||
529 | that will make poll(2) on the "value" file return. | ||
530 | |||
531 | This file exists only if the pin can be configured as an | ||
532 | interrupt generating input pin. | ||
533 | |||
527 | GPIO controllers have paths like /sys/class/gpio/chipchip42/ (for the | 534 | GPIO controllers have paths like /sys/class/gpio/chipchip42/ (for the |
528 | controller implementing GPIOs starting at #42) and have the following | 535 | controller implementing GPIOs starting at #42) and have the following |
529 | read-only attributes: | 536 | read-only attributes: |