All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH v2 00/10] renesas: r8a78000: Add GPIO, PWM, and CAN-FD platform support
@ 2026-12-02 14:55 Geert Uytterhoeven
  2026-12-02 14:55 ` [PATCH v2 01/10] dt-bindings: clock: renesas,r8a78000-cpg: Add remaining PERW clocks Geert Uytterhoeven
                   ` (9 more replies)
  0 siblings, 10 replies; 15+ messages in thread
From: Geert Uytterhoeven @ 2026-12-02 14:55 UTC (permalink / raw)
  To: Wolfram Sang, Laurent Pinchart, Rob Herring, Krzysztof Kozlowski,
	Conor Dooley, Stephen Boyd, Brian Masney, Jerome Brunet,
	Magnus Damm
  Cc: linux-renesas-soc, linux-clk, devicetree, Geert Uytterhoeven

From: Geert Uytterhoeven <geert+renesas@glider.be>

	Hi all,

This patch series add platform integration support for GPIO, PWM, and
CAN-FD on the Renesas R-Car X5H SoC.

It consist of three parts:
  1. Patches 1-4, targeting the shared renesas-r8a78000-dt-binding-defs
     branch, contains DT bindings definitions for all clocks in the
     PERW, RT, PERE, and HSCN hierarchies,
  2. Patches 5-7, targeting renesas-devel, add device nodes for the
     GPIO, PWM, and CAN-FD controllers to the R-Car X5H .dtsi,
  3. Patches 8-10, targeting renesas-clk, add all clocks needed for
     GPIO, PWM, and CAN-FD to the R-Car X5H CPG clock driver.
     Note that this depends on "[PATCH v7 05/14] clk: renesas: r8a78000:
     Add SCMI remapping support"[1].
Parts 2 and 3 have hard dependencies on part 1.

All patches have been sent before in some form, as part of seperate
series, but have been recombined into a single series to make hard
dependencies more clear.

Changes compared to v1:
  - Add all PERW, RT, PERE, and HSCN clocks, instead of just the ones
    needed for GPIO, PWM, and CAN-FD, to keep the DT binding definitions
    file structured better.
    Hence I did not apply Krzysztof's Acked-by given on the various v1.
  - Add Reviewed-by,
  - Reword,
  - Rebase,
  - Use DT binding definition sort order.

I plan to queue at least the first five patches for v7.5.  The remaining
patches have to wait until their dependencies have been resolved.

Thanks for your comments!

[1] https://lore.kernel.org/59fef401875be3fa436de1e46d51d4a7c93b73c1.1796043912.git.geert+renesas@glider.be
[2] "[PATCH 0/7] arm64: renesas: r8a78000: Enable GPIO support"
    https://lore.kernel.org/cover.1792776697.git.geert+renesas@glider.be
[3] "[PATCH 00/11] arm64: renesas: r8a78000: Add PWM support"
    https://lore.kernel.org/cover.1793026273.git.geert+renesas@glider.be
[4] "[PATCH 0/9] arm64: renesas: r8a78000: Add PWM support" (sorry,
    should have been s/PWM/CAN-FD/)
    https://lore.kernel.org/cover.1793278754.git.geert+renesas@glider.be

Geert Uytterhoeven (9):
  dt-bindings: clock: renesas,r8a78000-cpg: Add remaining PERW clocks
  dt-bindings: clock: renesas,r8a78000-cpg: Add remaining RT clocks
  dt-bindings: clock: renesas,r8a78000-cpg: Add all PERE clocks
  dt-bindings: clock: renesas,r8a78000-cpg: Add all HSCN clocks
  arm64: dts: renesas: r8a78000: Add PWM nodes
  arm64: dts: renesas: r8a78000: Add CAN-FD nodes
  clk: renesas: r8a78000: Add GPIO clocks
  clk: renesas: r8a78000: Add PWM clocks
  clk: renesas: r8a78000: Add CAN-FD clocks

Marek Vasut (1):
  arm64: dts: renesas: r8a78000: Add GPIO controller nodes

 arch/arm64/boot/dts/renesas/r8a78000.dtsi     | 511 ++++++++++++++++++
 drivers/clk/renesas/r8a78000-cpg.c            |  23 +
 .../dt-bindings/clock/renesas,r8a78000-cpg.h  | 322 +++++++++++
 3 files changed, 856 insertions(+)

-- 
2.43.0

Gr{oetje,eeting}s,

						Geert

--
Geert Uytterhoeven -- There's lots of Linux beyond ia32 -- geert@linux-m68k.org

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

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

* [PATCH v2 01/10] dt-bindings: clock: renesas,r8a78000-cpg: Add remaining PERW clocks
  2026-12-02 14:55 [PATCH v2 00/10] renesas: r8a78000: Add GPIO, PWM, and CAN-FD platform support Geert Uytterhoeven
@ 2026-12-02 14:55 ` Geert Uytterhoeven
  2026-12-02 21:46   ` Wolfram Sang
  2026-12-02 14:55 ` [PATCH v2 02/10] dt-bindings: clock: renesas,r8a78000-cpg: Add remaining RT clocks Geert Uytterhoeven
                   ` (8 subsequent siblings)
  9 siblings, 1 reply; 15+ messages in thread
From: Geert Uytterhoeven @ 2026-12-02 14:55 UTC (permalink / raw)
  To: Wolfram Sang, Laurent Pinchart, Rob Herring, Krzysztof Kozlowski,
	Conor Dooley, Stephen Boyd, Brian Masney, Jerome Brunet,
	Magnus Damm
  Cc: linux-renesas-soc, linux-clk, devicetree, Geert Uytterhoeven

From: Geert Uytterhoeven <geert+renesas@glider.be>

Add all remaining clocks in the PERW Hierarchy, as listed in "Clock List
(PERW)" of attachment RCarX5H_TS_015_Clock_Controller_supplement.xlsx in
the R-Car X5H 1.0 Series User’s Manual: Hardware Rev.0.72.  Include
comments for already-defined clocks (which are part of the DT ABI and
thus cannot be changed), for easier comparison with the documentation.

Some of these are consumed by the DMAC, GPIO, I3C and PWM modules.

Signed-off-by: Geert Uytterhoeven <geert+renesas@glider.be>
---
Note that the documentation lists S0ASYNCD8_PERW_{MAIN,BUS} twice.

v2:
  - Add all PERW clocks, instead of just the ones we need for GPIO and
    PWM.
---
 .../dt-bindings/clock/renesas,r8a78000-cpg.h  | 53 +++++++++++++++++++
 1 file changed, 53 insertions(+)

diff --git a/include/dt-bindings/clock/renesas,r8a78000-cpg.h b/include/dt-bindings/clock/renesas,r8a78000-cpg.h
index 14b3885f2d9933a3..7415f196277f81a1 100644
--- a/include/dt-bindings/clock/renesas,r8a78000-cpg.h
+++ b/include/dt-bindings/clock/renesas,r8a78000-cpg.h
@@ -13,4 +13,57 @@
 #define R8A78000_CPG_MSO_SCP_MAIN		3
 #define R8A78000_CPG_MSOCK_PERW_BUS		4
 
+/* PERW Hierarchy */
+#define R8A78000_CPG_SGD4_PERW_MAIN		5
+#define R8A78000_CPG_SGD8_PERW_MAIN		6
+#define R8A78000_CPG_SGD16_PERW_MAIN		7
+#define R8A78000_CPG_SGD32_PERW_MAIN		8
+#define R8A78000_CPG_SGASYNCD4_PERW_MAIN	9
+#define R8A78000_CPG_SGASYNCD8_PERW_MAIN	10
+#define R8A78000_CPG_SGASYNCD16_PERW_MAIN	11
+#define R8A78000_CPG_SGASYNCD32_PERW_MAIN	12
+#define R8A78000_CPG_S0ASYNCD8_PERW_MAIN	13
+#define R8A78000_CPG_POSTCK_PERW_MAIN		14
+#define R8A78000_CPG_RCLK_PERW_MAIN		15
+#define R8A78000_CPG_CBFUSA_PERW_MAIN		16
+#define R8A78000_CPG_CL16M_PERW_MAIN		17
+#define R8A78000_CPG_MSOCK_PERW_MAIN		18
+#define R8A78000_CPG_SASYNCCK_I3C_PERW_MAIN	19
+#define R8A78000_CPG_HOCO_DIV20_PERW_MAIN	20
+
+#define R8A78000_CPG_SGD4_PERW_BUS		21
+#define R8A78000_CPG_SGD8_PERW_BUS		22
+#define R8A78000_CPG_SGD16_PERW_BUS		23
+#define R8A78000_CPG_SGD32_PERW_BUS		24
+/* R8A78000_CPG_SGASYNCD4_PERW_BUS at top */
+/* R8A78000_CPG_SGASYNCD8_PERW_BUS at top */
+/* R8A78000_CPG_SGASYNCD16_PERW_BUS at top */
+#define R8A78000_CPG_SGASYNCD32_PERW_BUS	25
+#define R8A78000_CPG_S0ASYNCD8_PERW_BUS		26
+#define R8A78000_CPG_POSTCK_PERW_BUS		27
+#define R8A78000_CPG_RCLK_PERW_BUS		28
+#define R8A78000_CPG_CBFUSA_PERW_BUS		29
+#define R8A78000_CPG_CL16M_PERW_BUS		30
+/* R8A78000_CPG_MSOCK_PERW_BUS at top */
+#define R8A78000_CPG_SASYNCCK_I3C_PERW_BUS	31
+#define R8A78000_CPG_LBCK_PERW_BUS		32
+
+#define R8A78000_CPG_SGD4_MP_MAIN		33
+#define R8A78000_CPG_SGD8_MP_MAIN		34
+#define R8A78000_CPG_SGD16_MP_MAIN		35
+#define R8A78000_CPG_SGD32_MP_MAIN		36
+#define R8A78000_CPG_POSTCK_MP_MAIN		37
+#define R8A78000_CPG_CL16M_MP_MAIN		38
+#define R8A78000_CPG_ADGHD1CK_MP_MAIN		39
+#define R8A78000_CPG_ADGHD4CK_MP_MAIN		40
+
+#define R8A78000_CPG_SGD4_MP_BUS		41
+#define R8A78000_CPG_SGD8_MP_BUS		42
+#define R8A78000_CPG_SGD16_MP_BUS		43
+#define R8A78000_CPG_SGD32_MP_BUS		44
+#define R8A78000_CPG_POSTCK_MP_BUS		45
+#define R8A78000_CPG_CL16M_MP_BUS		46
+#define R8A78000_CPG_ADGHD1CK_MP_BUS		47
+#define R8A78000_CPG_ADGHD4CK_MP_BUS		48
+
 #endif /* __DT_BINDINGS_CLOCK_RENESAS_R8A78000_CPG_H__ */
-- 
2.43.0


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

