I added
pwm_ab
to the overlays list in config.ini:
Code: Select all
; Device Tree Overlay
overlay_resize=16384
overlay_profile=
overlays="i2c0 i2c1 uart0 uart2 pwm_ab pcf8563"
pwmchip0
directory structure, and exporting results in pwm0
getting created but it cannot be enabled:
Code: Select all
root@odroidc4:~# echo 1 > /sys/class/pwm/pwmchip0/pwm0/enable
-bash: echo: write error: Invalid argument
[ 0.835451] meson-pwm ff802000.pwm: pwm pinmux : can't get pinctrl
I saw this other post: viewtopic.php?f=205&t=42444 but @steve.jeong has not done anything different other than use a later image with a 5.15 kernel. I am using the older Ubuntu image with kernel 4.9.277-83.
How can PWM be enabled on the older kernel? And how can I test whether the overlay has taken effect? Will
gpio readall
show something indicating pwm? Or something in dmesg output?