Skip to contentSkip to conversation

arm64: dts: renesas: Add R-Car S4 Starter Kit support

PATCH Superseded Kuninori Morimoto 4 participants 13 messages Oct 2, 2023 – Oct 3, 2023

Subsystems (3)

v3 of 4 Superseded Latest is v4 →

lore
Share & tools
lore
#0 lore raw

v3 cover arm64: dts: renesas: Add R-Car S4 Starter Kit support

Hi Geert

This patch-set is v3 of R-Car S4 Starter Kit support. It needs Rswitch bug fix patch [1] which was posted to Ether ML. I hope it will be accepted for v6.6 Kernel.

[1] Link: https://lore.kernel.org/r/[email protected]

S4 Starter Kit is possible to setup details via config exe, but the DT will be more complex. This DT is assuming "default" settings to avoid confusion.

R-Car S4 Starter Kit is using new R8A779F4 SoC which is updated version of R8A779F0. This patch adds new r8a779f4.dtsi file but is using existing r8a779f0.dtsi internally.

v2 -> v3
- alphabetical order on pfc
- use "OR" on dts SPDX
- remove UHS from mmc
- remove unused "sd_pins" from pfc
- add Co-developed-by:
- add interrupt on rswitch
- fixup node name on rswitch
- re-add "st,24c16" on eeprom
- add "renesas,r8a779f0" on compatible
- fix typo "s/r8a77f4/r8a779f4/ on dtsi

v1 -> v2
- correct board name
- removed BSP specific device
- alphabetical order
- add missing compatibles
- add new r8a779f4.dtsi

Kuninori Morimoto (4):
dt-bindings: irqchip: renesas,irqc: Add r8a779f0 support
dt-bindings: soc: renesas: renesas.yaml: Add renesas,s4sk compatible
arm64: dts: renesas: Add Renesas R8A779F4 SoC support
arm64: dts: renesas: Add R-Car S4 Starter Kit support

 .../interrupt-controller/renesas,irqc.yaml    |   1 +
 .../bindings/soc/renesas/renesas.yaml         |   7 +
 arch/arm64/boot/dts/renesas/Makefile          |   1 +
 arch/arm64/boot/dts/renesas/r8a779f4-s4sk.dts | 240 ++++++++++++++++++
 arch/arm64/boot/dts/renesas/r8a779f4.dtsi     |  12 +
 5 files changed, 261 insertions(+)
 create mode 100644 arch/arm64/boot/dts/renesas/r8a779f4-s4sk.dts
 create mode 100644 arch/arm64/boot/dts/renesas/r8a779f4.dtsi
Signature · 1 line
2.25.1
#1 lore raw

PATCH v3 1/4 dt-bindings: irqchip: renesas,irqc: Add r8a779f0 support

Document support for the Interrupt Controller for External Devices (INT-EX) in the Renesas R-Car S4 (R8A779F0) SoC.

---
 .../devicetree/bindings/interrupt-controller/renesas,irqc.yaml   | 1 +
 1 file changed, 1 insertion(+)
Documentation/devicetree/bindings/interrupt-controller/renesas,irqc.yaml +1 -0
index 95033cb514fb..b1f3e7d7b88c 100644
@@ -37,6 +37,7 @@ properties:
           - renesas,intc-ex-r8a77990    # R-Car E3
           - renesas,intc-ex-r8a77995    # R-Car D3
           - renesas,intc-ex-r8a779a0    # R-Car V3U
+          - renesas,intc-ex-r8a779f0    # R-Car S4
           - renesas,intc-ex-r8a779g0    # R-Car V4H
       - const: renesas,irqc
 
Signature · 1 line
2.25.1
Reviewed-by on v3 1/4
#2 lore raw

RE: [PATCH v3 1/4] dt-bindings: irqchip: renesas,irqc: Add r8a779f0 support

Hello Morimoto-san,

Quoted 1 line

From: Kuninori Morimoto, Sent: Monday, October 2, 2023 2:56 PM

Thank you for the patch! This patch looks good to me. So,

However, I have some nits like below...

Quoted 2 lines

Document support for the Interrupt Controller for External Devices (INT-EX) in the Renesas R-Car S4 (R8A779F0) SoC.

nit:
s/INT-EX/INTC-EX/

Quoted 12 lines
---
 .../devicetree/bindings/interrupt-controller/renesas,irqc.yaml   | 1 +
 1 file changed, 1 insertion(+)
