linux-kernel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH v11 0/2] Add initial support for Renesas RZ/T2H SoC and eval board
@ 2025-06-17 16:28 Prabhakar
  2025-06-17 16:28 ` [PATCH v11 1/2] arm64: dts: renesas: Add initial support for renesas RZ/T2H SoC Prabhakar
                   ` (2 more replies)
  0 siblings, 3 replies; 4+ messages in thread
From: Prabhakar @ 2025-06-17 16:28 UTC (permalink / raw)
  To: Geert Uytterhoeven, Magnus Damm, Rob Herring, Krzysztof Kozlowski,
	Conor Dooley, linux-renesas-soc
  Cc: devicetree, linux-kernel, Prabhakar, Biju Das, Fabrizio Castro,
	Lad Prabhakar

From: Lad Prabhakar <prabhakar.mahadev-lad.rj@bp.renesas.com>

Hi all,

This patch series adds initial support for the Renesas RZ/T2H SoC
and the RZ/T2H evaluation board.

Note: This patch series is split up from the original series [1] to make it
  easier to review.
[1] https://lore.kernel.org/all/20250523142417.2840797-1-thierry.bultel.yh@bp.renesas.com/

v10 -> v11:
- Rebased on latest linux-next.
- Updated model string in the RZ/T2H eval board dts file.
- Dropped GIC_CPU_MASK_SIMPLE from timer node
- Added hypervisor timer in timer node and added the missing interrupt-names
- Reordered the `extal_clk` node
- Reordered the `l3_ca55` node and renamed it to `L3_CA55` for consistency

Cheers,
Prabhakar

Thierry Bultel (2):
  arm64: dts: renesas: Add initial support for renesas RZ/T2H SoC
  arm64: dts: renesas: Add initial support for renesas RZ/T2H eval board

 arch/arm64/boot/dts/renesas/Makefile          |   2 +
 arch/arm64/boot/dts/renesas/r9a09g077.dtsi    | 124 ++++++++++++++++++
 .../dts/renesas/r9a09g077m44-rzt2h-evk.dts    |  31 +++++
 arch/arm64/boot/dts/renesas/r9a09g077m44.dtsi |  13 ++
 4 files changed, 170 insertions(+)
 create mode 100644 arch/arm64/boot/dts/renesas/r9a09g077.dtsi
 create mode 100644 arch/arm64/boot/dts/renesas/r9a09g077m44-rzt2h-evk.dts
 create mode 100644 arch/arm64/boot/dts/renesas/r9a09g077m44.dtsi

-- 
2.49.0


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

* [PATCH v11 1/2] arm64: dts: renesas: Add initial support for renesas RZ/T2H SoC
  2025-06-17 16:28 [PATCH v11 0/2] Add initial support for Renesas RZ/T2H SoC and eval board Prabhakar
