* [PATCH v2] ARM: dts: rza2mevb: Upstream Linux requires SDRAM
@ 2021-03-04 9:49 Geert Uytterhoeven
2021-03-04 14:04 ` Chris Brandt
0 siblings, 1 reply; 2+ messages in thread
From: Geert Uytterhoeven @ 2021-03-04 9:49 UTC (permalink / raw)
To: Magnus Damm, Chris Brandt
Cc: linux-renesas-soc, linux-arm-kernel, Geert Uytterhoeven
As upstream Linux does not support XIP (eXecute-In-Place) for ARMv7-A
platforms that are part of the ARCH_MULTIPLATFORM framework, it cannot
run in the 8 MiB of HyperRAM present on the RZ/A2M CPU board. Hence the
64 MiB of SDRAM on the sub-board needs to be enabled, which has the
following ramifications:
- SCIF4 connected to the on-board USB-serial can no longer be used as
the serial console,
- Instead, SCIF2 is used as the serial console, by connecting a 3.3V
TTL USB-to-Serial adapter to the CMOS camera connector,
- The first Ethernet channel can no longer be used,
- USB Channel 1 loses the overcurrent input signal.
Based on the Linux-4.19 BSP for RZ/A2.
Signed-off-by: Geert Uytterhoeven <geert+renesas@glider.be>
---
I'm happy to queue this in renesas-devel for v5.13, now commit
0673cb3895121506 ("ARM: 9045/1: uncompress: Validate start of physical
memory against passed DTB") has entered v5.12-rc1, after 2 years of
development.
v2:
- Drop RFC,
- Reword description.
---
arch/arm/boot/dts/r7s9210-rza2mevb.dts | 55 +++++++++++++++-----------
1 file changed, 32 insertions(+), 23 deletions(-)
diff --git a/arch/arm/boot/dts/r7s9210-rza2mevb.dts b/arch/arm/boot/dts/r7s9210-rza2mevb.dts
index d062d02865e7dfbb..68498ce2aec0ebd9 100644
--- a/arch/arm/boot/dts/r7s9210-rza2mevb.dts
+++ b/arch/arm/boot/dts/r7s9210-rza2mevb.dts
@@ -4,6 +4,28 @@
*
* Copyright (C) 2018 Renesas Electronics
*
+ * As upstream Linux does not support XIP, it cannot run in 8 MiB of HyperRAM.
+ * Hence the 64 MiB of SDRAM on the sub-board needs to be enabled, which has
+ * the following ramifications:
+ * - SCIF4 connected to the on-board USB-serial can no longer be used as the
+ * serial console,
+ * - Instead, SCIF2 is used as the serial console, by connecting a 3.3V TTL
+ * USB-to-Serial adapter to the CMOS camera connector:
+ * - RXD = CN17-9,
+ * - TXD = CN17-10,
+ * - GND = CN17-2 or CN17-17,
+ * - The first Ethernet channel can no longer be used,
+ * - USB Channel 1 loses the overcurrent input signal.
+ *
+ * Please make sure your sub-board matches the following switch settings:
+ *
+ * SW6 SW6-1 set to SDRAM
+ * ON SW6-2 set to Audio
+ * +---------------------+ SW6-3 set to DRP
+ * | = = = = = | SW6-4 set to CEU
+ * | = = | SW6-5 set to Ether2
+ * | 1 2 3 4 5 6 7 8 9 0 | SW6-6 set to VDC6
+ * +---------------------+ SW6-7 set to VDC6
*/
/dts-v1/;
@@ -17,9 +39,8 @@ / {
compatible = "renesas,rza2mevb", "renesas,r7s9210";
aliases {
- serial0 = &scif4;
- ethernet0 = ðer0;
- ethernet1 = ðer1;
+ serial0 = &scif2;
+ ethernet0 = ðer1;
};
chosen {
@@ -58,9 +79,9 @@ green {
};
};
- memory@40000000 {
+ memory@c000000 {
device_type = "memory";
- reg = <0x40000000 0x00800000>; /* HyperRAM */
+ reg = <0x0c000000 0x04000000>; /* SDRAM */
};
};
@@ -72,17 +93,6 @@ &ehci1 {
status = "okay";
};
-ðer0 {
- pinctrl-names = "default";
- pinctrl-0 = <ð0_pins>;
- status = "okay";
- renesas,no-ether-link;
- phy-handle = <&phy0>;
- phy0: ethernet-phy@0 {
- reg = <0>;
- };
-};
-
ðer1 {
pinctrl-names = "default";
pinctrl-0 = <ð1_pins>;
@@ -142,9 +152,9 @@ keyboard_pins: keyboard {
};
/* Serial Console */
- scif4_pins: serial4 {
- pinmux = <RZA2_PINMUX(PORT9, 0, 4)>, /* TxD4 */
- <RZA2_PINMUX(PORT9, 1, 4)>; /* RxD4 */
+ scif2_pins: serial2 {
+ pinmux = <RZA2_PINMUX(PORTE, 2, 3)>, /* TxD2 */
+ <RZA2_PINMUX(PORTE, 1, 3)>; /* RxD2 */
};
sdhi0_pins: sdhi0 {
@@ -165,8 +175,7 @@ usb0_pins: usb0 {
usb1_pins: usb1 {
pinmux = <RZA2_PINMUX(PORTC, 0, 1)>, /* VBUSIN1 */
- <RZA2_PINMUX(PORTC, 5, 1)>, /* VBUSEN1 */
- <RZA2_PINMUX(PORT7, 5, 5)>; /* OVRCUR1 */
+ <RZA2_PINMUX(PORTC, 5, 1)>; /* VBUSEN1 */
};
};
@@ -176,9 +185,9 @@ &rtc_x1_clk {
};
/* Serial Console */
-&scif4 {
+&scif2 {
pinctrl-names = "default";
- pinctrl-0 = <&scif4_pins>;
+ pinctrl-0 = <&scif2_pins>;
status = "okay";
};
--
2.25.1
_______________________________________________
linux-arm-kernel mailing list
linux-arm-kernel@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/linux-arm-kernel
^ permalink raw reply related [flat|nested] 2+ messages in thread
* RE: [PATCH v2] ARM: dts: rza2mevb: Upstream Linux requires SDRAM
2021-03-04 9:49 [PATCH v2] ARM: dts: rza2mevb: Upstream Linux requires SDRAM Geert Uytterhoeven
@ 2021-03-04 14:04 ` Chris Brandt
0 siblings, 0 replies; 2+ messages in thread
From: Chris Brandt @ 2021-03-04 14:04 UTC (permalink / raw)
To: Geert Uytterhoeven, Magnus Damm; +Cc: linux-renesas-soc, linux-arm-kernel
Hi Geert,
On Thu, Mar 4, 2021, Geert Uytterhoeven wrote:
> As upstream Linux does not support XIP (eXecute-In-Place) for ARMv7-A
> platforms that are part of the ARCH_MULTIPLATFORM framework, it cannot
> run in the 8 MiB of HyperRAM present on the RZ/A2M CPU board. Hence the
> 64 MiB of SDRAM on the sub-board needs to be enabled, which has the
> following ramifications:
> - SCIF4 connected to the on-board USB-serial can no longer be used as
> the serial console,
> - Instead, SCIF2 is used as the serial console, by connecting a 3.3V
> TTL USB-to-Serial adapter to the CMOS camera connector,
> - The first Ethernet channel can no longer be used,
> - USB Channel 1 loses the overcurrent input signal.
>
> Based on the Linux-4.19 BSP for RZ/A2.
>
> Signed-off-by: Geert Uytterhoeven <geert+renesas@glider.be>
> ---
> I'm happy to queue this in renesas-devel for v5.13, now commit
> 0673cb3895121506 ("ARM: 9045/1: uncompress: Validate start of physical
> memory against passed DTB") has entered v5.12-rc1, after 2 years of
> development.
Acked-by: Chris Brandt <chris.brandt@renesas.com>
Nice job on reading physical memory start from DT instead of
hardcoded/guessing in kernel startup.
I think that is great!
Cheers
Chris
_______________________________________________
linux-arm-kernel mailing list
linux-arm-kernel@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/linux-arm-kernel
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2021-03-04 14:06 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-03-04 9:49 [PATCH v2] ARM: dts: rza2mevb: Upstream Linux requires SDRAM Geert Uytterhoeven
2021-03-04 14:04 ` Chris Brandt
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).