89 lines
2.5 KiB
Plaintext
Raw Normal View History

2026-01-21 18:59:54 +08:00
What: /sys/class/pwm/
Date: May 2013
KernelVersion: 3.11
Contact: H Hartley Sweeten <hsweeten@visionengravers.com>
Description:
The pwm/ class sub-directory belongs to the Generic PWM
Framework and provides a sysfs interface for using PWM
channels.
2026-01-29 22:25:33 +08:00
What: /sys/class/pwm/pwmchip<N>/
2026-01-21 18:59:54 +08:00
Date: May 2013
KernelVersion: 3.11
Contact: H Hartley Sweeten <hsweeten@visionengravers.com>
Description:
A /sys/class/pwm/pwmchipN directory is created for each
probed PWM controller/chip where N is the base of the
PWM chip.
2026-01-29 22:25:33 +08:00
What: /sys/class/pwm/pwmchip<N>/npwm
2026-01-21 18:59:54 +08:00
Date: May 2013
KernelVersion: 3.11
Contact: H Hartley Sweeten <hsweeten@visionengravers.com>
Description:
The number of PWM channels supported by the PWM chip.
2026-01-29 22:25:33 +08:00
What: /sys/class/pwm/pwmchip<N>/export
2026-01-21 18:59:54 +08:00
Date: May 2013
KernelVersion: 3.11
Contact: H Hartley Sweeten <hsweeten@visionengravers.com>
Description:
Exports a PWM channel from the PWM chip for sysfs control.
Value is between 0 and /sys/class/pwm/pwmchipN/npwm - 1.
2026-01-29 22:25:33 +08:00
What: /sys/class/pwm/pwmchip<N>/unexport
2026-01-21 18:59:54 +08:00
Date: May 2013
KernelVersion: 3.11
Contact: H Hartley Sweeten <hsweeten@visionengravers.com>
Description:
Unexports a PWM channel.
2026-01-29 22:25:33 +08:00
What: /sys/class/pwm/pwmchip<N>/pwmX
2026-01-21 18:59:54 +08:00
Date: May 2013
KernelVersion: 3.11
Contact: H Hartley Sweeten <hsweeten@visionengravers.com>
Description:
A /sys/class/pwm/pwmchipN/pwmX directory is created for
each exported PWM channel where X is the exported PWM
channel number.
2026-01-29 22:25:33 +08:00
What: /sys/class/pwm/pwmchip<N>/pwmX/period
2026-01-21 18:59:54 +08:00
Date: May 2013
KernelVersion: 3.11
Contact: H Hartley Sweeten <hsweeten@visionengravers.com>
Description:
Sets the PWM signal period in nanoseconds.
2026-01-29 22:25:33 +08:00
What: /sys/class/pwm/pwmchip<N>/pwmX/duty_cycle
2026-01-21 18:59:54 +08:00
Date: May 2013
KernelVersion: 3.11
Contact: H Hartley Sweeten <hsweeten@visionengravers.com>
Description:
Sets the PWM signal duty cycle in nanoseconds.
2026-01-29 22:25:33 +08:00
What: /sys/class/pwm/pwmchip<N>/pwmX/polarity
2026-01-21 18:59:54 +08:00
Date: May 2013
KernelVersion: 3.11
Contact: H Hartley Sweeten <hsweeten@visionengravers.com>
Description:
Sets the output polarity of the PWM signal to "normal" or
"inversed".
2026-01-29 22:25:33 +08:00
What: /sys/class/pwm/pwmchip<N>/pwmX/enable
2026-01-21 18:59:54 +08:00
Date: May 2013
KernelVersion: 3.11
Contact: H Hartley Sweeten <hsweeten@visionengravers.com>
Description:
Enable/disable the PWM signal.
0 is disabled
1 is enabled
2026-01-29 22:25:33 +08:00
What: /sys/class/pwm/pwmchip<N>/pwmX/capture
2026-01-21 18:59:54 +08:00
Date: June 2016
KernelVersion: 4.8
2026-01-29 22:25:33 +08:00
Contact: Lee Jones <lee@kernel.org>
2026-01-21 18:59:54 +08:00
Description:
Capture information about a PWM signal. The output format is a
pair unsigned integers (period and duty cycle), separated by a
single space.