This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

AM5728: Beagle-x15 board the output for EHRPWM2A pins issue

Part Number: AM5728

Hi,

I want to configure the PWM on beaglebone-x15 board. so enable pwm on header pin P17_05 is EHRPWM2A and P18_44 is EHRPWM2B.

For that I am writing the seprate pwms.dts file as follows and included in the am57xx-beagle-x15.dtb file.

Dts file

&dra7_pmx_core {

ehrpwm2a_pins: pinmux_ehrpwm2a_pins {

pinctrl-single,pins = <

DRA7XX_CORE_IOPAD(0x3774, PIN_OUTPUT_PULLDOWN | MUX_MODE10) //EHRPWM2A P17_05

>;

};

ehrpwm2b_pins: pinmux_ehrpwm2b_pins {

pinctrl-single,pins = <

DRA7XX_CORE_IOPAD(0x3590, PIN_OUTPUT_PULLDOWN | MUX_MODE10) //EHRPWM2B P18_44

>;

};

};

&epwmss2 {

status = "okay";

};

&ehrpwm2 {

status = "okay";

pinctrl-names = "default";

pinctrl-0 = <&ehrpwm2a_pins &ehrpwm2b_pins>;

};

After compling pwnchip0 module is comes. And export the PWM-0:0 and PWM-0:1.

here we think pwm-0:0 mapped for module for ehrpwm2A and pwm-0:1 mapped with ehrpwm2B.

when I modifying pwm-0:0 like below.

even though we are modified above parameters for pwm0:0 we could not able see any voltage change or duty cycle in ehrpwm2a (P17_05 )on header pin.

giude for me.