Re: [beagleboard] Stretch pwm difference

2017-12-08 Thread Johan Henselmans
OK, found out. Note to future self: If you want /sys/clas/pwm/pwm-6:0, do an echo 0 > /sys/class/pwm/pwmchip6/export I misunderstood that echo 0> /sys/class/pwm/pwmchip3/export was an unexport to reset things. To remove that channel, of course do a echo 0> /sys/class/pwm/pwmchip6/unexport

Re: [beagleboard] Stretch pwm difference

2017-12-07 Thread Johan Henselmans
I am trying to get p8_45 and p8_49 to run PWM2A and PWM2B signals. I am running 4.14.3-ti-r14 with enable_uboot_overlays=1 enable_uboot_cape_universal=1 disable_uboot_overlay_video=1 According to the SRM that is possible, When I do an export to echo 1 > /sys/class/pwm/pwmchip6/export , I only

Re: [beagleboard] Stretch pwm difference

2017-09-29 Thread William Hermans
I think I have it figured out. If you disable the ecap devices, the dual channel populate normally. e.g. 0,2,4. But when you do have ecap enabled, that's when things start to get squirrely. But at least it's not completely random. There are or seem to be patterns when you have both ecap enabled.

Re: [beagleboard] Stretch pwm difference

2017-09-29 Thread Robert Nelson
On Fri, Sep 29, 2017 at 3:19 PM, William Hermans wrote: > Robert, > > Ok I think I see what you mean now( fully ). With universal IO and the > generic startup script enabled. I did see something similar to what you were > saying. However, if one disables both universal IO, and

Re: [beagleboard] Stretch pwm difference

2017-09-29 Thread William Hermans
I mean this hack fix is fairly trivial. Without the qep's being enabled. debian@wgd:~$ sudo su root@wgd:/home/debian# cd ~ root@wgd:~# nano pwm-enable.sh *#!/bin/bashecho '0' > /sys/class/pwm/pwmchip0/exportecho '1' > /sys/class/pwm/pwmchip0/exportecho '0' >

Re: [beagleboard] Stretch pwm difference

2017-09-29 Thread William Hermans
Robert, Ok I think I see what you mean now( fully ). With universal IO and the generic startup script enabled. I did see something similar to what you were saying. However, if one disables both universal IO, and the generic startup script, then writes their own custom overlay for all 3 of the PWM

Re: [beagleboard] Stretch pwm difference

2017-09-27 Thread William Hermans
On Wed, Sep 27, 2017 at 1:31 PM, Robert Nelson wrote: > > Don't compare "pwmchipX's" directly, you need to dig into the symlink: > > root@beaglebone:/sys/class/pwm# ls -lh > total 0 > lrwxrwxrwx 1 root root 0 Oct 13 17:14 pwmchip0 -> >

[beagleboard] Stretch pwm difference

2017-09-27 Thread William Hermans
So a few things to note about pwm behavior on the latest stretch image versus Jessie. Obviously, Jessie by default runs an older kernel. 4.4.x versus 4.9.x. First, Jessie: root@wgd:~# uname -r 4.4.68-ti-r111 root@wgd:~# lsmod |grep pwm pwm_tiehrpwm Stretch: root@wgd:~# uname -r 4.9.50-ti-r61