Skip to content

Commit b3b9b3c

Browse files
giomettigregkh
authored andcommitted
Documentation ABI: add PPS generators documentation
This patch adds the documentation for the ABI between the Linux kernel and userspace regarding the PPS generators. Signed-off-by: Rodolfo Giometti <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Greg Kroah-Hartman <[email protected]>
1 parent b14aea0 commit b3b9b3c

File tree

2 files changed

+44
-0
lines changed

2 files changed

+44
-0
lines changed
Lines changed: 43 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,43 @@
1+
What: /sys/class/pps-gen/
2+
Date: February 2025
3+
KernelVersion: 6.13
4+
Contact: Rodolfo Giometti <[email protected]>
5+
Description:
6+
The /sys/class/pps-gen/ directory contains files and
7+
directories that provide a unified interface to the PPS
8+
generators.
9+
10+
What: /sys/class/pps-gen/pps-genX/
11+
Date: February 2025
12+
KernelVersion: 6.13
13+
Contact: Rodolfo Giometti <[email protected]>
14+
Description:
15+
The /sys/class/pps-gen/pps-genX/ directory is related to X-th
16+
PPS generator in the system. Each directory contain files to
17+
manage and control its PPS generator.
18+
19+
What: /sys/class/pps-gen/pps-genX/enable
20+
Date: February 2025
21+
KernelVersion: 6.13
22+
Contact: Rodolfo Giometti <[email protected]>
23+
Description:
24+
This write-only file enables or disables generation of the
25+
PPS signal.
26+
27+
What: /sys/class/pps-gen/pps-genX/system
28+
Date: February 2025
29+
KernelVersion: 6.13
30+
Contact: Rodolfo Giometti <[email protected]>
31+
Description:
32+
This read-only file returns "1" if the generator takes the
33+
timing from the system clock, while it returns "0" if not
34+
(i.e. from a peripheral device clock).
35+
36+
What: /sys/class/pps-gen/pps-genX/time
37+
Date: February 2025
38+
KernelVersion: 6.13
39+
Contact: Rodolfo Giometti <[email protected]>
40+
Description:
41+
This read-only file contains the current time stored into the
42+
generator clock as two integers representing the current time
43+
seconds and nanoseconds.

MAINTAINERS

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18715,6 +18715,7 @@ L: [email protected] (subscribers-only)
1871518715
S: Maintained
1871618716
W: http://wiki.enneenne.com/index.php/LinuxPPS_support
1871718717
F: Documentation/ABI/testing/sysfs-pps
18718+
F: Documentation/ABI/testing/sysfs-pps-gen
1871818719
F: Documentation/devicetree/bindings/pps/pps-gpio.yaml
1871918720
F: Documentation/driver-api/pps.rst
1872018721
F: drivers/pps/

0 commit comments

Comments
 (0)