Skip to content

pwm: Add pwm driver for Sophgo SG2042

Chen Wang linux-devicetree linux-pwm linux-riscv lkml 7 versions – Applied

Status from this message: Applied to for-next, thanks!

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v7 Latest3 patches 5 repliesApplied
  2. v63 patches 8 repliesSuperseded
  3. v53 patches 3 repliesSuperseded
Earlier versions · 4
VersionPostedPatchesRepliesStatus
v43 patches6 repliesSuperseded
v33 patches2 repliesSuperseded
v22 patches2 repliesSuperseded
v12 patches12 repliesSuperseded

Changes in v7 from the cover letter

The patch series is based on v6.14-rc1.

Patches in v7 Applied

#Subject and filesSizeRepliesApplied
1/3dt-bindings: pwm: sophgo: add PWM controller for SG2042Documentation/devicetree/bindings/pwm/sophgo,sg2042-pwm.yaml+58 -00 replies
2/3pwm: sophgo: add driver for Sophgo SG2042 PWMdrivers/pwm/Kconfig drivers/pwm/Makefile drivers/pwm/pwm-sophgo-sg2042.c+207 -04 replies
3/3riscv: sophgo: dts: add pwm controller for SG2042 SoCarch/riscv/boot/dts/sophgo/sg2042.dtsi+9 -00 replies

Reviews trailers per patch

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

PatchKrzysztof Kozlowski
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 v7 thread

Cover letter [PATCH v7 0/3] pwm: Add pwm driver for Sophgo SG2042

From: Chen Wang <[email protected]>

Add driver for pwm controller of Sophgo SG2042 SoC.

Thanks,
Chen

---

Changes in v7:
The patch series is based on v6.14-rc1.

Fixed following issues as per comments from Uwe Kleine-König, thanks.

- dt-bindings: change value of "#pwm-cells" from 2 to 3.
- driver: rename variables period/hlperiod to period_ticks/hlperiod_ticks and improve coding of apply()/get_state(); use devm_reset_control_get_optional_shared_deasserted() instead of devm_reset_control_get_optional_shared() and reset_control_deassert(); add more comments and other miscellaneous code improvements.

Changes in v6:
Nothing major changes just rebased onto v6.13-rc1 and retested. You can simply review or test the patches at the link [6].

Changes in v5:
The patch series is based on v6.12-rc1. You can simply review or test the patches at the link [5].

Updated driver to add resets property for pwm controller node as per suggestion from Inochi.

Changes in v4:
The patch series is based on v6.12-rc1. You can simply review or test the patches at the link [4].

Updated driver to set property atomic of pwm_chip to true as per suggestion from Sean.

Changes in v3:
The patch series is catched up with v6.12-rc1. You can simply review or test the patches at the link [3].

Add patch #3 for dts part change.

Changes in v2:
The patch series is based on v6.11-rc6. You can simply review or test the patches at the link [2].

Fixed following issues as per comments from Yixun Lan, Krzysztof Kozlowski and Uwe Kleine-König, thanks.

- Some minor issues in dt-bindings.
- driver issues, use macros with name prefix for registers access; add limitations comments; fixed potential calculation overflow problem; add .get_state() callback and other miscellaneous code improvements.

Changes in v1:
The patch series is based on v6.11-rc6. You can simply review or test the patches at the link [1].

---

Chen Wang (3):
dt-bindings: pwm: sophgo: add PWM controller for SG2042
pwm: sophgo: add driver for Sophgo SG2042 PWM
riscv: sophgo: dts: add pwm controller for SG2042 SoC

 .../bindings/pwm/sophgo,sg2042-pwm.yaml       |  58 ++++++
 arch/riscv/boot/dts/sophgo/sg2042.dtsi        |   9 +
 drivers/pwm/Kconfig                           |  10 +
 drivers/pwm/Makefile                          |   1 +
 drivers/pwm/pwm-sophgo-sg2042.c               | 196 ++++++++++++++++++
 5 files changed, 274 insertions(+)
 create mode 100644 Documentation/devicetree/bindings/pwm/sophgo,sg2042-pwm.yaml
 create mode 100644 drivers/pwm/pwm-sophgo-sg2042.c

base-commit: 2014c95afecee3e76ca4a56956a936e23283f05b

Signature · 1 line
2.34.1