176abbddeSH Hartley SweetenWhat: /sys/class/pwm/ 276abbddeSH Hartley SweetenDate: May 2013 376abbddeSH Hartley SweetenKernelVersion: 3.11 476abbddeSH Hartley SweetenContact: H Hartley Sweeten <hsweeten@visionengravers.com> 576abbddeSH Hartley SweetenDescription: 676abbddeSH Hartley Sweeten The pwm/ class sub-directory belongs to the Generic PWM 776abbddeSH Hartley Sweeten Framework and provides a sysfs interface for using PWM 876abbddeSH Hartley Sweeten channels. 976abbddeSH Hartley Sweeten 1076abbddeSH Hartley SweetenWhat: /sys/class/pwm/pwmchipN/ 1176abbddeSH Hartley SweetenDate: May 2013 1276abbddeSH Hartley SweetenKernelVersion: 3.11 1376abbddeSH Hartley SweetenContact: H Hartley Sweeten <hsweeten@visionengravers.com> 1476abbddeSH Hartley SweetenDescription: 1576abbddeSH Hartley Sweeten A /sys/class/pwm/pwmchipN directory is created for each 1676abbddeSH Hartley Sweeten probed PWM controller/chip where N is the base of the 1776abbddeSH Hartley Sweeten PWM chip. 1876abbddeSH Hartley Sweeten 1976abbddeSH Hartley SweetenWhat: /sys/class/pwm/pwmchipN/npwm 2076abbddeSH Hartley SweetenDate: May 2013 2176abbddeSH Hartley SweetenKernelVersion: 3.11 2276abbddeSH Hartley SweetenContact: H Hartley Sweeten <hsweeten@visionengravers.com> 2376abbddeSH Hartley SweetenDescription: 2476abbddeSH Hartley Sweeten The number of PWM channels supported by the PWM chip. 2576abbddeSH Hartley Sweeten 2676abbddeSH Hartley SweetenWhat: /sys/class/pwm/pwmchipN/export 2776abbddeSH Hartley SweetenDate: May 2013 2876abbddeSH Hartley SweetenKernelVersion: 3.11 2976abbddeSH Hartley SweetenContact: H Hartley Sweeten <hsweeten@visionengravers.com> 3076abbddeSH Hartley SweetenDescription: 3176abbddeSH Hartley Sweeten Exports a PWM channel from the PWM chip for sysfs control. 3276abbddeSH Hartley Sweeten Value is between 0 and /sys/class/pwm/pwmchipN/npwm - 1. 3376abbddeSH Hartley Sweeten 3476abbddeSH Hartley SweetenWhat: /sys/class/pwm/pwmchipN/unexport 3576abbddeSH Hartley SweetenDate: May 2013 3676abbddeSH Hartley SweetenKernelVersion: 3.11 3776abbddeSH Hartley SweetenContact: H Hartley Sweeten <hsweeten@visionengravers.com> 3876abbddeSH Hartley SweetenDescription: 3976abbddeSH Hartley Sweeten Unexports a PWM channel. 4076abbddeSH Hartley Sweeten 4176abbddeSH Hartley SweetenWhat: /sys/class/pwm/pwmchipN/pwmX 4276abbddeSH Hartley SweetenDate: May 2013 4376abbddeSH Hartley SweetenKernelVersion: 3.11 4476abbddeSH Hartley SweetenContact: H Hartley Sweeten <hsweeten@visionengravers.com> 4576abbddeSH Hartley SweetenDescription: 4676abbddeSH Hartley Sweeten A /sys/class/pwm/pwmchipN/pwmX directory is created for 4776abbddeSH Hartley Sweeten each exported PWM channel where X is the exported PWM 4876abbddeSH Hartley Sweeten channel number. 4976abbddeSH Hartley Sweeten 5076abbddeSH Hartley SweetenWhat: /sys/class/pwm/pwmchipN/pwmX/period 5176abbddeSH Hartley SweetenDate: May 2013 5276abbddeSH Hartley SweetenKernelVersion: 3.11 5376abbddeSH Hartley SweetenContact: H Hartley Sweeten <hsweeten@visionengravers.com> 5476abbddeSH Hartley SweetenDescription: 5576abbddeSH Hartley Sweeten Sets the PWM signal period in nanoseconds. 5676abbddeSH Hartley Sweeten 5776abbddeSH Hartley SweetenWhat: /sys/class/pwm/pwmchipN/pwmX/duty_cycle 5876abbddeSH Hartley SweetenDate: May 2013 5976abbddeSH Hartley SweetenKernelVersion: 3.11 6076abbddeSH Hartley SweetenContact: H Hartley Sweeten <hsweeten@visionengravers.com> 6176abbddeSH Hartley SweetenDescription: 6276abbddeSH Hartley Sweeten Sets the PWM signal duty cycle in nanoseconds. 6376abbddeSH Hartley Sweeten 6476abbddeSH Hartley SweetenWhat: /sys/class/pwm/pwmchipN/pwmX/polarity 6576abbddeSH Hartley SweetenDate: May 2013 6676abbddeSH Hartley SweetenKernelVersion: 3.11 6776abbddeSH Hartley SweetenContact: H Hartley Sweeten <hsweeten@visionengravers.com> 6876abbddeSH Hartley SweetenDescription: 6976abbddeSH Hartley Sweeten Sets the output polarity of the PWM signal to "normal" or 7076abbddeSH Hartley Sweeten "inversed". 7176abbddeSH Hartley Sweeten 7276abbddeSH Hartley SweetenWhat: /sys/class/pwm/pwmchipN/pwmX/enable 7376abbddeSH Hartley SweetenDate: May 2013 7476abbddeSH Hartley SweetenKernelVersion: 3.11 7576abbddeSH Hartley SweetenContact: H Hartley Sweeten <hsweeten@visionengravers.com> 7676abbddeSH Hartley SweetenDescription: 7776abbddeSH Hartley Sweeten Enable/disable the PWM signal. 7876abbddeSH Hartley Sweeten 0 is disabled 7976abbddeSH Hartley Sweeten 1 is enabled 801a366fe9SLee Jones 811a366fe9SLee JonesWhat: /sys/class/pwm/pwmchipN/pwmX/capture 821a366fe9SLee JonesDate: June 2016 831a366fe9SLee JonesKernelVersion: 4.8 841a366fe9SLee JonesContact: Lee Jones <lee.jones@linaro.org> 851a366fe9SLee JonesDescription: 861a366fe9SLee Jones Capture information about a PWM signal. The output format is a 871a366fe9SLee Jones pair unsigned integers (period and duty cycle), separated by a 881a366fe9SLee Jones single space. 89