Jump to content

PWM on Allwinner H5/mainline


hello_world.c

Recommended Posts

On 11/15/2018 at 11: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?


It works on A64/Pinebook (LCD brightness). It should work on H5 but I haven't done any tests. DEV branch (4.19.y).

Link to comment
Share on other sites

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 ...

Link to comment
Share on other sites

Guest
This topic is now closed to further replies.
×
×
  • Create New...

Important Information

Terms of Use - Privacy Policy - Guidelines