Skip to contentSkip to conversation

SPEAr: Add SMI NOR partition info in dts files

PATCH New Viresh Kumar 4 participants 6 messages May 3, 2012 – May 4, 2012

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

PATCH 1/2 SPEAr: Add SMI NOR partition info in dts files

This patch adds NOR partitions in all SPEAr boards dts files.

---
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(-)
arch/arm/boot/dts/spear1310-evb.dts +25 -0
index 12cce81..c090833 100644
@@ -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 {
arch/arm/boot/dts/spear1340-evb.dts +25 -0
index e52b23f..0bf9d8f 100644
@@ -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 {
arch/arm/boot/dts/spear300-evb.dts +25 -0
index 910e264..cb66ba2 100644
@@ -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 {
arch/arm/boot/dts/spear310-evb.dts +18 -2
index eb9f19e..12ac5ed 100644
@@ -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>;
+				};
 			};
 		};
 
arch/arm/boot/dts/spear320-evb.dts +25 -0
index 96280fe..a2115aa 100644
@@ -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 {
arch/arm/boot/dts/spear600-evb.dts +29 -0
index 790a7a8..1872cb0 100644
@@ -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";
Signature · 1 line
1.7.9
#1 lore raw

PATCH 2/2 SPEAr: Update defconfigs

This patch updates following configuration:
- Update MTD specific configurations
- Enables JFFS2 FS support
- Updates 6xx defconfig, with recent changes done by Arnd in 6xx Kconfig

---
 arch/arm/configs/spear13xx_defconfig |    4 ++++
 arch/arm/configs/spear3xx_defconfig  |    4 ++++
 arch/arm/configs/spear6xx_defconfig  |    5 ++++-
 3 files changed, 12 insertions(+), 1 deletions(-)
arch/arm/configs/spear13xx_defconfig +4 -0
index 587d1f3..1fdb826 100644
@@ -20,6 +20,9 @@ CONFIG_BINFMT_MISC=y
 CONFIG_NET=y
 CONFIG_UEVENT_HELPER_PATH="/sbin/hotplug"
 CONFIG_MTD=y
+CONFIG_MTD_OF_PARTS=y
+CONFIG_MTD_CHAR=y
+CONFIG_MTD_BLOCK=y
 CONFIG_MTD_NAND=y
 CONFIG_MTD_NAND_FSMC=y
 CONFIG_BLK_DEV_RAM=y
@@ -81,6 +84,7 @@ CONFIG_MSDOS_FS=m
 CONFIG_VFAT_FS=m
 CONFIG_FAT_DEFAULT_IOCHARSET="ascii"
 CONFIG_TMPFS=y
+CONFIG_JFFS2_FS=y
 CONFIG_NLS_DEFAULT="utf8"
 CONFIG_NLS_CODEPAGE_437=y
 CONFIG_NLS_ASCII=m
arch/arm/configs/spear3xx_defconfig +4 -0
index 7ed4291..865980c 100644
@@ -14,6 +14,9 @@ CONFIG_BINFMT_MISC=y
 CONFIG_NET=y
 CONFIG_UEVENT_HELPER_PATH="/sbin/hotplug"
 CONFIG_MTD=y
+CONFIG_MTD_OF_PARTS=y
+CONFIG_MTD_CHAR=y
+CONFIG_MTD_BLOCK=y
 CONFIG_MTD_NAND=y
 CONFIG_MTD_NAND_FSMC=y
 CONFIG_BLK_DEV_RAM=y
@@ -73,6 +76,7 @@ CONFIG_MSDOS_FS=m
 CONFIG_VFAT_FS=m
 CONFIG_FAT_DEFAULT_IOCHARSET="ascii"
 CONFIG_TMPFS=y
+CONFIG_JFFS2_FS=y
 CONFIG_NLS_DEFAULT="utf8"
 CONFIG_NLS_CODEPAGE_437=y
 CONFIG_NLS_ASCII=m
arch/arm/configs/spear6xx_defconfig +4 -1
index cf94bc7..a2a1265 100644
@@ -8,11 +8,13 @@ CONFIG_MODVERSIONS=y
 CONFIG_PARTITION_ADVANCED=y
 CONFIG_PLAT_SPEAR=y
 CONFIG_ARCH_SPEAR6XX=y
-CONFIG_BOARD_SPEAR600_DT=y
 CONFIG_BINFMT_MISC=y
 CONFIG_NET=y
 CONFIG_UEVENT_HELPER_PATH="/sbin/hotplug"
 CONFIG_MTD=y
+CONFIG_MTD_OF_PARTS=y
+CONFIG_MTD_CHAR=y
+CONFIG_MTD_BLOCK=y
 CONFIG_MTD_NAND=y
 CONFIG_MTD_NAND_FSMC=y
 CONFIG_BLK_DEV_RAM=y
@@ -64,6 +66,7 @@ CONFIG_MSDOS_FS=m
 CONFIG_VFAT_FS=m
 CONFIG_FAT_DEFAULT_IOCHARSET="ascii"
 CONFIG_TMPFS=y
+CONFIG_JFFS2_FS=y
 CONFIG_NLS_DEFAULT="utf8"
 CONFIG_NLS_CODEPAGE_437=y
 CONFIG_NLS_ASCII=m
Signature · 1 line
1.7.9
#3 lore raw

PATCH 1/2 SPEAr: Add SMI NOR partition info in dts files

Quoted 7 lines · On Thursday 03 May 2012 13:02:47 Arnd Bergmann wrote:
Quoted 6 lines · Viresh Kumar

This patch adds NOR partitions in all SPEAr boards dts files.

---
Arnd,

Quoted 6 lines
Quoted 2 lines

I will have it in my pull request for SPEAr13xx. These mails are only for review.

Both patches look good to me.

Looks good to me too:

Thanks,
Stefan

#4 lore raw

PATCH 1/2 SPEAr: Add SMI NOR partition info in dts files

In reply to Viresh Kumar
Quoted 38 lines · Viresh Kumar

This patch adds NOR partitions in all SPEAr boards dts files.

---
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(-)
arch/arm/boot/dts/spear1310-evb.dts +13 -0
index 12cce81..c090833 100644
@@ -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 {

arch/arm/boot/dts/spear1310-evb.dts line 146

Quoted 10 lines
arch/arm/boot/dts/spear1310-evb.dts +10 -0
+					label = "u-boot";
+					reg = <0x10000 0x40000>;
+				};
+				partition at 50000 {
+					label = "linux";
+					reg = <0x50000 0x2c0000>;
+				};
+				partition at 310000 {
+					label = "rootfs";
+					reg = <0x310000 0x230000>;

hi,

I have one question: we know smi nor flash has 8M Bytes, why we leave 0x2c0000 Bytes unused?

Liming Wang

Quoted 195 lines
arch/arm/boot/dts/spear1310-evb.dts +2 -0
+				};
+			};
 		};
 
 		spi0: spi at e0100000 {
arch/arm/boot/dts/spear1340-evb.dts +25 -0
index e52b23f..0bf9d8f 100644
@@ -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 {
arch/arm/boot/dts/spear300-evb.dts +25 -0
index 910e264..cb66ba2 100644
@@ -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 {
arch/arm/boot/dts/spear310-evb.dts +18 -2
index eb9f19e..12ac5ed 100644
@@ -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>;
+				};
 			};
 		};
 
arch/arm/boot/dts/spear320-evb.dts +25 -0
index 96280fe..a2115aa 100644
@@ -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 {
arch/arm/boot/dts/spear600-evb.dts +29 -0
index 790a7a8..1872cb0 100644
@@ -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";
Signature · 7 lines
1.7.9


_______________________________________________
linux-arm-kernel mailing list
linux-arm-kernel at lists.infradead.org
http://lists.infradead.org/mailman/listinfo/linux-arm-kernel
#5 lore raw

PATCH 1/2 SPEAr: Add SMI NOR partition info in dts files

Quoted 6 lines · walimis
Quoted 3 lines

arch/arm/boot/dts/spear1310-evb.dts line 146

Quoted 3 lines
arch/arm/boot/dts/spear1310-evb.dts +3 -0
+				partition at 310000 {
+					label = "rootfs";
+					reg = <0x310000 0x230000>;

I have one question: we know smi nor flash has 8M Bytes, why we leave 0x2c0000 Bytes unused?

Correct. Either i make rootfs partition size 4f0000 or is there someway to say:
everything else belongs to rootfs? Will leaving size field blank for rootfs do this?

Signature · 1 line
viresh