Skip to contentSkip to conversation

arm64: dts: renesas: initial Eagle board device tree

PATCH Superseded Sergei Shtylyov 2 participants 6 messages Sep 12, 2017 – Sep 15, 2017

Subsystems (2)

v1 of 2 Superseded Latest is v2 →

lore
Share & tools
lore
#0 lore raw

PATCH 10/11 arm64: dts: renesas: initial Eagle board device tree

Add the initial device tree for the R8A77970 SoC based Eagle board. The board has 1 debug serial port (SCIF0); include support for it, so that the serial console can work.

Based on the original (and large) patch by Vladimir Barinov <[email protected]>.

---
 arch/arm64/boot/dts/renesas/Makefile           |    1 
 arch/arm64/boot/dts/renesas/r8a77970-eagle.dts |   45 +++++++++++++++++++++++++
 2 files changed, 46 insertions(+)
arch/arm64/boot/dts/renesas/Makefile +1 -0
Index: renesas/arch/arm64/boot/dts/renesas/Makefile
===================================================================
@@ -2,6 +2,7 @@ dtb-$(CONFIG_ARCH_R8A7795) += r8a7795-sa
 dtb-$(CONFIG_ARCH_R8A7795) += r8a7795-salvator-xs.dtb
 dtb-$(CONFIG_ARCH_R8A7795) += r8a7795-es1-salvator-x.dtb r8a7795-es1-h3ulcb.dtb
 dtb-$(CONFIG_ARCH_R8A7796) += r8a7796-salvator-x.dtb r8a7796-m3ulcb.dtb
+dtb-$(CONFIG_ARCH_R8A77970) += r8a77970-eagle.dtb
 dtb-$(CONFIG_ARCH_R8A77995) += r8a77995-draak.dtb
 
 always		:= $(dtb-y)
arch/arm64/boot/dts/renesas/r8a77970-eagle.dts new file +45 -0

45 lines not on this page · raw message

#1 lore raw

PATCH 10/11 arm64: dts: renesas: initial Eagle board device tree

Quoted 10 lines · Sergei Shtylyov

Add the initial device tree for the R8A77970 SoC based Eagle board. The board has 1 debug serial port (SCIF0); include support for it, so that the serial console can work.

Based on the original (and large) patch by Vladimir Barinov <[email protected]>.

[...]

Quoted 5 lines

Index: renesas/arch/arm64/boot/dts/renesas/r8a77970-eagle.dts
===================================================================

arch/arm64/boot/dts/renesas/r8a77970-eagle.dts new file +0 -0
@@ -0,0 +1,45 @@

[...]

arch/arm64/boot/dts/renesas/r8a77970-eagle.dts line 42

Quoted 8 lines

+&extal_clk {

arch/arm64/boot/dts/renesas/r8a77970-eagle.dts new file +7 -0
+	clock-frequency = <16666666>;
+};
+
+&extalr_clk {
+	clock-frequency = <32768>;
+};
+

Forgot to specify SCIF_CLK -- it's populated.

arch/arm64/boot/dts/renesas/r8a77970-eagle.dts line 45

Quoted 3 lines

+&scif0 {

arch/arm64/boot/dts/renesas/r8a77970-eagle.dts new file +2 -0
+	status = "okay";
+};

MBR, Sergei

#2 lore raw

PATCH 10/11 arm64: dts: renesas: initial Eagle board device tree

Quoted 17 lines · Sergei Shtylyov
Quoted 10 lines

Add the initial device tree for the R8A77970 SoC based Eagle board. The board has 1 debug serial port (SCIF0); include support for it, so that the serial console can work.

Based on the original (and large) patch by Vladimir Barinov <[email protected]>.

[...]

Quoted 5 lines

Index: renesas/arch/arm64/boot/dts/renesas/r8a77970-eagle.dts
===================================================================

arch/arm64/boot/dts/renesas/r8a77970-eagle.dts new file +0 -0
@@ -0,0 +1,45 @@

[...]

Quoted 10 lines

arch/arm64/boot/dts/renesas/r8a77970-eagle.dts line 42

Quoted 8 lines

+&extal_clk {

arch/arm64/boot/dts/renesas/r8a77970-eagle.dts new file +7 -0
+    clock-frequency = <16666666>;
+};
+
+&extalr_clk {
+    clock-frequency = <32768>;
+};
+

Forgot to specify SCIF_CLK -- it's populated.

Unfortunately, the kernel hangs after ttySC0 is registered if I specify
this frequency...

MBR, Sergei

#3 lore raw

PATCH 10/11 arm64: dts: renesas: initial Eagle board device tree