Documentation/devicetree/bindings/interrupt-controller/renesas,irqc.yaml +0 -0
index 95033cb514fb..b1f3e7d7b88c 100644

Documentation/devicetree/bindings/interrupt-controller/renesas,irqc.yaml properties: · line 40

Quoted 4 lines
Documentation/devicetree/bindings/interrupt-controller/renesas,irqc.yaml +1 -0
@@ -37,6 +37,7 @@ properties:
           - renesas,intc-ex-r8a77990    # R-Car E3
           - renesas,intc-ex-r8a77995    # R-Car D3
           - renesas,intc-ex-r8a779a0    # R-Car V3U
+          - renesas,intc-ex-r8a779f0    # R-Car S4

nit:
s/R-Car S4/R-Car S4-8/

Best regards,
Yoshihiro Shimoda

Quoted 5 lines
Documentation/devicetree/bindings/interrupt-controller/renesas,irqc.yaml +0 -1
           - renesas,intc-ex-r8a779g0    # R-Car V4H
       - const: renesas,irqc
 
--

2.25.1

#3 lore raw

Re: [PATCH v3 1/4] dt-bindings: irqchip: renesas,irqc: Add r8a779f0 support

Hi Shimoda-san

Quoted 5 lines
Quoted 2 lines

Document support for the Interrupt Controller for External Devices (INT-EX) in the Renesas R-Car S4 (R8A779F0) SoC.

nit:
s/INT-EX/INTC-EX/

Thank you for the review.
I have copy-and-pasted the log message.
It seems original log hadwas nit :)

Thank you for your help !!

Best regards
---
Kuninori Morimoto

#4 lore raw

Re: [PATCH v3 1/4] dt-bindings: irqchip: renesas,irqc: Add r8a779f0 support

Hi Morimoto-san,

Quoted 9 lines · Kuninori Morimoto
Quoted 5 lines
Quoted 2 lines

Document support for the Interrupt Controller for External Devices (INT-EX) in the Renesas R-Car S4 (R8A779F0) SoC.

nit:
s/INT-EX/INTC-EX/

Thank you for the review.
I have copy-and-pasted the log message.
It seems original log hadwas nit :)

/me is hiding behind a rock labeled with two different misspellings of INTC-EX...

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
#5 lore raw

PATCH v3 2/4 dt-bindings: soc: renesas: renesas.yaml: Add renesas,s4sk compatible

In reply to Kuninori Morimoto

This patch adds "renesas,s4sk" which target the R-Car S4 Starter Kit board.

---
 Documentation/devicetree/bindings/soc/renesas/renesas.yaml | 7 +++++++
 1 file changed, 7 insertions(+)
Documentation/devicetree/bindings/soc/renesas/renesas.yaml +7 -0
index 53b95f348f8e..b2bdc26e8329 100644
@@ -335,6 +335,13 @@ properties:
           - const: renesas,spider-cpu
           - const: renesas,r8a779f0
 
+      - description: R-Car S4-8 (R8A779F4)
+        items:
+          - enum:
+              - renesas,s4sk       # R-Car S4 Starter Kit board (Y-ASK-RCAR-S4-1000BASE-T#WS12)
+          - const: renesas,r8a779f4
+          - const: renesas,r8a779f0
+
       - description: R-Car V4H (R8A779G0)
         items:
           - enum:
Signature · 1 line
2.25.1
Reviewed-by on v3 2/4
#6 lore raw

RE: [PATCH v3 2/4] dt-bindings: soc: renesas: renesas.yaml: Add renesas,s4sk compatible

Hello Morimoto-san,

Quoted 7 lines

From: Kuninori Morimoto, Sent: Monday, October 2, 2023 2:56 PM

This patch adds "renesas,s4sk" which target the R-Car S4 Starter Kit board.

Thank you for the patch!

Best regards,
Yoshihiro Shimoda

Quoted 25 lines
---
 Documentation/devicetree/bindings/soc/renesas/renesas.yaml | 7 +++++++
 1 file changed, 7 insertions(+)
Documentation/devicetree/bindings/soc/renesas/renesas.yaml +7 -1
index 53b95f348f8e..b2bdc26e8329 100644
@@ -335,6 +335,13 @@ properties:
           - const: renesas,spider-cpu
           - const: renesas,r8a779f0
 
+      - description: R-Car S4-8 (R8A779F4)
+        items:
+          - enum:
+              - renesas,s4sk       # R-Car S4 Starter Kit board (Y-ASK-RCAR-S4-1000BASE-T#WS12)
+          - const: renesas,r8a779f4
+          - const: renesas,r8a779f0
+
       - description: R-Car V4H (R8A779G0)
         items:
           - enum:
