Skip to contentSkip to conversation

Small 4xx updates for 2.6.24

PATCH In review Josh Boyer 5 participants 19 messages Sep 14, 2007 – Sep 17, 2007

Subsystems (3)
lore
Share & tools
lore

Josh Boyer

author
#0 lore raw

cover Small 4xx updates for 2.6.24

Below is a small update series for 4xx that I intend to put in my 2.6.24 branch soon and send to Paul. It contains an already acked cuboot wrapper for Bamboo, a fix for the newly updated physmap_of driver, and updates to the walnut and sequoia flash nodes in the DTS files.

josh

author
#1 lore raw

PATCH 1/4 cuimage for Bamboo board

Add a cuboot wrapper for the Bamboo board. This also removes some obsoleted linker declarations that have been moved into ops.h

---
 arch/powerpc/boot/44x.h             |    2 +-
 arch/powerpc/boot/Makefile          |    4 ++--
 arch/powerpc/boot/bamboo.c          |    8 +++++---
 arch/powerpc/boot/cuboot-bamboo.c   |   30 ++++++++++++++++++++++++++++++
 arch/powerpc/boot/treeboot-bamboo.c |   22 +++++++++++++++++++---
 5 files changed, 57 insertions(+), 9 deletions(-)
arch/powerpc/boot/Makefile +2 -2
@@ -49,7 +49,7 @@ src-wlib := string.S crt0.S stdio.c main
 src-plat := of.c cuboot-83xx.c cuboot-85xx.c holly.c \
 		cuboot-ebony.c treeboot-ebony.c prpmc2800.c \
 		ps3-head.S ps3-hvcall.S ps3.c treeboot-bamboo.c cuboot-8xx.c \
-		cuboot-pq2.c cuboot-sequoia.c treeboot-walnut.c
+		cuboot-pq2.c cuboot-sequoia.c treeboot-walnut.c cuboot-bamboo.c
 src-boot := $(src-wlib) $(src-plat) empty.c
 
 src-boot := $(addprefix $(obj)/, $(src-boot))
@@ -146,7 +146,7 @@ image-$(CONFIG_8260)			+= cuImage.pq2
 image-$(CONFIG_PPC_83xx)		+= cuImage.83xx
 image-$(CONFIG_PPC_85xx)		+= cuImage.85xx
 image-$(CONFIG_EBONY)			+= treeImage.ebony cuImage.ebony
-image-$(CONFIG_BAMBOO)			+= treeImage.bamboo
+image-$(CONFIG_BAMBOO)			+= treeImage.bamboo cuImage.bamboo
 image-$(CONFIG_SEQUOIA)			+= cuImage.sequoia
 image-$(CONFIG_WALNUT)			+= treeImage.walnut
 endif
arch/powerpc/boot/cuboot-bamboo.c new file +30 -0
@@ -0,0 +1,30 @@
+/*
+ * Old U-boot compatibility for Ebony
+ *
+ * Author: Josh Boyer <[email protected]>
+ *
+ * Copyright 2007 IBM Corporation
+ *
+ * Based on cuboot-ebony.c
+ *
+ * This program is free software; you can redistribute it and/or modify it
+ * under the terms of the GNU General Public License version 2 as published
+ * by the Free Software Foundation.
+ */
+
+#include "ops.h"
+#include "stdio.h"
+#include "44x.h"
+#include "cuboot.h"
+
+#define TARGET_44x
+#include "ppcboot.h"
+
+static bd_t bd;
+
+void platform_init(unsigned long r3, unsigned long r4, unsigned long r5,
+		unsigned long r6, unsigned long r7)
+{
+	CUBOOT_INIT();
+	bamboo_init(&bd.bi_enetaddr, &bd.bi_enet1addr);
+}
arch/powerpc/boot/44x.h +1 -1
@@ -11,6 +11,6 @@
 #define _PPC_BOOT_44X_H_
 
 void ebony_init(void *mac0, void *mac1);
