4 Contact: H Hartley Sweeten <hsweeten@visionengravers.com>
6 The pwm/ class sub-directory belongs to the Generic PWM
7 Framework and provides a sysfs interface for using PWM
10 What: /sys/class/pwm/pwmchipN/
13 Contact: H Hartley Sweeten <hsweeten@visionengravers.com>
15 A /sys/class/pwm/pwmchipN directory is created for each
16 probed PWM controller/chip where N is the base of the
19 What: /sys/class/pwm/pwmchipN/npwm
22 Contact: H Hartley Sweeten <hsweeten@visionengravers.com>
24 The number of PWM channels supported by the PWM chip.
26 What: /sys/class/pwm/pwmchipN/export
29 Contact: H Hartley Sweeten <hsweeten@visionengravers.com>
31 Exports a PWM channel from the PWM chip for sysfs control.
32 Value is between 0 and /sys/class/pwm/pwmchipN/npwm - 1.
34 What: /sys/class/pwm/pwmchipN/unexport
37 Contact: H Hartley Sweeten <hsweeten@visionengravers.com>
39 Unexports a PWM channel.
41 What: /sys/class/pwm/pwmchipN/pwmX
44 Contact: H Hartley Sweeten <hsweeten@visionengravers.com>
46 A /sys/class/pwm/pwmchipN/pwmX directory is created for
47 each exported PWM channel where X is the exported PWM
50 What: /sys/class/pwm/pwmchipN/pwmX/period
53 Contact: H Hartley Sweeten <hsweeten@visionengravers.com>
55 Sets the PWM signal period in nanoseconds.
57 What: /sys/class/pwm/pwmchipN/pwmX/duty_cycle
60 Contact: H Hartley Sweeten <hsweeten@visionengravers.com>
62 Sets the PWM signal duty cycle in nanoseconds.
64 What: /sys/class/pwm/pwmchipN/pwmX/polarity
67 Contact: H Hartley Sweeten <hsweeten@visionengravers.com>
69 Sets the output polarity of the PWM signal to "normal" or
72 What: /sys/class/pwm/pwmchipN/pwmX/enable
75 Contact: H Hartley Sweeten <hsweeten@visionengravers.com>
77 Enable/disable the PWM signal.