On 6/5/2014 12:11 PM, Charles Steinkuehler wrote: > On 6/5/2014 11:52 AM, maxmike wrote: >> >> >> No need to modify cape-universal. Since I'm on the clock what I'll do is >> remove the pwm pins I need from >> cape-universal .dts and recompile; then load the perfectly good, existing >> /lib/firmware entries for pwm. > > That will work, of course, but the whole reason I went through this > exercise was to make it unnecessary for folks to fiddle with editing > overlay files.
OK, I got a chance to review this, and as I thought you just need to export the PWM channels so you can play with them via sysfs. Some details are available on the TI wiki: http://processors.wiki.ti.com/index.php/Linux_Core_PWM_User%27s_Guide Executive summary...as root: for PWM in 0 1 2 3 4 5 6 7 ; do echo $PWM > /sys/class/pwm/export done ...and you'll have your period and duty files: find /sys/devices/ocp.*/ -name '*_ns' /sys/devices/ocp.3/48302000.epwmss/48302200.ehrpwm/pwm/pwm3/duty_ns /sys/devices/ocp.3/48302000.epwmss/48302200.ehrpwm/pwm/pwm3/period_ns /sys/devices/ocp.3/48302000.epwmss/48302200.ehrpwm/pwm/pwm4/duty_ns /sys/devices/ocp.3/48302000.epwmss/48302200.ehrpwm/pwm/pwm4/period_ns /sys/devices/ocp.3/48304000.epwmss/48304100.ecap/pwm/pwm7/duty_ns /sys/devices/ocp.3/48304000.epwmss/48304100.ecap/pwm/pwm7/period_ns /sys/devices/ocp.3/48304000.epwmss/48304200.ehrpwm/pwm/pwm5/duty_ns /sys/devices/ocp.3/48304000.epwmss/48304200.ehrpwm/pwm/pwm5/period_ns /sys/devices/ocp.3/48304000.epwmss/48304200.ehrpwm/pwm/pwm6/duty_ns /sys/devices/ocp.3/48304000.epwmss/48304200.ehrpwm/pwm/pwm6/period_ns /sys/devices/ocp.3/48300000.epwmss/48300200.ehrpwm/pwm/pwm0/duty_ns /sys/devices/ocp.3/48300000.epwmss/48300200.ehrpwm/pwm/pwm0/period_ns /sys/devices/ocp.3/48300000.epwmss/48300200.ehrpwm/pwm/pwm1/duty_ns /sys/devices/ocp.3/48300000.epwmss/48300200.ehrpwm/pwm/pwm1/period_ns /sys/devices/ocp.3/48300000.epwmss/48300100.ecap/pwm/pwm2/duty_ns /sys/devices/ocp.3/48300000.epwmss/48300100.ecap/pwm/pwm2/period_ns -- Charles Steinkuehler char...@steinkuehler.net -- For more options, visit http://beagleboard.org/discuss --- You received this message because you are subscribed to the Google Groups "BeagleBoard" group. To unsubscribe from this group and stop receiving emails from it, send an email to beagleboard+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/d/optout.