mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
* [RFC PATCH] riscv: dts: nezha-d1: Add memory
@ 2023-03-31 18:27 Evan Green
  2023-03-31 18:39 ` Conor Dooley
  0 siblings, 1 reply; 3+ messages in thread
From: Evan Green @ 2023-03-31 18:27 UTC (permalink / raw)
  To: linux-sunxi
  Cc: conor.dooley, Evan Green, Albert Ou, Chen-Yu Tsai, Conor Dooley,
	Jernej Skrabec, Krzysztof Kozlowski, Palmer Dabbelt,
	Paul Walmsley, Rob Herring, Samuel Holland, Trevor Woerner,
	devicetree, linux-arm-kernel, linux-kernel, linux-riscv

Add memory info for the D1 Nezha, which seems to be required for it to
boot with the stock firmware. Note that this hardcodes 1GB, which is
not technically correct as they also make models with different amounts
of RAM. Is the firmware supposed to populate this?

Signed-off-by: Evan Green <evan@rivosinc.com>

---

 arch/riscv/boot/dts/allwinner/sun20i-d1-nezha.dts | 6 ++++++
 1 file changed, 6 insertions(+)

diff --git a/arch/riscv/boot/dts/allwinner/sun20i-d1-nezha.dts b/arch/riscv/boot/dts/allwinner/sun20i-d1-nezha.dts
index 4ed33c1e7c9c..6aba68cf5541 100644
--- a/arch/riscv/boot/dts/allwinner/sun20i-d1-nezha.dts
+++ b/arch/riscv/boot/dts/allwinner/sun20i-d1-nezha.dts
@@ -32,6 +32,12 @@ / {
 	model = "Allwinner D1 Nezha";
 	compatible = "allwinner,d1-nezha", "allwinner,sun20i-d1";
 
+	// FIXME: this is temporary.
+	memory@40000000 {
+		device_type = "memory";
+		reg = <0x40000000 0x40000000>; /* 1 GB */
+	};
+
 	aliases {
 		ethernet0 = &emac;
 		ethernet1 = &xr829;
-- 
2.25.1


^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2023-03-31 19:03 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2023-03-31 18:27 [RFC PATCH] riscv: dts: nezha-d1: Add memory Evan Green
2023-03-31 18:39 ` Conor Dooley
2023-03-31 19:02   ` Evan Green

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®