-void bamboo_init(void);
+void bamboo_init(void *mac0, void *mac1);
 
 #endif /* _PPC_BOOT_44X_H_ */
arch/powerpc/boot/bamboo.c +5 -3
@@ -24,8 +24,7 @@
 #include "4xx.h"
 #include "44x.h"
 
-extern char _dtb_start[];
-extern char _dtb_end[];
+static u8 *bamboo_mac0, *bamboo_mac1;
 
 static void bamboo_fixups(void)
 {
@@ -34,12 +33,15 @@ static void bamboo_fixups(void)
 	ibm440ep_fixup_clocks(sysclk, 11059200);
 	ibm4xx_fixup_memsize();
 	ibm4xx_quiesce_eth((u32 *)0xef600e00, (u32 *)0xef600f00);
+	dt_fixup_mac_addresses(bamboo_mac0, bamboo_mac1);
 }
 
-void bamboo_init(void)
+void bamboo_init(void *mac0, void *mac1)
 {
 	platform_ops.fixups = bamboo_fixups;
 	platform_ops.exit = ibm44x_dbcr_reset;
+	bamboo_mac0 = mac0;
+	bamboo_mac1 = mac1;
 	ft_init(_dtb_start, 0, 32);
 	serial_console_init();
 }
arch/powerpc/boot/treeboot-bamboo.c +19 -3
@@ -12,16 +12,32 @@
 #include "ops.h"
 #include "stdio.h"
 #include "44x.h"
-
-extern char _end[];
+#include "stdlib.h"
 
 BSS_STACK(4096);
 
+#define PIBS_MAC0 0xfffc0400
+#define PIBS_MAC1 0xfffc0500
+char pibs_mac0[6];
+char pibs_mac1[6];
+
+static void read_pibs_mac(void)
+{
+	unsigned long long mac64;
+
+	mac64 = strtoull((char *)PIBS_MAC0, 0, 16);
+	memcpy(&pibs_mac0, (char *)&mac64+2, 6);
+
+	mac64 = strtoull((char *)PIBS_MAC1, 0, 16);
+	memcpy(&pibs_mac1, (char *)&mac64+2, 6);
+}
+
 void platform_init(void)
 {
 	unsigned long end_of_ram = 0x8000000;
 	unsigned long avail_ram = end_of_ram - (unsigned long)_end;
 
 	simple_alloc_init(_end, avail_ram, 32, 64);
-	bamboo_init();
+	read_pibs_mac();
+	bamboo_init((u8 *)&pibs_mac0, (u8 *)&pibs_mac1);
 }
#2 lore raw

Re: [patch 1/4] cuimage for Bamboo board

Quoted 5 lines · Josh Boyer

Add a cuboot wrapper for the Bamboo board. This also removes some obsoleted linker declarations that have been moved into ops.h

Heh, well, I know I acked this already, but...

[snip]

arch/powerpc/boot/cuboot-bamboo.c line 2

