All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH 0/2] Add support for RZ/G2L GPT
@ 2022-05-10 14:42 Biju Das
  2022-05-10 14:42 ` [PATCH 1/2] dt-bindings: pwm: Add RZ/G2L GPT binding Biju Das
  2022-05-10 14:42 ` [PATCH 2/2] pwm: Add support for RZ/G2L GPT Biju Das
  0 siblings, 2 replies; 13+ messages in thread
From: Biju Das @ 2022-05-10 14:42 UTC (permalink / raw)
  To: Thierry Reding, Lee Jones, Rob Herring, Krzysztof Kozlowski,
	Philipp Zabel
  Cc: Biju Das, Uwe Kleine-König, linux-pwm, devicetree,
	Geert Uytterhoeven, Chris Paterson, Biju Das,
	Prabhakar Mahadev Lad, linux-renesas-soc

RZ/G2L General PWM Timer (GPT) composed of 8 channels with 32-bit timer
(GPT32E). It supports the following functions
 * 32 bits × 8 channels
 * Up-counting or down-counting (saw waves) or up/down-counting
   (triangle waves) for each counter.
 * Clock sources independently selectable for each channel
 * Two I/O pins per channel
 * Two output compare/input capture registers per channel
 * For the two output compare/input capture registers of each channel,
   four registers are provided as buffer registers and are capable of
   operating as comparison registers when buffering is not in use.
 * In output compare operation, buffer switching can be at crests or
   troughs, enabling the generation of laterally asymmetric PWM waveforms.
 * Registers for setting up frame cycles in each channel (with capability
   for generating interrupts at overflow or underflow)
 * Generation of dead times in PWM operation
 * Synchronous starting, stopping and clearing counters for arbitrary
   channels
 * Starting, stopping, clearing and up/down counters in response to input
   level comparison
 * Starting, clearing, stopping and up/down counters in response to a
   maximum of four external triggers
 * Output pin disable function by dead time error and detected
   short-circuits between output pins
 * A/D converter start triggers can be generated (GPT32E0 to GPT32E3)
 * Enables the noise filter for input capture and external trigger
   operation

This patch series aims to add basic pwm support for RZ/G2L GPT driver
by creating separate logical channels for each IOs.

RFC->v1:
 * Added Description in binding patch
 * Removed comments from reg and clock
 * replaced rzg2l_gpt_write_mask()->rzg2l_gpt_modify()
 * Added rzg2l_gpt_read() and updated macros
 * Removed dtsi patches, will send it separately

RFC:
 * https://lore.kernel.org/linux-renesas-soc/20220430075915.5036-1-biju.das.jz@bp.renesas.com/T/#t

Biju Das (2):
  dt-bindings: pwm: Add RZ/G2L GPT binding
  pwm: Add support for RZ/G2L GPT

 .../bindings/pwm/renesas,rzg2l-gpt.yaml       | 131 +++++++
 drivers/pwm/Kconfig                           |  11 +
 drivers/pwm/Makefile                          |   1 +
 drivers/pwm/pwm-rzg2l-gpt.c                   | 355 ++++++++++++++++++
 4 files changed, 498 insertions(+)
 create mode 100644 Documentation/devicetree/bindings/pwm/renesas,rzg2l-gpt.yaml
 create mode 100644 drivers/pwm/pwm-rzg2l-gpt.c

-- 
2.25.1


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

end of thread, other threads:[~2022-06-06 12:33 UTC | newest]

Thread overview: 13+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-05-10 14:42 [PATCH 0/2] Add support for RZ/G2L GPT Biju Das
2022-05-10 14:42 ` [PATCH 1/2] dt-bindings: pwm: Add RZ/G2L GPT binding Biju Das
2022-05-16  6:51   ` Uwe Kleine-König
2022-05-16  7:02     ` Biju Das
2022-05-17 21:01   ` Rob Herring
2022-05-18  5:46     ` Biju Das
2022-05-19  9:22   ` Geert Uytterhoeven
2022-05-19  9:23     ` Geert Uytterhoeven
2022-05-10 14:42 ` [PATCH 2/2] pwm: Add support for RZ/G2L GPT Biju Das
2022-05-10 16:34   ` Uwe Kleine-König
2022-06-01 19:25     ` Biju Das
2022-06-02  7:43       ` Uwe Kleine-König
2022-06-06 12:33         ` Biju Das

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.