Skip to content

Add support for Allwinner PWM on D1/T113s/R329 SoCs

Aleksandr Shubin linux-arm-kernel linux-devicetree linux-pwm linux-riscv linux-sunxi lkml 13 versions – In review

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v13 Latest3 patches 3 repliesIn review
  2. v123 patches 11 repliesSuperseded
  3. v113 patches 4 repliesSuperseded
Earlier versions · 10
VersionPostedPatchesRepliesStatus
v103 patches5 repliesSuperseded
v93 patches3 repliesSuperseded
v83 patches11 repliesSuperseded
v73 patches0 repliesSuperseded
v63 patches6 repliesSuperseded
v53 patches5 repliesSuperseded
v43 patches3 repliesSuperseded
v33 patches8 repliesSuperseded
v23 patches4 repliesSuperseded
v13 patches4 repliesSuperseded

Changes in v13 from the cover letter

- rename driver sun20i -> sun8i to reflect wider SoC coverage
- drop the misleading APB > HOSC dev_info() warning
- require allwinner,npwms and validate it as 1..16 (remove default 8 and silent clamp)
- adjust clock-source selection comment/logic:
when sibling is disabled, pick the faster parent (APB vs HOSC); when sibling is enabled, keep existing shared settings

Patches in v13 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/3dt-bindings: pwm: Add binding for Allwinner D1/T113-S3/R329 PWM controllerDocumentation/devicetree/bindings/pwm/allwinner,sun20i-d1-pwm.yaml+74 -01 reply
2/3pwm: Add Allwinner's D1/T113-S3/R329 SoCs PWM supportdrivers/pwm/Kconfig drivers/pwm/Makefile drivers/pwm/pwm-sun8i.c+404 -01 reply
3/3riscv: dts: allwinner: d1: Add pwm nodearch/riscv/boot/dts/allwinner/sunxi-d1s-t113.dtsi+13 -01 reply

Reviews trailers per patch

1 of 3 patches has a Reviewed-by or Acked-by.

PatchRob Herring (Arm)
1/3R-b
2/3
3/3

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

Read the v13 thread

Cover letter [PATCH v13 0/3] Add support for Allwinner PWM on D1/T113s/R329 SoCs

v2:
- fix dt-bindings
- fix a remark in the driver

v3:
- fix dt-bindings
- fix sunxi-d1s-t113.dtsi

v4:
- fix a remark in the driver

v5:
- dropped unused varibale in the driver
- fix dt-bindings

v6:
- add apb0 clock

v7:
- fix a remark in the driver
- add maintainer

v8:
- fix compile driver for 6.8-rc

v9:
- fix a remark in the driver
- fix dt-bindings
- rename apb0 -> apb

v10:
- fix a remark in the driver
- fix compile driver for 6.12-rc2

v11:
- fix a remark in the driver
- fix compile driver for 6.14.0-rc2

v12:
- fix a remark in the driver
- fix a remark in the dt-bindings
- check driver build on 6.15.0-rc3

v13:
- rename driver sun20i -> sun8i to reflect wider SoC coverage
- drop the misleading APB > HOSC dev_info() warning
- require allwinner,npwms and validate it as 1..16 (remove default 8 and silent clamp)
- adjust clock-source selection comment/logic:
when sibling is disabled, pick the faster parent (APB vs HOSC); when sibling is enabled, keep existing shared settings

Aleksandr Shubin (3):
dt-bindings: pwm: Add binding for Allwinner D1/T113-S3/R329 PWM
controller
pwm: Add Allwinner's D1/T113-S3/R329 SoCs PWM support
riscv: dts: allwinner: d1: Add pwm node

 .../bindings/pwm/allwinner,sun20i-d1-pwm.yaml |  74 ++++
 .../boot/dts/allwinner/sunxi-d1s-t113.dtsi    |  13 +
 drivers/pwm/Kconfig                           |  10 +
 drivers/pwm/Makefile                          |   1 +
 drivers/pwm/pwm-sun8i.c                       | 393 ++++++++++++++++++
 5 files changed, 491 insertions(+)
 create mode 100644 Documentation/devicetree/bindings/pwm/allwinner,sun20i-d1-pwm.yaml
 create mode 100644 drivers/pwm/pwm-sun8i.c
Signature · 1 line
2.25.1