Skip to content

Add PWM for MStar SoCs

Romain Perier linux-arm-kernel linux-devicetree linux-pwm lkml 2 versions – In review

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v2 Latest5 patches 9 repliesIn review
  2. v15 patches 8 repliesSuperseded

Changes in v2 from the cover letter

- Fixed commit message for the dt-bindings doc
- Removed "OneOf" from the dt-bindings doc
- Re-ordered alphabetically in Kconfig and remove
unseless empty lines
- Explain and adds comment in _writecounter() (hw constrainst)
- Reworked the msc313e_pwm_config() function
- Fixed clk handling
- Removed extra callbacks, only keep .apply and .get_state
- Implement .get_state completly, this fixes the driver with PWM_DEBUG (the whole driver has been tested with PWM_DEBUG).
- Dropped useless lines in _probe
- I have kept regmap_field() because it is more clean and helpful, it avoids to do too much of offset and mask and shift all over the place.

Patches in v2 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/5dt-bindings: pwm: Add Mstar MSC313e PWM devicetree bindings documentationDocumentation/devicetree/bindings/pwm/mstar,msc313e-pwm.yaml+46 -02 replies
2/5pwm: Add support for the MSTAR MSC313 PWMMAINTAINERS drivers/pwm/Kconfig drivers/pwm/Makefile +1 more+280 -04 replies
3/5ARM: dts: mstar: Add pwm device node to infinityarch/arm/boot/dts/mstar-infinity.dtsi+10 -00 replies
4/5ARM: dts: mstar: Add pwm device node to infinity3arch/arm/boot/dts/mstar-infinity3.dtsi+10 -00 replies
5/5ARM: dts: mstar: Add pwm device node to infinity2march/arm/boot/dts/mstar-infinity2m.dtsi+8 -00 replies

Reviews trailers per patch

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

PatchRob Herring
1/5R-b
2/5
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 v2 thread

Cover letter [PATCH v2 0/5] Add PWM for MStar SoCs

This patches series adds a new driver for the PWM found in the Mstar MSC313e SoCs and newer. It adds a basic pwm driver, the corresponding devicetree bindings and its documentation.

Changes since v1:
- Fixed commit message for the dt-bindings doc
- Removed "OneOf" from the dt-bindings doc
- Re-ordered alphabetically in Kconfig and remove
unseless empty lines
- Explain and adds comment in _writecounter() (hw constrainst)
- Reworked the msc313e_pwm_config() function
- Fixed clk handling
- Removed extra callbacks, only keep .apply and .get_state
- Implement .get_state completly, this fixes the driver with PWM_DEBUG (the whole driver has been tested with PWM_DEBUG).
- Dropped useless lines in _probe
- I have kept regmap_field() because it is more clean and helpful, it avoids to do too much of offset and mask and shift all over the place.

Daniel Palmer (1):
pwm: Add support for the MSTAR MSC313 PWM

Romain Perier (4):
dt-bindings: pwm: Add Mstar MSC313e PWM devicetree bindings
documentation
ARM: dts: mstar: Add pwm device node to infinity
ARM: dts: mstar: Add pwm device node to infinity3
ARM: dts: mstar: Add pwm device node to infinity2m

 .../bindings/pwm/mstar,msc313e-pwm.yaml       |  46 +++
 MAINTAINERS                                   |   1 +
 arch/arm/boot/dts/mstar-infinity.dtsi         |  10 +
 arch/arm/boot/dts/mstar-infinity2m.dtsi       |   8 +
 arch/arm/boot/dts/mstar-infinity3.dtsi        |  10 +
 drivers/pwm/Kconfig                           |  10 +
 drivers/pwm/Makefile                          |   1 +
 drivers/pwm/pwm-msc313e.c                     | 269 ++++++++++++++++++
 8 files changed, 355 insertions(+)
 create mode 100644 Documentation/devicetree/bindings/pwm/mstar,msc313e-pwm.yaml
 create mode 100644 drivers/pwm/pwm-msc313e.c
Signature · 1 line
2.35.1