--

2.25.1

#7 lore raw

Re: [PATCH v3 2/4] dt-bindings: soc: renesas: renesas.yaml: Add renesas,s4sk compatible

In reply to Kuninori Morimoto
Quoted 6 lines · Kuninori Morimoto

This patch adds "renesas,s4sk" which target the R-Car S4 Starter Kit board.

---

Please use scripts/get_maintainers.pl to get a list of necessary people and lists to CC. It might happen, that command when run on an older kernel, gives you outdated entries. Therefore please be sure you base your patches on recent Linux kernel.

You missed at least devicetree list (maybe more), so this won't be tested by automated tooling. Performing review on untested code might be a waste of time, thus I will skip this patch entirely till you follow the process allowing the patch to be tested.

Please kindly resend and include all necessary To/Cc entries.

Best regards,
Krzysztof

#8 lore raw

PATCH v3 3/4 arm64: dts: renesas: Add Renesas R8A779F4 SoC support

In reply to Kuninori Morimoto

R8A779F4 is update version of R8A779F0.
This patch adds its support, but is using r8a7799f0 dtsi internally.

---
 arch/arm64/boot/dts/renesas/r8a779f4.dtsi | 12 ++++++++++++
 1 file changed, 12 insertions(+)
 create mode 100644 arch/arm64/boot/dts/renesas/r8a779f4.dtsi
arch/arm64/boot/dts/renesas/r8a779f4.dtsi new file +12 -0
new file mode 100644
index 000000000000..ebed41892df3
@@ -0,0 +1,12 @@
+// SPDX-License-Identifier: (GPL-2.0 OR MIT)
+/*
+ * Device Tree Source for the R-Car S4-8 (R8A779F4) SoC
+ *
+ * Copyright (C) 2023 Renesas Electronics Corp.
+ */
+
+#include "r8a779f0.dtsi"
+
+/ {
+	compatible = "renesas,r8a779f4", "renesas,r8a779f0";
+};
Signature · 1 line
2.25.1
Reviewed-by on v3 3/4
#9 lore raw

RE: [PATCH v3 3/4] arm64: dts: renesas: Add Renesas R8A779F4 SoC support

Hello Morimoto-san,

Quoted 4 lines

From: Kuninori Morimoto, Sent: Monday, October 2, 2023 2:56 PM

R8A779F4 is update version of R8A779F0.
This patch adds its support, but is using r8a7799f0 dtsi internally.

nit:
s/r8a7799f0/r8a779f0/

Anyway, this patch looks good to me. So,

Best regards,
Yoshihiro Shimoda

Quoted 26 lines
---
 arch/arm64/boot/dts/renesas/r8a779f4.dtsi | 12 ++++++++++++
 1 file changed, 12 insertions(+)
 create mode 100644 arch/arm64/boot/dts/renesas/r8a779f4.dtsi
arch/arm64/boot/dts/renesas/r8a779f4.dtsi new file +12 -1
new file mode 100644
index 000000000000..ebed41892df3
@@ -0,0 +1,12 @@
+// SPDX-License-Identifier: (GPL-2.0 OR MIT)
+/*
+ * Device Tree Source for the R-Car S4-8 (R8A779F4) SoC
+ *
+ * Copyright (C) 2023 Renesas Electronics Corp.
+ */
+
+#include "r8a779f0.dtsi"
+
+/ {
+	compatible = "renesas,r8a779f4", "renesas,r8a779f0";
+};
--

2.25.1

#10 lore raw

PATCH v3 4/4 arm64: dts: renesas: Add R-Car S4 Starter Kit support

In reply to Kuninori Morimoto

Add initial support for the R-Car S4 Starter Kit with R8A779F4 SoC support. Based on a patch in the BSP.

---
 arch/arm64/boot/dts/renesas/Makefile          |   1 +
 arch/arm64/boot/dts/renesas/r8a779f4-s4sk.dts | 240 ++++++++++++++++++
 2 files changed, 241 insertions(+)
 create mode 100644 arch/arm64/boot/dts/renesas/r8a779f4-s4sk.dts
