Skip to contentSkip to conversation

arm64: dts: renesas: r8a779h0/gray-hawk-single: Initial pin control support

PATCH New Geert Uytterhoeven 1 participant 3 messages Jan 26, 2024

Subsystems (2)
lore
Share & tools
lore

Geert Uytterhoeven

author maintainer
#0 lore raw

cover arm64: dts: renesas: r8a779h0/gray-hawk-single: Initial pin control support

Hi all,

This patch series adds initial pin control support for the R-Car V4M (R8A779H0) SoC and the Gray Hawk Single development board.

To be queued in renesas-devel for v6.9.

For testing, I have updated [1] accordingly.
Thanks for your comments!

[1] https://git.kernel.org/pub/scm/linux/kernel/git/geert/renesas-drivers.git/log/?h=topic/v4m-gray-hawk-single-v2

Geert Uytterhoeven (1):
arm64: dts: renesas: gray-hawk-single: Add serial console pin control

Hai Pham (1):
arm64: dts: renesas: r8a779h0: Add pinctrl device node

 .../dts/renesas/r8a779h0-gray-hawk-single.dts  | 18 ++++++++++++++++++
 arch/arm64/boot/dts/renesas/r8a779h0.dtsi      |  8 ++++++++
 2 files changed, 26 insertions(+)
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/2 arm64: dts: renesas: r8a779h0: Add pinctrl device node

From: Hai Pham <[email protected]>

Add a device node for the Pin Function Controller on the Renesas R-Car V4M (R8A779H0) SoC.

---
 arch/arm64/boot/dts/renesas/r8a779h0.dtsi | 8 ++++++++
 1 file changed, 8 insertions(+)
arch/arm64/boot/dts/renesas/r8a779h0.dtsi +8 -0
index a082e2d06b696019..f59d0dd25ca93822 100644
@@ -59,6 +59,14 @@ soc: soc {
 		#size-cells = <2>;
 		ranges;
 
+		pfc: pinctrl@e6050000 {
+			compatible = "renesas,pfc-r8a779h0";
+			reg = <0 0xe6050000 0 0x16c>, <0 0xe6050800 0 0x16c>,
+			      <0 0xe6058000 0 0x16c>, <0 0xe6058800 0 0x16c>,
+			      <0 0xe6060000 0 0x16c>, <0 0xe6060800 0 0x16c>,
+			      <0 0xe6061000 0 0x16c>, <0 0xe6061800 0 0x16c>;
+		};
+
 		cpg: clock-controller@e6150000 {
 			compatible = "renesas,r8a779h0-cpg-mssr";
 			reg = <0 0xe6150000 0 0x4000>;
Signature · 1 line
2.34.1
author maintainer
#2 lore raw

PATCH 2/2 arm64: dts: renesas: gray-hawk-single: Add serial console pin control

In reply to Geert Uytterhoeven

Complete the descriptions of the serial console and the external serial clock by adding pin control.

Based on patches for Gray Hawk in the BSP by Hai Pham and Nghia Nguyen.

---
 .../dts/renesas/r8a779h0-gray-hawk-single.dts  | 18 ++++++++++++++++++
 1 file changed, 18 insertions(+)
arch/arm64/boot/dts/renesas/r8a779h0-gray-hawk-single.dts +18 -0
index 1ed404712d823871..716cb7622f167973 100644
@@ -43,10 +43,28 @@ &extalr_clk {
 };
 
 &hscif0 {
+	pinctrl-0 = <&hscif0_pins>;
+	pinctrl-names = "default";
+
 	uart-has-rtscts;
 	status = "okay";
 };
 
+&pfc {
+	pinctrl-0 = <&scif_clk_pins>;
+	pinctrl-names = "default";
+
+	hscif0_pins: hscif0 {
+		groups = "hscif0_data", "hscif0_ctrl";
+		function = "hscif0";
+	};
+
+	scif_clk_pins: scif_clk {
+		groups = "scif_clk";
+		function = "scif_clk";
+	};
+};
+
 &scif_clk {
 	clock-frequency = <24000000>;
 };
Signature · 1 line
2.34.1