I’m trying to follow the overlay explanations on https://wiki.radxa.com/Zero/Debian and added meson-g12a-pwm-c-on-gpiox-8 and meson-g12a-pwmao-a-on-gpioao-11 to my overlays line:
overlays=meson-g12a-uart-ao-a-on-gpioao-0-gpioao-1,meson-g12a-pwm-c-on-gpiox-8,meson-g12a-pwmao-a-on-gpioao-11
Sidenote: I don’t need to add those overlays to see /sys/class/pwm/pwmchip0 and 2, so why add them?
This is the Debian image zero_debian_buster_xfce4_arm64_20211028_1030-mbr
and I’m on kernel 5.10.69-6-amlogic-g775a46783ad8
.
Then, when I enter /sys/class/pwm/pwmchip0 I do
# echo 0 > export
And a directory called pwm0 appears. Then I enter directoy pwm0 and I:
# echo 10000 > period
# echo 5000 > duty_cycle
# echo 1 > enable
But no matter what I do, I don’t see any PWM signal appearing on pin 40 or 18 on my scope?
So what am I doing wrong?