On Tue, Jul 21, 2015 at 9:38 AM, Robert Nelson <[email protected]> wrote:
> On Tue, Jul 21, 2015 at 9:33 AM, Robert Nelson <[email protected]> 
> wrote:
>> On Tue, Jul 21, 2015 at 9:30 AM, dogan yazar <[email protected]> wrote:
>>> Does anybody manage to enable PWM on BBB Debian 4.1 Jessie? I was expecting
>>> it to work after I run "config-pin overlay cape-universal" but I see that no
>>> chip is listed under "/sys/class/pwm/". Any ideas?
>>
>> Yes, pwm works in 4.1..
>>
>> dmesg -c
>>
>> config-pin overlay cape-universal
>>
>> dmesg | pastebinit
>>
>> Regards,
>
> Sorry, pwm is disabled in "cape-universal" overlay:
>
> https://github.com/beagleboard/bb.org-overlays/blob/master/src/arm/cape-universal-00A0.dts#L1533
>
> It was causing hard locks last time i tried using it (according to
> git, 2 months ago),
>
> Feel free to fork:
>
> https://github.com/beagleboard/bb.org-overlays
>
> enable the pwm's and test it..
>
> If you get it "working" please create a pull request..

okay, had a chance to test this and enable them..

cd /opt/source/bb.org-overlays/
git pull
./install.sh

sudo reboot


root@beaglebone:~# config-pin overlay cape-universal
Loading cape-universal overlay
[   36.591695] bone_capemgr bone_capemgr: part_number
'cape-universal', version 'N/A'
[   36.612105] bone_capemgr bone_capemgr: slot #4: override
[   36.629826] bone_capemgr bone_capemgr: Using override eeprom data at slot 4
[   36.636895] bone_capemgr bone_capemgr: slot #4: 'Override Board
Name,00A0,Override Manuf,cape-universal'
[   37.071214] gpio-of-helper ocp:cape-universal: Allocated GPIO id=0
[   37.098140] gpio-of-helper ocp:cape-universal: Allocated GPIO id=1
[   37.104719] gpio-of-helper ocp:cape-universal: Allocated GPIO id=2
[   37.148301] gpio-of-helper ocp:cape-universal: Allocated GPIO id=3
[   37.154883] gpio-of-helper ocp:cape-universal: Allocated GPIO id=4
[   37.194330] gpio-of-helper ocp:cape-universal: Allocated GPIO id=5
[   37.206406] gpio-of-helper ocp:cape-universal: Allocated GPIO id=6
[   37.236009] gpio-of-helper ocp:cape-universal: Allocated GPIO id=7
[   37.258126] gpio-of-helper ocp:cape-universal: Allocated GPIO id=8
[   37.264734] gpio-of-helper ocp:cape-universal: Allocated GPIO id=9
[   37.308109] gpio-of-helper ocp:cape-universal: Allocated GPIO id=10
[   37.314793] gpio-of-helper ocp:cape-universal: Allocated GPIO id=11
[   37.348126] gpio-of-helper ocp:cape-universal: Allocated GPIO id=12
[   37.354781] gpio-of-helper ocp:cape-universal: Allocated GPIO id=13
[   37.390272] gpio-of-helper ocp:cape-universal: Allocated GPIO id=14
[   37.396931] gpio-of-helper ocp:cape-universal: Allocated GPIO id=15
[   37.438234] gpio-of-helper ocp:cape-universal: Allocated GPIO id=16
[   37.444926] gpio-of-helper ocp:cape-universal: Allocated GPIO id=17
[   37.488201] gpio-of-helper ocp:cape-universal: Allocated GPIO id=18
[   37.494891] gpio-of-helper ocp:cape-universal: Allocated GPIO id=19
[   37.528007] gpio-of-helper ocp:cape-universal: Allocated GPIO id=20
[   37.534716] gpio-of-helper ocp:cape-universal: Allocated GPIO id=21
[   37.568106] gpio-of-helper ocp:cape-universal: Allocated GPIO id=22
[   37.574765] gpio-of-helper ocp:cape-universal: Allocated GPIO id=23
[   37.617756] gpio-of-helper ocp:cape-universal: Allocated GPIO id=24
[   37.641455] gpio-of-helper ocp:cape-universal: Allocated GPIO id=25
[   37.651377] gpio-of-helper ocp:cape-universal: Allocated GPIO id=26
[   37.677719] gpio-of-helper ocp:cape-universal: Allocated GPIO id=27
[   37.697700] gpio-of-helper ocp:cape-universal: Allocated GPIO id=28
[   37.717755] gpio-of-helper ocp:cape-universal: Allocated GPIO id=29
[   37.730354] gpio-of-helper ocp:cape-universal: Allocated GPIO id=30
[   37.750794] gpio-of-helper ocp:cape-universal: Allocated GPIO id=31
[   37.771213] gpio-of-helper ocp:cape-universal: Allocated GPIO id=32
[   37.793389] gpio-of-helper ocp:cape-universal: Allocated GPIO id=33
[   37.813290] gpio-of-helper ocp:cape-universal: Allocated GPIO id=34
[   37.830964] gpio-of-helper ocp:cape-universal: Allocated GPIO id=35
[   37.850323] gpio-of-helper ocp:cape-universal: ready
[   37.869635] 48022000.serial: ttyS1 at MMIO 0x48022000 (irq = 179,
base_baud = 3000000) is a 8250
[   37.913765] 48024000.serial: ttyS2 at MMIO 0x48024000 (irq = 180,
base_baud = 3000000) is a 8250
[   37.965252] 481a8000.serial: ttyS4 at MMIO 0x481a8000 (irq = 181,
base_baud = 3000000) is a 8250
[   38.056564] omap_i2c 4802a000.i2c: bus 1 rev0.11 at 100 kHz
[   38.083959] bone_capemgr bone_capemgr: slot #4: dtbo
'cape-universal-00A0.dtbo' loaded; overlay id #0
[   38.320777] CAN device driver interface
[   38.385921] pruss_uio 4a300000.pruss: pins are not configured from the driver
[   38.507182] c_can_platform 481cc000.can: c_can_platform device
registered (regs=fa1cc000, irq=190)
[   38.628029] c_can_platform 481d0000.can: c_can_platform device
registered (regs=fa1d0000, irq=191)
root@beaglebone:~# ls /sys/class/pwm/
pwmchip0  pwmchip2  pwmchip4  pwmchip6 pwmchip7


Regards,

-- 
Robert Nelson
https://rcn-ee.com/

-- 
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