[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Message-Id: <20220907131241.31941-1-romain.perier@gmail.com>
Date: Wed, 7 Sep 2022 15:12:36 +0200
From: Romain Perier <romain.perier@...il.com>
To: Thierry Reding <thierry.reding@...il.com>,
Lee Jones <lee.jones@...aro.org>,
Daniel Palmer <daniel@...f.com>,
Romain Perier <romain.perier@...il.com>,
Rob Herring <robh+dt@...nel.org>
Cc: linux-arm-kernel@...ts.infradead.org, devicetree@...r.kernel.org,
linux-pwm@...r.kernel.org, linux-kernel@...r.kernel.org
Subject: [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
--
2.35.1
Powered by blists - more mailing lists