From: voice.shen@atmel.com (Bo Shen)
To: linux-arm-kernel@lists.infradead.org
Subject: [PATCH 4/6] ARM: at91/dt: add SRAM nodes
Date: Tue, 13 Jan 2015 09:37:48 +0800 [thread overview]
Message-ID: <54B476EC.3090207@atmel.com> (raw)
In-Reply-To: <1421089317-12607-5-git-send-email-alexandre.belloni@free-electrons.com>
Hi Alexandre,
On 01/13/2015 03:01 AM, Alexandre Belloni wrote:
> Add nodes for the SRAM available on atmel SoCs
>
> Remove leftover TODOs in the sam9g45 file
>
> Signed-off-by: Alexandre Belloni <alexandre.belloni@free-electrons.com>
> ---
> arch/arm/boot/dts/at91rm9200.dtsi | 5 +++++
> arch/arm/boot/dts/at91sam9260.dtsi | 5 +++++
> arch/arm/boot/dts/at91sam9261.dtsi | 5 +++++
> arch/arm/boot/dts/at91sam9263.dtsi | 10 ++++++++++
> arch/arm/boot/dts/at91sam9g20.dtsi | 9 +++++++++
> arch/arm/boot/dts/at91sam9g45.dtsi | 7 +++++--
> arch/arm/boot/dts/at91sam9n12.dtsi | 5 +++++
> arch/arm/boot/dts/at91sam9rl.dtsi | 5 +++++
> arch/arm/boot/dts/at91sam9x5.dtsi | 5 +++++
> arch/arm/boot/dts/sama5d3.dtsi | 5 +++++
> arch/arm/boot/dts/sama5d4.dtsi | 5 +++++
> 11 files changed, 64 insertions(+), 2 deletions(-)
>
> diff --git a/arch/arm/boot/dts/at91rm9200.dtsi b/arch/arm/boot/dts/at91rm9200.dtsi
> index f449a864b81e..21c2b504f977 100644
> --- a/arch/arm/boot/dts/at91rm9200.dtsi
> +++ b/arch/arm/boot/dts/at91rm9200.dtsi
> @@ -66,6 +66,11 @@
> };
> };
>
> + sram: sram at 00200000 {
> + compatible = "mmio-sram";
> + reg = <0x00200000 0x4000>;
> + };
> +
> ahb {
> compatible = "simple-bus";
> #address-cells = <1>;
> diff --git a/arch/arm/boot/dts/at91sam9260.dtsi b/arch/arm/boot/dts/at91sam9260.dtsi
> index dd1313cbc314..6f52cb2eacd8 100644
> --- a/arch/arm/boot/dts/at91sam9260.dtsi
> +++ b/arch/arm/boot/dts/at91sam9260.dtsi
> @@ -69,6 +69,11 @@
> };
> };
>
> + sram0: sram at 002ff000 {
Why here is 002ff000, while not 00200000?
> + compatible = "mmio-sram";
> + reg = <0x00200000 0x2000>;
> + };
> +
> 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.
> + compatible = "mmio-sram";
> + reg = <0x00200000 0x8000>;
> + };
> +
> ahb {
> apb {
> i2c0: i2c at fffac000 {
> diff --git a/arch/arm/boot/dts/at91sam9g45.dtsi b/arch/arm/boot/dts/at91sam9g45.dtsi
> index 2a8da8a884b4..ee80aa9c0759 100644
> --- a/arch/arm/boot/dts/at91sam9g45.dtsi
> +++ b/arch/arm/boot/dts/at91sam9g45.dtsi
> @@ -74,6 +74,11 @@
> };
> };
>
> + sram: sram at 00300000 {
> + compatible = "mmio-sram";
> + reg = <0x00300000 0x10000>;
> + };
> +
> ahb {
> compatible = "simple-bus";
> #address-cells = <1>;
> @@ -1287,7 +1292,6 @@
> compatible = "atmel,at91rm9200-ohci", "usb-ohci";
> reg = <0x00700000 0x100000>;
> interrupts = <22 IRQ_TYPE_LEVEL_HIGH 2>;
> - //TODO
> clocks = <&usb>, <&uhphs_clk>, <&uhphs_clk>, <&uhpck>;
> clock-names = "usb_clk", "ohci_clk", "hclk", "uhpck";
> status = "disabled";
> @@ -1297,7 +1301,6 @@
> compatible = "atmel,at91sam9g45-ehci", "usb-ehci";
> reg = <0x00800000 0x100000>;
> interrupts = <22 IRQ_TYPE_LEVEL_HIGH 2>;
> - //TODO
> clocks = <&usb>, <&uhphs_clk>, <&uhphs_clk>, <&uhpck>;
> clock-names = "usb_clk", "ehci_clk", "hclk", "uhpck";
> status = "disabled";
> diff --git a/arch/arm/boot/dts/at91sam9n12.dtsi b/arch/arm/boot/dts/at91sam9n12.dtsi
> index a7218bcc6a25..6ea7ee3b8ff8 100644
> --- a/arch/arm/boot/dts/at91sam9n12.dtsi
> +++ b/arch/arm/boot/dts/at91sam9n12.dtsi
> @@ -64,6 +64,11 @@
> };
> };
>
> + sram: sram at 00300000 {
> + compatible = "mmio-sram";
> + reg = <0x00300000 0x8000>;
> + };
> +
> ahb {
> compatible = "simple-bus";
> #address-cells = <1>;
> diff --git a/arch/arm/boot/dts/at91sam9rl.dtsi b/arch/arm/boot/dts/at91sam9rl.dtsi
> index 72424371413e..c055da2f151f 100644
> --- a/arch/arm/boot/dts/at91sam9rl.dtsi
> +++ b/arch/arm/boot/dts/at91sam9rl.dtsi
> @@ -70,6 +70,11 @@
> };
> };
>
> + sram: sram at 00300000 {
> + compatible = "mmio-sram";
> + reg = <0x00300000 0x4000>;
> + };
> +
> ahb {
> compatible = "simple-bus";
> #address-cells = <1>;
> diff --git a/arch/arm/boot/dts/at91sam9x5.dtsi b/arch/arm/boot/dts/at91sam9x5.dtsi
> index bbb3ba65165f..818dabdd8c0e 100644
> --- a/arch/arm/boot/dts/at91sam9x5.dtsi
> +++ b/arch/arm/boot/dts/at91sam9x5.dtsi
> @@ -72,6 +72,11 @@
> };
> };
>
> + sram: sram at 00300000 {
> + compatible = "mmio-sram";
> + reg = <0x00300000 0x8000>;
> + };
> +
> ahb {
> compatible = "simple-bus";
> #address-cells = <1>;
> diff --git a/arch/arm/boot/dts/sama5d3.dtsi b/arch/arm/boot/dts/sama5d3.dtsi
> index d701ddda0e00..e17614fe58a9 100644
> --- a/arch/arm/boot/dts/sama5d3.dtsi
> +++ b/arch/arm/boot/dts/sama5d3.dtsi
> @@ -78,6 +78,11 @@
> };
> };
>
> + sram: sram at 00300000 {
> + compatible = "mmio-sram";
> + reg = <0x00300000 0x20000>;
> + };
> +
> ahb {
> compatible = "simple-bus";
> #address-cells = <1>;
> diff --git a/arch/arm/boot/dts/sama5d4.dtsi b/arch/arm/boot/dts/sama5d4.dtsi
> index 0a2477fe5525..1b4fe4e19721 100644
> --- a/arch/arm/boot/dts/sama5d4.dtsi
> +++ b/arch/arm/boot/dts/sama5d4.dtsi
> @@ -103,6 +103,11 @@
> };
> };
>
> + ns_sram: sram at 00210000 {
> + compatible = "mmio-sram";
> + reg = <0x00210000 0x10000>;
> + };
> +
> ahb {
> compatible = "simple-bus";
> #address-cells = <1>;
>
Best Regards,
Bo Shen
next prev parent reply other threads:[~2015-01-13 1:37 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 [this message]
2015-01-13 8:21 ` Alexandre Belloni
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=54B476EC.3090207@atmel.com \
--to=voice.shen@atmel.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).