[RFC v4 00/10] RFC on synpsys pwm driver changes

From: Ben Dooks
Date: Tue Aug 16 2022 - 17:15:03 EST


New version of the pwm timers patch, hopefully all review comments
are sorted out, however I have not had time to fully test this and
I do not have a PCI system to test it on either.

The series has been moved around a bit to try to get some of the
simpler changes in before splitting and to make the OF driver a
single addition.

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 snps,pwm-number to limit pwm count
pwm: dwc: add PWM bit unset in get_state call

.../bindings/pwm/snps,dw-apb-timers-pwm2.yaml | 69 ++++++
drivers/pwm/Kconfig | 24 ++-
drivers/pwm/Makefile | 2 +
drivers/pwm/pwm-dwc-of.c | 86 ++++++++
drivers/pwm/pwm-dwc-pci.c | 134 ++++++++++++
drivers/pwm/pwm-dwc.c | 197 +++---------------
drivers/pwm/pwm-dwc.h | 60 ++++++
7 files changed, 402 insertions(+), 170 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