Hello,
We are using VLP3.0.4 in RZ/Five processor.
Trying to test PWM (MTU3) in RZ/Five using below commands. But PWM is not getting enabled.
cd /sys/class/pwm/pwmchip0/echo 0 > exportecho 1000000 > pwm0/periodecho 500000 > pwm0/duty_cycleecho "normal" > pwm0/polarityecho 1 > pwm0/enable
Below is the error observed:
root@RZFive:/sys/class/pwm/pwmchip0# echo 0 > exportroot@RZFive:/sys/class/pwm/pwmchip0# echo 100000 > pwm0/period-sh: echo: write error: Invalid argumentroot@RZFive:/sys/class/pwm/pwmchip0# echo 50000 > pwm0/duty_cycle-sh: echo: write error: Invalid argumentroot@RZFive:/sys/class/pwm/pwmchip0# echo "normal" > pwm0/polarity-sh: echo: write error: Invalid argumentroot@RZFive:/sys/class/pwm/pwmchip0# echo 1 > pwm0/enable-sh: echo: write error: Invalid argument
kindly share the fix for the same.
Kindly test the same in EVK and share the observation.
Regards.
Is there any update on this issue?
Regards
Hi @navya,
Please cherry-pick this commit to your kernel side:
clocksource: renesas-mtu3: fix possible case dividing by zero in pwm_… · renesas-rz/rz_linux-cip@468bc0e (github.com)
Hi,
This solved my issue.
Thank you.