Skip to contentSkip to conversation

arm64: renesas: Add R8A779G3 White Hawk Single support

PATCH In review Geert Uytterhoeven 4 participants 13 messages Dec 2, 2024 – Dec 10, 2024

Subsystems (2)
lore
Share & tools
lore

Geert Uytterhoeven

author maintainer
#0 lore raw

cover arm64: renesas: Add R8A779G3 White Hawk Single support

Hi all,

This patch series adds support for the Renesas R-Car V4H ES3.0 (R8A779G3) SoC on the Renesas White Hawk Single board. R-Car V4H ES3.0 (R8A779G3) is an updated version of R-Car V4H (R8A779G0).

I intend to queue these in renesas-devel for v6.14. Thanks for your comments!

Geert Uytterhoeven (5):
dt-bindings: soc: renesas: Move R8A779G0 White Hawk up
dt-bindings: soc: renesas: Document R8A779G3 White Hawk Single
arm64: dts: renesas: Factor out White Hawk Single board support
arm64: dts: renesas: Add R8A779G3 SoC support
arm64: dts: renesas: r8a779g3: Add White Hawk Single support

 .../bindings/soc/renesas/renesas.yaml         | 16 ++---
 arch/arm64/boot/dts/renesas/Makefile          |  2 +
 .../renesas/r8a779g2-white-hawk-single.dts    | 62 +------------------
 .../renesas/r8a779g3-white-hawk-single.dts    | 16 +++++
 arch/arm64/boot/dts/renesas/r8a779g3.dtsi     | 12 ++++
 ...hawk-single.dts => white-hawk-single.dtsi} | 11 ++--
 6 files changed, 44 insertions(+), 75 deletions(-)
 create mode 100644 arch/arm64/boot/dts/renesas/r8a779g3-white-hawk-single.dts
 create mode 100644 arch/arm64/boot/dts/renesas/r8a779g3.dtsi
 copy arch/arm64/boot/dts/renesas/{r8a779g2-white-hawk-single.dts => white-hawk-single.dtsi} (78%)
Signature · 12 lines
2.34.1

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
author maintainer
#1 lore raw

PATCH 1/5 dt-bindings: soc: renesas: Move R8A779G0 White Hawk up

Move the R8A779G0-only White Hawk board stack section up, just below the R8A779G0-only White Hawk CPU section, to improve sort order.

---
 .../devicetree/bindings/soc/renesas/renesas.yaml     | 12 ++++++------
 1 file changed, 6 insertions(+), 6 deletions(-)
Documentation/devicetree/bindings/soc/renesas/renesas.yaml +6 -6
index b7acb65bdecd2a38..dab6667970325dcd 100644
@@ -360,6 +360,12 @@ properties:
               - renesas,white-hawk-cpu # White Hawk CPU board (RTP8A779G0ASKB0FC0SA000)
           - const: renesas,r8a779g0
 
+      - items:
+          - enum:
+              - renesas,white-hawk-breakout # White Hawk BreakOut board (RTP8A779G0ASKB0SB0SA000)
+          - const: renesas,white-hawk-cpu
+          - const: renesas,r8a779g0
+
       - description: R-Car V4H (R8A779G2)
         items:
           - enum:
@@ -367,12 +373,6 @@ properties:
           - const: renesas,r8a779g2
           - const: renesas,r8a779g0
 
-      - items:
-          - enum:
-              - renesas,white-hawk-breakout # White Hawk BreakOut board (RTP8A779G0ASKB0SB0SA000)
-          - const: renesas,white-hawk-cpu
-          - const: renesas,r8a779g0
-
       - description: R-Car V4M (R8A779H0)
         items:
           - enum:
Signature · 1 line
2.34.1
Acked-by on v1 1/5
#2 lore raw

Re: [PATCH 1/5] dt-bindings: soc: renesas: Move R8A779G0 White Hawk up

Quoted 7 lines · Geert Uytterhoeven

Move the R8A779G0-only White Hawk board stack section up, just below the R8A779G0-only White Hawk CPU section, to improve sort order.

---
 .../devicetree/bindings/soc/renesas/renesas.yaml     | 12 ++++++------
 1 file changed, 6 insertions(+), 6 deletions(-)

Best regards,
Krzysztof

author maintainer
#3 lore raw

PATCH 2/5 dt-bindings: soc: renesas: Document R8A779G3 White Hawk Single

In reply to Geert Uytterhoeven