Hi Sergei,

Quoted 32 lines · Sergei Shtylyov
Quoted 20 lines · Sergei Shtylyov
Quoted 10 lines

Add the initial device tree for the R8A77970 SoC based Eagle board. The board has 1 debug serial port (SCIF0); include support for it, so that the serial console can work.

Based on the original (and large) patch by Vladimir Barinov <[email protected]>.

[...]

Quoted 6 lines

Index: renesas/arch/arm64/boot/dts/renesas/r8a77970-eagle.dts
===================================================================

arch/arm64/boot/dts/renesas/r8a77970-eagle.dts new file +0 -0
@@ -0,0 +1,45 @@

[...]

Quoted 1 line
Quoted 10 lines

arch/arm64/boot/dts/renesas/r8a77970-eagle.dts line 42

Quoted 8 lines

+&extal_clk {

arch/arm64/boot/dts/renesas/r8a77970-eagle.dts new file +7 -0
+    clock-frequency = <16666666>;
+};
+
+&extalr_clk {
+    clock-frequency = <32768>;
+};
+

Forgot to specify SCIF_CLK -- it's populated.

Quoted 2 lines

Unfortunately, the kernel hangs after ttySC0 is registered if I specify
this frequency...

Is the crystal populated?

When doing initial bringup of the remote Eagle I have access to, the SCIF registers didn't indicate SCIF_CLK was being used from U-Boot, while it is used on R-Car Gen2 boards that have it populated.

Gr{oetje,eeting}s,

Geert

--
Geert Uytterhoeven -- There's lots of Linux beyond ia32 -- geert at linux-m68k.org

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

#4 lore raw

PATCH 10/11 arm64: dts: renesas: initial Eagle board device tree

Quoted 31 lines · Geert Uytterhoeven
Quoted 31 lines
Quoted 30 lines
Quoted 10 lines

Add the initial device tree for the R8A77970 SoC based Eagle board. The board has 1 debug serial port (SCIF0); include support for it, so that the serial console can work.

Based on the original (and large) patch by Vladimir Barinov <[email protected]>.

[...]

Quoted 6 lines

Index: renesas/arch/arm64/boot/dts/renesas/r8a77970-eagle.dts
===================================================================

arch/arm64/boot/dts/renesas/r8a77970-eagle.dts new file +0 -0
@@ -0,0 +1,45 @@

[...]

arch/arm64/boot/dts/renesas/r8a77970-eagle.dts line 42

Quoted 9 lines

+&extal_clk {

arch/arm64/boot/dts/renesas/r8a77970-eagle.dts new file +7 -0
+    clock-frequency = <16666666>;
+};
+
+&extalr_clk {
+    clock-frequency = <32768>;
+};
+

Forgot to specify SCIF_CLK -- it's populated.

Quoted 4 lines
Quoted 2 lines

Unfortunately, the kernel hangs after ttySC0 is registered if I specify
this frequency...

Is the crystal populated?

It should be, with 14.7456MHz chrystal. But it's connected to SCIF_CLK_B
pin -- perhaps that's the problem...

Quoted 3 lines

When doing initial bringup of the remote Eagle I have access to, the SCIF registers didn't indicate SCIF_CLK was being used from U-Boot, while it is used on R-Car Gen2 boards that have it populated.

Perhaps PFC is just not configured properly?

Quoted 4 lines

Gr{oetje,eeting}s,

Geert

MBR, Sergei

#5 lore raw

PATCH 10/11 arm64: dts: renesas: initial Eagle board device tree

Hi Sergei,

Quoted 9 lines · Sergei Shtylyov
Quoted 7 lines · Geert Uytterhoeven
Quoted 5 lines
Quoted 1 line

Forgot to specify SCIF_CLK -- it's populated.

Unfortunately, the kernel hangs after ttySC0 is registered if I
specify
this frequency...

Is the crystal populated?

Quoted 8 lines

It should be, with 14.7456MHz chrystal. But it's connected to SCIF_CLK_B
pin -- perhaps that's the problem...

Quoted 3 lines

When doing initial bringup of the remote Eagle I have access to, the SCIF registers didn't indicate SCIF_CLK was being used from U-Boot, while it is used on R-Car Gen2 boards that have it populated.

Perhaps PFC is just not configured properly?

Plausible.
As there's no PFC driver yet (at least I haven't seen one ;-), you can try configuring the PFC to use SCIF_CLK_B by writing to the registers from the U-Boot prompt...

Gr{oetje,eeting}s,

Geert

--
Geert Uytterhoeven -- There's lots of Linux beyond ia32 -- geert at linux-m68k.org

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