devicetree.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [RFC PATCH] ARM: dts: stm32: fix SDRAM size on stm32f469-disco
@ 2023-09-04 18:05 Dario Binacchi
  2023-09-09 14:27 ` Arnd Bergmann
  0 siblings, 1 reply; 3+ messages in thread
From: Dario Binacchi @ 2023-09-04 18:05 UTC (permalink / raw)
  To: linux-kernel
  Cc: linux-amarula, Dario Binacchi, Alexandre Torgue, Conor Dooley,
	Krzysztof Kozlowski, Maxime Coquelin, Rob Herring, devicetree,
	linux-arm-kernel, linux-stm32

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")
Link: https://www.st.com/en/evaluation-tools/32f469idiscovery.html
Signed-off-by: Dario Binacchi <dario.binacchi@amarulasolutions.com>

---

 arch/arm/boot/dts/st/stm32f469-disco.dts | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/arch/arm/boot/dts/st/stm32f469-disco.dts b/arch/arm/boot/dts/st/stm32f469-disco.dts
index cbbd521bf010..f173a5892b7d 100644
--- a/arch/arm/boot/dts/st/stm32f469-disco.dts
+++ b/arch/arm/boot/dts/st/stm32f469-disco.dts
@@ -84,7 +84,7 @@ vdd_dsi: vdd-dsi {
 	};
 
 	soc {
-		dma-ranges = <0xc0000000 0x0 0x10000000>;
+		dma-ranges = <0xc0000000 0x0 0x1000000>;
 	};
 
 	leds {
-- 
2.34.1


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

* Re: [RFC PATCH] ARM: dts: stm32: fix SDRAM size on stm32f469-disco
  2023-09-04 18:05 [RFC PATCH] ARM: dts: stm32: fix SDRAM size on stm32f469-disco Dario Binacchi
@ 2023-09-09 14:27 ` Arnd Bergmann
  2023-09-10 14:31   ` Dario Binacchi
  0 siblings, 1 reply; 3+ messages in thread
From: Arnd Bergmann @ 2023-09-09 14:27 UTC (permalink / raw)
  To: Dario Binacchi, linux-kernel
  Cc: Amarula patchwork, Alexandre Torgue, Conor Dooley,
	Krzysztof Kozlowski, Maxime Coquelin, Rob Herring, devicetree,
	linux-arm-kernel, linux-stm32

On Mon, Sep 4, 2023, at 20:05, Dario Binacchi wrote:
> 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")
> Link: https://www.st.com/en/evaluation-tools/32f469idiscovery.html
> Signed-off-by: Dario Binacchi <dario.binacchi@amarulasolutions.com>
>
> ---
>
>  arch/arm/boot/dts/st/stm32f469-disco.dts | 2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)
>
> diff --git a/arch/arm/boot/dts/st/stm32f469-disco.dts 
> b/arch/arm/boot/dts/st/stm32f469-disco.dts
> index cbbd521bf010..f173a5892b7d 100644
> --- a/arch/arm/boot/dts/st/stm32f469-disco.dts
> +++ b/arch/arm/boot/dts/st/stm32f469-disco.dts
> @@ -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

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

* Re: [RFC PATCH] ARM: dts: stm32: fix SDRAM size on stm32f469-disco
  2023-09-09 14:27 ` Arnd Bergmann
@ 2023-09-10 14:31   ` Dario Binacchi
  0 siblings, 0 replies; 3+ messages in thread
From: Dario Binacchi @ 2023-09-10 14:31 UTC (permalink / raw)
  To: Arnd Bergmann
  Cc: linux-kernel, Amarula patchwork, Alexandre Torgue, Conor Dooley,
	Krzysztof Kozlowski, Maxime Coquelin, Rob Herring, devicetree,
	linux-arm-kernel, linux-stm32

Hello Arnd,

On Sat, Sep 9, 2023 at 4:28 PM Arnd Bergmann <arnd@arndb.de> wrote:
>
> On Mon, Sep 4, 2023, at 20:05, Dario Binacchi wrote:
> > 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")
> > Link: https://www.st.com/en/evaluation-tools/32f469idiscovery.html
> > Signed-off-by: Dario Binacchi <dario.binacchi@amarulasolutions.com>
> >
> > ---
> >
> >  arch/arm/boot/dts/st/stm32f469-disco.dts | 2 +-
> >  1 file changed, 1 insertion(+), 1 deletion(-)
> >
> > diff --git a/arch/arm/boot/dts/st/stm32f469-disco.dts
> > b/arch/arm/boot/dts/st/stm32f469-disco.dts
> > index cbbd521bf010..f173a5892b7d 100644
> > --- a/arch/arm/boot/dts/st/stm32f469-disco.dts
> > +++ b/arch/arm/boot/dts/st/stm32f469-disco.dts
> > @@ -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.

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/20230903205703.662080-5-dario.binacchi@amarulasolutions.com/),
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

>
>       Arnd



-- 

Dario Binacchi

Senior Embedded Linux Developer

dario.binacchi@amarulasolutions.com

__________________________________


Amarula Solutions SRL

Via Le Canevare 30, 31100 Treviso, Veneto, IT

T. +39 042 243 5310
info@amarulasolutions.com

www.amarulasolutions.com

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

end of thread, other threads:[~2023-09-10 14:31 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2023-09-04 18:05 [RFC PATCH] ARM: dts: stm32: fix SDRAM size on stm32f469-disco Dario Binacchi
2023-09-09 14:27 ` Arnd Bergmann
2023-09-10 14:31   ` Dario Binacchi

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).