From mboxrd@z Thu Jan 1 00:00:00 1970 From: viresh.kumar@st.com (Viresh Kumar) Date: Thu, 3 May 2012 16:07:09 +0530 Subject: [PATCH 1/2] SPEAr: Add SMI NOR partition info in dts files Message-ID: To: linux-arm-kernel@lists.infradead.org List-Id: linux-arm-kernel.lists.infradead.org This patch adds NOR partitions in all SPEAr boards dts files. Signed-off-by: Viresh Kumar --- Arnd, I will have it in my pull request for SPEAr13xx. These mails are only for review. arch/arm/boot/dts/spear1310-evb.dts | 25 +++++++++++++++++++++++++ arch/arm/boot/dts/spear1340-evb.dts | 25 +++++++++++++++++++++++++ arch/arm/boot/dts/spear300-evb.dts | 25 +++++++++++++++++++++++++ arch/arm/boot/dts/spear310-evb.dts | 20 ++++++++++++++++++-- arch/arm/boot/dts/spear320-evb.dts | 25 +++++++++++++++++++++++++ arch/arm/boot/dts/spear600-evb.dts | 29 +++++++++++++++++++++++++++++ 6 files changed, 147 insertions(+), 2 deletions(-) diff --git a/arch/arm/boot/dts/spear1310-evb.dts b/arch/arm/boot/dts/spear1310-evb.dts index 12cce81..c090833 100644 --- a/arch/arm/boot/dts/spear1310-evb.dts +++ b/arch/arm/boot/dts/spear1310-evb.dts @@ -121,6 +121,31 @@ smi: flash at ea000000 { status = "okay"; + clock-rate=<50000000>; + + flash at e6000000 { + #address-cells = <1>; + #size-cells = <1>; + reg = <0xe6000000 0x800000>; + st,smi-fast-mode; + + partition at 0 { + label = "xloader"; + reg = <0x0 0x10000>; + }; + partition at 10000 { + label = "u-boot"; + reg = <0x10000 0x40000>; + }; + partition at 50000 { + label = "linux"; + reg = <0x50000 0x2c0000>; + }; + partition at 310000 { + label = "rootfs"; + reg = <0x310000 0x230000>; + }; + }; }; spi0: spi at e0100000 { diff --git a/arch/arm/boot/dts/spear1340-evb.dts b/arch/arm/boot/dts/spear1340-evb.dts index e52b23f..0bf9d8f 100644 --- a/arch/arm/boot/dts/spear1340-evb.dts +++ b/arch/arm/boot/dts/spear1340-evb.dts @@ -133,6 +133,31 @@ smi: flash at ea000000 { status = "okay"; + clock-rate=<50000000>; + + flash at e6000000 { + #address-cells = <1>; + #size-cells = <1>; + reg = <0xe6000000 0x800000>; + st,smi-fast-mode; + + partition at 0 { + label = "xloader"; + reg = <0x0 0x10000>; + }; + partition at 10000 { + label = "u-boot"; + reg = <0x10000 0x40000>; + }; + partition at 50000 { + label = "linux"; + reg = <0x50000 0x2c0000>; + }; + partition at 310000 { + label = "rootfs"; + reg = <0x310000 0x230000>; + }; + }; }; spi0: spi at e0100000 { diff --git a/arch/arm/boot/dts/spear300-evb.dts b/arch/arm/boot/dts/spear300-evb.dts index 910e264..cb66ba2 100644 --- a/arch/arm/boot/dts/spear300-evb.dts +++ b/arch/arm/boot/dts/spear300-evb.dts @@ -87,6 +87,31 @@ smi: flash at fc000000 { status = "okay"; + clock-rate=<50000000>; + + flash at f8000000 { + #address-cells = <1>; + #size-cells = <1>; + reg = <0xf8000000 0x800000>; + st,smi-fast-mode; + + partition at 0 { + label = "xloader"; + reg = <0x0 0x10000>; + }; + partition at 10000 { + label = "u-boot"; + reg = <0x10000 0x40000>; + }; + partition at 50000 { + label = "linux"; + reg = <0x50000 0x2c0000>; + }; + partition at 310000 { + label = "rootfs"; + reg = <0x310000 0x230000>; + }; + }; }; spi0: spi at d0100000 { diff --git a/arch/arm/boot/dts/spear310-evb.dts b/arch/arm/boot/dts/spear310-evb.dts index eb9f19e..12ac5ed 100644 --- a/arch/arm/boot/dts/spear310-evb.dts +++ b/arch/arm/boot/dts/spear310-evb.dts @@ -103,11 +103,27 @@ clock-rate=<50000000>; flash at f8000000 { - label = "m25p64"; - reg = <0xf8000000 0x800000>; #address-cells = <1>; #size-cells = <1>; + reg = <0xf8000000 0x800000>; st,smi-fast-mode; + + partition at 0 { + label = "xloader"; + reg = <0x0 0x10000>; + }; + partition at 10000 { + label = "u-boot"; + reg = <0x10000 0x40000>; + }; + partition at 50000 { + label = "linux"; + reg = <0x50000 0x2c0000>; + }; + partition at 310000 { + label = "rootfs"; + reg = <0x310000 0x230000>; + }; }; }; diff --git a/arch/arm/boot/dts/spear320-evb.dts b/arch/arm/boot/dts/spear320-evb.dts index 96280fe..a2115aa 100644 --- a/arch/arm/boot/dts/spear320-evb.dts +++ b/arch/arm/boot/dts/spear320-evb.dts @@ -110,6 +110,31 @@ smi: flash at fc000000 { status = "okay"; + clock-rate=<50000000>; + + flash at f8000000 { + #address-cells = <1>; + #size-cells = <1>; + reg = <0xf8000000 0x800000>; + st,smi-fast-mode; + + partition at 0 { + label = "xloader"; + reg = <0x0 0x10000>; + }; + partition at 10000 { + label = "u-boot"; + reg = <0x10000 0x40000>; + }; + partition at 50000 { + label = "linux"; + reg = <0x50000 0x2c0000>; + }; + partition at 310000 { + label = "rootfs"; + reg = <0x310000 0x230000>; + }; + }; }; spi0: spi at d0100000 { diff --git a/arch/arm/boot/dts/spear600-evb.dts b/arch/arm/boot/dts/spear600-evb.dts index 790a7a8..1872cb0 100644 --- a/arch/arm/boot/dts/spear600-evb.dts +++ b/arch/arm/boot/dts/spear600-evb.dts @@ -33,6 +33,35 @@ status = "okay"; }; + smi: flash at fc000000 { + status = "okay"; + clock-rate=<50000000>; + + flash at f8000000 { + #address-cells = <1>; + #size-cells = <1>; + reg = <0xf8000000 0x800000>; + st,smi-fast-mode; + + partition at 0 { + label = "xloader"; + reg = <0x0 0x10000>; + }; + partition at 10000 { + label = "u-boot"; + reg = <0x10000 0x40000>; + }; + partition at 50000 { + label = "linux"; + reg = <0x50000 0x2c0000>; + }; + partition at 310000 { + label = "rootfs"; + reg = <0x310000 0x230000>; + }; + }; + }; + apb { serial at d0000000 { status = "okay"; -- 1.7.9