Document the compatible value for the Renesas R-Car V4H ES3.0 (R8A779G3) SoC, as used on the Renesas White Hawk Single board.

---
 .../devicetree/bindings/soc/renesas/renesas.yaml          | 8 +++++---
 1 file changed, 5 insertions(+), 3 deletions(-)
Documentation/devicetree/bindings/soc/renesas/renesas.yaml +5 -3
index dab6667970325dcd..0f3fa341fd87924b 100644
@@ -366,11 +366,13 @@ properties:
           - const: renesas,white-hawk-cpu
           - const: renesas,r8a779g0
 
-      - description: R-Car V4H (R8A779G2)
+      - description: R-Car V4H (R8A779G[23])
         items:
           - enum:
-              - renesas,white-hawk-single # White Hawk Single board (RTP8A779G2ASKB0F10SA001)
-          - const: renesas,r8a779g2
+              - renesas,white-hawk-single # White Hawk Single board (RTP8A779G[23]ASKB0F10SA001)
+          - enum:
+              - renesas,r8a779g2
+              - renesas,r8a779g3
           - const: renesas,r8a779g0
 
       - description: R-Car V4M (R8A779H0)
Signature · 1 line
2.34.1
Acked-by on v1 2/5
#4 lore raw

Re: [PATCH 2/5] dt-bindings: soc: renesas: Document R8A779G3 White Hawk Single

Quoted 7 lines · Geert Uytterhoeven

Document the compatible value for the Renesas R-Car V4H ES3.0 (R8A779G3) SoC, as used on the Renesas White Hawk Single board.

---
 .../devicetree/bindings/soc/renesas/renesas.yaml          | 8 +++++---
 1 file changed, 5 insertions(+), 3 deletions(-)

Best regards,
Krzysztof

author maintainer
#5 lore raw

PATCH 3/5 arm64: dts: renesas: Factor out White Hawk Single board support

In reply to Geert Uytterhoeven

Move the common parts for the Renesas White Hawk Single board to white-hawk-single.dtsi, to enable future reuse.

---
 .../renesas/r8a779g2-white-hawk-single.dts    | 62 +------------------
 ...hawk-single.dts => white-hawk-single.dtsi} | 11 ++--
 2 files changed, 5 insertions(+), 68 deletions(-)
 copy arch/arm64/boot/dts/renesas/{r8a779g2-white-hawk-single.dts => white-hawk-single.dtsi} (78%)
arch/arm64/boot/dts/renesas/r8a779g2-white-hawk-single.dts +1 -61
index 0062362b0ba06885..48befde389376bf2 100644
@@ -7,70 +7,10 @@
 
 /dts-v1/;
 #include "r8a779g2.dtsi"
-#include "white-hawk-cpu-common.dtsi"
-#include "white-hawk-common.dtsi"
+#include "white-hawk-single.dtsi"
 
 / {
 	model = "Renesas White Hawk Single board based on r8a779g2";
 	compatible = "renesas,white-hawk-single", "renesas,r8a779g2",
 		     "renesas,r8a779g0";
 };
-
-&hscif0 {
-	uart-has-rtscts;
-};
-
-&hscif0_pins {
-	groups = "hscif0_data", "hscif0_ctrl";
-	function = "hscif0";
-};
-
-&pfc {
-	tsn0_pins: tsn0 {
-		mux {
-			groups = "tsn0_link", "tsn0_mdio", "tsn0_rgmii",
-				 "tsn0_txcrefclk";
-			function = "tsn0";
-		};
-
-		link {
-			groups = "tsn0_link";
-			bias-disable;
-		};
-
-		mdio {
-			groups = "tsn0_mdio";
-			drive-strength = <24>;
-			bias-disable;
-		};
-
-		rgmii {
-			groups = "tsn0_rgmii";
-			drive-strength = <24>;
-			bias-disable;
-		};
-	};
-};
-
-&tsn0 {
-	pinctrl-0 = <&tsn0_pins>;
-	pinctrl-names = "default";
-	phy-mode = "rgmii";
-	phy-handle = <&phy3>;
-	status = "okay";
-
-	mdio {
-		#address-cells = <1>;
-		#size-cells = <0>;
-
-		reset-gpios = <&gpio1 23 GPIO_ACTIVE_LOW>;
-		reset-post-delay-us = <4000>;
-
-		phy3: ethernet-phy@0 {
-			compatible = "ethernet-phy-id002b.0980",
-				     "ethernet-phy-ieee802.3-c22";
-			reg = <0>;
-			interrupts-extended = <&gpio4 3 IRQ_TYPE_LEVEL_LOW>;
-		};
-	};
-};
arch/arm64/boot/dts/renesas/white-hawk-single.dtsi renamed from arch/arm64/boot/dts/renesas/r8a779g2-white-hawk-single.dts +4 -7
similarity index 78%
copy from arch/arm64/boot/dts/renesas/r8a779g2-white-hawk-single.dts
copy to arch/arm64/boot/dts/renesas/white-hawk-single.dtsi
index 0062362b0ba06885..20e8232f2f3234e2 100644
@@ -1,19 +1,16 @@
 // SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
 /*
- * Device Tree Source for the R-Car V4H ES2.0 White Hawk Single board
+ * Device Tree Source for the White Hawk Single board
  *
- * Copyright (C) 2023 Glider bv
+ * Copyright (C) 2023-2024 Glider bv
  */
 
