Tool/software: Linux
I'm using TI's Linux Kernel 4.9 with SDK 4.02 on my custom AM5728 board.
My board got a PWM controlled beeper on Timer 15. The hardware was verified by directly manipulating the register bank associated with it, but setting it up through the Linux Device Tree is proving it to be difficult.
We have enabled a few things in the kernel:
CONFIG_PWM_TIEHRPWM=y
CONFIG_PWM_TIPWMSS=y
CONFIG_INPUT_PWM_BEEPER=y
CONFIG_PWM_OMAP_DMTIMER=y
And added a node here in the DTS:
beeper {
compatible = "pwm-beeper";
pwms = <&timer15>;
};
The U-Boot is also mux'ed correctly.
With the above changes, there is still no new device under /sys/class/pwm.
Anywhere else I should look at?