* [PATCH v2 02/10] dt-bindings: clock: renesas,r8a78000-cpg: Add remaining RT clocks
  2026-12-02 14:55 [PATCH v2 00/10] renesas: r8a78000: Add GPIO, PWM, and CAN-FD platform support Geert Uytterhoeven
  2026-12-02 14:55 ` [PATCH v2 01/10] dt-bindings: clock: renesas,r8a78000-cpg: Add remaining PERW clocks Geert Uytterhoeven
@ 2026-12-02 14:55 ` Geert Uytterhoeven
  2026-12-02 21:46   ` Wolfram Sang
  2026-12-02 14:55 ` [PATCH v2 03/10] dt-bindings: clock: renesas,r8a78000-cpg: Add all PERE clocks Geert Uytterhoeven
                   ` (7 subsequent siblings)
  9 siblings, 1 reply; 15+ messages in thread
From: Geert Uytterhoeven @ 2026-12-02 14:55 UTC (permalink / raw)
  To: Wolfram Sang, Laurent Pinchart, Rob Herring, Krzysztof Kozlowski,
	Conor Dooley, Stephen Boyd, Brian Masney, Jerome Brunet,
	Magnus Damm
  Cc: linux-renesas-soc, linux-clk, devicetree, Geert Uytterhoeven

From: Geert Uytterhoeven <geert+renesas@glider.be>

Add all remaining clocks in the RT Hierarchy, as listed in "Clock List
(RT)" of attachment RCarX5H_TS_015_Clock_Controller_supplement.xlsx in
the R-Car X5H 1.0 Series User’s Manual: Hardware Rev.0.72.  Include a
comment for the already-defined clock (which is part of the DT ABI and
thus cannot be changed), for easier comparison with the documentation.

Some of these are consumed by the CAN-FD, GPIO, and watchdog (RWDT)
modules.

Signed-off-by: Geert Uytterhoeven <geert+renesas@glider.be>
---
v2:
  - Add all RT clocks, instead of just the ones we need for CAN-FD and
    GPIO.
---
 .../dt-bindings/clock/renesas,r8a78000-cpg.h  | 151 ++++++++++++++++++
 1 file changed, 151 insertions(+)

diff --git a/include/dt-bindings/clock/renesas,r8a78000-cpg.h b/include/dt-bindings/clock/renesas,r8a78000-cpg.h
index 7415f196277f81a1..893da4867238df11 100644
--- a/include/dt-bindings/clock/renesas,r8a78000-cpg.h
+++ b/include/dt-bindings/clock/renesas,r8a78000-cpg.h
@@ -66,4 +66,155 @@
 #define R8A78000_CPG_ADGHD1CK_MP_BUS		47
 #define R8A78000_CPG_ADGHD4CK_MP_BUS		48
 
+/* RT Hierarchy */
+#define R8A78000_CPG_ZRD6_RT_MAIN		49
+#define R8A78000_CPG_ZRD12_RT_MAIN		50
+#define R8A78000_CPG_ZRD24_RT_MAIN		51
+#define R8A78000_CPG_ZRD48_RT_MAIN		52
+#define R8A78000_CPG_ZRD96_RT_MAIN		53
+#define R8A78000_CPG_ZS_RT_MAIN			54
+#define R8A78000_CPG_ZT_RT_MAIN			55
+#define R8A78000_CPG_ZTR_RT_MAIN		56
+#define R8A78000_CPG_POSTCK_RT_MAIN		57
+#define R8A78000_CPG_HOCO_DIV20_RT		58
+#define R8A78000_CPG_RCLK_RT_MAIN		59
+#define R8A78000_CPG_CBFUSA_RT_MAIN		60
+#define R8A78000_CPG_CL16M_RT_MAIN		61
+#define R8A78000_CPG_SASYNCD1_RT_MAIN		62
+#define R8A78000_CPG_SASYNCD2_RT_MAIN		63
+#define R8A78000_CPG_SASYNCD4_RT_MAIN		64
+#define R8A78000_CPG_OSCCLK			65
+
+#define R8A78000_CPG_ZRD6_RT_DMAC		66
+#define R8A78000_CPG_ZRD12_RT_DMAC		67
+#define R8A78000_CPG_ZRD24_RT_DMAC		68
+#define R8A78000_CPG_ZRD48_RT_DMAC		69
+#define R8A78000_CPG_ZRD96_RT_DMAC		70
+#define R8A78000_CPG_ZS_RT_DMAC			71
+#define R8A78000_CPG_ZT_RT_DMAC			72
+#define R8A78000_CPG_ZTR_RT_DMAC		73
+#define R8A78000_CPG_POSTCK_RT_DMAC		74
+#define R8A78000_CPG_RCLK_RT_DMAC		75
+#define R8A78000_CPG_CBFUSA_RT_DMAC		76
+
+#define R8A78000_CPG_ZRD6_RT_CR52SS0		77
+#define R8A78000_CPG_ZRD12_RT_CR52SS0		78
+#define R8A78000_CPG_ZRD24_RT_CR52SS0		79
+#define R8A78000_CPG_ZRD48_RT_CR52SS0		80
+#define R8A78000_CPG_ZRD96_RT_CR52SS0		81
+#define R8A78000_CPG_ZS_RT_CR52SS0		82
+#define R8A78000_CPG_ZT_RT_CR52SS0		83
+#define R8A78000_CPG_ZTR_RT_CR52SS0		84
+#define R8A78000_CPG_POSTCK_RT_CR52SS0		85
+#define R8A78000_CPG_RCLK_RT_CR52SS0		86
+#define R8A78000_CPG_CBFUSA_RT_CR52SS0		87
+#define R8A78000_CPG_ZR_RT_CR52SS0		88
+
+#define R8A78000_CPG_ZRD6_RT_CR52SS1		89
+#define R8A78000_CPG_ZRD12_RT_CR52SS1		90
+#define R8A78000_CPG_ZRD24_RT_CR52SS1		91
+#define R8A78000_CPG_ZRD48_RT_CR52SS1		92
+#define R8A78000_CPG_ZRD96_RT_CR52SS1		93
+#define R8A78000_CPG_ZS_RT_CR52SS1		94
+#define R8A78000_CPG_ZT_RT_CR52SS1		95
+#define R8A78000_CPG_ZTR_RT_CR52SS1		96
+#define R8A78000_CPG_POSTCK_RT_CR52SS1		97
+#define R8A78000_CPG_RCLK_RT_CR52SS1		98
+#define R8A78000_CPG_CBFUSA_RT_CR52SS1		99
+#define R8A78000_CPG_ZR_RT_CR52SS1		100
+
+#define R8A78000_CPG_ZRD6_RT_CR52SS2		101
+#define R8A78000_CPG_ZRD12_RT_CR52SS2		102
+#define R8A78000_CPG_ZRD24_RT_CR52SS2		103
+#define R8A78000_CPG_ZRD48_RT_CR52SS2		104
+#define R8A78000_CPG_ZRD96_RT_CR52SS2		105
+#define R8A78000_CPG_ZS_RT_CR52SS2		106
+#define R8A78000_CPG_ZT_RT_CR52SS2		107
+#define R8A78000_CPG_ZTR_RT_CR52SS2		108
+#define R8A78000_CPG_POSTCK_RT_CR52SS2		109
+#define R8A78000_CPG_RCLK_RT_CR52SS2		110
+#define R8A78000_CPG_CBFUSA_RT_CR52SS2		111
+#define R8A78000_CPG_ZR_RT_CR52SS2		112
+
+#define R8A78000_CPG_ZR_RT_CR52CORE00		113
+#define R8A78000_CPG_POSTCK_RT_CR52CORE00	114
+
+#define R8A78000_CPG_ZR_RT_CR52CORE01		115
+#define R8A78000_CPG_POSTCK_RT_CR52CORE01	116
+
+#define R8A78000_CPG_ZR_RT_CR52CORE10		117
+#define R8A78000_CPG_POSTCK_RT_CR52CORE10	118
+
+#define R8A78000_CPG_ZR_RT_CR52CORE11		119
+#define R8A78000_CPG_POSTCK_RT_CR52CORE11	120
+
+#define R8A78000_CPG_ZR_RT_CR52CORE20		121
+#define R8A78000_CPG_POSTCK_RT_CR52CORE20	122
+
+#define R8A78000_CPG_ZR_RT_CR52CORE21		123
+#define R8A78000_CPG_POSTCK_RT_CR52CORE21	124
+
+#define R8A78000_CPG_ZR_RT_CR52SHADOW00		125
+#define R8A78000_CPG_POSTCK_RT_CR52SHADOW00	126
+
+#define R8A78000_CPG_ZR_RT_CR52SHADOW01		127
+#define R8A78000_CPG_POSTCK_RT_CR52SHADOW01	128
+
+#define R8A78000_CPG_ZR_RT_CR52SHADOW10		129
+#define R8A78000_CPG_POSTCK_RT_CR52SHADOW10	130
+
+#define R8A78000_CPG_ZR_RT_CR52SHADOW11		131
+#define R8A78000_CPG_POSTCK_RT_CR52SHADOW11	132
+
+#define R8A78000_CPG_ZR_RT_CR52SHADOW20		133
+#define R8A78000_CPG_POSTCK_RT_CR52SHADOW20	134
+
+#define R8A78000_CPG_ZR_RT_CR52SHADOW21		135
+#define R8A78000_CPG_POSTCK_RT_CR52SHADOW21	136
+
+#define R8A78000_CPG_ZRD6_RT_SEC		137
+#define R8A78000_CPG_ZRD12_RT_SEC		138
+#define R8A78000_CPG_ZRD24_RT_SEC		139
+#define R8A78000_CPG_ZRD48_RT_SEC		140
+#define R8A78000_CPG_ZRD96_RT_SEC		141
+#define R8A78000_CPG_POSTCK_RT_SEC		142
+#define R8A78000_CPG_RCLK_RT_SEC		143
+#define R8A78000_CPG_CBFUSA_RT_SEC		144
+
+#define R8A78000_CPG_ZRD6_RT_MEM		145
+#define R8A78000_CPG_ZRD12_RT_MEM		146
+#define R8A78000_CPG_ZRD24_RT_MEM		147
+#define R8A78000_CPG_ZRD48_RT_MEM		148
+#define R8A78000_CPG_ZRD96_RT_MEM		149
+#define R8A78000_CPG_ZS_RT_MEM			150
+#define R8A78000_CPG_ZT_RT_MEM			151
+#define R8A78000_CPG_ZTR_RT_MEM			152
+#define R8A78000_CPG_POSTCK_RT_MEM		153
+#define R8A78000_CPG_RCLK_RT_MEM		154
+#define R8A78000_CPG_CBFUSA_RT_MEM		155
+#define R8A78000_CPG_SYSTIMERCK_RT_MEM		156
+
+#define R8A78000_CPG_SCPBUSD1_SCP_MAIN		157
+#define R8A78000_CPG_SCPBUSD2_SCP_MAIN		158
+#define R8A78000_CPG_SCPBUSD4_SCP_MAIN		159
+#define R8A78000_CPG_SCPBUSD6_SCP_MAIN		160
+#define R8A78000_CPG_SCPBUSD8_SCP_MAIN		161
+#define R8A78000_CPG_SCPBUSD16_SCP_MAIN		162
+#define R8A78000_CPG_SCPBUSD32_SCP_MAIN		163
+#define R8A78000_CPG_CANFD_SCP_MAIN		164
+#define R8A78000_CPG_FRAY_SCP_MAIN		165
+#define R8A78000_CPG_LIN_SCP_MAIN		166
+/* R8A78000_CPG_MSO_SCP_MAIN at top */
+#define R8A78000_CPG_CANXL_SCP_MAIN		167
+#define R8A78000_CPG_POSTCK_SCP_MAIN		168
+#define R8A78000_CPG_RCLK_SCP_MAIN		169
+#define R8A78000_CPG_CBFUSA_SCP_MAIN		170
+#define R8A78000_CPG_CL16M_SCP_MAIN		171
+#define R8A78000_CPG_CLK_LOCO_SCP		172
+#define R8A78000_CPG_HOCO_DIV20_SCP		173
+#define R8A78000_CPG_ZS_SCP_MAIN		174
+#define R8A78000_CPG_ZT_SCP_MAIN		175
+#define R8A78000_CPG_CLKA_TAUJ_AWO		176
+#define R8A78000_CPG_CLKA_RTCA_AWO		177
+
 #endif /* __DT_BINDINGS_CLOCK_RENESAS_R8A78000_CPG_H__ */
-- 
2.43.0


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

* [PATCH v2 03/10] dt-bindings: clock: renesas,r8a78000-cpg: Add all PERE clocks
  2026-12-02 14:55 [PATCH v2 00/10] renesas: r8a78000: Add GPIO, PWM, and CAN-FD platform support Geert Uytterhoeven
  2026-12-02 14:55 ` [PATCH v2 01/10] dt-bindings: clock: renesas,r8a78000-cpg: Add remaining PERW clocks Geert Uytterhoeven
  2026-12-02 14:55 ` [PATCH v2 02/10] dt-bindings: clock: renesas,r8a78000-cpg: Add remaining RT clocks Geert Uytterhoeven
@ 2026-12-02 14:55 ` Geert Uytterhoeven
  2026-12-02 21:47   ` Wolfram Sang
  2026-12-02 14:55 ` [PATCH v2 04/10] dt-bindings: clock: renesas,r8a78000-cpg: Add all HSCN clocks Geert Uytterhoeven
                   ` (6 subsequent siblings)
  9 siblings, 1 reply; 15+ messages in thread
From: Geert Uytterhoeven @ 2026-12-02 14:55 UTC (permalink / raw)
  To: Wolfram Sang, Laurent Pinchart, Rob Herring, Krzysztof Kozlowski,
	Conor Dooley, Stephen Boyd, Brian Masney, Jerome Brunet,
	Magnus Damm
  Cc: linux-renesas-soc, linux-clk, devicetree, Geert Uytterhoeven

From: Geert Uytterhoeven <geert+renesas@glider.be>

Add all clocks in the PERE Hierarchy, as listed in "Clock List (PERE)"
of attachment RCarX5H_TS_015_Clock_Controller_supplement.xlsx in the
R-Car X5H 1.0 Series User’s Manual: Hardware Rev.0.72.

Some of these are consumed by the GPIO modules.

Signed-off-by: Geert Uytterhoeven <geert+renesas@glider.be>
---
v2:
  - Add all PERE clocks, instead of just the ones we need for GPIO.
---
 .../dt-bindings/clock/renesas,r8a78000-cpg.h  | 20 +++++++++++++++++++
 1 file changed, 20 insertions(+)

diff --git a/include/dt-bindings/clock/renesas,r8a78000-cpg.h b/include/dt-bindings/clock/renesas,r8a78000-cpg.h
index 893da4867238df11..9855630495609f3d 100644
--- a/include/dt-bindings/clock/renesas,r8a78000-cpg.h
+++ b/include/dt-bindings/clock/renesas,r8a78000-cpg.h
@@ -217,4 +217,24 @@
 #define R8A78000_CPG_CLKA_TAUJ_AWO		176
 #define R8A78000_CPG_CLKA_RTCA_AWO		177
 
+/* PERE Hierarchy */
+#define R8A78000_CPG_S0D1_PERE_MAIN		178
+#define R8A78000_CPG_S0D2_PERE_MAIN		179
+#define R8A78000_CPG_S0D3_PERE_MAIN		180
+#define R8A78000_CPG_S0D4_PERE_MAIN		181
+#define R8A78000_CPG_S0D6_PERE_MAIN		182
+#define R8A78000_CPG_S0D8_PERE_MAIN		183
+#define R8A78000_CPG_S0D12_PERE_MAIN		184
+#define R8A78000_CPG_S0D24_PERE_MAIN		185
+#define R8A78000_CPG_SD0H_PERE_MAIN		186
+#define R8A78000_CPG_SD0_PERE_MAIN		187
+#define R8A78000_CPG_RPCCK_PERE_MAIN		188
+#define R8A78000_CPG_RPCD2CK_PERE_MAIN		189
+#define R8A78000_CPG_POSTCK_PERE_MAIN		190
+#define R8A78000_CPG_HOCO_DIV20_PERE		191
+#define R8A78000_CPG_RCLK_PERE_MAIN		192
+#define R8A78000_CPG_CBFUSA_PERE_MAIN		193
+#define R8A78000_CPG_CL16M_PERE_MAIN		194
+#define R8A78000_CPG_SASYNCCK_UFS_PERE_MAIN	195
+
 #endif /* __DT_BINDINGS_CLOCK_RENESAS_R8A78000_CPG_H__ */
-- 
2.43.0


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

* [PATCH v2 04/10] dt-bindings: clock: renesas,r8a78000-cpg: Add all HSCN clocks
  2026-12-02 14:55 [PATCH v2 00/10] renesas: r8a78000: Add GPIO, PWM, and CAN-FD platform support Geert Uytterhoeven
                   ` (2 preceding siblings ...)
  2026-12-02 14:55 ` [PATCH v2 03/10] dt-bindings: clock: renesas,r8a78000-cpg: Add all PERE clocks Geert Uytterhoeven
@ 2026-12-02 14:55 ` Geert Uytterhoeven
  2026-12-02 21:47   ` Wolfram Sang
  2026-12-02 14:55 ` [PATCH v2 05/10] arm64: dts: renesas: r8a78000: Add GPIO controller nodes Geert Uytterhoeven
                   ` (5 subsequent siblings)
  9 siblings, 1 reply; 15+ messages in thread
From: Geert Uytterhoeven @ 2026-12-02 14:55 UTC (permalink / raw)
  To: Wolfram Sang, Laurent Pinchart, Rob Herring, Krzysztof Kozlowski,
	Conor Dooley, Stephen Boyd, Brian Masney, Jerome Brunet,
	Magnus Damm
  Cc: linux-renesas-soc, linux-clk, devicetree, Geert Uytterhoeven

From: Geert Uytterhoeven <geert+renesas@glider.be>

Add all clocks in the HSCN Hierarchy, as listed in "Clock List (HSCN)"
of attachment RCarX5H_TS_015_Clock_Controller_supplement.xlsx in the
R-Car X5H 1.0 Series User’s Manual: Hardware Rev.0.72.

Some of these are consumed by the GPIO modules.

Signed-off-by: Geert Uytterhoeven <geert+renesas@glider.be>
---
v2:
  - Add all HSCN clocks, instead of just the one we need for GPIO.
---
 .../dt-bindings/clock/renesas,r8a78000-cpg.h  | 98 +++++++++++++++++++
 1 file changed, 98 insertions(+)

diff --git a/include/dt-bindings/clock/renesas,r8a78000-cpg.h b/include/dt-bindings/clock/renesas,r8a78000-cpg.h
index 9855630495609f3d..708a8fbc2bd2001d 100644
--- a/include/dt-bindings/clock/renesas,r8a78000-cpg.h
+++ b/include/dt-bindings/clock/renesas,r8a78000-cpg.h
@@ -237,4 +237,102 @@
 #define R8A78000_CPG_CL16M_PERE_MAIN		194
 #define R8A78000_CPG_SASYNCCK_UFS_PERE_MAIN	195
 
+/* HSCN Hierarchy */
+#define R8A78000_CPG_S0D1_HSCN_OTHER		196
+#define R8A78000_CPG_S0D2_HSCN_OTHER		197
+#define R8A78000_CPG_S0D4_HSCN_OTHER		198
+#define R8A78000_CPG_S0D8_HSCN_OTHER		199
+#define R8A78000_CPG_S0D12_HSCN_OTHER		200
+#define R8A78000_CPG_S0D16_HSCN_OTHER		201
+#define R8A78000_CPG_S0D24_HSCN_OTHER		202
+#define R8A78000_CPG_ZS_HSCN_OTHER		203
+#define R8A78000_CPG_ZT_HSCN_OTHER		204
+#define R8A78000_CPG_ZTR_HSCN_OTHER		205
+#define R8A78000_CPG_POSTCK_HSCN_OTHER		206
+#define R8A78000_CPG_CLK_IOSC0_HSCN		207
+#define R8A78000_CPG_RCLK_HSCN_OTHER		208
+#define R8A78000_CPG_CBFUSA_HSCN_OTHER		209
+#define R8A78000_CPG_CL16M_HSCN_OTHER		210
+#define R8A78000_CPG_HOCO_DIV20_HSCN		211
+
+#define R8A78000_CPG_S0D1_HSCN_PCI4		212
+#define R8A78000_CPG_S0D2_HSCN_PCI4		213
+#define R8A78000_CPG_S0D4_HSCN_PCI4		214
+#define R8A78000_CPG_S0D8_HSCN_PCI4		215
+#define R8A78000_CPG_S0D12_HSCN_PCI4		216
+#define R8A78000_CPG_S0D16_HSCN_PCI4		217
+#define R8A78000_CPG_S0D24_HSCN_PCI4		218
+#define R8A78000_CPG_ZS_HSCN_PCI4		219
+#define R8A78000_CPG_ZT_HSCN_PCI4		220
+#define R8A78000_CPG_ZTR_HSCN_PCI4		221
+#define R8A78000_CPG_POSTCK_HSCN_PCI4		222
+#define R8A78000_CPG_RCLK_HSCN_PCI4		223
+#define R8A78000_CPG_CBFUSA_HSCN_PCI4		224
+#define R8A78000_CPG_CL16M_HSCN_PCI4		225
+#define R8A78000_CPG_USBSSPCLK_HSCN_PCI4	226
+
+#define R8A78000_CPG_S0D1_HSCN_USB		227
+#define R8A78000_CPG_S0D2_HSCN_USB		228
+#define R8A78000_CPG_S0D4_HSCN_USB		229
+#define R8A78000_CPG_S0D8_HSCN_USB		230
+#define R8A78000_CPG_S0D12_HSCN_USB		231
+#define R8A78000_CPG_S0D16_HSCN_USB		232
+#define R8A78000_CPG_S0D24_HSCN_USB		233
+#define R8A78000_CPG_ZS_HSCN_USB		234
+#define R8A78000_CPG_ZT_HSCN_USB		235
+#define R8A78000_CPG_ZTR_HSCN_USB		236
+#define R8A78000_CPG_POSTCK_HSCN_USB		237
+#define R8A78000_CPG_RCLK_HSCN_USB		238
+#define R8A78000_CPG_CBFUSA_HSCN_USB		239
+#define R8A78000_CPG_CL16M_HSCN_USB		240
+#define R8A78000_CPG_USBSSPCLK_HSCN_USB		241
+
+#define R8A78000_CPG_S0D1_HSCN_RSW3_MFWD	242
+#define R8A78000_CPG_S0D2_HSCN_RSW3_MFWD	243
+#define R8A78000_CPG_S0D4_HSCN_RSW3_MFWD	244
+#define R8A78000_CPG_S0D8_HSCN_RSW3_MFWD	245
+#define R8A78000_CPG_S0D12_HSCN_RSW3_MFWD	246
+#define R8A78000_CPG_S0D16_HSCN_RSW3_MFWD	247
+#define R8A78000_CPG_S0D24_HSCN_RSW3_MFWD	248
+#define R8A78000_CPG_POSTCK_HSCN_RSW3_MFWD	249
+#define R8A78000_CPG_RSWSUBD1CK_HSCN_RSW3_MFWD	250
+#define R8A78000_CPG_RSWSUBD2CK_HSCN_RSW3_MFWD	251
+#define R8A78000_CPG_RSWCORECK_HSCN_RSW3_MFWD	252
+
+#define R8A78000_CPG_S0D1_HSCN_RSW3_MAIN	253
+#define R8A78000_CPG_S0D2_HSCN_RSW3_MAIN	254
+#define R8A78000_CPG_S0D4_HSCN_RSW3_MAIN	255
+#define R8A78000_CPG_S0D8_HSCN_RSW3_MAIN	256
+#define R8A78000_CPG_S0D12_HSCN_RSW3_MAIN	257
+#define R8A78000_CPG_S0D16_HSCN_RSW3_MAIN	258
+#define R8A78000_CPG_S0D24_HSCN_RSW3_MAIN	259
+#define R8A78000_CPG_POSTCK_HSCN_RSW3_MAIN	260
+#define R8A78000_CPG_RSWSUBD1CK_HSCN_RSW3_MAIN	261
+#define R8A78000_CPG_RSWSUBD2CK_HSCN_RSW3_MAIN	262
+#define R8A78000_CPG_RSWCORECK_HSCN_RSW3_MAIN	263
+
+#define R8A78000_CPG_S0D1_HSCN_RSW3_AES		264
+#define R8A78000_CPG_S0D2_HSCN_RSW3_AES		265
+#define R8A78000_CPG_S0D4_HSCN_RSW3_AES		266
+#define R8A78000_CPG_S0D8_HSCN_RSW3_AES		267
+#define R8A78000_CPG_S0D12_HSCN_RSW3_AES	268
+#define R8A78000_CPG_S0D16_HSCN_RSW3_AES	269
+#define R8A78000_CPG_S0D24_HSCN_RSW3_AES	270
+#define R8A78000_CPG_POSTCK_HSCN_RSW3_AES	271
+#define R8A78000_CPG_RSWSUBD1CK_HSCN_RSW3_AES	272
+#define R8A78000_CPG_RSWSUBD2CK_HSCN_RSW3_AES	273
+#define R8A78000_CPG_RSWCORECK_HSCN_RSW3_AES	274
+
+#define R8A78000_CPG_S0D1_HSCN_RSW3_TSN		275
+#define R8A78000_CPG_S0D2_HSCN_RSW3_TSN		276
+#define R8A78000_CPG_S0D4_HSCN_RSW3_TSN		277
+#define R8A78000_CPG_S0D8_HSCN_RSW3_TSN		278
+#define R8A78000_CPG_S0D12_HSCN_RSW3_TSN	279
+#define R8A78000_CPG_S0D16_HSCN_RSW3_TSN	280
+#define R8A78000_CPG_S0D24_HSCN_RSW3_TSN	281
+#define R8A78000_CPG_POSTCK_HSCN_RSW3_TSN	282
+#define R8A78000_CPG_RSWSUBD1CK_HSCN_RSW3_TSN	283
+#define R8A78000_CPG_RSWSUBD2CK_HSCN_RSW3_TSN	284
+#define R8A78000_CPG_RSWCORECK_HSCN_RSW3_TSN	285
+
 #endif /* __DT_BINDINGS_CLOCK_RENESAS_R8A78000_CPG_H__ */
-- 
2.43.0


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

* [PATCH v2 05/10] arm64: dts: renesas: r8a78000: Add GPIO controller nodes
  2026-12-02 14:55 [PATCH v2 00/10] renesas: r8a78000: Add GPIO, PWM, and CAN-FD platform support Geert Uytterhoeven
                   ` (3 preceding siblings ...)
  2026-12-02 14:55 ` [PATCH v2 04/10] dt-bindings: clock: renesas,r8a78000-cpg: Add all HSCN clocks Geert Uytterhoeven
@ 2026-12-02 14:55 ` Geert Uytterhoeven
  2026-12-02 14:55 ` [PATCH/RFC v2 06/10] arm64: dts: renesas: r8a78000: Add PWM nodes Geert Uytterhoeven
                   ` (4 subsequent siblings)
  9 siblings, 0 replies; 15+ messages in thread
