Thread (3 messages) 3 messages, 2 authors, 2021-05-25
STALE1833d
Revisions (3)
  1. v1 [diff vs current]
  2. v2 [diff vs current]
  3. v3 current

[PATCH v3 1/3] docs/pinctrl: update `pins' description under debugfs

From: Dario Binacchi <hidden>
Date: 2021-05-20 20:28:55
Also in: linux-gpio, lkml
Subsystem: documentation, pin control subsystem, the rest · Maintainers: Jonathan Corbet, Linus Walleij, Linus Torvalds

Optionally the `pins' file created inside the `/sys/kernel/debug/pinctrl'
subdirectory of each pin controller device now allows you to set the
mux register of a pin.

Signed-off-by: Dario Binacchi <redacted>
---

(no changes since v1)

 Documentation/driver-api/pin-control.rst | 3 +++
 1 file changed, 3 insertions(+)
diff --git a/Documentation/driver-api/pin-control.rst b/Documentation/driver-api/pin-control.rst
index e2474425fb0c..3d8192fa45a3 100644
--- a/Documentation/driver-api/pin-control.rst
+++ b/Documentation/driver-api/pin-control.rst
@@ -1447,6 +1447,9 @@ controller device containing these files:
 
 - ``pins``: prints a line for each pin registered on the pin controller. The
   pinctrl driver may add additional information such as register contents.
+  Optionally writes the mux register for the selected pin.
+  e.g. to write the value 0x73 in the mux register of pin 19:
+  echo 19 0x73 >/sys/kernel/debug/pinctrl/pins
 
 - ``gpio-ranges``: print ranges that map gpio lines to pins on the controller
 
-- 
2.17.1
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help