All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH v6 00/10] Designware PWM driver updates for OF
@ 2022-10-20 15:16 Ben Dooks
  2022-10-20 15:16 ` [PATCH v6 01/10] dt-bindings: pwm: Document Synopsys DesignWare snps,pwm-dw-apb-timers-pwm2 Ben Dooks
                   ` (10 more replies)
  0 siblings, 11 replies; 28+ messages in thread
From: Ben Dooks @ 2022-10-20 15:16 UTC (permalink / raw)
  To: linux-pwm
  Cc: devicetree, linux-kernel, Lee Jones, u.kleine-koenig,
	Thierry Reding, Krzysztof Kozlowski, Greentime Hu, jarkko.nikula,
	William Salmon, Jude Onyenegecha, Ben Dooks

This is an updated version of the Designware PWM driver updates
for OF support, which now splits the driver into PCI and OF parts
as well as tries to sort out the review comments.

Hopefully this can now be queued for the next kernel version.

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 (10):
  dt-bindings: pwm: Document Synopsys DesignWare
    snps,pwm-dw-apb-timers-pwm2
  pwm: dwc: allow driver to be built with COMPILE_TEST
  pwm: dwc: change &pci->dev to dev in probe
  pwm: dwc: move memory alloc to own function
  pwm: dwc: use devm_pwmchip_add
  pwm: dwc: split pci out of core driver
  pwm: dwc: make timer clock configurable
  pwm: dwc: add of/platform support
  pwm: dwc: add PWM bit unset in get_state call
  pwm: dwc: use clock rate in hz to avoid rounding issues

 .../bindings/pwm/snps,dw-apb-timers-pwm2.yaml |  68 ++++++
 drivers/pwm/Kconfig                           |  24 +-
 drivers/pwm/Makefile                          |   2 +
 drivers/pwm/pwm-dwc-of.c                      |  76 +++++++
 drivers/pwm/pwm-dwc-pci.c                     | 134 +++++++++++
 drivers/pwm/pwm-dwc.c                         | 210 ++++--------------
 drivers/pwm/pwm-dwc.h                         |  59 +++++
 7 files changed, 402 insertions(+), 171 deletions(-)
 create mode 100644 Documentation/devicetree/bindings/pwm/snps,dw-apb-timers-pwm2.yaml
 create mode 100644 drivers/pwm/pwm-dwc-of.c
 create mode 100644 drivers/pwm/pwm-dwc-pci.c
 create mode 100644 drivers/pwm/pwm-dwc.h

-- 
2.35.1


^ permalink raw reply	[flat|nested] 28+ messages in thread

end of thread, other threads:[~2022-11-17 16:15 UTC | newest]

Thread overview: 28+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-10-20 15:16 [PATCH v6 00/10] Designware PWM driver updates for OF Ben Dooks
2022-10-20 15:16 ` [PATCH v6 01/10] dt-bindings: pwm: Document Synopsys DesignWare snps,pwm-dw-apb-timers-pwm2 Ben Dooks
2022-10-20 15:36   ` Krzysztof Kozlowski
2022-10-24 15:45     ` Ben Dooks
2022-10-20 15:39   ` Uwe Kleine-König
2022-11-17 16:10   ` Uwe Kleine-König
2022-10-20 15:16 ` [PATCH v6 02/10] pwm: dwc: allow driver to be built with COMPILE_TEST Ben Dooks
2022-10-20 15:51   ` Uwe Kleine-König
2022-10-20 15:16 ` [PATCH v6 03/10] pwm: dwc: change &pci->dev to dev in probe Ben Dooks
2022-10-20 15:16 ` [PATCH v6 04/10] pwm: dwc: move memory alloc to own function Ben Dooks
2022-11-10 15:35   ` Uwe Kleine-König
2022-10-20 15:16 ` [PATCH v6 05/10] pwm: dwc: use devm_pwmchip_add Ben Dooks
2022-10-20 15:55   ` Uwe Kleine-König
2022-10-20 15:16 ` [PATCH v6 06/10] pwm: dwc: split pci out of core driver Ben Dooks
2022-11-10 15:29   ` Uwe Kleine-König
2022-11-10 16:35     ` Ben Dooks
2022-11-17 16:15       ` Uwe Kleine-König
2022-10-20 15:16 ` [PATCH v6 07/10] pwm: dwc: make timer clock configurable Ben Dooks
2022-11-10 15:39   ` Uwe Kleine-König
2022-10-20 15:16 ` [PATCH v6 08/10] pwm: dwc: add of/platform support Ben Dooks
2022-10-20 15:16 ` [PATCH v6 09/10] pwm: dwc: add PWM bit unset in get_state call Ben Dooks
2022-10-20 15:16 ` [PATCH v6 10/10] pwm: dwc: use clock rate in hz to avoid rounding issues Ben Dooks
2022-11-10 15:42   ` Uwe Kleine-König
2022-11-10 16:29     ` Ben Dooks
2022-10-24  8:39 ` [PATCH v6 00/10] Designware PWM driver updates for OF Jarkko Nikula
2022-10-24 15:40   ` Ben Dooks
2022-11-08 11:19   ` Ben Dooks
2022-11-08 11:48     ` Uwe Kleine-König

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.