@ 2025-06-17 16:28 ` Prabhakar
  2025-06-17 16:28 ` [PATCH v11 2/2] arm64: dts: renesas: Add initial support for renesas RZ/T2H eval board Prabhakar
  2025-06-18  1:06 ` [PATCH v11 0/2] Add initial support for Renesas RZ/T2H SoC and " Rob Herring (Arm)
  2 siblings, 0 replies; 4+ messages in thread
From: Prabhakar @ 2025-06-17 16:28 UTC (permalink / raw)
  To: Geert Uytterhoeven, Magnus Damm, Rob Herring, Krzysztof Kozlowski,
	Conor Dooley, linux-renesas-soc
  Cc: devicetree, linux-kernel, Prabhakar, Biju Das, Fabrizio Castro,
	Lad Prabhakar

From: Thierry Bultel <thierry.bultel.yh@bp.renesas.com>

Add the initial dtsi for the RZ/T2H Soc:

- gic
- armv8-timer
- cpg clock
- sci0 uart

also add arch/arm64/boot/dts/renesas/r9a09g077m44.dtsi, that keeps
all 4 CPUs enabled, for consistency with later support of -m24
and -m04 SoC revisions, that only have 2 and 1 Cortex-A55, respectively,
and that will use /delete-node/ to disable the missing CPUs.

Signed-off-by: Thierry Bultel <thierry.bultel.yh@bp.renesas.com>
Signed-off-by: Lad Prabhakar <prabhakar.mahadev-lad.rj@bp.renesas.com>
Reviewed-by: Geert Uytterhoeven <geert+renesas@glider.be>
---
v10 -> v11:
- Dropped GIC_CPU_MASK_SIMPLE from timer node
- Added hypervisor timer in timer node and added the missing interrupt-names
- Reordered the `extal_clk` node
- Reordered the l3_ca55 node and renamed it to L3_CA55 for consistency
---
 arch/arm64/boot/dts/renesas/r9a09g077.dtsi    | 124 ++++++++++++++++++
 arch/arm64/boot/dts/renesas/r9a09g077m44.dtsi |  13 ++
 2 files changed, 137 insertions(+)
 create mode 100644 arch/arm64/boot/dts/renesas/r9a09g077.dtsi
 create mode 100644 arch/arm64/boot/dts/renesas/r9a09g077m44.dtsi

diff --git a/arch/arm64/boot/dts/renesas/r9a09g077.dtsi b/arch/arm64/boot/dts/renesas/r9a09g077.dtsi
new file mode 100644
index 000000000000..42c3b86196d6
--- /dev/null
+++ b/arch/arm64/boot/dts/renesas/r9a09g077.dtsi
@@ -0,0 +1,124 @@
+// SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
+/*
+ * Device Tree Source for the RZ/T2H SoC
+ *
+ * Copyright (C) 2025 Renesas Electronics Corp.
+ */
+
+#include <dt-bindings/clock/renesas,r9a09g077-cpg-mssr.h>
+#include <dt-bindings/interrupt-controller/arm-gic.h>
+
+/ {
+	compatible = "renesas,r9a09g077";
+	#address-cells = <2>;
+	#size-cells = <2>;
+
+	cpus {
+		#address-cells = <1>;
+		#size-cells = <0>;
+
+		cpu0: cpu@0 {
+			compatible = "arm,cortex-a55";
+			reg = <0>;
+			device_type = "cpu";
+			next-level-cache = <&L3_CA55>;
+			enable-method = "psci";
+		};
+
+		cpu1: cpu@100 {
+			compatible = "arm,cortex-a55";
+			reg = <0x100>;
+			device_type = "cpu";
+			next-level-cache = <&L3_CA55>;
+			enable-method = "psci";
+		};
+
+		cpu2: cpu@200 {
+			compatible = "arm,cortex-a55";
+			reg = <0x200>;
+			device_type = "cpu";
+			next-level-cache = <&L3_CA55>;
+			enable-method = "psci";
+		};
+
+		cpu3: cpu@300 {
+			compatible = "arm,cortex-a55";
+			reg = <0x300>;
+			device_type = "cpu";
+			next-level-cache = <&L3_CA55>;
+			enable-method = "psci";
+		};
+
+		L3_CA55: cache-controller-0 {
+			compatible = "cache";
+			cache-unified;
+			cache-size = <0x100000>;
+			cache-level = <3>;
+		};
+	};
+
+	extal_clk: extal {
+		compatible = "fixed-clock";
+		#clock-cells = <0>;
+		/* This value must be overridden by the board */
+		clock-frequency = <0>;
+	};
+
+	psci {
+		compatible = "arm,psci-1.0", "arm,psci-0.2";
+		method = "smc";
+	};
+
+	soc: soc {
+		compatible = "simple-bus";
+		interrupt-parent = <&gic>;
+		#address-cells = <2>;
+		#size-cells = <2>;
+		ranges;
+
+		sci0: serial@80005000 {
+			compatible = "renesas,r9a09g077-rsci";
+			reg = <0 0x80005000 0 0x400>;
+			interrupts = <GIC_SPI 590 IRQ_TYPE_LEVEL_HIGH>,
+				     <GIC_SPI 591 IRQ_TYPE_EDGE_RISING>,
+				     <GIC_SPI 592 IRQ_TYPE_EDGE_RISING>,
+				     <GIC_SPI 593 IRQ_TYPE_LEVEL_HIGH>;
+			interrupt-names = "eri", "rxi", "txi", "tei";
+			clocks = <&cpg CPG_MOD 8>, <&cpg CPG_CORE R9A09G077_CLK_PCLKM>;
+			clock-names = "operation", "bus";
+			power-domains = <&cpg>;
+			status = "disabled";
+		};
+
+		cpg: clock-controller@80280000 {
+			compatible = "renesas,r9a09g077-cpg-mssr";
+			reg = <0 0x80280000 0 0x1000>,
+			      <0 0x81280000 0 0x9000>;
+			clocks = <&extal_clk>;
+			clock-names = "extal";
+			#clock-cells = <2>;
+			#reset-cells = <1>;
+			#power-domain-cells = <0>;
+		};
+
+		gic: interrupt-controller@83000000 {
+			compatible = "arm,gic-v3";
+			reg = <0x0 0x83000000 0 0x40000>,
+			      <0x0 0x83040000 0 0x160000>;
+			#interrupt-cells = <3>;
+			#address-cells = <0>;
+			interrupt-controller;
+			interrupts = <GIC_PPI 9 IRQ_TYPE_LEVEL_LOW>;
+		};
+	};
+
+	timer {
+		compatible = "arm,armv8-timer";
+		interrupts-extended = <&gic GIC_PPI 13 IRQ_TYPE_LEVEL_LOW>,
+				      <&gic GIC_PPI 14 IRQ_TYPE_LEVEL_LOW>,
+				      <&gic GIC_PPI 11 IRQ_TYPE_LEVEL_LOW>,
+				      <&gic GIC_PPI 10 IRQ_TYPE_LEVEL_LOW>,
+				      <&gic GIC_PPI 12 IRQ_TYPE_LEVEL_LOW>;
+		interrupt-names = "sec-phys", "phys", "virt", "hyp-phys", "hyp-virt";
+	};
+};
diff --git a/arch/arm64/boot/dts/renesas/r9a09g077m44.dtsi b/arch/arm64/boot/dts/renesas/r9a09g077m44.dtsi
new file mode 100644
index 000000000000..6f4a11b39d12
--- /dev/null
+++ b/arch/arm64/boot/dts/renesas/r9a09g077m44.dtsi
@@ -0,0 +1,13 @@
+// SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
+/*
+ * Device Tree Source for the RZ/T2H 4-core SoC
+ *
+ * Copyright (C) 2025 Renesas Electronics Corp.
+ */
+
+/dts-v1/;
+#include "r9a09g077.dtsi"
+
+/ {
+	compatible = "renesas,r9a09g077m44", "renesas,r9a09g077";
+};
-- 
2.49.0


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

* [PATCH v11 2/2] arm64: dts: renesas: Add initial support for renesas RZ/T2H eval board
  2025-06-17 16:28 [PATCH v11 0/2] Add initial support for Renesas RZ/T2H SoC and eval board Prabhakar
  2025-06-17 16:28 ` [PATCH v11 1/2] arm64: dts: renesas: Add initial support for renesas RZ/T2H SoC Prabhakar