-/dts-v1/;
-#include "r8a779g2.dtsi"
 #include "white-hawk-cpu-common.dtsi"
 #include "white-hawk-common.dtsi"
 
 / {
-	model = "Renesas White Hawk Single board based on r8a779g2";
-	compatible = "renesas,white-hawk-single", "renesas,r8a779g2",
-		     "renesas,r8a779g0";
+	model = "Renesas White Hawk Single board";
+	compatible = "renesas,white-hawk-single";
 };
 
 &hscif0 {
Signature · 1 line
2.34.1
author maintainer
#6 lore raw

PATCH 4/5 arm64: dts: renesas: Add R8A779G3 SoC support

In reply to Geert Uytterhoeven

Add support for the Renesas R-Car V4H ES3.0 (R8A779G3) SoC, which is an updated version of the R-Car V4H (R8A779G0) SoC.

---
 arch/arm64/boot/dts/renesas/r8a779g3.dtsi | 12 ++++++++++++
 1 file changed, 12 insertions(+)
 create mode 100644 arch/arm64/boot/dts/renesas/r8a779g3.dtsi
arch/arm64/boot/dts/renesas/r8a779g3.dtsi new file +12 -0
new file mode 100644
index 0000000000000000..0295858a02602295
@@ -0,0 +1,12 @@
+// SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
+/*
+ * Device Tree Source for the R-Car V4H (R8A779G3) SoC
+ *
+ * Copyright (C) 2024 Glider bv
+ */
+
+#include "r8a779g0.dtsi"
+
+/ {
+	compatible = "renesas,r8a779g3", "renesas,r8a779g0";
+};
Signature · 1 line
2.34.1
author maintainer
#7 lore raw

PATCH 5/5 arm64: dts: renesas: r8a779g3: Add White Hawk Single support

In reply to Geert Uytterhoeven

The White Hawk Single board with R-Car V4H ES3.0 (R8A779G3) uses an updated version of the R-Car V4H (R8A779G0) SoC.

For now, there are no visible differences compared to the variant equipped with an R-Car V4H ES2.0 (R8A779G2) SoC.

---
 arch/arm64/boot/dts/renesas/Makefile             |  2 ++
 .../dts/renesas/r8a779g3-white-hawk-single.dts   | 16 ++++++++++++++++
 2 files changed, 18 insertions(+)
 create mode 100644 arch/arm64/boot/dts/renesas/r8a779g3-white-hawk-single.dts
arch/arm64/boot/dts/renesas/Makefile +2 -0
index 97228a3cb99c163d..df9ea5b2e20818f4 100644
@@ -92,6 +92,8 @@ dtb-$(CONFIG_ARCH_R8A779G0) += r8a779g0-white-hawk-ard-audio-da7212.dtb
 
 dtb-$(CONFIG_ARCH_R8A779G0) += r8a779g2-white-hawk-single.dtb
 
+dtb-$(CONFIG_ARCH_R8A779G0) += r8a779g3-white-hawk-single.dtb
+
 dtb-$(CONFIG_ARCH_R8A779H0) += r8a779h0-gray-hawk-single.dtb
 
 dtb-$(CONFIG_ARCH_R8A77951) += r8a779m1-salvator-xs.dtb
arch/arm64/boot/dts/renesas/r8a779g3-white-hawk-single.dts new file +16 -0
new file mode 100644
index 0000000000000000..cd466d858854bf92
@@ -0,0 +1,16 @@
+// SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
+/*
+ * Device Tree Source for the R-Car V4H ES3.0 White Hawk Single board
+ *
+ * Copyright (C) 2024 Glider bv
+ */
+
+/dts-v1/;
+#include "r8a779g3.dtsi"
+#include "white-hawk-single.dtsi"
+
+/ {
+	model = "Renesas White Hawk Single board based on r8a779g3";
+	compatible = "renesas,white-hawk-single", "renesas,r8a779g3",
+		     "renesas,r8a779g0";
+};
Signature · 1 line
2.34.1
Reviewed-by on the v1 series
#8 lore raw
In reply to Geert Uytterhoeven

Hi Geert

Quoted 6 lines

This patch series adds support for the Renesas R-Car V4H ES3.0 (R8A779G3) SoC on the Renesas White Hawk Single board. R-Car V4H ES3.0 (R8A779G3) is an updated version of R-Car V4H (R8A779G0).

I intend to queue these in renesas-devel for v6.14. Thanks for your comments!

Thank you for the patch-set. For all patches

But small nitpick is that R8A779G2 is not only for ES2.0 but for ES2.x

Thank you for your help !!

Best regards
---
Kuninori Morimoto

#9 lore raw

Hi Morimoto-san,

Quoted 4 lines · Kuninori Morimoto
Quoted 4 lines

This patch series adds support for the Renesas R-Car V4H ES3.0 (R8A779G3) SoC on the Renesas White Hawk Single board. R-Car V4H ES3.0 (R8A779G3) is an updated version of R-Car V4H (R8A779G0).

Quoted 8 lines
Quoted 2 lines

I intend to queue these in renesas-devel for v6.14. Thanks for your comments!

Thank you for the patch-set. For all patches

But small nitpick is that R8A779G2 is not only for ES2.0 but for ES2.x

I didn't add any occurrences of "ES2.0" in this series ;-)

I did consider adding comments to the SoC-specific compatible values in Documentation/devicetree/bindings/soc/renesas/renesas.yaml

-              - renesas,r8a779g2
-              - renesas,r8a779g3
+              - renesas,r8a779g2 # ES2.x
+              - renesas,r8a779g3 # ES3.0

but decided against doing so, as "ES3.0" would become stale as soon as Renesas releases "ES3.1". Alternatively, I could use "ES3.x" immediately.

What do you think?
Thanks!

Gr{oetje,eeting}s,

Geert

Signature · 5 lines
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
#10 lore raw

Hi Geert

Quoted 3 lines
Quoted 1 line

But small nitpick is that R8A779G2 is not only for ES2.0 but for ES2.x

I didn't add any occurrences of "ES2.0" in this series ;-)

Almost, but we can see ;P

[PATCH 5/5] arm64: dts: renesas: r8a779g3: Add White Hawk Single support
...
For now, there are no visible differences compared to the variant
=> equipped with an R-Car V4H ES2.0 (R8A779G2) SoC.

Quoted 8 lines
(quoted diff) +2 -2
-              - renesas,r8a779g2
-              - renesas,r8a779g3
+              - renesas,r8a779g2 # ES2.x
+              - renesas,r8a779g3 # ES3.0

but decided against doing so, as "ES3.0" would become stale as soon as Renesas releases "ES3.1". Alternatively, I could use "ES3.x" immediately.

Yeah, maybe, but will check.
Please wait.
Thank you for your help !!

Best regards
---
Kuninori Morimoto

#11 lore raw

Hi Geert, again

Quoted 8 lines
Quoted 8 lines
(quoted diff) +2 -2
-              - renesas,r8a779g2
-              - renesas,r8a779g3
+              - renesas,r8a779g2 # ES2.x
+              - renesas,r8a779g3 # ES3.0

but decided against doing so, as "ES3.0" would become stale as soon as Renesas releases "ES3.1". Alternatively, I could use "ES3.x" immediately.

It seems using "ES3.x" is a good idea.

Thank you for your help !!

Best regards
---
Kuninori Morimoto

#12 lore raw

Hi Morimoto-san,

Quoted 10 lines · Kuninori Morimoto
Quoted 8 lines
Quoted 8 lines
(quoted diff) +2 -2
-              - renesas,r8a779g2
-              - renesas,r8a779g3
+              - renesas,r8a779g2 # ES2.x
+              - renesas,r8a779g3 # ES3.0

but decided against doing so, as "ES3.0" would become stale as soon as Renesas releases "ES3.1". Alternatively, I could use "ES3.x" immediately.

It seems using "ES3.x" is a good idea.

Thanks for checking, I'll add these comments while applying.

Gr{oetje,eeting}s,

Geert

Signature · 5 lines
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