From: alexandre.belloni@free-electrons.com (Alexandre Belloni)
To: linux-arm-kernel@lists.infradead.org
Subject: [PATCH 4/6] ARM: at91/dt: add SRAM nodes
Date: Tue, 13 Jan 2015 09:21:29 +0100 [thread overview]
Message-ID: <20150113082129.GA4104@piout.net> (raw)
In-Reply-To: <54B476EC.3090207@atmel.com>
On 13/01/2015 at 09:37:48 +0800, Bo Shen wrote :
> Hi Alexandre,
>
> On 01/13/2015 03:01 AM, Alexandre Belloni wrote:
> >
> >+ sram0: sram at 002ff000 {
>
> Why here is 002ff000, while not 00200000?
>
> >+ compatible = "mmio-sram";
> >+ reg = <0x00200000 0x2000>;
> >+ };
> >+
I'll correct that one. I followed what was done before. The sam9260 has
two banks, one at 0x00200000, and the other one at 0x00300000. Thanks to
address mirroring on the range, we can declare that as one contiguous
range of sram, starting at 0x002ff000.
> > ahb {
> > compatible = "simple-bus";
> > #address-cells = <1>;
> >diff --git a/arch/arm/boot/dts/at91sam9261.dtsi b/arch/arm/boot/dts/at91sam9261.dtsi
> >index cdb9ed612109..e247b0b5fdab 100644
> >--- a/arch/arm/boot/dts/at91sam9261.dtsi
> >+++ b/arch/arm/boot/dts/at91sam9261.dtsi
> >@@ -60,6 +60,11 @@
> > };
> > };
> >
> >+ sram: sram at 00300000 {
> >+ compatible = "mmio-sram";
> >+ reg = <0x00300000 0x28000>;
> >+ };
> >+
> > ahb {
> > compatible = "simple-bus";
> > #address-cells = <1>;
> >diff --git a/arch/arm/boot/dts/at91sam9263.dtsi b/arch/arm/boot/dts/at91sam9263.dtsi
> >index ef8a70c27439..8a210d5033b1 100644
> >--- a/arch/arm/boot/dts/at91sam9263.dtsi
> >+++ b/arch/arm/boot/dts/at91sam9263.dtsi
> >@@ -62,6 +62,16 @@
> > };
> > };
> >
> >+ sram0: sram at 00300000 {
> >+ compatible = "mmio-sram";
> >+ reg = <0x00300000 0x14000>;
> >+ };
> >+
> >+ sram1: sram at 00500000 {
> >+ compatible = "mmio-sram";
> >+ reg = <0x00300000 0x4000>;
> >+ };
> >+
> > ahb {
> > compatible = "simple-bus";
> > #address-cells = <1>;
> >diff --git a/arch/arm/boot/dts/at91sam9g20.dtsi b/arch/arm/boot/dts/at91sam9g20.dtsi
> >index a50ee587a7af..9012fe9d7758 100644
> >--- a/arch/arm/boot/dts/at91sam9g20.dtsi
> >+++ b/arch/arm/boot/dts/at91sam9g20.dtsi
> >@@ -16,6 +16,15 @@
> > reg = <0x20000000 0x08000000>;
> > };
> >
> >+ sram0: sram at 002ff000 {
>
> Why here is 002ff000, while not 00200000?
>
> >+ status = "disabled";
>
> Btw, why it needs set to disabled.
>
> >+ };
> >+
> >+ sram1: sram at 002fc000 {
>
> Why here is 002fc000, while not 00300000? And length is on 0x4000.
>
The same here, because we use mirroring, we have to disable the one that
is coming from at91sam9260.dtsi and then declare another one. I'll
correct the addresses in the reg properties. I was first declaring two
banks but we chose to switch back to only one range.
> >+ compatible = "mmio-sram";
> >+ reg = <0x00200000 0x8000>;
> >+ };
> >+
Thanks for the review.
--
Alexandre Belloni, Free Electrons
Embedded Linux, Kernel and Android engineering
http://free-electrons.com
next prev parent reply other threads:[~2015-01-13 8:21 UTC|newest]
Thread overview: 11+ messages / expand[flat|nested] mbox.gz Atom feed top
2015-01-12 19:01 [PATCH 0/6] AT91 DT for 3.20 #1 Alexandre Belloni
2015-01-12 19:01 ` [PATCH 1/6] ARM: at91/dt: at91sam9n12: Add RTC node Alexandre Belloni
2015-01-12 19:06 ` [PATCH v2 " Alexandre Belloni
2015-01-12 19:01 ` [PATCH 2/6] ARM: at91/dt: rm9200: add " Alexandre Belloni
2015-01-12 19:01 ` [PATCH 3/6] ARM: at91/dt: at91rm9200ek: enable RTC Alexandre Belloni
2015-01-12 19:01 ` [PATCH 4/6] ARM: at91/dt: add SRAM nodes Alexandre Belloni
2015-01-13 1:37 ` Bo Shen
2015-01-13 8:21 ` Alexandre Belloni [this message]
2015-01-12 19:01 ` [PATCH 5/6] ARM: at91/dt: Add a dtsi for at91sam9xe Alexandre Belloni
2015-01-12 19:01 ` [PATCH 6/6] ARM: at91/dt: ethernut5: use at91sam9xe.dtsi Alexandre Belloni
2015-01-12 20:01 ` [PATCH 0/6] AT91 DT for 3.20 #1 Boris Brezillon
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20150113082129.GA4104@piout.net \
--to=alexandre.belloni@free-electrons.com \
--cc=linux-arm-kernel@lists.infradead.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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).