@ 2025-06-17 16:28 ` Prabhakar
  2025-06-18  1:06 ` [PATCH v11 0/2] Add initial support for Renesas RZ/T2H SoC and " Rob Herring (Arm)
  2 siblings, 0 replies; 4+ messages in thread
From: Prabhakar @ 2025-06-17 16:28 UTC (permalink / raw)
  To: Geert Uytterhoeven, Magnus Damm, Rob Herring, Krzysztof Kozlowski,
	Conor Dooley, linux-renesas-soc
  Cc: devicetree, linux-kernel, Prabhakar, Biju Das, Fabrizio Castro,
	Lad Prabhakar

From: Thierry Bultel <thierry.bultel.yh@bp.renesas.com>

Add the initial device tree for the RZ/T2H evaluation board.

Signed-off-by: Thierry Bultel <thierry.bultel.yh@bp.renesas.com>
Signed-off-by: Lad Prabhakar <prabhakar.mahadev-lad.rj@bp.renesas.com>
Reviewed-by: Geert Uytterhoeven <geert+renesas@glider.be>
---
v10 -> v11:
- Updated model string in the RZ/T2H eval board.
---
 arch/arm64/boot/dts/renesas/Makefile          |  2 ++
 .../dts/renesas/r9a09g077m44-rzt2h-evk.dts    | 31 +++++++++++++++++++
 2 files changed, 33 insertions(+)
 create mode 100644 arch/arm64/boot/dts/renesas/r9a09g077m44-rzt2h-evk.dts

