linux-renesas-soc.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH RFC 0/7] Add RZ/G2L MTU3 PWM driver
@ 2022-09-29 10:30 Biju Das
  2022-09-29 10:30 ` [PATCH RFC 1/7] dt-bindings: mfd: Document RZ/G2L MTU3a bindings Biju Das
                   ` (6 more replies)
  0 siblings, 7 replies; 28+ messages in thread
From: Biju Das @ 2022-09-29 10:30 UTC (permalink / raw)
  To: Rob Herring, Krzysztof Kozlowski, Philipp Zabel, Thierry Reding
  Cc: Biju Das, Geert Uytterhoeven, Lee Jones, Uwe Kleine-König,
	linux-pwm, devicetree, Chris Paterson, Biju Das,
	Prabhakar Mahadev Lad, linux-renesas-soc

Add support for RZ/G2L MTU3 PWM driver. The IP supports
following PWM modes

1) PWM mode 1
2) PWM mode 2
3) Reset-synchronized PWM mode
4) Complementary PWM mode 1 (transfer at crest)
5) Complementary PWM mode 2 (transfer at trough)
6) Complementary PWM mode 3 (transfer at crest and trough)

This patch adds basic pwm mode 1 support for RZ/G2L MTU3 driver
by creating separate logical channels for each IOs.

Current patch set is tested with PWM mode 1 on the MTU3 channel
that has 2 IO's.

Please share your valuable comments on this patch series.

This RFC patch series depend upon MFD driver[1]
[1] https://patchwork.kernel.org/project/linux-renesas-soc/patch/20220926132114.60396-4-biju.das.jz@bp.renesas.com/

Biju Das (7):
  dt-bindings: mfd: Document RZ/G2L MTU3a bindings
  dt-bindings: mfd: rzg2l-mtu3: Document RZ/G2L MTU3 counter
  dt-bindings: mfd: rz-mtu3: Document RZ/G2L MTU3 PWM
  pwm: Add support for RZ/G2L MTU3 PWM
  arm64: dts: renesas: r9a07g044: Add MTU3 PWM support
  arm64: dts: renesas: r9a07g054: Add MTU3 PWM support
  arm64: dts: renesas: rzg2l-smarc: [HACK] Enable MTU3 PWM channel 3 for
    PWM mode 1 testing

 .../bindings/mfd/renesas,rzg2l-mtu3.yaml      | 360 ++++++++++++++++
 arch/arm64/boot/dts/renesas/r9a07g044.dtsi    |  42 ++
 arch/arm64/boot/dts/renesas/r9a07g054.dtsi    |  42 ++
 .../boot/dts/renesas/rz-smarc-common.dtsi     |   2 +
 .../dts/renesas/rzg2l-smarc-pinfunction.dtsi  |  11 +
 arch/arm64/boot/dts/renesas/rzg2l-smarc.dtsi  |   5 +
 arch/arm64/boot/dts/renesas/rzg2lc-smarc.dtsi |  20 +
 drivers/pwm/Kconfig                           |  11 +
 drivers/pwm/Makefile                          |   1 +
 drivers/pwm/pwm-rz-mtu3.c                     | 384 ++++++++++++++++++
 10 files changed, 878 insertions(+)
 create mode 100644 Documentation/devicetree/bindings/mfd/renesas,rzg2l-mtu3.yaml
 create mode 100644 drivers/pwm/pwm-rz-mtu3.c

-- 
2.25.1


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

end of thread, other threads:[~2022-10-03  9:41 UTC | newest]

Thread overview: 28+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-09-29 10:30 [PATCH RFC 0/7] Add RZ/G2L MTU3 PWM driver Biju Das
2022-09-29 10:30 ` [PATCH RFC 1/7] dt-bindings: mfd: Document RZ/G2L MTU3a bindings Biju Das
2022-09-29 17:53   ` Lee Jones
2022-09-30 17:47     ` Rob Herring
2022-10-03  7:34       ` Lee Jones
2022-10-03  7:38         ` Geert Uytterhoeven
2022-10-03  8:51           ` Lee Jones
2022-09-29 10:30 ` [PATCH RFC 2/7] dt-bindings: mfd: rzg2l-mtu3: Document RZ/G2L MTU3 counter Biju Das
2022-09-29 17:52   ` Lee Jones
2022-09-30 19:03   ` Rob Herring
2022-10-01 16:36     ` Biju Das
2022-10-02 16:50       ` Biju Das
2022-09-29 10:30 ` [PATCH RFC 3/7] dt-bindings: mfd: rz-mtu3: Document RZ/G2L MTU3 PWM Biju Das
2022-09-29 17:52   ` Lee Jones
2022-09-29 17:59     ` Biju Das
2022-09-30 12:10       ` Lee Jones
2022-10-01 19:26         ` Biju Das
2022-10-03  7:32           ` Lee Jones
2022-10-03  8:16             ` Biju Das
2022-10-03  8:57               ` Lee Jones
2022-10-03  9:04                 ` Biju Das
2022-10-03  9:34                   ` Biju Das
2022-09-30 18:35   ` Rob Herring
2022-10-01 16:30     ` Biju Das
2022-09-29 10:30 ` [PATCH RFC 4/7] pwm: Add support for " Biju Das
2022-09-29 10:30 ` [PATCH RFC 5/7] arm64: dts: renesas: r9a07g044: Add MTU3 PWM support Biju Das
2022-09-29 10:30 ` [PATCH RFC 6/7] arm64: dts: renesas: r9a07g054: " Biju Das
2022-09-29 10:30 ` [PATCH RFC 7/7] arm64: dts: renesas: rzg2l-smarc: [HACK] Enable MTU3 PWM channel 3 for PWM mode 1 testing Biju Das

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).