ARM: dts: stm32: fix SDRAM size on stm32f469-disco
Subsystems (2)
RFC PATCH 1/1 ARM: dts: stm32: fix SDRAM size on stm32f469-disco
The board is equipped with a 128Mbit SDRAM. 128Mbit = 16 Mbyte = 16,777,216 bytes = 0x1000000.
---
arch/arm/boot/dts/st/stm32f469-disco.dts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
arch/arm/boot/dts/st/stm32f469-disco.dts +1 -1
@@ -84,7 +84,7 @@ vdd_dsi: vdd-dsi { }; soc { - dma-ranges = <0xc0000000 0x0 0x10000000>; + dma-ranges = <0xc0000000 0x0 0x1000000>; }; leds {
Signature · 1 line
2.34.1
Quoted 18 lines · Dario Binacchi
The board is equipped with a 128Mbit SDRAM. 128Mbit = 16 Mbyte = 16,777,216 bytes =
0x1000000.Fixes 626e7ea00215 ("ARM: DT: stm32: move dma translation to board files")Signed-off-by Dario Binacchi <[email protected]>---
arch/arm/boot/dts/st/stm32f469-disco.dts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)arch/arm/boot/dts/st/stm32f469-disco.dts +0
-0
arch/arm/boot/dts/st/stm32f469-disco.dts vdd_dsi: vdd-dsi { · line 88
Quoted 6 lines
arch/arm/boot/dts/st/stm32f469-disco.dts +1
-1@@ -84,7 +84,7 @@ vdd_dsi: vdd-dsi { }; soc { - dma-ranges = <0xc0000000 0x0 0x10000000>; + dma-ranges = <0xc0000000 0x0 0x1000000>; };
The dma-ranges should be independent of the installed memory, they usually reflect the addressing capabilities of the bus, so this patch should not be needed.
Arnd
_______________________________________________
linux-arm-kernel mailing list
[email protected]
http://lists.infradead.org/mailman/listinfo/linux-arm-kernel
Hello Arnd,
Quoted 22 lines · Arnd Bergmann
Quoted 20 lines · Dario Binacchi
The board is equipped with a 128Mbit SDRAM. 128Mbit = 16 Mbyte = 16,777,216 bytes =
0x1000000.Fixes 626e7ea00215 ("ARM: DT: stm32: move dma translation to board files")Signed-off-by Dario Binacchi <[email protected]>---
arch/arm/boot/dts/st/stm32f469-disco.dts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)arch/arm/boot/dts/st/stm32f469-disco.dts +0
-0@@ -84,7 +84,7 @@ vdd_dsi: vdd-dsi { };
Quoted 8 lines
arch/arm/boot/dts/st/stm32f469-disco.dts vdd_dsi: vdd-dsi { · line 88
Quoted 4 lines
arch/arm/boot/dts/st/stm32f469-disco.dts +1
-1soc { - dma-ranges = <0xc0000000 0x0 0x10000000>; + dma-ranges = <0xc0000000 0x0 0x1000000>; };The dma-ranges should be independent of the installed memory, they usually reflect the addressing capabilities of the bus, so this patch should not be needed.
Thank you for the explanation.
Question, could I then use this node to describe the installed memory?
memory@c0000000 {
device_type = "memory";
reg = <0xC0000000 0x1000000>;
};I recently submitted this series to U-Boot
(https://patchwork.ozlabs.org/project/uboot/patch/[email protected]/),
and I would like to allocate the framebuffer by retrieving the correct information from the device tree, without wiring anything in the code.
Thanks and regards,
Dario
Quoted 2 lines
Arnd
Signature · 17 lines
Dario Binacchi Senior Embedded Linux Developer [email protected] __________________________________ Amarula Solutions SRL Via Le Canevare 30, 31100 Treviso, Veneto, IT T. +39 042 243 5310 [email protected] www.amarulasolutions.com