Commit c2746a1e authored by Mauro Carvalho Chehab's avatar Mauro Carvalho Chehab

docs: gpio: add sysfs interface to the admin-guide

While this is stated as obsoleted, the sysfs interface described
there is still valid, and belongs to the admin-guide.
Signed-off-by: default avatarMauro Carvalho Chehab <mchehab+samsung@kernel.org>
Acked-by: default avatarLinus Walleij <linus.walleij@linaro.org>
parent 4c68060b
...@@ -11,7 +11,7 @@ Description: ...@@ -11,7 +11,7 @@ Description:
Kernel code may export it for complete or partial access. Kernel code may export it for complete or partial access.
GPIOs are identified as they are inside the kernel, using integers in GPIOs are identified as they are inside the kernel, using integers in
the range 0..INT_MAX. See Documentation/gpio for more information. the range 0..INT_MAX. See Documentation/admin-guide/gpio for more information.
/sys/class/gpio /sys/class/gpio
/export ... asks the kernel to export a GPIO to userspace /export ... asks the kernel to export a GPIO to userspace
......
:orphan: .. SPDX-License-Identifier: GPL-2.0
==== ====
gpio gpio
......
...@@ -91,6 +91,7 @@ configure specific aspects of kernel behavior to your liking. ...@@ -91,6 +91,7 @@ configure specific aspects of kernel behavior to your liking.
cputopology cputopology
device-mapper/index device-mapper/index
efi-stub efi-stub
gpio/index
highuid highuid
hw_random hw_random
iostats iostats
......
...@@ -316,7 +316,7 @@ specifies the path to the controller. In order to use these GPIOs in Linux ...@@ -316,7 +316,7 @@ specifies the path to the controller. In order to use these GPIOs in Linux
we need to translate them to the corresponding Linux GPIO descriptors. we need to translate them to the corresponding Linux GPIO descriptors.
There is a standard GPIO API for that and is documented in There is a standard GPIO API for that and is documented in
Documentation/gpio/. Documentation/admin-guide/gpio/.
In the above example we can get the corresponding two GPIO descriptors with In the above example we can get the corresponding two GPIO descriptors with
a code like this:: a code like this::
......
Chinese translated version of Documentation/gpio Chinese translated version of Documentation/admin-guide/gpio
If you have any comment or update to the content, please contact the If you have any comment or update to the content, please contact the
original document maintainer directly. However, if you have a problem original document maintainer directly. However, if you have a problem
...@@ -10,7 +10,7 @@ Maintainer: Grant Likely <grant.likely@secretlab.ca> ...@@ -10,7 +10,7 @@ Maintainer: Grant Likely <grant.likely@secretlab.ca>
Linus Walleij <linus.walleij@linaro.org> Linus Walleij <linus.walleij@linaro.org>
Chinese maintainer: Fu Wei <tekkamanninja@gmail.com> Chinese maintainer: Fu Wei <tekkamanninja@gmail.com>
--------------------------------------------------------------------- ---------------------------------------------------------------------
Documentation/gpio 的中文翻译 Documentation/admin-guide/gpio 的中文翻译
如果想评论或更新本文的内容,请直接联系原文档的维护者。如果你使用英文 如果想评论或更新本文的内容,请直接联系原文档的维护者。如果你使用英文
交流有困难的话,也可以向中文版维护者求助。如果本翻译更新不及时或者翻 交流有困难的话,也可以向中文版维护者求助。如果本翻译更新不及时或者翻
......
...@@ -6867,7 +6867,7 @@ T: git git://git.kernel.org/pub/scm/linux/kernel/git/linusw/linux-gpio.git ...@@ -6867,7 +6867,7 @@ T: git git://git.kernel.org/pub/scm/linux/kernel/git/linusw/linux-gpio.git
S: Maintained S: Maintained
F: Documentation/devicetree/bindings/gpio/ F: Documentation/devicetree/bindings/gpio/
F: Documentation/driver-api/gpio/ F: Documentation/driver-api/gpio/
F: Documentation/gpio/ F: Documentation/admin-guide/gpio/
F: Documentation/ABI/testing/gpio-cdev F: Documentation/ABI/testing/gpio-cdev
F: Documentation/ABI/obsolete/sysfs-gpio F: Documentation/ABI/obsolete/sysfs-gpio
F: drivers/gpio/ F: drivers/gpio/
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment