hello_world.c Posted November 15, 2018 Posted November 15, 2018 There's this: Anybody knows about the status of PWM on the H5 (OPi PC 2 in my case) with mainline kernel? BTW am I off-topic asking about H5 in this forum? Thanks.
Igor Posted November 28, 2018 Posted November 28, 2018 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).
martinayotte Posted November 28, 2018 Posted November 28, 2018 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 ...
hello_world.c Posted March 15, 2020 Author Posted March 15, 2020 martinayotte: Have been picking this up after a long time, and just wanted to tell you that it worked perfectly, thank you! BTW following this for initial testing: https://forum.armbian.com/topic/3886-pwm-on-h3-and-h2-with-mainline-kernel/
Recommended Posts