Jump to content

Recommended Posts

Posted (edited)

Hello! PWM seems to work without any configuration on the factory images with the gpio command, but I cant seem to get it to work on armbian.

There doesn't seem to be any dtbs related to pwm, and /sys/class/pwm is empty on armbian. Anyone got this to work?

 

EDIT: Forgot to add, doesnt seem to be any pwm overlays present on armbian install

Edited by Marco Cettina
Posted

Check if there are pwm overlays available in /boot/dtb/allwinner/overlay. If so try enable via armbian-config or manually with overlays= in /boot/armbianEnv.txt

Posted (edited)

The only two dtbs that mention PWM have a different prefix so i assume thats why they dont work when i try to enable them?

sun50i-h5-pwn.dtbo and sun50i-h6-pwn.dtbo

Edited by Marco Cettina
Posted
03.04.2025 в 23:58, Marco Cettina сказал:

doesnt seem to be any pwm overlays present

Which pin requires an overlay?
Which core are you using?

Posted (edited)

So Im not entirely sure if I need to figure out the overlays or something else. On the factory debian image there are two overlays pwm12 and pwm34, i didnt enable them and it seems to work just fine with the gpio command.
 

I should have been more specific, on armbian there are two pwm overlays but they have the prefix of sun50i-h5 and sun50i-h6, i tried enabling them anyway but didnt make a difference and still no pwmchip showing up in /sys/class/pwm.

It also is giving me "val pwmWrite 0 <= X <= 1024, Or you can set new range by yourself by pwmSetRange(range)" when i set the pwm value even though I already did set a range and ram the same commands that worked perfectly on the factory image.

Im not sure exactly what you mean by core.

Edited by Marco Cettina
Posted
51 минуту назад, Marco Cettina сказал:

Im not sure exactly what you mean by core.

uname -r command.

 

Two types of PWM can be available. Software and hardware.

The hardware for h616-h618 processors is only available for these pins:

PG19 - pwm1
PH0  - pwm3
PH1  - pwm4
PH2  - pwm2
PH3  - pwm1
PI11 - pwm1
PI12 - pwm2
PI13 - pwm3
PI14 - pwm4

 

Which pin do you want to use PWM for?

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
×
×
  • Create New...

Important Information

Terms of Use - Privacy Policy - Guidelines