From: Geert Uytterhoeven @ 2026-12-02 14:55 UTC (permalink / raw)
  To: Wolfram Sang, Laurent Pinchart, Rob Herring, Krzysztof Kozlowski,
	Conor Dooley, Stephen Boyd, Brian Masney, Jerome Brunet,
	Magnus Damm
  Cc: linux-renesas-soc, linux-clk, devicetree, Marek Vasut,
	Geert Uytterhoeven, Linus Walleij

From: Marek Vasut <marek.vasut+renesas@mailbox.org>

Add device nodes for the General-Purpose Input/Output Ports (GPIO) on
the Renesas R-Car X5H (R8A78000) SoC.

Signed-off-by: Marek Vasut <marek.vasut+renesas@mailbox.org>
Co-developed-by: Geert Uytterhoeven <geert+renesas@glider.be>
Signed-off-by: Geert Uytterhoeven <geert+renesas@glider.be>
Reviewed-by: Marek Vasut <marek.vasut+renesas@mailbox.org>
Reviewed-by: Linus Walleij <linusw@kernel.org>
---
v2
  - Add Reviewed-by,

Changes compared to Marek's original:
  - Use hardware clocks/power-domains/resets instead of direct SCMI
    references,
  - Drop gpio-ranges properties for now, as upstream lacks Pin Function
    Controller (PFC) support.
