Skip to content

pwm support for allwinner sun8i R40/V40/T3 SOCs.

hao_zhang linux-amlogic linux-arm-kernel linux-devicetree linux-pwm lkml 1 version In review

Get series with b4
b4 am 20171213143840.GA17754@arx-s1

Versions newest first

  1. v4 Latest4 patches 9 repliesIn review

Patches in v4 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/4dt-bindings: pwm: binding allwinner sun8i R40/V40/T3.Documentation/devicetree/bindings/pwm/pwm-sun8i.txt+18 -01 reply
2/4ARM: PWM: add allwinner sun8i R40/V40/T3 pwm support.drivers/pwm/Kconfig drivers/pwm/Makefile drivers/pwm/pwm-sun8i-r40.c+460 -03 replies
3/4ARM: dts: add pwm node for r40.arch/arm/boot/dts/sun8i-r40-bananapi-m2-ultra.dts arch/arm/boot/dts/sun8i-r40.dtsi+19 -01 reply
4/4ARM: pinctrl: sunxi-pinctrl: fix pin funtion can not be match correctly.drivers/pinctrl/sunxi/pinctrl-sunxi.c+4 -24 replies

Reviews trailers per patch

2 of 4 patches have a Reviewed-by or Acked-by.

PatchMaxime Ripard
1/4A-b
2/4
3/4
4/4A-b

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.

Read the v4 thread

Cover letter [PATCH v4 0/4] pwm support for allwinner sun8i R40/V40/T3 SOCs.

This patchset add pwm support for allwinner sun8i R40/V40/T3 SOCs.

all has been teat on T3 board.

Some features
8 PWM channels outputs(4 PWM pairs)
Supports capturing input
Supports three kinds of output waveforms: continuous waveform, pulse waveform and complementarity pair
Programmable deadzone generator and controllable dead-time 0% to 100% adjustable duty cycle
Up to 24/100MHz output frequency
Minimum resolution is 1/65536
Supports interrupt for PWM output and capturing input

DOC:
https://github.com/tinalinux/docs/blob/r40-v1.y/Allwinner_R40_User_Manual_V1.0.pdf
https://github.com/tinalinux/docs/blob/r40-v1.y/R40_Datasheet_V1.0.pdf

Regards;-)
Hao Zhang

hao_zhang (4):
dt-bindings: pwm: binding allwinner R40, V40, T3
ARM: PWM: add allwinner sun8i R40/V40/T3 pwm support.
ARM: dts: add pwm node for r40.
ARM: pinctrl: sunxi-pinctrl: fix pin funtion can not be match
correctly.

 .../devicetree/bindings/pwm/pwm-sun8i.txt          |  18 +
 arch/arm/boot/dts/sun8i-r40-bananapi-m2-ultra.dts  |   6 +
 arch/arm/boot/dts/sun8i-r40.dtsi                   |  13 +
 drivers/pinctrl/sunxi/pinctrl-sunxi.c              |   6 +-
 drivers/pwm/Kconfig                                |  10 +
 drivers/pwm/Makefile                               |   1 +
 drivers/pwm/pwm-sun8i-r40.c                        | 449 +++++++++++++++++++++
 7 files changed, 501 insertions(+), 2 deletions(-)
 create mode 100644 Documentation/devicetree/bindings/pwm/pwm-sun8i.txt
 create mode 100644 drivers/pwm/pwm-sun8i-r40.c
Signature · 1 line
2.7.4