Skip to contentSkip to conversation

SpacemiT K3 use 8gb memory size on CoM260 and Pico-ITX

PATCH New E Shattow 1 participant 3 messages Nov 15

Subsystems (3)
lore
Share & tools
lore

E Shattow

author
#0 lore raw

cover SpacemiT K3 use 8gb memory size on CoM260 and Pico-ITX

Adjust from 16GiB to 8GiB memory size configuration on CoM260 and Pico-ITX for compatibility with 8GiB/16GiB/32GiB configurations.

It is expected that the bootloader will read EEPROM TLV value for ID of the EEPROM part and adjust the device tree node accordingly. In the simple case where adjustment is not performed however, then the previous 16GiB range may overflow a 8GiB DRAM optioned board.

DeepComputing FML13v05 is sold in 16GiB/32GiB variants and not 8GiB so it remains as 16GiB configuration.

E Shattow (2):
riscv: dts: spacemit: k3: use com260 8gb memory configuration
riscv: dts: spacemit: k3: use pico-itx 8gb memory configuration

 arch/riscv/boot/dts/spacemit/k3-com260.dtsi  | 2 +-
 arch/riscv/boot/dts/spacemit/k3-pico-itx.dts | 2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)

base-commit: fa2933aac170dd19c6a7f0d7b81a8f537e40915c

Signature · 1 line
2.53.0
author
#1 lore raw

PATCH 1/2 riscv: dts: spacemit: k3: use com260 8gb memory configuration

The boot loader may override this configuration based on stored ID value in EEPROM TLV and if it does not then the smallest common sold configuration of 8gb is the most compatible option.

---
 arch/riscv/boot/dts/spacemit/k3-com260.dtsi | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
arch/riscv/boot/dts/spacemit/k3-com260.dtsi +1 -1
index 054bfff7413a..c18680b963a4 100644
@@ -14,7 +14,7 @@ / {
 
 	memory@100000000 {
 		device_type = "memory";
-		reg = <0x1 0x00000000 0x4 0x00000000>;
+		reg = <0x1 0x00000000 0x2 0x00000000>;
 	};
 
 	reg_5v_sys: regulator-5v-sys {
Signature · 1 line
2.53.0
author
#2 lore raw

PATCH 2/2 riscv: dts: spacemit: k3: use pico-itx 8gb memory configuration

In reply to E Shattow

The boot loader may override this configuration based on stored ID value in EEPROM TLV and if it does not then the smallest common sold configuration of 8gb is the most compatible option.

---
 arch/riscv/boot/dts/spacemit/k3-pico-itx.dts | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
arch/riscv/boot/dts/spacemit/k3-pico-itx.dts +1 -1
index dda420900aa2..8d1cd468cf8c 100644
@@ -25,7 +25,7 @@ chosen {
 
 	memory@100000000 {
 		device_type = "memory";
-		reg = <0x1 0x00000000 0x4 0x00000000>;
+		reg = <0x1 0x00000000 0x2 0x00000000>;
 	};
 
 	reg_aux_vcc3v3: regulator-aux-vcc3v3 {
Signature · 1 line
2.53.0