Skip to content

DesignWare PWM driver updates

Ben Dooks linux-devicetree linux-pwm lkml 6 versions – In review

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v8 Latest5 patches 8 repliesIn review
  2. v710 patches 11 repliesApplied
  3. v610 patches 17 repliesSuperseded
Earlier versions · 3
VersionPostedPatchesRepliesStatus
v510 patches3 repliesSuperseded
v4 RFC10 patches16 repliesSuperseded
v18 patches8 repliesSuperseded

Changes in v8 from the cover letter

- updated reviewed tags
- fix module name for pci version
- fix config symbol bug in makefile
- remove pci compile-test (mostly not used for pci)
- push the compile-test into the platform/of driver

Patches in v8 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/5pwm: dwc: split pci out of core driverdrivers/pwm/Kconfig drivers/pwm/Makefile drivers/pwm/pwm-dwc-core.c +2 more+253 -1953 replies
2/5pwm: dwc: make timer clock configurabledrivers/pwm/pwm-dwc-core.c drivers/pwm/pwm-dwc.h+6 -50 replies
3/5pwm: dwc: add PWM bit unset in get_state calldrivers/pwm/pwm-dwc-core.c+18 -111 reply
4/5pwm: dwc: use clock rate in hz to avoid rounding issuesdrivers/pwm/pwm-dwc-core.c drivers/pwm/pwm-dwc.h+16 -101 reply
5/5pwm: dwc: add of/platform supportdrivers/pwm/Kconfig drivers/pwm/Makefile drivers/pwm/pwm-dwc-core.c +3 more+97 -01 reply

Reviews trailers per patch

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

PatchUwe Kleine-KönigJarkko Nikula
SeriesT-b
1/5
2/5R-b
3/5
4/5
5/5

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

Read the v8 thread

Cover letter [PATCH v8 0/5] DesignWare PWM driver updates

This series is an update for the DesignWare PWM driver to add support for OF (and split the PCI bits out if aynone else wants them). This is mostly the same as the v7 series, but with code moved around and module-namespace added, plus review comments processed.

Since we no longer have the hardware, the clock code hasn't been changed to either lock the rate whilst the PWM is running, or to deal with any sort of change callback. This is left to future work (and I would rather get something in that does currently work) (second note, the hardware we did use had a fixed clock tree anyway)

This account is probably going away soon, I have cc'd my main work email to catch any responses.

Thank you all for the reviews.

The lengthy changelog:

v8:
- updated reviewed tags
- fix module name for pci version
- fix config symbol bug in makefile
- remove pci compile-test (mostly not used for pci)
- push the compile-test into the platform/of driver
v7:
- fixup kconfig from previous pcie changes
- re-order kconfig to make dwc core be selected by PCI driver
- move clk variable to patch it is used in
v6:
- fix removal ordering of DWC_PERIOD_NS
v5:
- fixed kconfig string error
- merged pwm-nr into main of code
- split of code from pci code
- updated pwm-nr capping
- fix duplicate error reporting in of-code
- fix return in of-probe
- remove unecessary remove function as devm_ functions sort this
- fixed ordering of properties
- added missing reg item
- fixed missing split of the two clock sources.
- get bus clock in of code
v4:
- split pci and of into new modules
- fixup review comments
- fix typos in dt-bindings
v3:
- change the compatible name
- squash down pwm count patch
- fixup patch naming
v2:
- fix #pwm-cells count to be 3
- fix indetation
- merge the two clock patches
- add HAS_IOMEM as a config dependency

Ben Dooks (5):
pwm: dwc: split pci out of core driver
pwm: dwc: make timer clock configurable
pwm: dwc: add PWM bit unset in get_state call
pwm: dwc: use clock rate in hz to avoid rounding issues
pwm: dwc: add of/platform support

 drivers/pwm/Kconfig        |  24 ++++-
 drivers/pwm/Makefile       |   2 +
 drivers/pwm/pwm-dwc-core.c | 196 ++++++++++++++++++++++++++++++++++++
 drivers/pwm/pwm-dwc-of.c   |  78 +++++++++++++++
 drivers/pwm/pwm-dwc.c      | 198 +------------------------------------
 drivers/pwm/pwm-dwc.h      |  61 ++++++++++++
 6 files changed, 364 insertions(+), 195 deletions(-)
 create mode 100644 drivers/pwm/pwm-dwc-core.c
 create mode 100644 drivers/pwm/pwm-dwc-of.c
 create mode 100644 drivers/pwm/pwm-dwc.h
Signature · 1 line
2.39.2