^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 1) What: /sys/class/pwm/
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 2) Date: May 2013
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 3) KernelVersion: 3.11
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 4) Contact: H Hartley Sweeten <hsweeten@visionengravers.com>
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 5) Description:
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 6) The pwm/ class sub-directory belongs to the Generic PWM
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 7) Framework and provides a sysfs interface for using PWM
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 8) channels.
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 9)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 10) What: /sys/class/pwm/pwmchipN/
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 11) Date: May 2013
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 12) KernelVersion: 3.11
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 13) Contact: H Hartley Sweeten <hsweeten@visionengravers.com>
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 14) Description:
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 15) A /sys/class/pwm/pwmchipN directory is created for each
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 16) probed PWM controller/chip where N is the base of the
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 17) PWM chip.
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 18)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 19) What: /sys/class/pwm/pwmchipN/npwm
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 20) Date: May 2013
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 21) KernelVersion: 3.11
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 22) Contact: H Hartley Sweeten <hsweeten@visionengravers.com>
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 23) Description:
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 24) The number of PWM channels supported by the PWM chip.
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 25)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 26) What: /sys/class/pwm/pwmchipN/export
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 27) Date: May 2013
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 28) KernelVersion: 3.11
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 29) Contact: H Hartley Sweeten <hsweeten@visionengravers.com>
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 30) Description:
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 31) Exports a PWM channel from the PWM chip for sysfs control.
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 32) Value is between 0 and /sys/class/pwm/pwmchipN/npwm - 1.
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 33)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 34) What: /sys/class/pwm/pwmchipN/unexport
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 35) Date: May 2013
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 36) KernelVersion: 3.11
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 37) Contact: H Hartley Sweeten <hsweeten@visionengravers.com>
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 38) Description:
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 39) Unexports a PWM channel.
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 40)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 41) What: /sys/class/pwm/pwmchipN/pwmX
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 42) Date: May 2013
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 43) KernelVersion: 3.11
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 44) Contact: H Hartley Sweeten <hsweeten@visionengravers.com>
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 45) Description:
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 46) A /sys/class/pwm/pwmchipN/pwmX directory is created for
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 47) each exported PWM channel where X is the exported PWM
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 48) channel number.
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 49)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 50) What: /sys/class/pwm/pwmchipN/pwmX/period
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 51) Date: May 2013
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 52) KernelVersion: 3.11
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 53) Contact: H Hartley Sweeten <hsweeten@visionengravers.com>
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 54) Description:
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 55) Sets the PWM signal period in nanoseconds.
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 56)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 57) What: /sys/class/pwm/pwmchipN/pwmX/duty_cycle
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 58) Date: May 2013
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 59) KernelVersion: 3.11
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 60) Contact: H Hartley Sweeten <hsweeten@visionengravers.com>
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 61) Description:
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 62) Sets the PWM signal duty cycle in nanoseconds.
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 63)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 64) What: /sys/class/pwm/pwmchipN/pwmX/polarity
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 65) Date: May 2013
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 66) KernelVersion: 3.11
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 67) Contact: H Hartley Sweeten <hsweeten@visionengravers.com>
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 68) Description:
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 69) Sets the output polarity of the PWM signal to "normal" or
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 70) "inversed".
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 71)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 72) What: /sys/class/pwm/pwmchipN/pwmX/enable
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 73) Date: May 2013
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 74) KernelVersion: 3.11
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 75) Contact: H Hartley Sweeten <hsweeten@visionengravers.com>
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 76) Description:
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 77) Enable/disable the PWM signal.
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 78) 0 is disabled
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 79) 1 is enabled
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 80)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 81) What: /sys/class/pwm/pwmchipN/pwmX/capture
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 82) Date: June 2016
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 83) KernelVersion: 4.8
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 84) Contact: Lee Jones <lee.jones@linaro.org>
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 85) Description:
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 86) Capture information about a PWM signal. The output format is a
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 87) pair unsigned integers (period and duty cycle), separated by a
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 88) single space.