On Thu, Jun 4, 2015 at 5:47 AM, <[email protected]> wrote: > I've been looking around for quite a number of days now and while there is > quite a lot of information on the subject, most of it appears to be outdated > and/or insufficient for my system. I have a BBB Rev C running the default > Debian (uname -r returns "kernel 8.13-bone70"). I have tried a few guides > step by step to no avail > (https://briancode.wordpress.com/2015/01/06/working-with-pwm-on-a-beaglebone-black/, > http://hipstercircuits.com/enable-pwm-on-beaglebone-with-device-tree-overlays/) > > Basing my attempts off of these and Derek Molloy's tutorial on GPIO with > Device Tree Overlays (which work just fine), this is my .dts file >> >> /* Simple PWM overlay */ >> >> /dts-v1/; >> /plugin/; >> >> / { >> compatible = "ti,beaglebone", "ti,beaglebone-black"; >> >> /* identification */ >> part-number = "SJP-PWM"; >> version = "00A0"; >> >> /* state the resources this cape uses */ >> exclusive-use = >> "P9.21", >> "P9.22", >> >> "ehrpwm0A", >> "ehrpwm0B"; >> >> fragment@0 { >> target = <&am33xx_pinmux>; >> __overlay__ { >> bb_ehrpwm0_pins: pinmux_bb_ehrpwm0_pins { >> pinctrl-single,pins = < >> 0x154 0x03 /* P9_21 muxRegOffset, Mode3 (ehrpwm0B) */ >> 0x150 0x03 /* P9_22 >> muxRegOffset, Mode3 (ehrpwm0A) */ >> >; >> }; >> }; >> }; >> /************************/ >> /* Pin Multiplexing */ >> /************************/ >> >>// fragment@1 { >>// target = <&ocp>; >>// __overlay__ { >>// P9_21_pinmux { >>// compatible = "bone-pinmux-helper"; >>// }; >>// }; >>// }; >> >> /**************************/ >> /* Enable PWM Devices */ >> /**************************/ >> >> fragment@2 { >> target = <&epwmss0>; >> __overlay__ { >> status = "okay"; >> }; >> }; >> >> fragment@3 { >> target = <&ehrpwm0>; >> __overlay__ { >> status = "okay"; >> pinctrl-names = "default"; >> pinctrl-0 = <&bb_ehrpwm0_pins>; >> status = "okay"; >> }; >> }; >> };
There ^ fixed it.. 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.
