Part Number: AM62P
Hi I'was tryng to test my pwm control pins, but they didn't respond.
I have this on my device tree
&epwm2{
status = "okay";
};
&epwm1{
status = "okay";
};
&main_pmx0{
bootph-all;
pinctrl-names = "default";
pinctrl-0 = <&backlight_pwm_pins_default>,<&myepwm1_pins_default>;
backlight_pwm_pins_default: bl-pwm-pins-default {
pinctrl-single,pins = <
AM62PX_IOPAD(0x0124, PIN_INPUT, 4) /* (J25) CN1/19 - PINO14 - MMC2_SDCD.EHRPWM2_A - PWM_BCKL_TFT */
>;
};
myepwm1_pins_default: myepwm1-default-pins {
pinctrl-single,pins = <
AM62PX_IOPAD(0x01b4, PIN_INPUT, 2) /* (D20) SPI0_CS0.EHRPWM0_A */
>;
};
};
and with the board power on i've tried to run this commands to test my pins
root@am62p-lohr:~# ls -l /sys/class/pwm
total 0
lrwxrwxrwx 1 root root 0 May 29 18:48 pwmchip0 -> ../../devices/platform/bus@f0000/23000000.pwm/pwm/pwmchip0
lrwxrwxrwx 1 root root 0 May 29 18:48 pwmchip2 -> ../../devices/platform/bus@f0000/23010000.pwm/pwm/pwmchip2
lrwxrwxrwx 1 root root 0 May 29 18:48 pwmchip4 -> ../../devices/platform/bus@f0000/23020000.pwm/pwm/pwmchip4
echo 0 > /sys/class/pwm/pwmchip4/export
echo 1000000 > /sys/class/pwm/pwmchip4/pwm0/period
echo 500000 > /sys/class/pwm/pwmchip4/pwm0/duty_cycle
echo 1 > /sys/class/pwm/pwmchip4/pwm0/enable
echo 0 > /sys/class/pwm/pwmchip2/export
echo 1000000 > /sys/class/pwm/pwmchip2/pwm0/period
echo 500000 > /sys/class/pwm/pwmchip2/pwm0/duty_cycle
echo 1 > /sys/class/pwm/pwmchip2/pwm0/enable
and neither of then had frequency.
is there anything missing or any test that I can do?
Br