diff --git a/arch/arm64/boot/dts/renesas/Makefile b/arch/arm64/boot/dts/renesas/Makefile
index 677ba3aa8931..52d0488cfee3 100644
--- a/arch/arm64/boot/dts/renesas/Makefile
+++ b/arch/arm64/boot/dts/renesas/Makefile
@@ -165,5 +165,7 @@ dtb-$(CONFIG_ARCH_R9A09G056) += r9a09g056n48-rzv2n-evk.dtb
 dtb-$(CONFIG_ARCH_R9A09G057) += r9a09g057h44-rzv2h-evk.dtb
 dtb-$(CONFIG_ARCH_R9A09G057) += r9a09g057h48-kakip.dtb
 
+dtb-$(CONFIG_ARCH_R9A09G077) += r9a09g077m44-rzt2h-evk.dtb
+
 dtb-$(CONFIG_ARCH_RCAR_GEN3) += draak-ebisu-panel-aa104xd12.dtbo
 dtb-$(CONFIG_ARCH_RCAR_GEN3) += salvator-panel-aa104xd12.dtbo
diff --git a/arch/arm64/boot/dts/renesas/r9a09g077m44-rzt2h-evk.dts b/arch/arm64/boot/dts/renesas/r9a09g077m44-rzt2h-evk.dts
new file mode 100644
index 000000000000..752d4c9f2cae
--- /dev/null
+++ b/arch/arm64/boot/dts/renesas/r9a09g077m44-rzt2h-evk.dts
@@ -0,0 +1,31 @@
+// SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
+/*
+ * Device Tree Source for the RZ/T2H EVK board
+ *
+ * Copyright (C) 2025 Renesas Electronics Corp.
+ */
+
+/dts-v1/;
+
+#include "r9a09g077m44.dtsi"
+
+/ {
+	model = "Renesas RZ/T2H EVK Board based on r9a09g077m44";
+	compatible = "renesas,rzt2h-evk", "renesas,r9a09g077m44", "renesas,r9a09g077";
+
+	aliases {
+		serial0 = &sci0;
+	};
+
+	chosen {
+		stdout-path = "serial0:115200n8";
+	};
+};
+
+&extal_clk {
+	clock-frequency = <25000000>;
+};
+
+&sci0 {
+	status = "okay";
+};
-- 
2.49.0


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

* Re: [PATCH v11 0/2] Add initial support for Renesas RZ/T2H SoC and eval board
  2025-06-17 16:28 [PATCH v11 0/2] Add initial support for Renesas RZ/T2H SoC and eval board Prabhakar
  2025-06-17 16:28 ` [PATCH v11 1/2] arm64: dts: renesas: Add initial support for renesas RZ/T2H SoC Prabhakar
  2025-06-17 16:28 ` [PATCH v11 2/2] arm64: dts: renesas: Add initial support for renesas RZ/T2H eval board Prabhakar
