Skip to contentSkip to conversation

arm64: renesas: Add R-Car S4-8 Pin control support

PATCH In review Geert Uytterhoeven 3 participants 5 messages Feb 21, 2022 – Feb 25, 2022

Subsystems (2)
lore
Share & tools
lore

Geert Uytterhoeven

author maintainer
#0 lore raw

v2 cover arm64: renesas: Add R-Car S4-8 Pin control support

Hi all,

This patch series adds pin control support for the Renesas R-Car S4-8 Soc on the Spider board, and enables pin control for the serial console.

Changes compared to v1[1]:
- Drop register banks 4-7, as they can only be accessed from the Control Domain.

Serial console and I2C[2] have been tested on the Renesas Spider development board.

Thanks for your comments!

[1] "[PATCH/RFC 00/15] arm64: renesas: Add-R-Car S4-8 Pin control support"

    https://lore.kernel.org/r/[email protected]
[2] "[PATCH 0/3] arm64: dts: renesas: spider: Add I2C and EEPROM support"
    https://lore.kernel.org/r/[email protected]

Geert Uytterhoeven (2):
arm64: dts: renesas: r8a779f0: Add pinctrl device node
arm64: dts: renesas: spider: Complete SCIF3 description

 .../boot/dts/renesas/r8a779f0-spider-cpu.dtsi | 23 +++++++++++++++++++
 arch/arm64/boot/dts/renesas/r8a779f0.dtsi     |  6 +++++
 2 files changed, 29 insertions(+)
Signature · 12 lines
2.25.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 v2 1/2 arm64: dts: renesas: r8a779f0: Add pinctrl device node

Add a device node for the Pin Function Controller on the Renesas R-Car S4-8 (R8A779F0) SoC.

Note that the register block does not include registers for banks 4-7, as they can only be accessed from the Control Domain.

---
v2:
- Drop register banks 4-7, as they can only be accessed from the Control Domain.

---
 arch/arm64/boot/dts/renesas/r8a779f0.dtsi | 6 ++++++
 1 file changed, 6 insertions(+)
arch/arm64/boot/dts/renesas/r8a779f0.dtsi +6 -0
index 0ac8c345558efc17..f4e549867371184c 100644
@@ -69,6 +69,12 @@ rwdt: watchdog@e6020000 {
 			status = "disabled";
 		};
 
+		pfc: pinctrl@e6050000 {
+			compatible = "renesas,pfc-r8a779f0";
+			reg = <0 0xe6050000 0 0x16c>, <0 0xe6050800 0 0x16c>,
+			      <0 0xe6051000 0 0x16c>, <0 0xe6051800 0 0x16c>;
+		};
+
 		cpg: clock-controller@e6150000 {
 			compatible = "renesas,r8a779f0-cpg-mssr";
 			reg = <0 0xe6150000 0 0x4000>;
Signature · 1 line
2.25.1
author maintainer
#2 lore raw

PATCH v2 2/2 arm64: dts: renesas: spider: Complete SCIF3 description

In reply to Geert Uytterhoeven

Complete the description of the serial console by adding RTS/CTS, the external clock crystal, and pin control.

---
v2:
- No changes.

---
 .../boot/dts/renesas/r8a779f0-spider-cpu.dtsi | 23 +++++++++++++++++++
 1 file changed, 23 insertions(+)
arch/arm64/boot/dts/renesas/r8a779f0-spider-cpu.dtsi +23 -0
index 3a90932fe85c8243..6e07c54148e716d7 100644
@@ -31,11 +31,34 @@ &extalr_clk {
 	clock-frequency = <32768>;
 };
 
+&pfc {
+	pinctrl-0 = <&scif_clk_pins>;
+	pinctrl-names = "default";
+
+	scif3_pins: scif3 {
+		groups = "scif3_data", "scif3_ctrl";
+		function = "scif3";
+	};
+
+	scif_clk_pins: scif_clk {
+		groups = "scif_clk";
+		function = "scif_clk";
+	};
+};
+
 &rwdt {
 	timeout-sec = <60>;
 	status = "okay";
 };
 
 &scif3 {
+	pinctrl-0 = <&scif3_pins>;
+	pinctrl-names = "default";
+
+	uart-has-rtscts;
 	status = "okay";
 };
+
+&scif_clk {
+	clock-frequency = <24000000>;
+};
Signature · 1 line
2.25.1
Reviewed-by on the v2 series
#3 lore raw
In reply to Geert Uytterhoeven

Hi Geert-san,

Quoted 7 lines

From: Geert Uytterhoeven, Sent: Tuesday, February 22, 2022 12:49 AM

Hi all,

This patch series adds pin control support for the Renesas R-Car S4-8 Soc on the Spider board, and enables pin control for the serial console.

Quoted 8 lines

Changes compared to v1[1]:
- Drop register banks 4-7, as they can only be accessed from the Control Domain.

Serial console and I2C[2] have been tested on the Renesas Spider development board.

Thanks for your comments!

Thank you for the patch! All patches look good to me. So,

Best regards,
Yoshihiro Shimoda

#4 lore raw

Hi Shimoda-san,

Quoted 9 lines · Yoshihiro Shimoda
Quoted 9 lines

From: Geert Uytterhoeven, Sent: Tuesday, February 22, 2022 12:49 AM

This patch series adds pin control support for the Renesas R-Car S4-8 Soc on the Spider board, and enables pin control for the serial console.

Changes compared to v1[1]:
- Drop register banks 4-7, as they can only be accessed from the Control Domain.

Quoted 8 lines
Quoted 4 lines

Serial console and I2C[2] have been tested on the Renesas Spider development board.

Thanks for your comments!

Thank you for the patch! All patches look good to me. So,

Thank you, queuing in renesas-devel for v5.18.

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