linux-imx/Documentation/ABI/testing/sysfs-class-pwm
Lee Jones 80dd7ae16b docs: ABI: sysfs-class-pwm: Update Lee Jones' email address
Going forward, I'll be using my kernel.org for upstream work.

Cc: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Cc: Mauro Carvalho Chehab <mchehab+huawei@kernel.org>
Signed-off-by: Lee Jones <lee.jones@linaro.org>
Signed-off-by: Lee Jones <lee@kernel.org>
Link: https://lore.kernel.org/r/20220714112533.539910-5-lee@kernel.org
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2022-07-14 16:46:53 +02:00

2.5 KiB

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.

What: /sys/class/pwm/pwmchip/ 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.

What: /sys/class/pwm/pwmchip/npwm Date: May 2013 KernelVersion: 3.11 Contact: H Hartley Sweeten hsweeten@visionengravers.com Description: The number of PWM channels supported by the PWM chip.

What: /sys/class/pwm/pwmchip/export 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.

What: /sys/class/pwm/pwmchip/unexport Date: May 2013 KernelVersion: 3.11 Contact: H Hartley Sweeten hsweeten@visionengravers.com Description: Unexports a PWM channel.

What: /sys/class/pwm/pwmchip/pwmX 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.

What: /sys/class/pwm/pwmchip/pwmX/period Date: May 2013 KernelVersion: 3.11 Contact: H Hartley Sweeten hsweeten@visionengravers.com Description: Sets the PWM signal period in nanoseconds.

What: /sys/class/pwm/pwmchip/pwmX/duty_cycle Date: May 2013 KernelVersion: 3.11 Contact: H Hartley Sweeten hsweeten@visionengravers.com Description: Sets the PWM signal duty cycle in nanoseconds.

What: /sys/class/pwm/pwmchip/pwmX/polarity 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".

What: /sys/class/pwm/pwmchip/pwmX/enable 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

What: /sys/class/pwm/pwmchip/pwmX/capture Date: June 2016 KernelVersion: 4.8 Contact: Lee Jones lee@kernel.org Description: Capture information about a PWM signal. The output format is a pair unsigned integers (period and duty cycle), separated by a single space.