@ 2025-06-18  1:06 ` Rob Herring (Arm)
  2 siblings, 0 replies; 4+ messages in thread
From: Rob Herring (Arm) @ 2025-06-18  1:06 UTC (permalink / raw)
  To: Prabhakar
  Cc: devicetree, Conor Dooley, Lad Prabhakar, Krzysztof Kozlowski,
	Biju Das, Fabrizio Castro, Magnus Damm, Geert Uytterhoeven,
	linux-renesas-soc, linux-kernel


On Tue, 17 Jun 2025 17:28:08 +0100, Prabhakar wrote:
> From: Lad Prabhakar <prabhakar.mahadev-lad.rj@bp.renesas.com>
> 
> Hi all,
> 
> This patch series adds initial support for the Renesas RZ/T2H SoC
> and the RZ/T2H evaluation board.
> 
> Note: This patch series is split up from the original series [1] to make it
>   easier to review.
> [1] https://lore.kernel.org/all/20250523142417.2840797-1-thierry.bultel.yh@bp.renesas.com/
> 
> v10 -> v11:
> - Rebased on latest linux-next.
> - Updated model string in the RZ/T2H eval board dts file.
> - Dropped GIC_CPU_MASK_SIMPLE from timer node
> - Added hypervisor timer in timer node and added the missing interrupt-names
> - Reordered the `extal_clk` node
> - Reordered the `l3_ca55` node and renamed it to `L3_CA55` for consistency
> 
> Cheers,
> Prabhakar
> 
> Thierry Bultel (2):
>   arm64: dts: renesas: Add initial support for renesas RZ/T2H SoC
>   arm64: dts: renesas: Add initial support for renesas RZ/T2H eval board
> 
>  arch/arm64/boot/dts/renesas/Makefile          |   2 +
>  arch/arm64/boot/dts/renesas/r9a09g077.dtsi    | 124 ++++++++++++++++++
>  .../dts/renesas/r9a09g077m44-rzt2h-evk.dts    |  31 +++++
>  arch/arm64/boot/dts/renesas/r9a09g077m44.dtsi |  13 ++
>  4 files changed, 170 insertions(+)
>  create mode 100644 arch/arm64/boot/dts/renesas/r9a09g077.dtsi
>  create mode 100644 arch/arm64/boot/dts/renesas/r9a09g077m44-rzt2h-evk.dts
>  create mode 100644 arch/arm64/boot/dts/renesas/r9a09g077m44.dtsi
> 
> --
> 2.49.0
> 
> 
> 


My bot found new DTB warnings on the .dts files added or changed in this
series.

Some warnings may be from an existing SoC .dtsi. Or perhaps the warnings
are fixed by another series. Ultimately, it is up to the platform
maintainer whether these warnings are acceptable or not. No need to reply
unless the platform maintainer has comments.

If you already ran DT checks and didn't see these error(s), then
make sure dt-schema is up to date:

  pip3 install dtschema --upgrade


This patch series was applied (using b4) to base:
 Base: attempting to guess base-commit...
 Base: tags/next-20250617 (exact match)

If this is not the correct base, please add 'base-commit' tag
(or use b4 which does this automatically)

New warnings running 'make CHECK_DTBS=y for arch/arm64/boot/dts/renesas/' for 20250617162810.154332-1-prabhakar.mahadev-lad.rj@bp.renesas.com:

arch/arm64/boot/dts/renesas/r9a09g077m44-rzt2h-evk.dtb: serial@80005000 (renesas,r9a09g077-rsci): clock-names:0: 'fck' was expected
	from schema $id: http://devicetree.org/schemas/serial/renesas,rsci.yaml#
arch/arm64/boot/dts/renesas/r9a09g077m44-rzt2h-evk.dtb: serial@80005000 (renesas,r9a09g077-rsci): clock-names: ['operation', 'bus'] is too long
	from schema $id: http://devicetree.org/schemas/serial/renesas,rsci.yaml#
arch/arm64/boot/dts/renesas/r9a09g077m44-rzt2h-evk.dtb: serial@80005000 (renesas,r9a09g077-rsci): clocks: [[3, 1, 8], [3, 0, 13]] is too long
	from schema $id: http://devicetree.org/schemas/serial/renesas,rsci.yaml#
arch/arm64/boot/dts/renesas/r9a09g077m44-rzt2h-evk.dtb: serial@80005000 (renesas,r9a09g077-rsci): Unevaluated properties are not allowed ('clock-names', 'clocks' were unexpected)
	from schema $id: http://devicetree.org/schemas/serial/renesas,rsci.yaml#






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

end of thread, other threads:[~2025-06-18  1:06 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2025-06-17 16:28 [PATCH v11 0/2] Add initial support for Renesas RZ/T2H SoC and eval board Prabhakar
2025-06-17 16:28 ` [PATCH v11 1/2] arm64: dts: renesas: Add initial support for renesas RZ/T2H SoC Prabhakar
2025-06-17 16:28 ` [PATCH v11 2/2] arm64: dts: renesas: Add initial support for renesas RZ/T2H eval board Prabhakar
2025-06-18  1:06 ` [PATCH v11 0/2] Add initial support for Renesas RZ/T2H SoC and " Rob Herring (Arm)

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