I’m trying to use a DMTimer on the BBB for PWM, but I can’t get it to work with the new Debian.
I glean from earlier DT overlays that it ought to work with a new node on the root level calling for the ti,omap-dmtimer-pwm driver like this:
fragment@1 {
target-path = "/";
__overlay__ {
pwm5: dmtimer-pwm-5 {
status = "okay";
compatible = "ti,omap-dmtimer-pwm";
#pwm-cells = <3>;
ti,timers = <&timer5>;
pinctrl-names = "default";
pinctrl-0 = <&bb_timer5_pins>;
};
};
};
This runs into all sorts of problems:
-
I had to move the pinctrl properties to the &timer5 node, or else the pins aren’t configured.
-
There is a boot error message: omap-dmtimer-pwm dmtimer-pwm-7: Unable to find Timer pdev
-
I can’t make the timer select the external clock tclkin
I have tried lots of things over the course of days to make this work, but it just wouldn’t. It shouldn’t be that hard! Can anyone show me the right way to do it? It looks like something must be buggy here.