From: Romain Perier <romain.perier@gmail.com>
To: Thierry Reding <thierry.reding@gmail.com>,
Lee Jones <lee.jones@linaro.org>, Daniel Palmer <daniel@0x0f.com>,
Romain Perier <romain.perier@gmail.com>,
Rob Herring <robh+dt@kernel.org>
Cc: linux-arm-kernel@lists.infradead.org, devicetree@vger.kernel.org,
linux-pwm@vger.kernel.org, linux-kernel@vger.kernel.org
Subject: [PATCH v2 0/5] Add PWM for MStar SoCs
Date: Wed, 7 Sep 2022 15:12:36 +0200 [thread overview]
Message-ID: <20220907131241.31941-1-romain.perier@gmail.com> (raw)
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
_______________________________________________
linux-arm-kernel mailing list
linux-arm-kernel@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/linux-arm-kernel
next reply other threads:[~2022-09-07 13:14 UTC|newest]
Thread overview: 15+ messages / expand[flat|nested] mbox.gz Atom feed top
2022-09-07 13:12 Romain Perier [this message]
2022-09-07 13:12 ` [PATCH v2 1/5] dt-bindings: pwm: Add Mstar MSC313e PWM devicetree bindings documentation Romain Perier
2022-09-12 20:33 ` Rob Herring
2022-10-28 23:33 ` Krzysztof Kozlowski
2022-09-07 13:12 ` [PATCH v2 2/5] pwm: Add support for the MSTAR MSC313 PWM Romain Perier
2022-09-27 16:33 ` Uwe Kleine-König
2022-09-28 12:47 ` Daniel Palmer
2022-10-27 8:36 ` Romain Perier
2022-10-27 9:22 ` Uwe Kleine-König
2022-09-07 13:12 ` [PATCH v2 3/5] ARM: dts: mstar: Add pwm device node to infinity Romain Perier
2022-09-07 13:12 ` [PATCH v2 4/5] ARM: dts: mstar: Add pwm device node to infinity3 Romain Perier
2022-09-07 13:12 ` [PATCH v2 5/5] ARM: dts: mstar: Add pwm device node to infinity2m Romain Perier
2022-09-27 6:41 ` [PATCH v2 0/5] Add PWM for MStar SoCs Romain Perier
2022-10-28 23:32 ` Krzysztof Kozlowski
[not found] ` <CABgxDo+2OXLy7-xEetQ4zzaPQbB4tbQ=WtdcU494Uo5xWpPkVg@mail.gmail.com>
2022-11-02 14:06 ` Krzysztof Kozlowski
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20220907131241.31941-1-romain.perier@gmail.com \
--to=romain.perier@gmail.com \
--cc=daniel@0x0f.com \
--cc=devicetree@vger.kernel.org \
--cc=lee.jones@linaro.org \
--cc=linux-arm-kernel@lists.infradead.org \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-pwm@vger.kernel.org \
--cc=robh+dt@kernel.org \
--cc=thierry.reding@gmail.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).