Skip to content
View in the app

A better way to browse. Learn more.

Learn more

PWM on Allwinner H5/mainline

Featured Replies

On 11/15/2018 at 5:13 AM, hello_world.c said:

Anybody knows about the status of PWM on the H5 (OPi PC 2 in my case) with mainline kernel?

Looking at my OPiPC2 with 4.19.2, it is present in DT, but with disabled status by default :

 

                pwm@1c21400 {
                        compatible = "allwinner,sun8i-h3-pwm";
                        reg = <0x1c21400 0x8>;
                        clocks = <0x10>;
                        #pwm-cells = <0x3>;
                        status = "disabled";
                        phandle = <0x57>;
                };

So, you need to add the PWM overlay in /boot/armbianEnv.txt :

overlays=pwm

BTW, this overlay is connecting PWM to PA5 ...

Guest
This topic is now closed to further replies.

Search

Search

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.