Quoted 5 lines
arch/powerpc/boot/cuboot-bamboo.c new file +2 -0
@@ -0,0 +1,30 @@
+/*
+ * Old U-boot compatibility for Ebony

Error in the comment here.

[snip]

arch/powerpc/boot/bamboo.c line 27

Quoted 9 lines
arch/powerpc/boot/bamboo.c +1 -2
@@ -24,8 +24,7 @@
 #include "4xx.h"
 #include "44x.h"
 
-extern char _dtb_start[];
-extern char _dtb_end[];
+static u8 *bamboo_mac0, *bamboo_mac1;

This additional handling of the MAC addresses should really also be mentioned in the commit comment.

Quoted 59 lines
arch/powerpc/boot/bamboo.c +4 -1
 static void bamboo_fixups(void)
 {
@@ -34,12 +33,15 @@ static void bamboo_fixups(void)
 	ibm440ep_fixup_clocks(sysclk, 11059200);
 	ibm4xx_fixup_memsize();
 	ibm4xx_quiesce_eth((u32 *)0xef600e00, (u32 *)0xef600f00);
+	dt_fixup_mac_addresses(bamboo_mac0, bamboo_mac1);
 }
 
-void bamboo_init(void)
+void bamboo_init(void *mac0, void *mac1)
 {
 	platform_ops.fixups = bamboo_fixups;
 	platform_ops.exit = ibm44x_dbcr_reset;
+	bamboo_mac0 = mac0;
+	bamboo_mac1 = mac1;
 	ft_init(_dtb_start, 0, 32);
 	serial_console_init();
 }
arch/powerpc/boot/treeboot-bamboo.c +19 -3
@@ -12,16 +12,32 @@
 #include "ops.h"
 #include "stdio.h"
 #include "44x.h"
-
-extern char _end[];
+#include "stdlib.h"
 
 BSS_STACK(4096);
 
+#define PIBS_MAC0 0xfffc0400
+#define PIBS_MAC1 0xfffc0500
+char pibs_mac0[6];
+char pibs_mac1[6];
+
+static void read_pibs_mac(void)
+{
+	unsigned long long mac64;
+
+	mac64 = strtoull((char *)PIBS_MAC0, 0, 16);
+	memcpy(&pibs_mac0, (char *)&mac64+2, 6);
+
+	mac64 = strtoull((char *)PIBS_MAC1, 0, 16);
+	memcpy(&pibs_mac1, (char *)&mac64+2, 6);
+}
+
 void platform_init(void)
 {
 	unsigned long end_of_ram = 0x8000000;
 	unsigned long avail_ram = end_of_ram - (unsigned long)_end;
 
 	simple_alloc_init(_end, avail_ram, 32, 64);
-	bamboo_init();
+	read_pibs_mac();
+	bamboo_init((u8 *)&pibs_mac0, (u8 *)&pibs_mac1);
 }
Signature · 4 lines
David Gibson			| I'll have my music baroque, and my code
david AT gibson.dropbear.id.au	| minimalist, thank you.  NOT _the_ _other_
				| _way_ _around_!
http://www.ozlabs.org/~dgibson
author
#3 lore raw

Re: [patch 1/4] cuimage for Bamboo board

Quoted 8 lines · David Gibson
Quoted 5 lines · Josh Boyer

Add a cuboot wrapper for the Bamboo board. This also removes some obsoleted linker declarations that have been moved into ops.h

Heh, well, I know I acked this already, but...

:)

Quoted 9 lines

[snip]

arch/powerpc/boot/cuboot-bamboo.c line 2

Quoted 5 lines
arch/powerpc/boot/cuboot-bamboo.c new file +2 -0
@@ -0,0 +1,30 @@
+/*
+ * Old U-boot compatibility for Ebony

Error in the comment here.

Fixed.

Quoted 8 lines

[snip]

Quoted 6 lines
arch/powerpc/boot/bamboo.c +0 -0
@@ -24,8 +24,7 @@
 #include "4xx.h"
 #include "44x.h"
 
Quoted 6 lines

arch/powerpc/boot/bamboo.c line 27

Quoted 3 lines
arch/powerpc/boot/bamboo.c +1 -2
-extern char _dtb_start[];
-extern char _dtb_end[];
+static u8 *bamboo_mac0, *bamboo_mac1;

This additional handling of the MAC addresses should really also be mentioned in the commit comment.

Quite right. I'll revise the commit comment.

josh

author
#4 lore raw

PATCH 2/4 Make partitions optional in physmap_of

In reply to Josh Boyer

The latest physmap_of driver has a small error where it will fail the probe with:

physmap-flash: probe of fff00000.small-flas failed with error -2

if there are no partition subnodes in the device tree and the old style binding is not used. Since partition definitions are optional, the probe should still succeed.

---
 drivers/mtd/maps/physmap_of.c |    2 ++
 1 file changed, 2 insertions(+)
drivers/mtd/maps/physmap_of.c +2 -0
@@ -142,6 +142,8 @@ static int __devinit process_partitions(
 		}
 	} else {
 		nr_parts = parse_obsolete_partitions(dev, info, dp);
+		if (nr_parts == -ENOENT)
+			nr_parts = 0;
 	}
 
 	if (nr_parts < 0)
Acked-by on v1 2/4
#5 lore raw

Re: [patch 2/4] Make partitions optional in physmap_of

Quoted 10 lines · Josh Boyer

The latest physmap_of driver has a small error where it will fail the probe with:

physmap-flash: probe of fff00000.small-flas failed with error -2

if there are no partition subnodes in the device tree and the old style binding is not used. Since partition definitions are optional, the probe should still succeed.

Signature · 4 lines
David Gibson			| I'll have my music baroque, and my code
david AT gibson.dropbear.id.au	| minimalist, thank you.  NOT _the_ _other_
				| _way_ _around_!
http://www.ozlabs.org/~dgibson
author
#6 lore raw

PATCH 3/4 4xx: Convert Walnut flash mappings to new binding

In reply to Josh Boyer

A new binding for flash devices was recently introduced. This updates the Walnut DTS to use the new binding.

---
 arch/powerpc/boot/dts/walnut.dts |   17 ++++++++++++-----
 1 file changed, 12 insertions(+), 5 deletions(-)
arch/powerpc/boot/dts/walnut.dts +12 -5
@@ -137,6 +137,10 @@
 			dcr-reg = <012 2>;
 			#address-cells = <2>;
 			#size-cells = <1>;
+			/* The ranges property is supplied by the bootwrapper
+			 * and is based on the firmware's configuration of the
+			 * EBC bridge
+			 */
 			clock-frequency = <0>; /* Filled in by zImage */
 
 			sram@0,0 {
@@ -144,13 +148,16 @@
 			};
 
 			flash@0,80000 {
-				device_type = "rom";
-				compatible = "direct-mapped";
-				probe-type = "JEDEC";
+				compatible = "jedec-flash";
 				bank-width = <1>;
-				partitions = <0 80000>;
-				partition-names = "OpenBIOS";
 				reg = <0 80000 80000>;
+				#address-cells = <1>;
+				#size-cells = <1>;
+				partition@0 {
+					label = "OpenBIOS";
+					reg = <0 80000>;
+					read-only;
+				};
 			};
 
 			ds1743@1,0 {
Acked-by on v1 3/4
#7 lore raw

Re: [patch 3/4] 4xx: Convert Walnut flash mappings to new binding

Quoted 4 lines · Josh Boyer

A new binding for flash devices was recently introduced. This updates the Walnut DTS to use the new binding.

We should both really figure out the vendor/device ids of the JEDEC flash chips in use here and on Ebony, and add the appropriate properties as per the binding.

Signature · 4 lines
David Gibson			| I'll have my music baroque, and my code
david AT gibson.dropbear.id.au	| minimalist, thank you.  NOT _the_ _other_
				| _way_ _around_!
http://www.ozlabs.org/~dgibson
author
#8 lore raw

Re: [patch 3/4] 4xx: Convert Walnut flash mappings to new binding

Quoted 10 lines · David Gibson
Quoted 4 lines · Josh Boyer

A new binding for flash devices was recently introduced. This updates the Walnut DTS to use the new binding.

We should both really figure out the vendor/device ids of the JEDEC flash chips in use here and on Ebony, and add the appropriate properties as per the binding.

Yeah, I'll do that soon.

josh

#9 lore raw

Re: [patch 3/4] 4xx: Convert Walnut flash mappings to new binding

In reply to Josh Boyer
Quoted 30 lines · Josh Boyer

A new binding for flash devices was recently introduced. This updates the Walnut DTS to use the new binding.

---
 arch/powerpc/boot/dts/walnut.dts |   17 ++++++++++++-----
 1 file changed, 12 insertions(+), 5 deletions(-)
arch/powerpc/boot/dts/walnut.dts +5 -3
@@ -137,6 +137,10 @@
 			dcr-reg = <012 2>;
 			#address-cells = <2>;
 			#size-cells = <1>;
+			/* The ranges property is supplied by the bootwrapper
+			 * and is based on the firmware's configuration of the
+			 * EBC bridge
+			 */
 			clock-frequency = <0>; /* Filled in by zImage */
 
 			sram@0,0 {
@@ -144,13 +148,16 @@
 			};
 
 			flash@0,80000 {
-				device_type = "rom";
-				compatible = "direct-mapped";
-				probe-type = "JEDEC";
+				compatible = "jedec-flash";
 				bank-width = <1>;

arch/powerpc/boot/dts/walnut.dts line 160

Quoted 10 lines
arch/powerpc/boot/dts/walnut.dts +7 -2
-				partitions = <0 80000>;
-				partition-names = "OpenBIOS";
 				reg = <0 80000 80000>;
+				#address-cells = <1>;
+				#size-cells = <1>;
+				partition@0 {
+					label = "OpenBIOS";
+					reg = <0 80000>;
+					read-only;
+				};

There are not only Bamboo board running PIBS, but running U-Boot too. How should we handle this different FLASH partitioning? Same goes for Ebony too btw.

Best regards,
Stefan

author
#10 lore raw

Re: [patch 3/4] 4xx: Convert Walnut flash mappings to new binding

Quoted 37 lines · Stefan Roese
Quoted 36 lines · Josh Boyer

A new binding for flash devices was recently introduced. This updates the Walnut DTS to use the new binding.

---
 arch/powerpc/boot/dts/walnut.dts |   17 ++++++++++++-----
 1 file changed, 12 insertions(+), 5 deletions(-)
arch/powerpc/boot/dts/walnut.dts +8 -5
@@ -137,6 +137,10 @@
 			dcr-reg = <012 2>;
 			#address-cells = <2>;
 			#size-cells = <1>;
+			/* The ranges property is supplied by the bootwrapper
+			 * and is based on the firmware's configuration of the
+			 * EBC bridge
+			 */
 			clock-frequency = <0>; /* Filled in by zImage */
 
 			sram@0,0 {
@@ -144,13 +148,16 @@
 			};
 
 			flash@0,80000 {
-				device_type = "rom";
-				compatible = "direct-mapped";
-				probe-type = "JEDEC";
+				compatible = "jedec-flash";
 				bank-width = <1>;
-				partitions = <0 80000>;
-				partition-names = "OpenBIOS";
 				reg = <0 80000 80000>;
+				#address-cells = <1>;
+				#size-cells = <1>;
+				partition@0 {
Quoted 8 lines

arch/powerpc/boot/dts/walnut.dts line 160

Quoted 4 lines
arch/powerpc/boot/dts/walnut.dts +4 -0
+					label = "OpenBIOS";
+					reg = <0 80000>;
+					read-only;
+				};

There are not only Bamboo board running PIBS, but running U-Boot too. How should we handle this different FLASH partitioning? Same goes for Ebony too btw.

That's a good question. I'm working on making the NOR flash show up for Bamboo right now, and I had intended to just leave the partition subnodes missing.

josh

#11 lore raw

Re: [patch 3/4] 4xx: Convert Walnut flash mappings to new binding

Quoted 1 line · In message <[email protected]> Josh Boyer wrote:

On Sat, 2007-09-15 at 05:23 +0200, Stefan Roese wrote:

...

Quoted 7 lines
Quoted 3 lines

There are not only Bamboo board running PIBS, but running U-Boot too. How should we handle this different FLASH partitioning? Same goes for Ebony too btw.

That's a good question. I'm working on making the NOR flash show up for Bamboo right now, and I had intended to just leave the partition subnodes missing.

Maybe we can have U-Boot add the partition information if it's missing in the device tree, and extend the mtdparts command in U-Boot to add / adjust settings so they match what is defined in U-Boot.

Stefan, what do you think?

Best regards,

Wolfgang Denk

Signature · 6 lines
DENX Software Engineering GmbH,     MD: Wolfgang Denk & Detlev Zundel
HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany
Phone: (+49)-8142-66989-10 Fax: (+49)-8142-66989-80 Email: [email protected]
Without facts, the decision cannot be made logically. You  must  rely
on your human intuition.
	-- Spock, "Assignment: Earth", stardate unknown
author
#12 lore raw

Re: [patch 3/4] 4xx: Convert Walnut flash mappings to new binding

Quoted 7 lines · Wolfgang Denk
Quoted 1 line · In message <[email protected]> Josh Boyer wrote:

On Sat, 2007-09-15 at 05:23 +0200, Stefan Roese wrote:

...

Quoted 4 lines
Quoted 3 lines

There are not only Bamboo board running PIBS, but running U-Boot too. How should we handle this different FLASH partitioning? Same goes for Ebony too btw.

Quoted 7 lines
Quoted 3 lines

That's a good question. I'm working on making the NOR flash show up for Bamboo right now, and I had intended to just leave the partition subnodes missing.

Maybe we can have U-Boot add the partition information if it's missing in the device tree, and extend the mtdparts command in U-Boot to add / adjust settings so they match what is defined in U-Boot.

That would be great for newer U-Boots. For existing older ones, it doesn't really solve the problem. But then again, there's no way to possibly define all the partitioning schemes people may have adopted to their needs on their boards. And I believe that is why David has RedBoot and command line partitioning override what is in the DTS today.

josh

#13 lore raw

Re: [patch 3/4] 4xx: Convert Walnut flash mappings to new binding

Quoted 9 lines
Quoted 3 lines

Maybe we can have U-Boot add the partition information if it's missing in the device tree, and extend the mtdparts command in U-Boot to add / adjust settings so they match what is defined in U-Boot.

That would be great for newer U-Boots. For existing older ones, it doesn't really solve the problem. But then again, there's no way to possibly define all the partitioning schemes people may have adopted to their needs on their boards. And I believe that is why David has RedBoot and command line partitioning override what is in the DTS today.

Yeah, partitioning information really doesn't belong in the device tree -- with the possible exception of the partitions that the firmware (uboot in this case) needs to know about anyway.

You *can* put all partitioning info in the device tree, but that doesn't mean you *should* :-)

Segher

#14 lore raw

Re: [patch 3/4] 4xx: Convert Walnut flash mappings to new binding

Quoted 11 lines · Segher Boessenkool
Quoted 10 lines
Quoted 3 lines

Maybe we can have U-Boot add the partition information if it's missing in the device tree, and extend the mtdparts command in U-Boot to add / adjust settings so they match what is defined in U-Boot.

That would be great for newer U-Boots. For existing older ones, it doesn't really solve the problem. But then again, there's no way to possibly define all the partitioning schemes people may have adopted to their needs on their boards. And I believe that is why David has RedBoot and command line partitioning override what is in the DTS today.

Quoted 3 lines

Yeah, partitioning information really doesn't belong in the device tree -- with the possible exception of the partitions that the firmware (uboot in this case) needs to know about anyway.

Indeed - but we had just the same problem, only worse, with the old approach of hardcoded, configured-in flash maps.

Quoted 2 lines

You *can* put all partitioning info in the device tree, but that doesn't mean you *should* :-)

Signature · 4 lines
David Gibson			| I'll have my music baroque, and my code
david AT gibson.dropbear.id.au	| minimalist, thank you.  NOT _the_ _other_
				| _way_ _around_!
http://www.ozlabs.org/~dgibson
#15 lore raw

Re: [patch 3/4] 4xx: Convert Walnut flash mappings to new binding

In reply to Wolfgang Denk
Quoted 11 lines · Wolfgang Denk
Quoted 1 line · In message <[email protected]> Josh Boyer wrote:

On Sat, 2007-09-15 at 05:23 +0200, Stefan Roese wrote:

...

Quoted 7 lines
Quoted 3 lines

There are not only Bamboo board running PIBS, but running U-Boot too. How should we handle this different FLASH partitioning? Same goes for Ebony too btw.

That's a good question. I'm working on making the NOR flash show up for Bamboo right now, and I had intended to just leave the partition subnodes missing.

Quoted 5 lines

Maybe we can have U-Boot add the partition information if it's missing in the device tree, and extend the mtdparts command in U-Boot to add / adjust settings so they match what is defined in U-Boot.

Stefan, what do you think?

If U-Boot is supplying a device tree, it should certainly make the partition information match its own idea of the partitions.

For older non-device-tree away u-boot, I guess we'll have to make the cuboot and treeboot wrappers mangle the device tree differently to correct the partition information.

I suspect the easiest way to do this will be for the dts to contain both treeboot and u-boot partition info, and have the wrapper delete or nop the nodes for the other firmware.

Signature · 4 lines
David Gibson			| I'll have my music baroque, and my code
david AT gibson.dropbear.id.au	| minimalist, thank you.  NOT _the_ _other_
				| _way_ _around_!
http://www.ozlabs.org/~dgibson
author
#16 lore raw

PATCH 4/4 4xx: Convert Seqouia flash mappings to new binding

In reply to Josh Boyer

A new binding for flash devices was recently introduced. This updates the Sequoia DTS to use the new binding and enabled MTD in the defconfig.

---
 arch/powerpc/boot/dts/sequoia.dts      |   38 +++++++++----
 arch/powerpc/configs/sequoia_defconfig |   91 +++++++++++++++++++++++++++++++--
 2 files changed, 115 insertions(+), 14 deletions(-)
arch/powerpc/boot/dts/sequoia.dts +27 -11
@@ -142,19 +142,35 @@
 				interrupt-parent = <&UIC1>;
 
 				nor_flash@0,0 {
-					device_type = "rom";
-					compatible = "direct-mapped";
-					probe-type = "CFI";
+					compatible = "amd,s29gl256n", "cfi-flash";
 					bank-width = <2>;
-					partitions = <	0	180000
-							180000	200000
-							380000	3aa0000
-							3e20000	140000
-							3f60000	40000
-							3fa0000	60000>;
-					partition-names = "Kernel", "ramdisk", "file system",
-								"kozio", "env", "u-boot";
 					reg = <0 000000 4000000>;
+					#address-cells = <1>;
+					#size-cells = <1>;
+					partition@0 {
+						label = "Kernel";
+						reg = <0 180000>;
+					};
+					partition@180000 {
+						label = "ramdisk";
+						reg = <180000 200000>;
+					};
+					partition@380000 {
+						label = "file system";
+						reg = <380000 3aa0000>;
+					};
+					partition@3e20000 {
+						label = "kozio";
+						reg = <3e20000 140000>;
+					};
+					partition@3f60000 {
+						label = "env";
+						reg = <3f60000 40000>;
+					};
+					partition@3fa0000 {
+						label = "u-boot";
+						reg = <3fa0000 60000>;
+					};
 				};
 
 			};
arch/powerpc/configs/sequoia_defconfig +88 -3

120 lines not on this page · raw message

Acked-by on v1 4/4
#17 lore raw

Re: [patch 4/4] 4xx: Convert Seqouia flash mappings to new binding

Quoted 4 lines · Josh Boyer

A new binding for flash devices was recently introduced. This updates the Sequoia DTS to use the new binding and enabled MTD in the defconfig.

Signature · 4 lines
David Gibson			| I'll have my music baroque, and my code
david AT gibson.dropbear.id.au	| minimalist, thank you.  NOT _the_ _other_
				| _way_ _around_!
http://www.ozlabs.org/~dgibson