aboutsummaryrefslogtreecommitdiffstats
path: root/Documentation/gpio
diff options
context:
space:
mode:
authorLinus Torvalds <torvalds@linux-foundation.org>2015-04-18 11:10:49 -0400
committerLinus Torvalds <torvalds@linux-foundation.org>2015-04-18 11:10:49 -0400
commitd6a24d0640d609138a4e40a4ce9fd9fe7859e24c (patch)
treeaa40fb7f5d03dc605634fb4030afd8798bd6bc0b /Documentation/gpio
parent1f5014d6a77513fa7cefe30eb7791d5856c04384 (diff)
parent197175427a221fe3200f7727ea35e261727e7228 (diff)
Merge tag 'docs-for-linus' of git://git.lwn.net/linux-2.6
Pull documentation updates from Jonathan Corbet: "Numerous fixes, the overdue removal of the i2o docs, some new Chinese translations, and, hopefully, the README fix that will end the flow of identical patches to that file" * tag 'docs-for-linus' of git://git.lwn.net/linux-2.6: (34 commits) Documentation/memcg: update memcg/kmem status Documentation: blackfin: Makefile: Typo building issue Documentation/vm/pagemap.txt: correct location of page-types tool Documentation/memory-barriers.txt: typo fix doc: Add guest_nice column to example output of `cat /proc/stat' Documentation/kernel-parameters: Move "eagerfpu" to its right place Documentation: gpio: Update ACPI part of the document to mention _DSD docs/completion.txt: Various tweaks and corrections doc: completion: context, scope and language fixes Documentation:Update Documentation/zh_CN/arm64/memory.txt Documentation:Update Documentation/zh_CN/arm64/booting.txt Documentation: Chinese translation of arm64/legacy_instructions.txt DocBook media: fix broken EIA hyperlink Documentation: tweak the maintainers entry README: Change gzip/bzip2 to xz compression format README: Update version number reference doc:pci: Fix typo in Documentation/PCI Documentation: drm: Use '->' when describing access through pointers. Documentation: Remove mentioning of block barriers Documentation/email-clients.txt: Fix one grammar mistake, add extra info about TB ...
Diffstat (limited to 'Documentation/gpio')
-rw-r--r--Documentation/gpio/board.txt41
1 files changed, 37 insertions, 4 deletions
diff --git a/Documentation/gpio/board.txt b/Documentation/gpio/board.txt
index 8b35f51fe7b6..b80606de545a 100644
--- a/Documentation/gpio/board.txt
+++ b/Documentation/gpio/board.txt
@@ -50,10 +50,43 @@ gpiod_is_active_low(power) will be true).
50 50
51ACPI 51ACPI
52---- 52----
53ACPI does not support function names for GPIOs. Therefore, only the "idx" 53ACPI also supports function names for GPIOs in a similar fashion to DT.
54argument of gpiod_get_index() is useful to discriminate between GPIOs assigned 54The above DT example can be converted to an equivalent ACPI description
55to a device. The "con_id" argument can still be set for debugging purposes (it 55with the help of _DSD (Device Specific Data), introduced in ACPI 5.1:
56will appear under error messages as well as debug and sysfs nodes). 56
57 Device (FOO) {
58 Name (_CRS, ResourceTemplate () {
59 GpioIo (Exclusive, ..., IoRestrictionOutputOnly,
60 "\\_SB.GPI0") {15} // red
61 GpioIo (Exclusive, ..., IoRestrictionOutputOnly,
62 "\\_SB.GPI0") {16} // green
63 GpioIo (Exclusive, ..., IoRestrictionOutputOnly,
64 "\\_SB.GPI0") {17} // blue
65 GpioIo (Exclusive, ..., IoRestrictionOutputOnly,
66 "\\_SB.GPI0") {1} // power
67 })
68
69 Name (_DSD, Package () {
70 ToUUID("daffd814-6eba-4d8c-8a91-bc9bbf4aa301"),
71 Package () {
72 Package () {
73 "led-gpios",
74 Package () {
75 ^FOO, 0, 0, 1,
76 ^FOO, 1, 0, 1,
77 ^FOO, 2, 0, 1,
78 }
79 },
80 Package () {
81 "power-gpios",
82 Package () {^FOO, 3, 0, 0},
83 },
84 }
85 })
86 }
87
88For more information about the ACPI GPIO bindings see
89Documentation/acpi/gpio-properties.txt.
57 90
58Platform Data 91Platform Data
59------------- 92-------------