-
Notifications
You must be signed in to change notification settings - Fork 221
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Running as PWM #4
Comments
I'm having the same problem under the 4.1.17 Kernel (I'm on Ubuntu 14.04.4 for ARMhf). Specifically, there are no |
@spmaniato capes are entering this repo on a test by test basis.. Which "bone_pwm_xyz" are you willing to test right now? Regards, |
Oh, I see. I'd gladly test So far I've been able to compile the latter based on this DTO generator: http://kilobaser.com/blog/2014-07-28-beaglebone-black-devicetreeoverlay-generator (with appropriate modifications for new Kernel) |
Okay i pushed it to: https://github.com/beagleboard/bb.org-overlays I'm not sure:
Is actually going to work as pwm-test isn't mainline.. Regards, |
I "think" it would be best to model these after a pwm-led:
and then the pinmux would h |
Thanks! I'll report back. |
Quick update:
/lib/firmware$ sudo dtc -O dtb -o bone_pwm_P9_14-00A0.dtbo -b 0 -@ bone_pwm_P9_14-00A0.dts
Error: bone_pwm_P9_14-00A0.dts:12.2-9 syntax error
FATAL ERROR: Unable to parse input tree I tried the (unfamiliar to me) syntax:
I eventually got it to compile by getting rid of the header files and replacing I'm gonna try controlling a stepper motor next. PS. In case it's relevant, here's my
|
it's setup to build inside the repo: https://github.com/beagleboard/bb.org-overlays/blob/master/readme.md Regards |
Classic case of RTFM. Thanks! After installing the device tree blobs and rebooting, I can load the two overlays:
Also,
I was expecting to see things like Please let me know if I'm going about it the wrong way. I'm basically trying to pattern-match looking at overlay / PWM instructions for older Kernels 😩 In the meantime, I'll revisit your suggestion above (to model these after a pwm-led). |
Yeah, that's the issue, "pwm-test" isn't a valid option past 3.8.x, it was something special.. On teh "bacon" cape which used 3 pwm pins, i had to setup it up like: https://github.com/beagleboard/bb.org-overlays/blob/master/src/arm/BB-BONE-BACONE-00A0.dts#L138-L145 Then you had to manually export the pwm like: https://github.com/beagleboard/bb.org-overlays/blob/master/examples/BB-BONE-BACONE/example.sh i think modeling this as leds-pwm, would work best, but we need to bring out the (period=cycle) and duty values as a dt option.. Regards, |
The latest pull request, #6, adds PWM functionality to the new kernel, right? 😀 |
I believe so, haven't had to test it yet. @Pillar1989 been connecting the userspace library/appliction mraa/upm to these pwm/usart/i2c overlays. |
BB-BONE-BACONE-00A0.dts: hardware ip should use gpio0_22 for P8.19
Hello everyone,
I recently updated my Kernel to 4.1.x and found that is a lot simpler to use the gpios this way and it seems to work great with the univ-all.dts
However, this dts does not allow me to take advantage of any pwm pins as almost every pin is setup as a digital gpio.
What would be the correct way to enable the 8 pwm pins?
Thanks in advance,
The text was updated successfully, but these errors were encountered: