Skip to contentSkip to conversation

ARM: dts: BCM5301X: Extend RAM to full 256MB for Linksys EA6500 V2

PATCH Applied Christian Marangi 4 participants 5 messages Jul 12, 2023

Subsystems (3)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 ARM: dts: BCM5301X: Extend RAM to full 256MB for Linksys EA6500 V2

From: Aleksey Nasibulin <[email protected]>

Linksys ea6500-v2 have 256MB of ram. Currently we only use 128MB. Expand the definition to use all the available RAM.

Fixes 03e96644d7a8 ("ARM: dts: BCM5301X: Add basic DT for Linksys EA6500 V2")
---
 arch/arm/boot/dts/broadcom/bcm4708-linksys-ea6500-v2.dts | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)
arch/arm/boot/dts/broadcom/bcm4708-linksys-ea6500-v2.dts +2 -1
index f1412ba83def..0454423fe166 100644
@@ -19,7 +19,8 @@ chosen {
 
 	memory@0 {
 		device_type = "memory";
-		reg = <0x00000000 0x08000000>;
+		reg = <0x00000000 0x08000000>,
+		      <0x88000000 0x08000000>;
 	};
 
 	gpio-keys {
Signature · 1 line
2.40.1
#1 lore raw

arch/arm/boot/dts/broadcom/bcm4708-linksys-ea6500-v2.dts chosen { · line 23

Quoted 9 lines
arch/arm/boot/dts/broadcom/bcm4708-linksys-ea6500-v2.dts +2 -1
@@ -19,7 +19,8 @@ chosen {
 
 	memory@0 {
 		device_type = "memory";
-		reg = <0x00000000 0x08000000>;
+		reg = <0x00000000 0x08000000>,
+		      <0x88000000 0x08000000>;

So there is a hole in the middle? Does this require any special CONFIG_ option to support sparse memory?

Andrew

maintainer
#2 lore raw
Quoted 4 lines · Andrew Lunn
Quoted 4 lines
arch/arm/boot/dts/broadcom/bcm4708-linksys-ea6500-v2.dts +0 -0
@@ -19,7 +19,8 @@ chosen {
 
Quoted 8 lines

arch/arm/boot/dts/broadcom/bcm4708-linksys-ea6500-v2.dts chosen { · line 23

Quoted 5 lines
arch/arm/boot/dts/broadcom/bcm4708-linksys-ea6500-v2.dts +2 -1
  	memory@0 {
  		device_type = "memory";
-		reg = <0x00000000 0x08000000>;
+		reg = <0x00000000 0x08000000>,
+		      <0x88000000 0x08000000>;

So there is a hole in the middle? Does this require any special CONFIG_ option to support sparse memory?

This is how RAM is mapped on all known Northstar devices. Using two blocks.

I've heard there is a way to design Northstar SoC board to have all RAM in one region but thay requires disabling something (I don't remember what) and in practice to vendor decided to do that.

AFAIK no extra CONFIG_* option is needed to make Linux map multiple RAM regions.

maintainer Acked-by on v1 1/1
#3 lore raw
In reply to Christian Marangi
Quoted 9 lines · Christian Marangi

From: Aleksey Nasibulin <[email protected]>

Linksys ea6500-v2 have 256MB of ram. Currently we only use 128MB. Expand the definition to use all the available RAM.

Fixes 03e96644d7a8 ("ARM: dts: BCM5301X: Add basic DT for Linksys EA6500 V2")
maintainer Applied
#4 lore raw
In reply to Christian Marangi

From: Florian Fainelli <[email protected]>

Quoted 10 lines · Christian Marangi

From: Aleksey Nasibulin <[email protected]>

Linksys ea6500-v2 have 256MB of ram. Currently we only use 128MB. Expand the definition to use all the available RAM.

Fixes 03e96644d7a8 ("ARM: dts: BCM5301X: Add basic DT for Linksys EA6500 V2")

---

Applied to https://github.com/Broadcom/stblinux/commits/devicetree/next, thanks! --
Florian