I believe Jason indicated the numbering was based on the order they are
listed in the device tree, so it should be consistent if you're not
changing overlays.

On 6/12/2014 2:12 PM, maxmike wrote:
> Thank you - unfortunately the boot order of the pwm indexes as applied
> to pins is random (i.e. pin P8_13 is 6 one day and something else another.)
> 
> On Thursday, June 5, 2014 1:23:50 PM UTC-7, Charles Steinkuehler wrote:
>>
>> 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 
>> [email protected] <javascript:> 
>>
> 


-- 
Charles Steinkuehler
[email protected]

-- 
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 [email protected].
For more options, visit https://groups.google.com/d/optout.

Reply via email to