arch/arm64/boot/dts/renesas/Makefile +1 -0
index 7114cbbd8713..751cb0c65dcd 100644
@@ -61,6 +61,7 @@ dtb-$(CONFIG_ARCH_R8A77995) += r8a77995-draak.dtb
 dtb-$(CONFIG_ARCH_R8A779A0) += r8a779a0-falcon.dtb
 
 dtb-$(CONFIG_ARCH_R8A779F0) += r8a779f0-spider.dtb
+dtb-$(CONFIG_ARCH_R8A779F0) += r8a779f4-s4sk.dtb
 
 dtb-$(CONFIG_ARCH_R8A779G0) += r8a779g0-white-hawk.dtb
 dtb-$(CONFIG_ARCH_R8A779G0) += r8a779g0-white-hawk-ard-audio-da7212.dtbo
arch/arm64/boot/dts/renesas/r8a779f4-s4sk.dts new file +240 -0

240 lines not on this page · raw message

Signature · 1 line
2.25.1
#11 lore raw
Quoted 47 lines · Kuninori Morimoto

Add initial support for the R-Car S4 Starter Kit with R8A779F4 SoC support. Based on a patch in the BSP.

---
 arch/arm64/boot/dts/renesas/Makefile          |   1 +
 arch/arm64/boot/dts/renesas/r8a779f4-s4sk.dts | 240 ++++++++++++++++++
 2 files changed, 241 insertions(+)
 create mode 100644 arch/arm64/boot/dts/renesas/r8a779f4-s4sk.dts
arch/arm64/boot/dts/renesas/Makefile +1 -0
index 7114cbbd8713..751cb0c65dcd 100644
@@ -61,6 +61,7 @@ dtb-$(CONFIG_ARCH_R8A77995) += r8a77995-draak.dtb
 dtb-$(CONFIG_ARCH_R8A779A0) += r8a779a0-falcon.dtb
 
 dtb-$(CONFIG_ARCH_R8A779F0) += r8a779f0-spider.dtb
+dtb-$(CONFIG_ARCH_R8A779F0) += r8a779f4-s4sk.dtb
 
 dtb-$(CONFIG_ARCH_R8A779G0) += r8a779g0-white-hawk.dtb
 dtb-$(CONFIG_ARCH_R8A779G0) += r8a779g0-white-hawk-ard-audio-da7212.dtbo
arch/arm64/boot/dts/renesas/r8a779f4-s4sk.dts new file +13 -0
new file mode 100644
index 000000000000..abfda5c6ca16
@@ -0,0 +1,240 @@
+// SPDX-License-Identifier: (GPL-2.0 OR MIT)
+/*
+ * Device Tree Source for the R-Car S4 Starter Kit board
+ *
+ * Copyright (C) 2023 Renesas Electronics Corp.
+ */
+
+/dts-v1/;
+#include <dt-bindings/gpio/gpio.h>
+#include "r8a779f4.dtsi"
+
+/ {
+	model = "R-Car S4 Starter Kit board";

arch/arm64/boot/dts/renesas/r8a779f4-s4sk.dts line 23

Quoted 10 lines
arch/arm64/boot/dts/renesas/r8a779f4-s4sk.dts new file +10 -0
+	compatible = "renesas,s4sk", "renesas,r8a779f4", "renesas,r8a779f0";
+
+	aliases {
+		serial0	= &hscif0;
+		serial1	= &hscif1;
+		eth0	= &rswitch;
+	};
+
+	chosen {
+		bootargs = "ignore_loglevel rw root=/dev/nfs ip=on";

This does not look really hardware-independent and suitable for entire community, but rather like your personal setup. Please drop entire bootargs or share why this is needed for every user in the world of mainline kernel.

arch/arm64/boot/dts/renesas/r8a779f4-s4sk.dts line 26

Quoted 3 lines
arch/arm64/boot/dts/renesas/r8a779f4-s4sk.dts new file +3 -0
+		stdout-path = "serial0:921600n8";
+	};
+

Best regards,
Krzysztof

#12 lore raw

Hi Krzysztof

Quoted 7 lines

arch/arm64/boot/dts/renesas/r8a779f4-s4sk.dts line 23

Quoted 2 lines
arch/arm64/boot/dts/renesas/r8a779f4-s4sk.dts new file +2 -0
+	chosen {
+		bootargs = "ignore_loglevel rw root=/dev/nfs ip=on";

This does not look really hardware-independent and suitable for entire community, but rather like your personal setup. Please drop entire bootargs or share why this is needed for every user in the world of mainline kernel.

Renesas DTs are traditionally assuming boot from NFS.

Thank you for your help !!

Best regards
---
Kuninori Morimoto