Skip to content

arm64: renesas: r8a78000: Add PWM support

Geert Uytterhoeven linux-arm-kernel linux-clk linux-devicetree linux-pm linux-pwm linux-renesas-soc 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest11 patches 13 repliesIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/11dt-bindings: pwm: renesas,tpu-pwm: Add support for R-Car X5HDocumentation/devicetree/bindings/pwm/renesas,tpu-pwm.yaml+1 -01 reply
2/11dt-bindings: pwm: renesas,pwm-rcar: Add support for R-Car X5HDocumentation/devicetree/bindings/pwm/renesas,pwm-rcar.yaml+33 -281 reply
3/11pwm: rcar: Use FIELD_PREP() for PWMCR_CC0 accessdrivers/pwm/pwm-rcar.c+2 -30 replies
4/11pwm: rcar: Add helper variable dev to rcar_pwm_probe()drivers/pwm/pwm-rcar.c+8 -70 replies
5/11pwm: rcar: Parametrize cycle counter field sizedrivers/pwm/pwm-rcar.c+33 -180 replies
6/11pwm: rcar: Add support for R-Car Gen5drivers/pwm/pwm-rcar.c+22 -50 replies
7/11dt-bindings: clock: renesas,r8a78000-cpg: Add PWM clocksinclude/dt-bindings/clock/renesas,r8a78000-cpg.h+3 -011 replies
8/11arm64: dts: renesas: r8a78000: Add PWM nodesarch/arm64/boot/dts/renesas/r8a78000.dtsi+121 -00 replies
9/11clk: renesas: r8a78000: Add PWM clocksdrivers/clk/renesas/r8a78000-cpg.c+6 -00 replies
10/11pmdomain: renesas: r8a78000: Add PWM supportdrivers/pmdomain/renesas/r8a78000-mdlc.c+2 -00 replies
11/11arm64: dts: renesas: ironhide: Enable PWMarch/arm64/boot/dts/renesas/r8a78000-ironhide.dts+84 -00 replies

Reviews trailers per patch

3 of 11 patches have a Reviewed-by or Acked-by.

PatchKrzysztof Kozlowski
1/11A-b
2/11R-b
3/11
4/11
5/11
6/11
7/11A-b
8/11
9/11
10/11
11/11

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.

Read the v1 thread

Cover letter [PATCH 00/11] arm64: renesas: r8a78000: Add PWM support

Hi all,

This patch series enables PWM support for the Renesas R-Car X5H SoC, as found on the Renesas Ironhide development board. On this board, clocks, power-domains, and resets must be accessed only through SCMI firmware.

Just like its GPIO counterpart[1], this series is a bit special, in that several patches are not meant to be applied upstream yet:
1. The first patch, targeting the PWM tree, documents support for the 16-Bit Timer Pulse Unit (TPU) on R-Car X5H; no driver changes are needed,
2. Patches 2-6, targeting the PWM tree too, document and add support for the PWM instances on R-Car X5H, after a few customary refactorings,
3. Patch 7, targeting a shared DT bindings branch, adds PWM clock definitions,
4. Patch 8, targeting renesas-devel, adds the various PWM device nodes to the R-Car X5H .dtsi file,
5. The remaining patches are marked DNI, and depend on code or DTS that is not yet upstream. More detail can be found in the individual patches.

PWM instances 0 to 5 and TPU channels 0 and 1 have been tested on Ironhide using a set of blinkenlights and a logic analyzer.

Thanks for your comments!

[1] "[PATCH 0/7] arm64: renesas: r8a78000: Enable GPIO support"

    https://lore.kernel.org/[email protected]

Geert Uytterhoeven (10):
dt-bindings: pwm: renesas,pwm-rcar: Add support for R-Car X5H
pwm: rcar: Use FIELD_PREP() for PWMCR_CC0 access
pwm: rcar: Add helper variable dev to rcar_pwm_probe()
pwm: rcar: Parametrize cycle counter field size
pwm: rcar: Add support for R-Car Gen5
dt-bindings: clock: renesas,r8a78000-cpg: Add PWM clocks
arm64: dts: renesas: r8a78000: Add PWM nodes
[DNI] clk: renesas: r8a78000: Add PWM clocks
[DNI] pmdomain: renesas: r8a78000: Add PWM support [DNI] arm64: dts: renesas: ironhide: Enable PWM

Khanh Le (1):
dt-bindings: pwm: renesas,tpu-pwm: Add support for R-Car X5H

 .../bindings/pwm/renesas,pwm-rcar.yaml        |  61 +++++----
 .../bindings/pwm/renesas,tpu-pwm.yaml         |   1 +
 .../boot/dts/renesas/r8a78000-ironhide.dts    |  84 ++++++++++++
 arch/arm64/boot/dts/renesas/r8a78000.dtsi     | 121 ++++++++++++++++++
 drivers/clk/renesas/r8a78000-cpg.c            |   6 +
 drivers/pmdomain/renesas/r8a78000-mdlc.c      |   2 +
 drivers/pwm/pwm-rcar.c                        |  92 ++++++++-----
 .../dt-bindings/clock/renesas,r8a78000-cpg.h  |   3 +
 8 files changed, 312 insertions(+), 58 deletions(-)
Signature · 12 lines
2.43.0

Gr{oetje,eeting}s,

						Geert

--
Geert Uytterhoeven -- There's lots of Linux beyond ia32 -- [email protected]

In personal conversations with technical people, I call myself a hacker. But
when I'm talking to journalists I just say "programmer" or something like that.
							    -- Linus Torvalds