Jump to content
  • 0

PWM on Allwinner H5/mainline


hello_world.c
 Share

Question

4 answers to this question

Recommended Posts

Search Before Posting!

  • 0
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

  • 0
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.
 Share

×
×
  • Create New...