Please bear with me, I am a bit new to updating the device tree. I am trying to update the device tree overlay for the pin 13 to work as pwm pin,
Edit /boot/dtb/rockchip/rk3588s-khadas-edge2.dtb.overlay.env to add pwm node
to fdt_overlays node if it doesn’t exist.
fdt_overlays=edge2-io-pwm
After this it should show
pwmchip2 folder inside the following directory,
/sys/class/pwm/pwmchip2/export
But for me when I update the device tree
rk3588s-khadas-edge2.dtb.overlay.env
with two
fdt_overlays=edge2-io-uart.dtbo
fdt_overlays=edge2-io-pwm
I cannot see the pwmchip2 folder inside /sys/class/pwm/, I can see is pwmchip0 and pwmchip1
Am I missing something? Can we use two device tree overlays, it should be because if I want to use the gpio pin for some and some pwm, this feature should be available, no?
Thank You for your response. I found my issue was I was trying to activate both uart and pwm that is why I added two of these on my .env files. I figured that my problem was how I added it.
Before I had this on my overlay,
fdt_overlays=edge2-io-uart.dtbo
fdt_overlays=edge2-io-pwm
Updated it to the following and the pwmchip2 is showing.
fdt_overlays=edge2-io-uart.dtbo edge2-io-pwm
Thank You for your input.
Also, do you know how many pwm pins do we have on this board? is it jus the pin number 13 or there is other too? I need 2 pwm pin for my job so I wanted to see if there is anyway I could do it from this board and not add an extra board.