Skip to contentSkip to conversation

arm64: dts: renesas: Add Renesas R8A779F0 S4 Starter Kit support

PATCH Superseded Kuninori Morimoto 3 participants 5 messages Sep 25, 2023

Subsystems (3)

v1 of 4 Superseded Latest is v4 →

lore
Share & tools
lore
#0 lore raw

cover arm64: dts: renesas: Add Renesas R8A779F0 S4 Starter Kit support

Hi Geert

This patches adds Renesas R8A779F0 S4 Starter Kit support. It needs Rswitch bug fix patch [1] which is posted to Ether ML today. I hope it will be accepted for v6.6 Kernel. renesas_defconfig needs missing PHY to enable Rswitch [PATCH 2/2].

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

Kuninori Morimoto (2):
arm64: dts: renesas: Add Renesas R8A779F0 S4 Starter Kit support
arm64: renesas: defconfig: add MARVELL 10G PHY

 arch/arm64/boot/dts/renesas/Makefile          |   1 +
 arch/arm64/boot/dts/renesas/r8a779f0-s4sk.dts | 257 ++++++++++++++++++
 arch/arm64/configs/renesas_defconfig          |   1 +
 3 files changed, 259 insertions(+)
 create mode 100644 arch/arm64/boot/dts/renesas/r8a779f0-s4sk.dts
Signature · 1 line
2.25.1
#1 lore raw

PATCH 1/2 arm64: dts: renesas: Add Renesas R8A779F0 S4 Starter Kit support

Add initial support for the Renesas R8A779F0 Starter Kit support. Based on a patch in the BSP

---
 arch/arm64/boot/dts/renesas/Makefile          |   1 +
 arch/arm64/boot/dts/renesas/r8a779f0-s4sk.dts | 257 ++++++++++++++++++
 2 files changed, 258 insertions(+)
 create mode 100644 arch/arm64/boot/dts/renesas/r8a779f0-s4sk.dts
arch/arm64/boot/dts/renesas/Makefile +1 -0
index 7114cbbd8713..33e7f2a827e7 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) += r8a779f0-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/r8a779f0-s4sk.dts new file +257 -0

257 lines not on this page · raw message

Signature · 1 line
2.25.1
#2 lore raw

PATCH 2/2 arm64: renesas: defconfig: add MARVELL 10G PHY

In reply to Kuninori Morimoto

MARVELL 10G PHY is needed for S4 StarterKit board.

---
 arch/arm64/configs/renesas_defconfig | 1 +
 1 file changed, 1 insertion(+)
arch/arm64/configs/renesas_defconfig +1 -0
index 78d5d35ae9a1..185ee0ebe0ed 100644
@@ -138,6 +138,7 @@ CONFIG_VIRTIO_NET=y
 CONFIG_SH_ETH=y
 CONFIG_RAVB=y
 CONFIG_RENESAS_ETHER_SWITCH=y
+CONFIG_BCM54140_PHY=y
 CONFIG_MARVELL_10G_PHY=y
 CONFIG_MICREL_PHY=y
 CONFIG_REALTEK_PHY=y
Signature · 1 line
2.25.1
#3 lore raw

RE: [PATCH 2/2] arm64: renesas: defconfig: add MARVELL 10G PHY

Hello Morimoto-san,

Quoted 14 lines

From: Kuninori Morimoto, Sent: Monday, September 25, 2023 9:53 AM

MARVELL 10G PHY is needed for S4 StarterKit board.

---
 arch/arm64/configs/renesas_defconfig | 1 +
 1 file changed, 1 insertion(+)
arch/arm64/configs/renesas_defconfig +0 -0
index 78d5d35ae9a1..185ee0ebe0ed 100644

arch/arm64/configs/renesas_defconfig CONFIG_VIRTIO_NET=y · line 142

Quoted 5 lines
arch/arm64/configs/renesas_defconfig +1 -0
@@ -138,6 +138,7 @@ CONFIG_VIRTIO_NET=y
 CONFIG_SH_ETH=y
 CONFIG_RAVB=y
 CONFIG_RENESAS_ETHER_SWITCH=y
+CONFIG_BCM54140_PHY=y
 CONFIG_MARVELL_10G_PHY=y

The MARVELL 10G PHY (CONFIG_MARVELL_10G_PHY) has already been enabled. So, CONFIG_BCM54140_PHY is not needed.

Best regards,
Yoshihiro Shimoda

Quoted 4 lines
arch/arm64/configs/renesas_defconfig +0 -1
 CONFIG_MICREL_PHY=y
 CONFIG_REALTEK_PHY=y
--

2.25.1

#4 lore raw
In reply to Kuninori Morimoto

Hi Morimoto-san,

Quoted 3 lines · Kuninori Morimoto

This patches adds Renesas R8A779F0 S4 Starter Kit support. It needs Rswitch bug fix patch [1] which is posted to Ether ML today. I hope it will be accepted for v6.6 Kernel.

OK.

Quoted 1 line

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

It also depends on DT binding documentation updates, and even on a new clock driver...

scripts/checkpatch.pl tells me:

WARNING: DT compatible string "renesas,s4sk" appears
un-documented -- check ./Documentation/devicetree/bindings/
#57: FILE: arch/arm64/boot/dts/renesas/r8a779f0-s4sk.dts:14:
+ compatible = "renesas,s4sk", "renesas,r8a779f0";

WARNING: DT compatible string "renesas,rc21012a" appears
un-documented -- check ./Documentation/devicetree/bindings/
#134: FILE: arch/arm64/boot/dts/renesas/r8a779f0-s4sk.dts:91:
+ compatible = "renesas,rc21012a";

WARNING: DT compatible string "st,m24c16" appears un-documented --
check ./Documentation/devicetree/bindings/
#142: FILE: arch/arm64/boot/dts/renesas/r8a779f0-s4sk.dts:99:
+ compatible = "st,m24c16", "atmel,24c16";

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