Other Parts Discussed in Thread: AM4372, TPS65218
I am trying to get a buzzer on hardware to bind with "pwm-beeper" and generate needed pwm outputs, i have two challenges, one being i do not see any output waveform on the beeper pin, second i am unable to drive the frequency from console
Here is the DTS binding i have
pwm4: dmtimer-pwm@4 {
compatible = "ti,omap-dmtimer-pwm";
ti,timers = <&timer4>;
#pwm-cells = <3>;
status = "okay";
};
beeper: beeper {
compatible = "pwm-beeper";
pwms = <&pwm4 0 5000 1>;
beeper-hz = <0 100 200 500 1000 2000 5000>;
default-beeper-hz = <2>;
status = "okay";
};
&timer4 {
status = "okay";
ti,timer-pwm;
pinctrl-names = "default";
pinctrl-0 = <&buzzer_pins_default>;
};
buzzer_pins_default: buzzer_pins_default {
pinctrl-single,pins = <
AM4372_IOPAD(0x890, PIN_OUTPUT | MUX_MODE2) /* (A9) gpmc_advn_ale.timer4 -> MPU_BUZZER_PWM_CTRL */
>;
};
Configurations i have applied are
CONFIG_INPUT_PWM_BEEPER=m
CONFIG_PWM_OMAP_DMTIMER=m
On console here is what i see