Skip to content

Add support for Allwinner H616 PWM

Hironori KIKUCHI linux-arm-kernel linux-devicetree linux-pwm linux-sunxi lkml 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest5 patches 11 repliesIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/5pwm: sun20i: Use devm_pwmchip_alloc() helperdrivers/pwm/pwm-sun20i.c+25 -200 replies
2/5pwm: sun20i: Add support for Allwinner H616 PWMdrivers/pwm/pwm-sun20i.c+86 -231 reply
3/5dt-bindings: pwm: sun20i: Add compatible string for Allwinner H616 PWMDocumentation/devicetree/bindings/pwm/allwinner,sun20i-pwm.yaml+1 -02 replies
4/5pwm: sun20i: Delegating the clock source and DIV_M to the Device Treedrivers/pwm/pwm-sun20i.c+79 -1110 replies
5/5dt-bindings: pwm: sun20i: Add options to select a clock source and DIV_MDocumentation/devicetree/bindings/pwm/allwinner,sun20i-pwm.yaml+19 -07 replies

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.

Read the v1 thread

Cover letter [PATCH 0/5] Add support for Allwinner H616 PWM

Add support for the Allwinner H616 PWM, building on top of Aleksandr's Allwinner D1 PWM driver v9.

Additionally, the 4th and 5th patches implement the proposed method for delegating the clock source and DIV_M selection to the Device Tree. While it works well without these patches with the original behavior, applying them enables fine-grained control of PWM resolution and prevents non-deterministic behavior dependent on the enabling order.

I have only been able to test on H700 (H616 variant) using an oscilloscope. I would greatly appreciate it if someone could test this patch series on the D1 or other models.

Regards,
kikuchan.

Hironori KIKUCHI (5):
pwm: sun20i: Use devm_pwmchip_alloc() helper
pwm: sun20i: Add support for Allwinner H616 PWM
dt-bindings: pwm: sun20i: Add compatible string for Allwinner H616 PWM
pwm: sun20i: Delegating the clock source and DIV_M to the Device Tree
dt-bindings: pwm: sun20i: Add options to select a clock source and
DIV_M

 .../bindings/pwm/allwinner,sun20i-pwm.yaml    |  20 ++
 drivers/pwm/pwm-sun20i.c                      | 326 ++++++++++--------
 2 files changed, 201 insertions(+), 145 deletions(-)
Signature · 1 line
2.45.1