---
 arch/arm64/boot/dts/renesas/r8a78000.dtsi | 155 ++++++++++++++++++++++
 1 file changed, 155 insertions(+)

diff --git a/arch/arm64/boot/dts/renesas/r8a78000.dtsi b/arch/arm64/boot/dts/renesas/r8a78000.dtsi
index 28555fa7566fb608..af2c13c1b1e7c59d 100644
--- a/arch/arm64/boot/dts/renesas/r8a78000.dtsi
+++ b/arch/arm64/boot/dts/renesas/r8a78000.dtsi
@@ -1095,6 +1095,161 @@ stcm_transport: sram@c1060000 {
 			/* actual transport nodes must be set per board file */
 		};
 
+		gpio0: gpio@c1080110 {
+			compatible = "renesas,gpio-r8a78000",
+				     "renesas,rcar-gen5-gpio";
+			reg = <0 0xc1080110 0 0xc0>;
+			interrupts = <GIC_SPI 0 IRQ_TYPE_LEVEL_HIGH>;
+			clocks = <&cpg R8A78000_CPG_SCPBUSD16_SCP_MAIN>;
+			power-domains = <&mdlc_aon R8A78000_MDLC_PD_AON 0x20>;
+			resets = <&mdlc_aon 0x20>;
+			#gpio-cells = <2>;
+			gpio-controller;
+			#interrupt-cells = <2>;
+			interrupt-controller;
+		};
+
+		gpio1: gpio@c1080910 {
+			compatible = "renesas,gpio-r8a78000",
+				     "renesas,rcar-gen5-gpio";
+			reg = <0 0xc1080910 0 0xc0>;
+			interrupts = <GIC_SPI 4 IRQ_TYPE_LEVEL_HIGH>;
+			clocks = <&cpg R8A78000_CPG_SCPBUSD16_SCP_MAIN>;
+			power-domains = <&mdlc_aon R8A78000_MDLC_PD_AON 0x20>;
+			resets = <&mdlc_aon 0x20>;
+			#gpio-cells = <2>;
+			gpio-controller;
+			#interrupt-cells = <2>;
+			interrupt-controller;
+		};
+
+		gpio2: gpio@c1081110 {
+			compatible = "renesas,gpio-r8a78000",
+				     "renesas,rcar-gen5-gpio";
+			reg = <0 0xc1081110 0 0xc0>;
+			interrupts = <GIC_SPI 8 IRQ_TYPE_LEVEL_HIGH>;
+			clocks = <&cpg R8A78000_CPG_SCPBUSD16_SCP_MAIN>;
+			power-domains = <&mdlc_aon R8A78000_MDLC_PD_AON 0x20>;
+			resets = <&mdlc_aon 0x20>;
+			#gpio-cells = <2>;
+			gpio-controller;
+			#interrupt-cells = <2>;
+			interrupt-controller;
+		};
+
+		gpio3: gpio@c0800110 {
+			compatible = "renesas,gpio-r8a78000",
+				     "renesas,rcar-gen5-gpio";
+			reg = <0 0xc0800110 0 0xc0>;
+			interrupts = <GIC_SPI 12 IRQ_TYPE_LEVEL_HIGH>;
+			clocks = <&cpg R8A78000_CPG_S0D24_PERE_MAIN>;
+			power-domains = <&mdlc_pere R8A78000_MDLC_PD_APL 0x30>;
+			resets = <&mdlc_pere 0x30>;
+			#gpio-cells = <2>;
+			gpio-controller;
+			#interrupt-cells = <2>;
+			interrupt-controller;
+		};
+
+		gpio4: gpio@c0800910 {
+			compatible = "renesas,gpio-r8a78000",
+				     "renesas,rcar-gen5-gpio";
+			reg = <0 0xc0800910 0 0xc0>;
+			interrupts = <GIC_SPI 16 IRQ_TYPE_LEVEL_HIGH>;
+			clocks = <&cpg R8A78000_CPG_S0D24_PERE_MAIN>;
+			power-domains = <&mdlc_pere R8A78000_MDLC_PD_APL 0x30>;
+			resets = <&mdlc_pere 0x30>;
+			#gpio-cells = <2>;
+			gpio-controller;
+			#interrupt-cells = <2>;
+			interrupt-controller;
+		};
+
+		gpio5: gpio@c0400110 {
+			compatible = "renesas,gpio-r8a78000",
+				     "renesas,rcar-gen5-gpio";
+			reg = <0 0xc0400110 0 0xc0>;
+			interrupts = <GIC_SPI 20 IRQ_TYPE_LEVEL_HIGH>;
+			clocks = <&cpg R8A78000_CPG_SGD32_PERW_BUS>;
+			power-domains = <&mdlc_perw R8A78000_MDLC_PD_APL 0x30>;
+			resets = <&mdlc_perw 0x30>;
+			#gpio-cells = <2>;
+			gpio-controller;
+			#interrupt-cells = <2>;
+			interrupt-controller;
+		};
+
+		gpio6: gpio@c0400910 {
+			compatible = "renesas,gpio-r8a78000",
+				     "renesas,rcar-gen5-gpio";
+			reg = <0 0xc0400910 0 0xc0>;
+			interrupts = <GIC_SPI 24 IRQ_TYPE_LEVEL_HIGH>;
+			clocks = <&cpg R8A78000_CPG_SGD32_PERW_BUS>;
+			power-domains = <&mdlc_perw R8A78000_MDLC_PD_APL 0x30>;
+			resets = <&mdlc_perw 0x30>;
+			#gpio-cells = <2>;
+			gpio-controller;
+			#interrupt-cells = <2>;
+			interrupt-controller;
+		};
+
+		gpio7: gpio@c0401110 {
+			compatible = "renesas,gpio-r8a78000",
+				     "renesas,rcar-gen5-gpio";
+			reg = <0 0xc0401110 0 0xc0>;
+			interrupts = <GIC_SPI 28 IRQ_TYPE_LEVEL_HIGH>;
+			clocks = <&cpg R8A78000_CPG_SGD32_PERW_BUS>;
+			power-domains = <&mdlc_perw R8A78000_MDLC_PD_APL 0x30>;
+			resets = <&mdlc_perw 0x30>;
+			#gpio-cells = <2>;
+			gpio-controller;
+			#interrupt-cells = <2>;
+			interrupt-controller;
+		};
+
+		gpio8: gpio@c0401910 {
+			compatible = "renesas,gpio-r8a78000",
+				     "renesas,rcar-gen5-gpio";
+			reg = <0 0xc0401910 0 0xc0>;
+			interrupts = <GIC_SPI 32 IRQ_TYPE_LEVEL_HIGH>;
+			clocks = <&cpg R8A78000_CPG_SGD32_PERW_BUS>;
+			power-domains = <&mdlc_perw R8A78000_MDLC_PD_APL 0x30>;
+			resets = <&mdlc_perw 0x30>;
+			#gpio-cells = <2>;
+			gpio-controller;
+			gpio-reserved-ranges = <16 10>;
+			#interrupt-cells = <2>;
+			interrupt-controller;
+		};
+
+		gpio9: gpio@c9b00110 {
+			compatible = "renesas,gpio-r8a78000",
+				     "renesas,rcar-gen5-gpio";
+			reg = <0 0xc9b00110 0 0xc0>;
+			interrupts = <GIC_SPI 36 IRQ_TYPE_LEVEL_HIGH>;
+			clocks = <&cpg R8A78000_CPG_S0D24_HSCN_OTHER>;
+			power-domains = <&mdlc_hscn R8A78000_MDLC_PD_APL 0x50>;
+			resets = <&mdlc_hscn 0x50>;
+			#gpio-cells = <2>;
+			gpio-controller;
+			#interrupt-cells = <2>;
+			interrupt-controller;
+		};
+
+		gpio10: gpio@c9b00910 {
+			compatible = "renesas,gpio-r8a78000",
+				     "renesas,rcar-gen5-gpio";
+			reg = <0 0xc9b00910 0 0xc0>;
+			interrupts = <GIC_SPI 40 IRQ_TYPE_LEVEL_HIGH>;
+			clocks = <&cpg R8A78000_CPG_S0D24_HSCN_OTHER>;
+			power-domains = <&mdlc_hscn R8A78000_MDLC_PD_APL 0x50>;
+			resets = <&mdlc_hscn 0x50>;
+			#gpio-cells = <2>;
+			gpio-controller;
+			#interrupt-cells = <2>;
+			interrupt-controller;
+		};
+
 		cpg: clock-controller@c1320000 {
 			compatible = "renesas,r8a78000-cpg";
 			reg = <0 0xc1320000 0 0x10000>;
-- 
2.43.0


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

* [PATCH/RFC v2 06/10] arm64: dts: renesas: r8a78000: Add PWM nodes
  2026-12-02 14:55 [PATCH v2 00/10] renesas: r8a78000: Add GPIO, PWM, and CAN-FD platform support Geert Uytterhoeven
                   ` (4 preceding siblings ...)
  2026-12-02 14:55 ` [PATCH v2 05/10] arm64: dts: renesas: r8a78000: Add GPIO controller nodes Geert Uytterhoeven
@ 2026-12-02 14:55 ` Geert Uytterhoeven
  2026-12-02 14:55 ` [PATCH/RFC v2 07/10] arm64: dts: renesas: r8a78000: Add CAN-FD nodes Geert Uytterhoeven
                   ` (3 subsequent siblings)
  9 siblings, 0 replies; 15+ messages in thread
From: Geert Uytterhoeven @ 2026-12-02 14:55 UTC (permalink / raw)
  To: Wolfram Sang, Laurent Pinchart, Rob Herring, Krzysztof Kozlowski,
	Conor Dooley, Stephen Boyd, Brian Masney, Jerome Brunet,
	Magnus Damm
  Cc: linux-renesas-soc, linux-clk, devicetree, Geert Uytterhoeven

From: Geert Uytterhoeven <geert+renesas@glider.be>

Add device nodes for the Pulse Width Modulation (PWM) modules and the
16-Bit Timer Pulse Unit (TPU) on the Renesas R-Car X5H (R8A78000) SoC.

Signed-off-by: Geert Uytterhoeven <geert+renesas@glider.be>
---
RFC, as the DT bindings haven't been accepted yet.

v2:
  - No changes.
---
 arch/arm64/boot/dts/renesas/r8a78000.dtsi | 121 ++++++++++++++++++++++
 1 file changed, 121 insertions(+)

diff --git a/arch/arm64/boot/dts/renesas/r8a78000.dtsi b/arch/arm64/boot/dts/renesas/r8a78000.dtsi
index af2c13c1b1e7c59d..d3a2c469a2e98fc3 100644
--- a/arch/arm64/boot/dts/renesas/r8a78000.dtsi
+++ b/arch/arm64/boot/dts/renesas/r8a78000.dtsi
@@ -1086,6 +1086,127 @@ hscif3: serial@c071c000 {
 			status = "disabled";
 		};
 
+		tpu: pwm@c0720000 {
+			compatible = "renesas,tpu-r8a78000", "renesas,tpu";
+			reg = <0 0xc0720000 0 0x200>;
+			interrupts = <GIC_ESPI 23 IRQ_TYPE_LEVEL_HIGH>;
+			clocks = <&cpg R8A78000_CPG_SGASYNCD16_PERW_MAIN>;
+			power-domains = <&mdlc_perw R8A78000_MDLC_PD_APL 0x76>;
+			resets = <&mdlc_perw 0x76>;
+			#pwm-cells = <3>;
+			status = "disabled";
+		};
+
+		pwm0: pwm@c0740000 {
+			compatible = "renesas,pwm-r8a78000",
+				     "renesas,rcar-gen5-pwm";
+			reg = <0 0xc0740000 0 0x10>;
+			#pwm-cells = <2>;
+			clocks = <&cpg R8A78000_CPG_SGASYNCD16_PERW_MAIN>;
+			power-domains = <&mdlc_perw R8A78000_MDLC_PD_APL 0x70>;
+			resets = <&mdlc_perw 0x70>;
+			status = "disabled";
+		};
+
+		pwm1: pwm@c0741000 {
+			compatible = "renesas,pwm-r8a78000",
+				     "renesas,rcar-gen5-pwm";
+			reg = <0 0xc0741000 0 0x10>;
+			#pwm-cells = <2>;
+			clocks = <&cpg R8A78000_CPG_SGASYNCD16_PERW_MAIN>;
+			power-domains = <&mdlc_perw R8A78000_MDLC_PD_APL 0x70>;
+			resets = <&mdlc_perw 0x70>;
+			status = "disabled";
+		};
+
+		pwm2: pwm@c0742000 {
+			compatible = "renesas,pwm-r8a78000",
+				     "renesas,rcar-gen5-pwm";
+			reg = <0 0xc0742000 0 0x10>;
+			#pwm-cells = <2>;
+			clocks = <&cpg R8A78000_CPG_SGASYNCD16_PERW_MAIN>;
+			power-domains = <&mdlc_perw R8A78000_MDLC_PD_APL 0x70>;
+			resets = <&mdlc_perw 0x70>;
+			status = "disabled";
+		};
+
+		pwm3: pwm@c0743000 {
+			compatible = "renesas,pwm-r8a78000",
+				     "renesas,rcar-gen5-pwm";
+			reg = <0 0xc0743000 0 0x10>;
+			#pwm-cells = <2>;
+			clocks = <&cpg R8A78000_CPG_SGASYNCD16_PERW_MAIN>;
+			power-domains = <&mdlc_perw R8A78000_MDLC_PD_APL 0x70>;
+			resets = <&mdlc_perw 0x70>;
+			status = "disabled";
+		};
+
+		pwm4: pwm@c0780000 {
+			compatible = "renesas,pwm-r8a78000",
+				     "renesas,rcar-gen5-pwm";
+			reg = <0 0xc0780000 0 0x10>;
+			#pwm-cells = <2>;
+			clocks = <&cpg R8A78000_CPG_S0ASYNCD8_PERW_MAIN>;
+			power-domains = <&mdlc_perw R8A78000_MDLC_PD_APL 0x70>;
+			resets = <&mdlc_perw 0x70>;
+			status = "disabled";
+		};
+
+		pwm5: pwm@c0781000 {
+			compatible = "renesas,pwm-r8a78000",
+				     "renesas,rcar-gen5-pwm";
+			reg = <0 0xc0781000 0 0x10>;
+			#pwm-cells = <2>;
+			clocks = <&cpg R8A78000_CPG_S0ASYNCD8_PERW_MAIN>;
+			power-domains = <&mdlc_perw R8A78000_MDLC_PD_APL 0x70>;
+			resets = <&mdlc_perw 0x70>;
+			status = "disabled";
+		};
+
+		pwm6: pwm@c0782000 {
+			compatible = "renesas,pwm-r8a78000",
+				     "renesas,rcar-gen5-pwm";
+			reg = <0 0xc0782000 0 0x10>;
+			#pwm-cells = <2>;
+			clocks = <&cpg R8A78000_CPG_S0ASYNCD8_PERW_MAIN>;
+			power-domains = <&mdlc_perw R8A78000_MDLC_PD_APL 0x70>;
+			resets = <&mdlc_perw 0x70>;
+			status = "disabled";
+		};
+
+		pwm7: pwm@c0783000 {
+			compatible = "renesas,pwm-r8a78000",
+				     "renesas,rcar-gen5-pwm";
+			reg = <0 0xc0783000 0 0x10>;
+			#pwm-cells = <2>;
+			clocks = <&cpg R8A78000_CPG_S0ASYNCD8_PERW_MAIN>;
+			power-domains = <&mdlc_perw R8A78000_MDLC_PD_APL 0x70>;
+			resets = <&mdlc_perw 0x70>;
+			status = "disabled";
+		};
+
+		pwm8: pwm@c0784000 {
+			compatible = "renesas,pwm-r8a78000",
+				     "renesas,rcar-gen5-pwm";
+			reg = <0 0xc0784000 0 0x10>;
+			#pwm-cells = <2>;
+			clocks = <&cpg R8A78000_CPG_S0ASYNCD8_PERW_MAIN>;
+			power-domains = <&mdlc_perw R8A78000_MDLC_PD_APL 0x70>;
+			resets = <&mdlc_perw 0x70>;
+			status = "disabled";
+		};
+
+		pwm9: pwm@c0785000 {
+			compatible = "renesas,pwm-r8a78000",
+				     "renesas,rcar-gen5-pwm";
+			reg = <0 0xc0785000 0 0x10>;
+			#pwm-cells = <2>;
+			clocks = <&cpg R8A78000_CPG_S0ASYNCD8_PERW_MAIN>;
+			power-domains = <&mdlc_perw R8A78000_MDLC_PD_APL 0x70>;
+			resets = <&mdlc_perw 0x70>;
+			status = "disabled";
+		};
+
 		stcm_transport: sram@c1060000 {
 			compatible = "mmio-sram";
 			reg = <0x0 0xc1060000 0x0 0x1c00>;
-- 
2.43.0


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

* [PATCH/RFC v2 07/10] arm64: dts: renesas: r8a78000: Add CAN-FD nodes
  2026-12-02 14:55 [PATCH v2 00/10] renesas: r8a78000: Add GPIO, PWM, and CAN-FD platform support Geert Uytterhoeven
                   ` (5 preceding siblings ...)
  2026-12-02 14:55 ` [PATCH/RFC v2 06/10] arm64: dts: renesas: r8a78000: Add PWM nodes Geert Uytterhoeven
@ 2026-12-02 14:55 ` Geert Uytterhoeven
  2026-12-02 14:55 ` [PATCH v2 08/10] clk: renesas: r8a78000: Add GPIO clocks Geert Uytterhoeven
                   ` (2 subsequent siblings)
  9 siblings, 0 replies; 15+ messages in thread
From: Geert Uytterhoeven @ 2026-12-02 14:55 UTC (permalink / raw)
  To: Wolfram Sang, Laurent Pinchart, Rob Herring, Krzysztof Kozlowski,
	Conor Dooley, Stephen Boyd, Brian Masney, Jerome Brunet,
	Magnus Damm
  Cc: linux-renesas-soc, linux-clk, devicetree, Geert Uytterhoeven

From: Geert Uytterhoeven <geert+renesas@glider.be>

Add device nodes for the two Controller Area Network Flexible Data Rate
(CAN-FD) interfaces and the related external CAN clock on the Renesas
R-Car X5H (R8A78000) SoC.

Signed-off-by: Geert Uytterhoeven <geert+renesas@glider.be>
---
RFC, as the DT bindings haven't been accepted yet.

v2:
  - No changes.
---
 arch/arm64/boot/dts/renesas/r8a78000.dtsi | 235 ++++++++++++++++++++++
 1 file changed, 235 insertions(+)

diff --git a/arch/arm64/boot/dts/renesas/r8a78000.dtsi b/arch/arm64/boot/dts/renesas/r8a78000.dtsi
index d3a2c469a2e98fc3..73e482a231a15bff 100644
--- a/arch/arm64/boot/dts/renesas/r8a78000.dtsi
+++ b/arch/arm64/boot/dts/renesas/r8a78000.dtsi
@@ -15,6 +15,13 @@ / {
 	#size-cells = <2>;
 	interrupt-parent = <&gic>;
 
+	/* External CAN clock - to be overridden by boards that provide it */
+	can_clk: can-clk {
+		compatible = "fixed-clock";
+		#clock-cells = <0>;
+		clock-frequency = <0>;
+	};
+
 	cpus {
 		#address-cells = <2>;
 		#size-cells = <0>;
@@ -1604,6 +1611,234 @@ mdlc_vips: system-controller@c3460000 {
 			bootph-all;
 		};
 
+		canfd0: can@c1420000 {
+			compatible = "renesas,r8a78000-canfd",
+				     "renesas,rcar-gen5-canfd";
+			reg = <0 0xc1420000 0 0x8500>;
+			interrupts = <GIC_ESPI 610 IRQ_TYPE_LEVEL_HIGH>,
+				     <GIC_ESPI 611 IRQ_TYPE_LEVEL_HIGH>,
+				     <GIC_ESPI 612 IRQ_TYPE_LEVEL_HIGH>,
+				     <GIC_ESPI 613 IRQ_TYPE_LEVEL_HIGH>,
+				     <GIC_ESPI 614 IRQ_TYPE_LEVEL_HIGH>,
+				     <GIC_ESPI 615 IRQ_TYPE_LEVEL_HIGH>,
+				     <GIC_ESPI 616 IRQ_TYPE_LEVEL_HIGH>,
+				     <GIC_ESPI 617 IRQ_TYPE_LEVEL_HIGH>,
+				     <GIC_ESPI 618 IRQ_TYPE_LEVEL_HIGH>,
+				     <GIC_ESPI 619 IRQ_TYPE_LEVEL_HIGH>,
+				     <GIC_ESPI 620 IRQ_TYPE_LEVEL_HIGH>,
+				     <GIC_ESPI 621 IRQ_TYPE_LEVEL_HIGH>,
+				     <GIC_ESPI 622 IRQ_TYPE_LEVEL_HIGH>,
+				     <GIC_ESPI 623 IRQ_TYPE_LEVEL_HIGH>,
+				     <GIC_ESPI 624 IRQ_TYPE_LEVEL_HIGH>,
+				     <GIC_ESPI 625 IRQ_TYPE_LEVEL_HIGH>,
+				     <GIC_ESPI 626 IRQ_TYPE_LEVEL_HIGH>,
+				     <GIC_ESPI 627 IRQ_TYPE_LEVEL_HIGH>,
+				     <GIC_ESPI 628 IRQ_TYPE_LEVEL_HIGH>,
+				     <GIC_ESPI 629 IRQ_TYPE_LEVEL_HIGH>,
+				     <GIC_ESPI 630 IRQ_TYPE_LEVEL_HIGH>,
+				     <GIC_ESPI 631 IRQ_TYPE_LEVEL_HIGH>,
+				     <GIC_ESPI 632 IRQ_TYPE_LEVEL_HIGH>,
+				     <GIC_ESPI 633 IRQ_TYPE_LEVEL_HIGH>,
+				     <GIC_ESPI 634 IRQ_TYPE_LEVEL_HIGH>,
+				     <GIC_ESPI 635 IRQ_TYPE_LEVEL_HIGH>,
+				     <GIC_ESPI 636 IRQ_TYPE_LEVEL_HIGH>,
+				     <GIC_ESPI 637 IRQ_TYPE_LEVEL_HIGH>,
+				     <GIC_ESPI 638 IRQ_TYPE_LEVEL_HIGH>,
+				     <GIC_ESPI 639 IRQ_TYPE_LEVEL_HIGH>,
+				     <GIC_ESPI 640 IRQ_TYPE_LEVEL_HIGH>,
+				     <GIC_ESPI 641 IRQ_TYPE_LEVEL_HIGH>,
+				     <GIC_ESPI 642 IRQ_TYPE_LEVEL_HIGH>,
+				     <GIC_ESPI 643 IRQ_TYPE_LEVEL_HIGH>,
+				     <GIC_ESPI 644 IRQ_TYPE_LEVEL_HIGH>,
+				     <GIC_ESPI 645 IRQ_TYPE_LEVEL_HIGH>,
+				     <GIC_ESPI 646 IRQ_TYPE_LEVEL_HIGH>,
+				     <GIC_ESPI 647 IRQ_TYPE_LEVEL_HIGH>,
+				     <GIC_ESPI 648 IRQ_TYPE_LEVEL_HIGH>,
+				     <GIC_ESPI 649 IRQ_TYPE_LEVEL_HIGH>,
+				     <GIC_ESPI 650 IRQ_TYPE_LEVEL_HIGH>,
+				     <GIC_ESPI 651 IRQ_TYPE_LEVEL_HIGH>,
+				     <GIC_ESPI 652 IRQ_TYPE_LEVEL_HIGH>,
+				     <GIC_ESPI 653 IRQ_TYPE_LEVEL_HIGH>,
+				     <GIC_ESPI 654 IRQ_TYPE_LEVEL_HIGH>,
+				     <GIC_ESPI 655 IRQ_TYPE_LEVEL_HIGH>,
+				     <GIC_ESPI 656 IRQ_TYPE_LEVEL_HIGH>,
+				     <GIC_ESPI 657 IRQ_TYPE_LEVEL_HIGH>,
+				     <GIC_ESPI 658 IRQ_TYPE_LEVEL_HIGH>,
+				     <GIC_ESPI 659 IRQ_TYPE_LEVEL_HIGH>;
+			interrupt-names = "g_err", "g_recc",
+					  "ch0_err", "ch0_rec", "ch0_trx",
+					  "ch1_err", "ch1_rec", "ch1_trx",
+					  "ch2_err", "ch2_rec", "ch2_trx",
+					  "ch3_err", "ch3_rec", "ch3_trx",
+					  "ch4_err", "ch4_rec", "ch4_trx",
+					  "ch5_err", "ch5_rec", "ch5_trx",
+					  "ch6_err", "ch6_rec", "ch6_trx",
+					  "ch7_err", "ch7_rec", "ch7_trx",
+					  "vm0_tx", "vm0_rx", "vm0_err",
+					  "vm1_tx", "vm1_rx", "vm1_err",
+					  "vm2_tx", "vm2_rx", "vm2_err",
+					  "vm3_tx", "vm3_rx", "vm3_err",
+					  "vm4_tx", "vm4_rx", "vm4_err",
+					  "vm5_tx", "vm5_rx", "vm5_err",
+					  "vm6_tx", "vm6_rx", "vm6_err",
+					  "vm7_tx", "vm7_rx", "vm7_err";
+			clocks = <&cpg R8A78000_CPG_SCPBUSD4_SCP_MAIN>,
+				 <&cpg R8A78000_CPG_CANFD_SCP_MAIN>,
+				 <&can_clk>;
+			clock-names = "fck", "canfd", "can_clk";
+			assigned-clocks = <&cpg R8A78000_CPG_CANFD_SCP_MAIN>;
+			assigned-clock-rates = <80000000>;
+			power-domains = <&mdlc_scp R8A78000_MDLC_PD_SCP 0x72>;
+			resets = <&mdlc_scp 0x72>;
+			status = "disabled";
+
+			channel0 {
+				status = "disabled";
+			};
+
+			channel1 {
+				status = "disabled";
+			};
+
+			channel2 {
+				status = "disabled";
+			};
+
+			channel3 {
+				status = "disabled";
+			};
+
+			channel4 {
+				status = "disabled";
+			};
+
+			channel5 {
+				status = "disabled";
+			};
+
+			channel6 {
+				status = "disabled";
+			};
+
+			channel7 {
+				status = "disabled";
+			};
+		};
+
+		canfd1: can@c1520000 {
+			compatible = "renesas,r8a78000-canfd",
+				     "renesas,rcar-gen5-canfd";
+			reg = <0 0xc1520000 0 0x8500>;
+			interrupts = <GIC_ESPI 660 IRQ_TYPE_LEVEL_HIGH>,
+				     <GIC_ESPI 661 IRQ_TYPE_LEVEL_HIGH>,
+				     <GIC_ESPI 662 IRQ_TYPE_LEVEL_HIGH>,
+				     <GIC_ESPI 663 IRQ_TYPE_LEVEL_HIGH>,
+				     <GIC_ESPI 664 IRQ_TYPE_LEVEL_HIGH>,
+				     <GIC_ESPI 665 IRQ_TYPE_LEVEL_HIGH>,
+				     <GIC_ESPI 666 IRQ_TYPE_LEVEL_HIGH>,
+				     <GIC_ESPI 667 IRQ_TYPE_LEVEL_HIGH>,
+				     <GIC_ESPI 668 IRQ_TYPE_LEVEL_HIGH>,
+				     <GIC_ESPI 669 IRQ_TYPE_LEVEL_HIGH>,
+				     <GIC_ESPI 670 IRQ_TYPE_LEVEL_HIGH>,
+				     <GIC_ESPI 671 IRQ_TYPE_LEVEL_HIGH>,
+				     <GIC_ESPI 672 IRQ_TYPE_LEVEL_HIGH>,
+				     <GIC_ESPI 673 IRQ_TYPE_LEVEL_HIGH>,
+				     <GIC_ESPI 674 IRQ_TYPE_LEVEL_HIGH>,
+				     <GIC_ESPI 675 IRQ_TYPE_LEVEL_HIGH>,
+				     <GIC_ESPI 676 IRQ_TYPE_LEVEL_HIGH>,
+				     <GIC_ESPI 677 IRQ_TYPE_LEVEL_HIGH>,
+				     <GIC_ESPI 678 IRQ_TYPE_LEVEL_HIGH>,
+				     <GIC_ESPI 679 IRQ_TYPE_LEVEL_HIGH>,
+				     <GIC_ESPI 680 IRQ_TYPE_LEVEL_HIGH>,
+				     <GIC_ESPI 681 IRQ_TYPE_LEVEL_HIGH>,
+				     <GIC_ESPI 682 IRQ_TYPE_LEVEL_HIGH>,
+				     <GIC_ESPI 683 IRQ_TYPE_LEVEL_HIGH>,
+				     <GIC_ESPI 684 IRQ_TYPE_LEVEL_HIGH>,
+				     <GIC_ESPI 685 IRQ_TYPE_LEVEL_HIGH>,
+				     <GIC_ESPI 686 IRQ_TYPE_LEVEL_HIGH>,
+				     <GIC_ESPI 687 IRQ_TYPE_LEVEL_HIGH>,
+				     <GIC_ESPI 688 IRQ_TYPE_LEVEL_HIGH>,
+				     <GIC_ESPI 689 IRQ_TYPE_LEVEL_HIGH>,
+				     <GIC_ESPI 690 IRQ_TYPE_LEVEL_HIGH>,
+				     <GIC_ESPI 691 IRQ_TYPE_LEVEL_HIGH>,
+				     <GIC_ESPI 692 IRQ_TYPE_LEVEL_HIGH>,
+				     <GIC_ESPI 693 IRQ_TYPE_LEVEL_HIGH>,
+				     <GIC_ESPI 694 IRQ_TYPE_LEVEL_HIGH>,
+				     <GIC_ESPI 695 IRQ_TYPE_LEVEL_HIGH>,
+				     <GIC_ESPI 696 IRQ_TYPE_LEVEL_HIGH>,
+				     <GIC_ESPI 697 IRQ_TYPE_LEVEL_HIGH>,
+				     <GIC_ESPI 698 IRQ_TYPE_LEVEL_HIGH>,
+				     <GIC_ESPI 699 IRQ_TYPE_LEVEL_HIGH>,
+				     <GIC_ESPI 700 IRQ_TYPE_LEVEL_HIGH>,
+				     <GIC_ESPI 701 IRQ_TYPE_LEVEL_HIGH>,
+				     <GIC_ESPI 702 IRQ_TYPE_LEVEL_HIGH>,
+				     <GIC_ESPI 703 IRQ_TYPE_LEVEL_HIGH>,
+				     <GIC_ESPI 704 IRQ_TYPE_LEVEL_HIGH>,
+				     <GIC_ESPI 705 IRQ_TYPE_LEVEL_HIGH>,
+				     <GIC_ESPI 706 IRQ_TYPE_LEVEL_HIGH>,
+				     <GIC_ESPI 707 IRQ_TYPE_LEVEL_HIGH>,
+				     <GIC_ESPI 708 IRQ_TYPE_LEVEL_HIGH>,
+				     <GIC_ESPI 709 IRQ_TYPE_LEVEL_HIGH>;
+			interrupt-names = "g_err", "g_recc",
+					  "ch0_err", "ch0_rec", "ch0_trx",
+					  "ch1_err", "ch1_rec", "ch1_trx",
+					  "ch2_err", "ch2_rec", "ch2_trx",
+					  "ch3_err", "ch3_rec", "ch3_trx",
+					  "ch4_err", "ch4_rec", "ch4_trx",
+					  "ch5_err", "ch5_rec", "ch5_trx",
+					  "ch6_err", "ch6_rec", "ch6_trx",
+					  "ch7_err", "ch7_rec", "ch7_trx",
+					  "vm0_tx", "vm0_rx", "vm0_err",
+					  "vm1_tx", "vm1_rx", "vm1_err",
+					  "vm2_tx", "vm2_rx", "vm2_err",
+					  "vm3_tx", "vm3_rx", "vm3_err",
+					  "vm4_tx", "vm4_rx", "vm4_err",
+					  "vm5_tx", "vm5_rx", "vm5_err",
+					  "vm6_tx", "vm6_rx", "vm6_err",
+					  "vm7_tx", "vm7_rx", "vm7_err";
+			clocks = <&cpg R8A78000_CPG_SCPBUSD4_SCP_MAIN>,
+				 <&cpg R8A78000_CPG_CANFD_SCP_MAIN>,
+				 <&can_clk>;
+			clock-names = "fck", "canfd", "can_clk";
+			assigned-clocks = <&cpg R8A78000_CPG_CANFD_SCP_MAIN>;
+			assigned-clock-rates = <80000000>;
+			power-domains = <&mdlc_scp R8A78000_MDLC_PD_SCP 0x73>;
+			resets = <&mdlc_scp 0x73>;
+			status = "disabled";
+
+			channel0 {
+				status = "disabled";
+			};
+
+			channel1 {
+				status = "disabled";
+			};
+
+			channel2 {
+				status = "disabled";
+			};
+
+			channel3 {
+				status = "disabled";
+			};
+
+			channel4 {
+				status = "disabled";
+			};
+
+			channel5 {
+				status = "disabled";
+			};
+
+			channel6 {
+				status = "disabled";
+			};
+
+			channel7 {
+				status = "disabled";
+			};
+		};
+
 		msiof0: spi@c1700000 {
 			compatible = "renesas,msiof-r8a78000",
 				     "renesas,rcar-gen5-msiof";
-- 
2.43.0


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

* [PATCH v2 08/10] clk: renesas: r8a78000: Add GPIO clocks
  2026-12-02 14:55 [PATCH v2 00/10] renesas: r8a78000: Add GPIO, PWM, and CAN-FD platform support Geert Uytterhoeven
                   ` (6 preceding siblings ...)
  2026-12-02 14:55 ` [PATCH/RFC v2 07/10] arm64: dts: renesas: r8a78000: Add CAN-FD nodes Geert Uytterhoeven
@ 2026-12-02 14:55 ` Geert Uytterhoeven
  2026-12-02 14:55 ` [PATCH v2 09/10] clk: renesas: r8a78000: Add PWM clocks Geert Uytterhoeven
  2026-12-02 14:55 ` [PATCH v2 10/10] clk: renesas: r8a78000: Add CAN-FD clocks Geert Uytterhoeven
  9 siblings, 0 replies; 15+ messages in thread
From: Geert Uytterhoeven @ 2026-12-02 14:55 UTC (permalink / raw)
  To: Wolfram Sang, Laurent Pinchart, Rob Herring, Krzysztof Kozlowski,
	Conor Dooley, Stephen Boyd, Brian Masney, Jerome Brunet,
	Magnus Damm
  Cc: linux-renesas-soc, linux-clk, devicetree, Geert Uytterhoeven

From: Geert Uytterhoeven <geert+renesas@glider.be>

Add support for the clocks used by the GPIO modules on R-Car X5H.
This includes SCMI remapping table entries and fixed-clock fallbacks.

Signed-off-by: Geert Uytterhoeven <geert+renesas@glider.be>
---
This depends on "[PATCH v7 05/14] clk: renesas: r8a78000: Add SCMI
remapping support"[1].

v2:
  - Reword,
  - Rebase,
  - Use DT binding definition sort order.

[1] https://lore.kernel.org/59fef401875be3fa436de1e46d51d4a7c93b73c1.1796043912.git.geert+renesas@glider.be
---
 drivers/clk/renesas/r8a78000-cpg.c | 12 ++++++++++++
 1 file changed, 12 insertions(+)

diff --git a/drivers/clk/renesas/r8a78000-cpg.c b/drivers/clk/renesas/r8a78000-cpg.c
index 314a765fcd6caf4b..2f44c84d88bebea6 100644
--- a/drivers/clk/renesas/r8a78000-cpg.c
+++ b/drivers/clk/renesas/r8a78000-cpg.c
@@ -39,12 +39,16 @@ struct cpg_data {
 };
 
 enum fixed_clk {
+	FIXED_CLK_33M,
+	FIXED_CLK_37M5,
 	FIXED_CLK_66M,
 	FIXED_CLK_133M,
 	FIXED_CLK_266M,
 };
 
 static const unsigned long fixed_clk_rates[] = {
+	[FIXED_CLK_33M] = 33333000,
+	[FIXED_CLK_37M5] = 37500000,
 	[FIXED_CLK_66M] = 66666000,
 	[FIXED_CLK_133M] = 133330000,
 	[FIXED_CLK_266M] = 266660000,
@@ -281,6 +285,10 @@ static const struct clk_id_map_entry r8a78000_cpg_default[] = {
 	MAP_FIXED(R8A78000_CPG_SGASYNCD4_PERW_BUS,	266M),
 	MAP_FIXED(R8A78000_CPG_SGASYNCD8_PERW_BUS,	133M),
 	MAP_FIXED(R8A78000_CPG_SGASYNCD16_PERW_BUS,	66M),
+	MAP_FIXED(R8A78000_CPG_SGD32_PERW_BUS,		33M),
+	MAP_FIXED(R8A78000_CPG_SCPBUSD16_SCP_MAIN,	37M5),
+	MAP_FIXED(R8A78000_CPG_S0D24_PERE_MAIN,		33M),
+	MAP_FIXED(R8A78000_CPG_S0D24_HSCN_OTHER,	33M),
 #undef MAP_FIXED
 };
 
@@ -290,6 +298,10 @@ static const struct clk_id_map_entry r8a78000_cpg_fw[] = {
 	{ R8A78000_CPG_SGASYNCD16_PERW_BUS,	1663 },
 	{ R8A78000_CPG_MSO_SCP_MAIN,		1459 },
 	{ R8A78000_CPG_MSOCK_PERW_BUS,		1667 },
+	{ R8A78000_CPG_SGD32_PERW_BUS,		1660 },
+	{ R8A78000_CPG_SCPBUSD16_SCP_MAIN,	1454 },
+	{ R8A78000_CPG_S0D24_PERE_MAIN,		1690 },
+	{ R8A78000_CPG_S0D24_HSCN_OTHER,	1499 },
 };
 
 static const struct cpg_data r8a78000_cpg_data = {
-- 
2.43.0


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

* [PATCH v2 09/10] clk: renesas: r8a78000: Add PWM clocks
  2026-12-02 14:55 [PATCH v2 00/10] renesas: r8a78000: Add GPIO, PWM, and CAN-FD platform support Geert Uytterhoeven
                   ` (7 preceding siblings ...)
  2026-12-02 14:55 ` [PATCH v2 08/10] clk: renesas: r8a78000: Add GPIO clocks Geert Uytterhoeven
@ 2026-12-02 14:55 ` Geert Uytterhoeven
  2026-12-02 14:55 ` [PATCH v2 10/10] clk: renesas: r8a78000: Add CAN-FD clocks Geert Uytterhoeven
  9 siblings, 0 replies; 15+ messages in thread
From: Geert Uytterhoeven @ 2026-12-02 14:55 UTC (permalink / raw)
  To: Wolfram Sang, Laurent Pinchart, Rob Herring, Krzysztof Kozlowski,
	Conor Dooley, Stephen Boyd, Brian Masney, Jerome Brunet,
	Magnus Damm
  Cc: linux-renesas-soc, linux-clk, devicetree, Geert Uytterhoeven

From: Geert Uytterhoeven <geert+renesas@glider.be>

Add support for the clocks used by the PWM modules on R-Car X5H.
This includes SCMI remapping table entries and fixed-clock fallbacks.

Signed-off-by: Geert Uytterhoeven <geert+renesas@glider.be>
---
This depends on "[PATCH v7 05/14] clk: renesas: r8a78000: Add SCMI
remapping support"[1].

v2:
  - Reword,
  - Rebase,
  - Use DT binding definition sort order.

[1] https://lore.kernel.org/59fef401875be3fa436de1e46d51d4a7c93b73c1.1796043912.git.geert+renesas@glider.be
---
 drivers/clk/renesas/r8a78000-cpg.c | 6 ++++++
 1 file changed, 6 insertions(+)

diff --git a/drivers/clk/renesas/r8a78000-cpg.c b/drivers/clk/renesas/r8a78000-cpg.c
index 2f44c84d88bebea6..de022797286e625d 100644
--- a/drivers/clk/renesas/r8a78000-cpg.c
+++ b/drivers/clk/renesas/r8a78000-cpg.c
@@ -42,6 +42,7 @@ enum fixed_clk {
 	FIXED_CLK_33M,
 	FIXED_CLK_37M5,
 	FIXED_CLK_66M,
+	FIXED_CLK_100M,
 	FIXED_CLK_133M,
 	FIXED_CLK_266M,
 };
@@ -50,6 +51,7 @@ static const unsigned long fixed_clk_rates[] = {
 	[FIXED_CLK_33M] = 33333000,
 	[FIXED_CLK_37M5] = 37500000,
 	[FIXED_CLK_66M] = 66666000,
+	[FIXED_CLK_100M] = 100000000,
 	[FIXED_CLK_133M] = 133330000,
 	[FIXED_CLK_266M] = 266660000,
 };
@@ -285,6 +287,8 @@ static const struct clk_id_map_entry r8a78000_cpg_default[] = {
 	MAP_FIXED(R8A78000_CPG_SGASYNCD4_PERW_BUS,	266M),
 	MAP_FIXED(R8A78000_CPG_SGASYNCD8_PERW_BUS,	133M),
 	MAP_FIXED(R8A78000_CPG_SGASYNCD16_PERW_BUS,	66M),
+	MAP_FIXED(R8A78000_CPG_SGASYNCD16_PERW_MAIN,	66M),
+	MAP_FIXED(R8A78000_CPG_S0ASYNCD8_PERW_MAIN,	100M),
 	MAP_FIXED(R8A78000_CPG_SGD32_PERW_BUS,		33M),
 	MAP_FIXED(R8A78000_CPG_SCPBUSD16_SCP_MAIN,	37M5),
 	MAP_FIXED(R8A78000_CPG_S0D24_PERE_MAIN,		33M),
@@ -298,6 +302,8 @@ static const struct clk_id_map_entry r8a78000_cpg_fw[] = {
 	{ R8A78000_CPG_SGASYNCD16_PERW_BUS,	1663 },
 	{ R8A78000_CPG_MSO_SCP_MAIN,		1459 },
 	{ R8A78000_CPG_MSOCK_PERW_BUS,		1667 },
+	{ R8A78000_CPG_SGASYNCD16_PERW_MAIN,	1651 },
+	{ R8A78000_CPG_S0ASYNCD8_PERW_MAIN,	1653 },
 	{ R8A78000_CPG_SGD32_PERW_BUS,		1660 },
 	{ R8A78000_CPG_SCPBUSD16_SCP_MAIN,	1454 },
 	{ R8A78000_CPG_S0D24_PERE_MAIN,		1690 },
-- 
2.43.0


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

* [PATCH v2 10/10] clk: renesas: r8a78000: Add CAN-FD clocks
  2026-12-02 14:55 [PATCH v2 00/10] renesas: r8a78000: Add GPIO, PWM, and CAN-FD platform support Geert Uytterhoeven
                   ` (8 preceding siblings ...)
  2026-12-02 14:55 ` [PATCH v2 09/10] clk: renesas: r8a78000: Add PWM clocks Geert Uytterhoeven
@ 2026-12-02 14:55 ` Geert Uytterhoeven
  9 siblings, 0 replies; 15+ messages in thread
From: Geert Uytterhoeven @ 2026-12-02 14:55 UTC (permalink / raw)
  To: Wolfram Sang, Laurent Pinchart, Rob Herring, Krzysztof Kozlowski,
	Conor Dooley, Stephen Boyd, Brian Masney, Jerome Brunet,
	Magnus Damm
  Cc: linux-renesas-soc, linux-clk, devicetree, Geert Uytterhoeven

From: Geert Uytterhoeven <geert+renesas@glider.be>

Add support for the clocks used by the Controller Area Network Flexible
Data Rate (CAN-FD) modules on R-Car X5H.
This includes SCMI remapping table entries and a fixed-clock fallback.

Signed-off-by: Geert Uytterhoeven <geert+renesas@glider.be>
---
This depends on "[PATCH v7 05/14] clk: renesas: r8a78000: Add SCMI
remapping support"[1].

v2:
  - Rebase,
  - Use DT binding definition sort order.

[1] https://lore.kernel.org/59fef401875be3fa436de1e46d51d4a7c93b73c1.1796043912.git.geert+renesas@glider.be
---
 drivers/clk/renesas/r8a78000-cpg.c | 5 +++++
 1 file changed, 5 insertions(+)

diff --git a/drivers/clk/renesas/r8a78000-cpg.c b/drivers/clk/renesas/r8a78000-cpg.c
index de022797286e625d..79e2dceaf4dd76f7 100644
--- a/drivers/clk/renesas/r8a78000-cpg.c
+++ b/drivers/clk/renesas/r8a78000-cpg.c
@@ -44,6 +44,7 @@ enum fixed_clk {
 	FIXED_CLK_66M,
 	FIXED_CLK_100M,
 	FIXED_CLK_133M,
+	FIXED_CLK_150M,
 	FIXED_CLK_266M,
 };
 
@@ -53,6 +54,7 @@ static const unsigned long fixed_clk_rates[] = {
 	[FIXED_CLK_66M] = 66666000,
 	[FIXED_CLK_100M] = 100000000,
 	[FIXED_CLK_133M] = 133330000,
+	[FIXED_CLK_150M] = 150000000,
 	[FIXED_CLK_266M] = 266660000,
 };
 
@@ -290,6 +292,7 @@ static const struct clk_id_map_entry r8a78000_cpg_default[] = {
 	MAP_FIXED(R8A78000_CPG_SGASYNCD16_PERW_MAIN,	66M),
 	MAP_FIXED(R8A78000_CPG_S0ASYNCD8_PERW_MAIN,	100M),
 	MAP_FIXED(R8A78000_CPG_SGD32_PERW_BUS,		33M),
+	MAP_FIXED(R8A78000_CPG_SCPBUSD4_SCP_MAIN,	150M),
 	MAP_FIXED(R8A78000_CPG_SCPBUSD16_SCP_MAIN,	37M5),
 	MAP_FIXED(R8A78000_CPG_S0D24_PERE_MAIN,		33M),
 	MAP_FIXED(R8A78000_CPG_S0D24_HSCN_OTHER,	33M),
@@ -305,7 +308,9 @@ static const struct clk_id_map_entry r8a78000_cpg_fw[] = {
 	{ R8A78000_CPG_SGASYNCD16_PERW_MAIN,	1651 },
 	{ R8A78000_CPG_S0ASYNCD8_PERW_MAIN,	1653 },
 	{ R8A78000_CPG_SGD32_PERW_BUS,		1660 },
+	{ R8A78000_CPG_SCPBUSD4_SCP_MAIN,	1451 },
 	{ R8A78000_CPG_SCPBUSD16_SCP_MAIN,	1454 },
+	{ R8A78000_CPG_CANFD_SCP_MAIN,		1456 },
 	{ R8A78000_CPG_S0D24_PERE_MAIN,		1690 },
 	{ R8A78000_CPG_S0D24_HSCN_OTHER,	1499 },
 };
-- 
2.43.0


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

* Re: [PATCH v2 01/10] dt-bindings: clock: renesas,r8a78000-cpg: Add remaining PERW clocks
  2026-12-02 14:55 ` [PATCH v2 01/10] dt-bindings: clock: renesas,r8a78000-cpg: Add remaining PERW clocks Geert Uytterhoeven
@ 2026-12-02 21:46   ` Wolfram Sang
  0 siblings, 0 replies; 15+ messages in thread
From: Wolfram Sang @ 2026-12-02 21:46 UTC (permalink / raw)
  To: Geert Uytterhoeven
  Cc: Laurent Pinchart, Rob Herring, Krzysztof Kozlowski, Conor Dooley,
	Stephen Boyd, Brian Masney, Jerome Brunet, Magnus Damm,
	linux-renesas-soc, linux-clk, devicetree, Geert Uytterhoeven

On Wed, Dec 02, 2026 at 03:55:17PM +0100, Geert Uytterhoeven wrote:
> From: Geert Uytterhoeven <geert+renesas@glider.be>
> 
> Add all remaining clocks in the PERW Hierarchy, as listed in "Clock List
> (PERW)" of attachment RCarX5H_TS_015_Clock_Controller_supplement.xlsx in
> the R-Car X5H 1.0 Series User’s Manual: Hardware Rev.0.72.  Include
> comments for already-defined clocks (which are part of the DT ABI and
> thus cannot be changed), for easier comparison with the documentation.
> 
> Some of these are consumed by the DMAC, GPIO, I3C and PWM modules.
> 
> Signed-off-by: Geert Uytterhoeven <geert+renesas@glider.be>

Didn't check all the numbers, but this resembles what Geert and I
discussed when he sent v1 internally, so:

Acked-by: Wolfram Sang <wsa+renesas@sang-engineering.com>


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

* Re: [PATCH v2 02/10] dt-bindings: clock: renesas,r8a78000-cpg: Add remaining RT clocks
  2026-12-02 14:55 ` [PATCH v2 02/10] dt-bindings: clock: renesas,r8a78000-cpg: Add remaining RT clocks Geert Uytterhoeven
@ 2026-12-02 21:46   ` Wolfram Sang
  0 siblings, 0 replies; 15+ messages in thread
From: Wolfram Sang @ 2026-12-02 21:46 UTC (permalink / raw)
  To: Geert Uytterhoeven
  Cc: Laurent Pinchart, Rob Herring, Krzysztof Kozlowski, Conor Dooley,
	Stephen Boyd, Brian Masney, Jerome Brunet, Magnus Damm,
	linux-renesas-soc, linux-clk, devicetree, Geert Uytterhoeven

On Wed, Dec 02, 2026 at 03:55:18PM +0100, Geert Uytterhoeven wrote:
> From: Geert Uytterhoeven <geert+renesas@glider.be>
> 
> Add all remaining clocks in the RT Hierarchy, as listed in "Clock List
> (RT)" of attachment RCarX5H_TS_015_Clock_Controller_supplement.xlsx in
> the R-Car X5H 1.0 Series User’s Manual: Hardware Rev.0.72.  Include a
> comment for the already-defined clock (which is part of the DT ABI and
> thus cannot be changed), for easier comparison with the documentation.
> 
> Some of these are consumed by the CAN-FD, GPIO, and watchdog (RWDT)
> modules.
> 
> Signed-off-by: Geert Uytterhoeven <geert+renesas@glider.be>

Acked-by: Wolfram Sang <wsa+renesas@sang-engineering.com>


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

* Re: [PATCH v2 03/10] dt-bindings: clock: renesas,r8a78000-cpg: Add all PERE clocks
  2026-12-02 14:55 ` [PATCH v2 03/10] dt-bindings: clock: renesas,r8a78000-cpg: Add all PERE clocks Geert Uytterhoeven
@ 2026-12-02 21:47   ` Wolfram Sang
  0 siblings, 0 replies; 15+ messages in thread
From: Wolfram Sang @ 2026-12-02 21:47 UTC (permalink / raw)
  To: Geert Uytterhoeven
  Cc: Laurent Pinchart, Rob Herring, Krzysztof Kozlowski, Conor Dooley,
	Stephen Boyd, Brian Masney, Jerome Brunet, Magnus Damm,
	linux-renesas-soc, linux-clk, devicetree, Geert Uytterhoeven

On Wed, Dec 02, 2026 at 03:55:19PM +0100, Geert Uytterhoeven wrote:
> From: Geert Uytterhoeven <geert+renesas@glider.be>
> 
> Add all clocks in the PERE Hierarchy, as listed in "Clock List (PERE)"
> of attachment RCarX5H_TS_015_Clock_Controller_supplement.xlsx in the
> R-Car X5H 1.0 Series User’s Manual: Hardware Rev.0.72.
> 
> Some of these are consumed by the GPIO modules.
> 
> Signed-off-by: Geert Uytterhoeven <geert+renesas@glider.be>

Acked-by: Wolfram Sang <wsa+renesas@sang-engineering.com>


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

* Re: [PATCH v2 04/10] dt-bindings: clock: renesas,r8a78000-cpg: Add all HSCN clocks
  2026-12-02 14:55 ` [PATCH v2 04/10] dt-bindings: clock: renesas,r8a78000-cpg: Add all HSCN clocks Geert Uytterhoeven
@ 2026-12-02 21:47   ` Wolfram Sang
  0 siblings, 0 replies; 15+ messages in thread
From: Wolfram Sang @ 2026-12-02 21:47 UTC (permalink / raw)
  To: Geert Uytterhoeven
  Cc: Laurent Pinchart, Rob Herring, Krzysztof Kozlowski, Conor Dooley,
	Stephen Boyd, Brian Masney, Jerome Brunet, Magnus Damm,
	linux-renesas-soc, linux-clk, devicetree, Geert Uytterhoeven

On Wed, Dec 02, 2026 at 03:55:20PM +0100, Geert Uytterhoeven wrote:
> From: Geert Uytterhoeven <geert+renesas@glider.be>
> 
> Add all clocks in the HSCN Hierarchy, as listed in "Clock List (HSCN)"
> of attachment RCarX5H_TS_015_Clock_Controller_supplement.xlsx in the
> R-Car X5H 1.0 Series User’s Manual: Hardware Rev.0.72.
> 
> Some of these are consumed by the GPIO modules.
> 
> Signed-off-by: Geert Uytterhoeven <geert+renesas@glider.be>

Acked-by: Wolfram Sang <wsa+renesas@sang-engineering.com>


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

end of thread, other threads:[~2026-12-02 21:47 UTC | newest]

Thread overview: 15+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-12-02 14:55 [PATCH v2 00/10] renesas: r8a78000: Add GPIO, PWM, and CAN-FD platform support Geert Uytterhoeven
2026-12-02 14:55 ` [PATCH v2 01/10] dt-bindings: clock: renesas,r8a78000-cpg: Add remaining PERW clocks Geert Uytterhoeven
2026-12-02 21:46   ` Wolfram Sang
2026-12-02 14:55 ` [PATCH v2 02/10] dt-bindings: clock: renesas,r8a78000-cpg: Add remaining RT clocks Geert Uytterhoeven
2026-12-02 21:46   ` Wolfram Sang
2026-12-02 14:55 ` [PATCH v2 03/10] dt-bindings: clock: renesas,r8a78000-cpg: Add all PERE clocks Geert Uytterhoeven
2026-12-02 21:47   ` Wolfram Sang
2026-12-02 14:55 ` [PATCH v2 04/10] dt-bindings: clock: renesas,r8a78000-cpg: Add all HSCN clocks Geert Uytterhoeven
2026-12-02 21:47   ` Wolfram Sang
2026-12-02 14:55 ` [PATCH v2 05/10] arm64: dts: renesas: r8a78000: Add GPIO controller nodes Geert Uytterhoeven
2026-12-02 14:55 ` [PATCH/RFC v2 06/10] arm64: dts: renesas: r8a78000: Add PWM nodes Geert Uytterhoeven
2026-12-02 14:55 ` [PATCH/RFC v2 07/10] arm64: dts: renesas: r8a78000: Add CAN-FD nodes Geert Uytterhoeven
2026-12-02 14:55 ` [PATCH v2 08/10] clk: renesas: r8a78000: Add GPIO clocks Geert Uytterhoeven
2026-12-02 14:55 ` [PATCH v2 09/10] clk: renesas: r8a78000: Add PWM clocks Geert Uytterhoeven
2026-12-02 14:55 ` [PATCH v2 10/10] clk: renesas: r8a78000: Add CAN-FD clocks Geert Uytterhoeven

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.