18c2ecf20Sopenharmony_ciWhat: /sys/class/pwm/ 28c2ecf20Sopenharmony_ciDate: May 2013 38c2ecf20Sopenharmony_ciKernelVersion: 3.11 48c2ecf20Sopenharmony_ciContact: H Hartley Sweeten <hsweeten@visionengravers.com> 58c2ecf20Sopenharmony_ciDescription: 68c2ecf20Sopenharmony_ci The pwm/ class sub-directory belongs to the Generic PWM 78c2ecf20Sopenharmony_ci Framework and provides a sysfs interface for using PWM 88c2ecf20Sopenharmony_ci channels. 98c2ecf20Sopenharmony_ci 108c2ecf20Sopenharmony_ciWhat: /sys/class/pwm/pwmchipN/ 118c2ecf20Sopenharmony_ciDate: May 2013 128c2ecf20Sopenharmony_ciKernelVersion: 3.11 138c2ecf20Sopenharmony_ciContact: H Hartley Sweeten <hsweeten@visionengravers.com> 148c2ecf20Sopenharmony_ciDescription: 158c2ecf20Sopenharmony_ci A /sys/class/pwm/pwmchipN directory is created for each 168c2ecf20Sopenharmony_ci probed PWM controller/chip where N is the base of the 178c2ecf20Sopenharmony_ci PWM chip. 188c2ecf20Sopenharmony_ci 198c2ecf20Sopenharmony_ciWhat: /sys/class/pwm/pwmchipN/npwm 208c2ecf20Sopenharmony_ciDate: May 2013 218c2ecf20Sopenharmony_ciKernelVersion: 3.11 228c2ecf20Sopenharmony_ciContact: H Hartley Sweeten <hsweeten@visionengravers.com> 238c2ecf20Sopenharmony_ciDescription: 248c2ecf20Sopenharmony_ci The number of PWM channels supported by the PWM chip. 258c2ecf20Sopenharmony_ci 268c2ecf20Sopenharmony_ciWhat: /sys/class/pwm/pwmchipN/export 278c2ecf20Sopenharmony_ciDate: May 2013 288c2ecf20Sopenharmony_ciKernelVersion: 3.11 298c2ecf20Sopenharmony_ciContact: H Hartley Sweeten <hsweeten@visionengravers.com> 308c2ecf20Sopenharmony_ciDescription: 318c2ecf20Sopenharmony_ci Exports a PWM channel from the PWM chip for sysfs control. 328c2ecf20Sopenharmony_ci Value is between 0 and /sys/class/pwm/pwmchipN/npwm - 1. 338c2ecf20Sopenharmony_ci 348c2ecf20Sopenharmony_ciWhat: /sys/class/pwm/pwmchipN/unexport 358c2ecf20Sopenharmony_ciDate: May 2013 368c2ecf20Sopenharmony_ciKernelVersion: 3.11 378c2ecf20Sopenharmony_ciContact: H Hartley Sweeten <hsweeten@visionengravers.com> 388c2ecf20Sopenharmony_ciDescription: 398c2ecf20Sopenharmony_ci Unexports a PWM channel. 408c2ecf20Sopenharmony_ci 418c2ecf20Sopenharmony_ciWhat: /sys/class/pwm/pwmchipN/pwmX 428c2ecf20Sopenharmony_ciDate: May 2013 438c2ecf20Sopenharmony_ciKernelVersion: 3.11 448c2ecf20Sopenharmony_ciContact: H Hartley Sweeten <hsweeten@visionengravers.com> 458c2ecf20Sopenharmony_ciDescription: 468c2ecf20Sopenharmony_ci A /sys/class/pwm/pwmchipN/pwmX directory is created for 478c2ecf20Sopenharmony_ci each exported PWM channel where X is the exported PWM 488c2ecf20Sopenharmony_ci channel number. 498c2ecf20Sopenharmony_ci 508c2ecf20Sopenharmony_ciWhat: /sys/class/pwm/pwmchipN/pwmX/period 518c2ecf20Sopenharmony_ciDate: May 2013 528c2ecf20Sopenharmony_ciKernelVersion: 3.11 538c2ecf20Sopenharmony_ciContact: H Hartley Sweeten <hsweeten@visionengravers.com> 548c2ecf20Sopenharmony_ciDescription: 558c2ecf20Sopenharmony_ci Sets the PWM signal period in nanoseconds. 568c2ecf20Sopenharmony_ci 578c2ecf20Sopenharmony_ciWhat: /sys/class/pwm/pwmchipN/pwmX/duty_cycle 588c2ecf20Sopenharmony_ciDate: May 2013 598c2ecf20Sopenharmony_ciKernelVersion: 3.11 608c2ecf20Sopenharmony_ciContact: H Hartley Sweeten <hsweeten@visionengravers.com> 618c2ecf20Sopenharmony_ciDescription: 628c2ecf20Sopenharmony_ci Sets the PWM signal duty cycle in nanoseconds. 638c2ecf20Sopenharmony_ci 648c2ecf20Sopenharmony_ciWhat: /sys/class/pwm/pwmchipN/pwmX/polarity 658c2ecf20Sopenharmony_ciDate: May 2013 668c2ecf20Sopenharmony_ciKernelVersion: 3.11 678c2ecf20Sopenharmony_ciContact: H Hartley Sweeten <hsweeten@visionengravers.com> 688c2ecf20Sopenharmony_ciDescription: 698c2ecf20Sopenharmony_ci Sets the output polarity of the PWM signal to "normal" or 708c2ecf20Sopenharmony_ci "inversed". 718c2ecf20Sopenharmony_ci 728c2ecf20Sopenharmony_ciWhat: /sys/class/pwm/pwmchipN/pwmX/enable 738c2ecf20Sopenharmony_ciDate: May 2013 748c2ecf20Sopenharmony_ciKernelVersion: 3.11 758c2ecf20Sopenharmony_ciContact: H Hartley Sweeten <hsweeten@visionengravers.com> 768c2ecf20Sopenharmony_ciDescription: 778c2ecf20Sopenharmony_ci Enable/disable the PWM signal. 788c2ecf20Sopenharmony_ci 0 is disabled 798c2ecf20Sopenharmony_ci 1 is enabled 808c2ecf20Sopenharmony_ci 818c2ecf20Sopenharmony_ciWhat: /sys/class/pwm/pwmchipN/pwmX/capture 828c2ecf20Sopenharmony_ciDate: June 2016 838c2ecf20Sopenharmony_ciKernelVersion: 4.8 848c2ecf20Sopenharmony_ciContact: Lee Jones <lee.jones@linaro.org> 858c2ecf20Sopenharmony_ciDescription: 868c2ecf20Sopenharmony_ci Capture information about a PWM signal. The output format is a 878c2ecf20Sopenharmony_ci pair unsigned integers (period and duty cycle), separated by a 888c2ecf20Sopenharmony_ci single space. 89