]> git.ipfire.org Git - thirdparty/u-boot.git/commitdiff
arm64: zynqmp: Use fixed-partitions for MTD
authorMichal Simek <michal.simek@amd.com>
Tue, 9 Jun 2026 07:48:18 +0000 (09:48 +0200)
committerMichal Simek <michal.simek@amd.com>
Wed, 8 Jul 2026 06:55:50 +0000 (08:55 +0200)
Describe flash and NAND MTD partitions using the fixed-partitions
compatible under a dedicated partitions subnode. U-Boot only creates
slave MTD devices from this binding in add_mtd_partitions_of(), so
mtd list can show named partitions.

Signed-off-by: Michal Simek <michal.simek@amd.com>
Link: https://lore.kernel.org/r/a9e72b2c62e1b2e5c485302a861e5bae55ec2b83.1780991287.git.michal.simek@amd.com
17 files changed:
arch/arm/dts/zynqmp-sc-revB.dts
arch/arm/dts/zynqmp-topic-miamimp-xilinx-xdp-v1r1.dts
arch/arm/dts/zynqmp-vp-x-a2785-00-revA.dts
arch/arm/dts/zynqmp-vpk120-revA.dts
arch/arm/dts/zynqmp-zc1232-revA.dts
arch/arm/dts/zynqmp-zc1254-revA.dts
arch/arm/dts/zynqmp-zc1751-xm015-dc1.dts
arch/arm/dts/zynqmp-zc1751-xm016-dc2.dts
arch/arm/dts/zynqmp-zc1751-xm017-dc3.dts
arch/arm/dts/zynqmp-zc1751-xm018-dc4.dts
arch/arm/dts/zynqmp-zcu102-revA.dts
arch/arm/dts/zynqmp-zcu104-revA.dts
arch/arm/dts/zynqmp-zcu104-revC.dts
arch/arm/dts/zynqmp-zcu106-revA.dts
arch/arm/dts/zynqmp-zcu111-revA.dts
arch/arm/dts/zynqmp-zcu1275-revA.dts
arch/arm/dts/zynqmp-zcu1275-revB.dts

index 4367136cae8f7c6d5b367ece3c67b47b6be6a8b4..afaecfa5a27a345ced81a92bd4d21867aa1c20fe 100644 (file)
        /* QSPI should also have PINCTRL setup */
        flash@0 {
                compatible = "m25p80", "jedec,spi-nor"; /* mt25qu512abb8e12 512Mib */
-               #address-cells = <1>;
-               #size-cells = <1>;
                reg = <0>;
                spi-tx-bus-width = <4>;
                spi-rx-bus-width = <4>;
                spi-max-frequency = <40000000>; /* 40MHz */
-               partition@0 {
-                       label = "Image Selector";
-                       reg = <0x0 0x80000>; /* 512KB */
-                       read-only;
-                       lock;
-               };
-               partition@80000 {
-                       label = "Image Selector Golden";
-                       reg = <0x80000 0x80000>; /* 512KB */
-                       read-only;
-                       lock;
-               };
-               partition@100000 {
-                       label = "Persistent Register";
-                       reg = <0x100000 0x20000>; /* 128KB */
-               };
-               partition@120000 {
-                       label = "Persistent Register Backup";
-                       reg = <0x120000 0x20000>; /* 128KB */
-               };
-               partition@140000 {
-                       label = "Open_1";
-                       reg = <0x140000 0xc0000>; /* 768KB */
-               };
-               partition@200000 {
-                       label = "Image A (FSBL, PMU, ATF, U-Boot)";
-                       reg = <0x200000 0xd00000>; /* 13MB */
-               };
-               partition@f00000 {
-                       label = "ImgSel Image A Catch";
-                       reg = <0xf00000 0x80000>; /* 512KB */
-                       read-only;
-                       lock;
-               };
-               partition@f80000 {
-                       label = "Image B (FSBL, PMU, ATF, U-Boot)";
-                       reg = <0xf80000 0xd00000>; /* 13MB */
-               };
-               partition@1c80000 {
-                       label = "ImgSel Image B Catch";
-                       reg = <0x1c80000 0x80000>; /* 512KB */
-                       read-only;
-                       lock;
-               };
-               partition@1d00000 {
-                       label = "Open_2";
-                       reg = <0x1d00000 0x100000>; /* 1MB */
-               };
-               partition@1e00000 {
-                       label = "Recovery Image";
-                       reg = <0x1e00000 0x200000>; /* 2MB */
-                       read-only;
-                       lock;
-               };
-               partition@2000000 {
-                       label = "Recovery Image Backup";
-                       reg = <0x2000000 0x200000>; /* 2MB */
-                       read-only;
-                       lock;
-               };
-               partition@2200000 {
-                       label = "U-Boot storage variables";
-                       reg = <0x2200000 0x20000>; /* 128KB */
-               };
-               partition@2220000 {
-                       label = "U-Boot storage variables backup";
-                       reg = <0x2220000 0x20000>; /* 128KB */
-               };
-               partition@2240000 {
-                       label = "SHA256";
-                       reg = <0x2240000 0x40000>; /* 256B but 256KB sector */
-                       read-only;
-                       lock;
-               };
-               partition@2280000 {
-                       label = "Secure OS Storage";
-                       reg = <0x2280000 0x20000>; /* 128KB */
-               };
-               partition@22a0000 {
-                       label = "User";
-                       reg = <0x22a0000 0x1d60000>; /* 29.375 MB */
+               partitions {
+                       compatible = "fixed-partitions";
+                       #address-cells = <1>;
+                       #size-cells = <1>;
+
+                       partition@0 {
+                               label = "Image Selector";
+                               reg = <0x0 0x80000>; /* 512KB */
+                               read-only;
+                               lock;
+                       };
+                       partition@80000 {
+                               label = "Image Selector Golden";
+                               reg = <0x80000 0x80000>; /* 512KB */
+                               read-only;
+                               lock;
+                       };
+                       partition@100000 {
+                               label = "Persistent Register";
+                               reg = <0x100000 0x20000>; /* 128KB */
+                       };
+                       partition@120000 {
+                               label = "Persistent Register Backup";
+                               reg = <0x120000 0x20000>; /* 128KB */
+                       };
+                       partition@140000 {
+                               label = "Open_1";
+                               reg = <0x140000 0xc0000>; /* 768KB */
+                       };
+                       partition@200000 {
+                               label = "Image A (FSBL, PMU, ATF, U-Boot)";
+                               reg = <0x200000 0xd00000>; /* 13MB */
+                       };
+                       partition@f00000 {
+                               label = "ImgSel Image A Catch";
+                               reg = <0xf00000 0x80000>; /* 512KB */
+                               read-only;
+                               lock;
+                       };
+                       partition@f80000 {
+                               label = "Image B (FSBL, PMU, ATF, U-Boot)";
+                               reg = <0xf80000 0xd00000>; /* 13MB */
+                       };
+                       partition@1c80000 {
+                               label = "ImgSel Image B Catch";
+                               reg = <0x1c80000 0x80000>; /* 512KB */
+                               read-only;
+                               lock;
+                       };
+                       partition@1d00000 {
+                               label = "Open_2";
+                               reg = <0x1d00000 0x100000>; /* 1MB */
+                       };
+                       partition@1e00000 {
+                               label = "Recovery Image";
+                               reg = <0x1e00000 0x200000>; /* 2MB */
+                               read-only;
+                               lock;
+                       };
+                       partition@2000000 {
+                               label = "Recovery Image Backup";
+                               reg = <0x2000000 0x200000>; /* 2MB */
+                               read-only;
+                               lock;
+                       };
+                       partition@2200000 {
+                               label = "U-Boot storage variables";
+                               reg = <0x2200000 0x20000>; /* 128KB */
+                       };
+                       partition@2220000 {
+                               label = "U-Boot storage variables backup";
+                               reg = <0x2220000 0x20000>; /* 128KB */
+                       };
+                       partition@2240000 {
+                               label = "SHA256";
+                               reg = <0x2240000 0x40000>; /* 256B but 256KB sector */
+                               read-only;
+                               lock;
+                       };
+                       partition@2280000 {
+                               label = "Secure OS Storage";
+                               reg = <0x2280000 0x20000>; /* 128KB */
+                       };
+                       partition@22a0000 {
+                               label = "User";
+                               reg = <0x22a0000 0x1d60000>; /* 29.375 MB */
+                       };
                };
        };
 };
index 2037686b9b4524cd7e18d0074d94aea3114e2c48..1dc0414b33d69bcfeccf86fa26c5af969300a41b 100644 (file)
                spi-tx-bus-width = <4>;
                spi-rx-bus-width = <4>;
                spi-max-frequency = <166000000>;
-               #address-cells = <1>;
-               #size-cells = <1>;
-               partition@0 {
-                       label = "qspi-boot-bin";
-                       reg = <0x00000 0x60000>;
-               };
-               partition@60000 {
-                       label = "qspi-u-boot-itb";
-                       reg = <0x60000 0x100000>;
-               };
-               partition@160000 {
-                       label = "qspi-u-boot-env";
-                       reg = <0x160000 0x20000>;
-               };
-               partition@200000 {
-                       label = "qspi-rootfs";
-                       reg = <0x200000 0x1e00000>;
+               partitions {
+                       compatible = "fixed-partitions";
+                       #address-cells = <1>;
+                       #size-cells = <1>;
+
+                       partition@0 {
+                               label = "qspi-boot-bin";
+                               reg = <0x00000 0x60000>;
+                       };
+                       partition@60000 {
+                               label = "qspi-u-boot-itb";
+                               reg = <0x60000 0x100000>;
+                       };
+                       partition@160000 {
+                               label = "qspi-u-boot-env";
+                               reg = <0x160000 0x20000>;
+                       };
+                       partition@200000 {
+                               label = "qspi-rootfs";
+                               reg = <0x200000 0x1e00000>;
+                       };
                };
        };
 };
index e9c6d249a8d1f7cfc167aa2dbac647e98d652993..94167770ed600ee02d2235ff20d13606e556b269 100644 (file)
        status = "okay";
        flash@0 {
                compatible = "m25p80", "jedec,spi-nor"; /* u285 - mt25qu512abb8e12 512Mib */
-               #address-cells = <1>;
-               #size-cells = <1>;
                reg = <0>;
                spi-tx-bus-width = <4>; /* maybe 4 here */
                spi-rx-bus-width = <4>;
                spi-max-frequency = <108000000>;
-               partition@0 { /* for testing purpose */
-                       label = "qspi";
-                       reg = <0 0x4000000>;
+               partitions {
+                       compatible = "fixed-partitions";
+                       #address-cells = <1>;
+                       #size-cells = <1>;
+
+                       partition@0 { /* for testing purpose */
+                               label = "qspi";
+                               reg = <0 0x4000000>;
+                       };
                };
        };
 };
index bd1e255718703a23991ec1a93c39e3b999013969..3e461d9c4d068e15a53be4e9c8163390bf5427a7 100644 (file)
        status = "okay";
        flash@0 {
                compatible = "m25p80", "jedec,spi-nor"; /* mt25qu512abb8e12 512Mib */
-               #address-cells = <1>;
-               #size-cells = <1>;
                reg = <0>;
                spi-tx-bus-width = <4>;
                spi-rx-bus-width = <4>;
                spi-max-frequency = <108000000>;
-               partition@0 { /* for testing purpose */
-                       label = "qspi";
-                       reg = <0 0x4000000>;
+               partitions {
+                       compatible = "fixed-partitions";
+                       #address-cells = <1>;
+                       #size-cells = <1>;
+
+                       partition@0 { /* for testing purpose */
+                               label = "qspi";
+                               reg = <0 0x4000000>;
+                       };
                };
        };
 };
index 9dcb9095371295e07538d1f8658f2458440de903..34e5b6edab102add6ac7bc349ba6eface34b4b1d 100644 (file)
 &qspi {
        status = "okay";
        flash@0 {
-               compatible = "m25p80", "jedec,spi-nor"; /* 32MB FIXME */
-               #address-cells = <1>;
-               #size-cells = <1>;
+               compatible = "m25p80", "jedec,spi-nor"; /* 32MB */
                reg = <0x0>;
                spi-tx-bus-width = <4>;
                spi-rx-bus-width = <4>;
                spi-max-frequency = <108000000>; /* Based on DC1 spec */
-               partition@0 { /* for testing purpose */
-                       label = "qspi-fsbl-uboot";
-                       reg = <0x0 0x100000>;
-               };
-               partition@100000 { /* for testing purpose */
-                       label = "qspi-linux";
-                       reg = <0x100000 0x500000>;
-               };
-               partition@600000 { /* for testing purpose */
-                       label = "qspi-device-tree";
-                       reg = <0x600000 0x20000>;
-               };
-               partition@620000 { /* for testing purpose */
-                       label = "qspi-rootfs";
-                       reg = <0x620000 0x5e0000>;
+               partitions {
+                       compatible = "fixed-partitions";
+                       #address-cells = <1>;
+                       #size-cells = <1>;
+
+                       partition@0 { /* for testing purpose */
+                               label = "qspi-fsbl-uboot";
+                               reg = <0x0 0x100000>;
+                       };
+                       partition@100000 { /* for testing purpose */
+                               label = "qspi-linux";
+                               reg = <0x100000 0x500000>;
+                       };
+                       partition@600000 { /* for testing purpose */
+                               label = "qspi-device-tree";
+                               reg = <0x600000 0x20000>;
+                       };
+                       partition@620000 { /* for testing purpose */
+                               label = "qspi-rootfs";
+                               reg = <0x620000 0x5e0000>;
+                       };
                };
        };
 };
index cf3e95832040e5ef468d02dfe531f919bf0bfa4d..827143377b966a18de815fb3d602d79a0df2d793 100644 (file)
        status = "okay";
        flash@0 {
                compatible = "m25p80", "jedec,spi-nor"; /* 32MB */
-               #address-cells = <1>;
-               #size-cells = <1>;
                reg = <0x0>;
                spi-tx-bus-width = <4>;
                spi-rx-bus-width = <4>; /* FIXME also DUAL configuration possible */
                spi-max-frequency = <108000000>; /* Based on DC1 spec */
-               partition@0 { /* for testing purpose */
-                       label = "qspi-fsbl-uboot";
-                       reg = <0x0 0x100000>;
-               };
-               partition@100000 { /* for testing purpose */
-                       label = "qspi-linux";
-                       reg = <0x100000 0x500000>;
-               };
-               partition@600000 { /* for testing purpose */
-                       label = "qspi-device-tree";
-                       reg = <0x600000 0x20000>;
-               };
-               partition@620000 { /* for testing purpose */
-                       label = "qspi-rootfs";
-                       reg = <0x620000 0x5e0000>;
+               partitions {
+                       compatible = "fixed-partitions";
+                       #address-cells = <1>;
+                       #size-cells = <1>;
+
+                       partition@0 { /* for testing purpose */
+                               label = "qspi-fsbl-uboot";
+                               reg = <0x0 0x100000>;
+                       };
+                       partition@100000 { /* for testing purpose */
+                               label = "qspi-linux";
+                               reg = <0x100000 0x500000>;
+                       };
+                       partition@600000 { /* for testing purpose */
+                               label = "qspi-device-tree";
+                               reg = <0x600000 0x20000>;
+                       };
+                       partition@620000 { /* for testing purpose */
+                               label = "qspi-rootfs";
+                               reg = <0x620000 0x5e0000>;
+                       };
                };
        };
 };
index 32f317f3df40bbb2390cd2d27c65f8104388201e..33efdbf0e25e07f4a167b9aae90007bb34c84883 100644 (file)
        num-cs = <2>;
        flash@0 {
                compatible = "m25p80", "jedec,spi-nor"; /* Micron MT25QU512ABB8ESF */
-               #address-cells = <1>;
-               #size-cells = <1>;
                reg = <0>, <1>;
                parallel-memories = /bits/ 64 <0x4000000 0x4000000>; /* 64MB */
                spi-tx-bus-width = <4>;
                spi-rx-bus-width = <4>;
                spi-max-frequency = <108000000>; /* Based on DC1 spec */
-               partition@0 { /* for testing purpose */
-                       label = "qspi-fsbl-uboot";
-                       reg = <0x0 0x100000>;
-               };
-               partition@100000 { /* for testing purpose */
-                       label = "qspi-linux";
-                       reg = <0x100000 0x500000>;
-               };
-               partition@600000 { /* for testing purpose */
-                       label = "qspi-device-tree";
-                       reg = <0x600000 0x20000>;
-               };
-               partition@620000 { /* for testing purpose */
-                       label = "qspi-rootfs";
-                       reg = <0x620000 0x5e0000>;
+               partitions {
+                       compatible = "fixed-partitions";
+                       #address-cells = <1>;
+                       #size-cells = <1>;
+
+                       partition@0 { /* for testing purpose */
+                               label = "qspi-fsbl-uboot";
+                               reg = <0x0 0x100000>;
+                       };
+                       partition@100000 { /* for testing purpose */
+                               label = "qspi-linux";
+                               reg = <0x100000 0x500000>;
+                       };
+                       partition@600000 { /* for testing purpose */
+                               label = "qspi-device-tree";
+                               reg = <0x600000 0x20000>;
+                       };
+                       partition@620000 { /* for testing purpose */
+                               label = "qspi-rootfs";
+                               reg = <0x620000 0x5e0000>;
+                       };
                };
        };
 };
index e3d5cf972e83eb2926aa4fce637b4c7fe922cefa..13c304520a6029c51a6e82e1c86d360e303a59a3 100644 (file)
 
        nand@0 {
                reg = <0x0>;
-               #address-cells = <0x2>;
-               #size-cells = <0x1>;
                nand-ecc-mode = "hw";
                nand-rb = <0>;
                label = "main-storage-0";
                nand-ecc-strength = <24>;
                nand-on-flash-bbt;
 
-               partition@0 {   /* for testing purpose */
-                       label = "nand-fsbl-uboot";
-                       reg = <0x0 0x0 0x400000>;
-               };
-               partition@1 {   /* for testing purpose */
-                       label = "nand-linux";
-                       reg = <0x0 0x400000 0x1400000>;
-               };
-               partition@2 {   /* for testing purpose */
-                       label = "nand-device-tree";
-                       reg = <0x0 0x1800000 0x400000>;
-               };
-               partition@3 {   /* for testing purpose */
-                       label = "nand-rootfs";
-                       reg = <0x0 0x1c00000 0x1400000>;
-               };
-               partition@4 {   /* for testing purpose */
-                       label = "nand-bitstream";
-                       reg = <0x0 0x3000000 0x400000>;
-               };
-               partition@5 {   /* for testing purpose */
-                       label = "nand-misc";
-                       reg = <0x0 0x3400000 0xfcc00000>;
+               partitions {
+                       compatible = "fixed-partitions";
+                       #address-cells = <2>;
+                       #size-cells = <1>;
+
+                       partition@0 {   /* for testing purpose */
+                               label = "nand-fsbl-uboot";
+                               reg = <0x0 0x0 0x400000>;
+                       };
+                       partition@1 {   /* for testing purpose */
+                               label = "nand-linux";
+                               reg = <0x0 0x400000 0x1400000>;
+                       };
+                       partition@2 {   /* for testing purpose */
+                               label = "nand-device-tree";
+                               reg = <0x0 0x1800000 0x400000>;
+                       };
+                       partition@3 {   /* for testing purpose */
+                               label = "nand-rootfs";
+                               reg = <0x0 0x1c00000 0x1400000>;
+                       };
+                       partition@4 {   /* for testing purpose */
+                               label = "nand-bitstream";
+                               reg = <0x0 0x3000000 0x400000>;
+                       };
+                       partition@5 {   /* for testing purpose */
+                               label = "nand-misc";
+                               reg = <0x0 0x3400000 0xfcc00000>;
+                       };
                };
        };
        nand@1 {
                reg = <0x1>;
-               #address-cells = <0x2>;
-               #size-cells = <0x1>;
                nand-ecc-mode = "hw";
                nand-rb = <0>;
                label = "main-storage-1";
                nand-ecc-strength = <24>;
                nand-on-flash-bbt;
 
-               partition@0 {   /* for testing purpose */
-                       label = "nand1-fsbl-uboot";
-                       reg = <0x0 0x0 0x400000>;
-               };
-               partition@1 {   /* for testing purpose */
-                       label = "nand1-linux";
-                       reg = <0x0 0x400000 0x1400000>;
-               };
-               partition@2 {   /* for testing purpose */
-                       label = "nand1-device-tree";
-                       reg = <0x0 0x1800000 0x400000>;
-               };
-               partition@3 {   /* for testing purpose */
-                       label = "nand1-rootfs";
-                       reg = <0x0 0x1c00000 0x1400000>;
-               };
-               partition@4 {   /* for testing purpose */
-                       label = "nand1-bitstream";
-                       reg = <0x0 0x3000000 0x400000>;
-               };
-               partition@5 {   /* for testing purpose */
-                       label = "nand1-misc";
-                       reg = <0x0 0x3400000 0xfcc00000>;
+               partitions {
+                       compatible = "fixed-partitions";
+                       #address-cells = <2>;
+                       #size-cells = <1>;
+
+                       partition@0 {   /* for testing purpose */
+                               label = "nand1-fsbl-uboot";
+                               reg = <0x0 0x0 0x400000>;
+                       };
+                       partition@1 {   /* for testing purpose */
+                               label = "nand1-linux";
+                               reg = <0x0 0x400000 0x1400000>;
+                       };
+                       partition@2 {   /* for testing purpose */
+                               label = "nand1-device-tree";
+                               reg = <0x0 0x1800000 0x400000>;
+                       };
+                       partition@3 {   /* for testing purpose */
+                               label = "nand1-rootfs";
+                               reg = <0x0 0x1c00000 0x1400000>;
+                       };
+                       partition@4 {   /* for testing purpose */
+                               label = "nand1-bitstream";
+                               reg = <0x0 0x3000000 0x400000>;
+                       };
+                       partition@5 {   /* for testing purpose */
+                               label = "nand1-misc";
+                               reg = <0x0 0x3400000 0xfcc00000>;
+                       };
                };
        };
 };
        pinctrl-0 = <&pinctrl_spi0_default>;
 
        spi0_flash0: flash@0 {
-               #address-cells = <1>;
-               #size-cells = <1>;
                compatible = "sst,sst25wf080", "jedec,spi-nor";
                spi-max-frequency = <50000000>;
                reg = <0>;
+               partitions {
+                       compatible = "fixed-partitions";
+                       #address-cells = <1>;
+                       #size-cells = <1>;
 
-               partition@0 {
-                       label = "spi0-data";
-                       reg = <0x0 0x100000>;
+                       partition@0 {
+                               label = "spi0-data";
+                               reg = <0x0 0x100000>;
+                       };
                };
        };
 };
        pinctrl-0 = <&pinctrl_spi1_default>;
 
        spi1_flash0: flash@0 {
-               #address-cells = <1>;
-               #size-cells = <1>;
                compatible = "atmel,at45db041e", "atmel,at45", "atmel,dataflash";
                spi-max-frequency = <20000000>;
                reg = <0>;
-
-               partition@0 {
-                       label = "spi1-data";
-                       reg = <0x0 0x84000>;
+               partitions {
+                       compatible = "fixed-partitions";
+                       #address-cells = <1>;
+                       #size-cells = <1>;
+
+                       partition@0 {
+                               label = "spi1-data";
+                               reg = <0x0 0x84000>;
+                       };
                };
        };
 };
index a8856c20f5b57b16cb2f6346fa3c5c1989a4d781..796669fc92c04b2b865a28ca0dc086cbf2a10345 100644 (file)
 
        nand@0 {
                reg = <0x0>;
-               #address-cells = <0x2>;
-               #size-cells = <0x1>;
                nand-ecc-mode = "hw";
                nand-rb = <0>;
                label = "main-storage-0";
                nand-ecc-strength = <24>;
                nand-on-flash-bbt;
 
-               partition@0 {   /* for testing purpose */
-                       label = "nand-fsbl-uboot";
-                       reg = <0x0 0x0 0x400000>;
-               };
-               partition@1 {   /* for testing purpose */
-                       label = "nand-linux";
-                       reg = <0x0 0x400000 0x1400000>;
-               };
-               partition@2 {   /* for testing purpose */
-                       label = "nand-device-tree";
-                       reg = <0x0 0x1800000 0x400000>;
-               };
-               partition@3 {   /* for testing purpose */
-                       label = "nand-rootfs";
-                       reg = <0x0 0x1c00000 0x1400000>;
-               };
-               partition@4 {   /* for testing purpose */
-                       label = "nand-bitstream";
-                       reg = <0x0 0x3000000 0x400000>;
-               };
-               partition@5 {   /* for testing purpose */
-                       label = "nand-misc";
-                       reg = <0x0 0x3400000 0xfcc00000>;
+               partitions {
+                       compatible = "fixed-partitions";
+                       #address-cells = <2>;
+                       #size-cells = <1>;
+
+                       partition@0 {   /* for testing purpose */
+                               label = "nand-fsbl-uboot";
+                               reg = <0x0 0x0 0x400000>;
+                       };
+                       partition@1 {   /* for testing purpose */
+                               label = "nand-linux";
+                               reg = <0x0 0x400000 0x1400000>;
+                       };
+                       partition@2 {   /* for testing purpose */
+                               label = "nand-device-tree";
+                               reg = <0x0 0x1800000 0x400000>;
+                       };
+                       partition@3 {   /* for testing purpose */
+                               label = "nand-rootfs";
+                               reg = <0x0 0x1c00000 0x1400000>;
+                       };
+                       partition@4 {   /* for testing purpose */
+                               label = "nand-bitstream";
+                               reg = <0x0 0x3000000 0x400000>;
+                       };
+                       partition@5 {   /* for testing purpose */
+                               label = "nand-misc";
+                               reg = <0x0 0x3400000 0xfcc00000>;
+                       };
                };
        };
        nand@1 {
                reg = <0x1>;
-               #address-cells = <0x2>;
-               #size-cells = <0x1>;
                nand-ecc-mode = "hw";
                nand-rb = <0>;
                label = "main-storage-1";
                nand-ecc-step-size = <1024>;
                nand-ecc-strength = <24>;
                nand-on-flash-bbt;
-
-               partition@0 {   /* for testing purpose */
-                       label = "nand1-fsbl-uboot";
-                       reg = <0x0 0x0 0x400000>;
-               };
-               partition@1 {   /* for testing purpose */
-                       label = "nand1-linux";
-                       reg = <0x0 0x400000 0x1400000>;
-               };
-               partition@2 {   /* for testing purpose */
-                       label = "nand1-device-tree";
-                       reg = <0x0 0x1800000 0x400000>;
-               };
-               partition@3 {   /* for testing purpose */
-                       label = "nand1-rootfs";
-                       reg = <0x0 0x1c00000 0x1400000>;
-               };
-               partition@4 {   /* for testing purpose */
-                       label = "nand1-bitstream";
-                       reg = <0x0 0x3000000 0x400000>;
-               };
-               partition@5 {   /* for testing purpose */
-                       label = "nand1-misc";
-                       reg = <0x0 0x3400000 0xfcc00000>;
+               partitions {
+                       compatible = "fixed-partitions";
+                       #address-cells = <2>;
+                       #size-cells = <1>;
+
+                       partition@0 {   /* for testing purpose */
+                               label = "nand1-fsbl-uboot";
+                               reg = <0x0 0x0 0x400000>;
+                       };
+                       partition@1 {   /* for testing purpose */
+                               label = "nand1-linux";
+                               reg = <0x0 0x400000 0x1400000>;
+                       };
+                       partition@2 {   /* for testing purpose */
+                               label = "nand1-device-tree";
+                               reg = <0x0 0x1800000 0x400000>;
+                       };
+                       partition@3 {   /* for testing purpose */
+                               label = "nand1-rootfs";
+                               reg = <0x0 0x1c00000 0x1400000>;
+                       };
+                       partition@4 {   /* for testing purpose */
+                               label = "nand1-bitstream";
+                               reg = <0x0 0x3000000 0x400000>;
+                       };
+                       partition@5 {   /* for testing purpose */
+                               label = "nand1-misc";
+                               reg = <0x0 0x3400000 0xfcc00000>;
+                       };
                };
        };
 };
index 3b03b39e456aa4fa2a5aa287c69b1d2b4062d228..cd80aed9a3880664c4341db44fd3f6a7b1cae401 100644 (file)
        status = "okay";
        flash@0 {
                compatible = "m25p80", "jedec,spi-nor"; /* 32MB */
-               #address-cells = <1>;
-               #size-cells = <1>;
                reg = <0x0>;
                spi-tx-bus-width = <4>;
                spi-rx-bus-width = <4>; /* also DUAL configuration possible */
                spi-max-frequency = <108000000>; /* Based on DC1 spec */
-               partition@0 { /* for testing purpose */
-                       label = "qspi-fsbl-uboot";
-                       reg = <0x0 0x100000>;
-               };
-               partition@100000 { /* for testing purpose */
-                       label = "qspi-linux";
-                       reg = <0x100000 0x500000>;
-               };
-               partition@600000 { /* for testing purpose */
-                       label = "qspi-device-tree";
-                       reg = <0x600000 0x20000>;
-               };
-               partition@620000 { /* for testing purpose */
-                       label = "qspi-rootfs";
-                       reg = <0x620000 0x5e0000>;
+               partitions {
+                       compatible = "fixed-partitions";
+                       #address-cells = <1>;
+                       #size-cells = <1>;
+
+                       partition@0 { /* for testing purpose */
+                               label = "qspi-fsbl-uboot";
+                               reg = <0x0 0x100000>;
+                       };
+                       partition@100000 { /* for testing purpose */
+                               label = "qspi-linux";
+                               reg = <0x100000 0x500000>;
+                       };
+                       partition@600000 { /* for testing purpose */
+                               label = "qspi-device-tree";
+                               reg = <0x600000 0x20000>;
+                       };
+                       partition@620000 { /* for testing purpose */
+                               label = "qspi-rootfs";
+                               reg = <0x620000 0x5e0000>;
+                       };
                };
        };
 };
index 3d71742fcbee963af06ffd2478e7b79e8f017228..9590dd1cd92a3553a164db0e51466c1219010738 100644 (file)
        num-cs = <2>;
        flash@0 {
                compatible = "m25p80", "jedec,spi-nor"; /* 32MB */
-               #address-cells = <1>;
-               #size-cells = <1>;
                reg = <0>, <1>;
                parallel-memories = /bits/ 64 <0x4000000 0x4000000>; /* 64MB */
                spi-tx-bus-width = <4>;
                spi-rx-bus-width = <4>; /* FIXME also DUAL configuration possible */
                spi-max-frequency = <108000000>; /* Based on DC1 spec */
-               partition@0 { /* for testing purpose */
-                       label = "qspi-fsbl-uboot";
-                       reg = <0x0 0x100000>;
-               };
-               partition@100000 { /* for testing purpose */
-                       label = "qspi-linux";
-                       reg = <0x100000 0x500000>;
-               };
-               partition@600000 { /* for testing purpose */
-                       label = "qspi-device-tree";
-                       reg = <0x600000 0x20000>;
-               };
-               partition@620000 { /* for testing purpose */
-                       label = "qspi-rootfs";
-                       reg = <0x620000 0x5e0000>;
+               partitions {
+                       compatible = "fixed-partitions";
+                       #address-cells = <1>;
+                       #size-cells = <1>;
+
+                       partition@0 { /* for testing purpose */
+                               label = "qspi-fsbl-uboot";
+                               reg = <0x0 0x100000>;
+                       };
+                       partition@100000 { /* for testing purpose */
+                               label = "qspi-linux";
+                               reg = <0x100000 0x500000>;
+                       };
+                       partition@600000 { /* for testing purpose */
+                               label = "qspi-device-tree";
+                               reg = <0x600000 0x20000>;
+                       };
+                       partition@620000 { /* for testing purpose */
+                               label = "qspi-rootfs";
+                               reg = <0x620000 0x5e0000>;
+                       };
                };
        };
 };
index b4e62bf6bb611c433dc353525905715794ba0ae2..3fe7cb410bcfb88e37269d990a808e93554f0642 100644 (file)
        status = "okay";
        flash@0 {
                compatible = "m25p80", "jedec,spi-nor"; /* n25q512a 128MiB */
-               #address-cells = <1>;
-               #size-cells = <1>;
                reg = <0x0>;
                spi-tx-bus-width = <4>;
                spi-rx-bus-width = <4>;
                spi-max-frequency = <108000000>; /* Based on DC1 spec */
-               partition@0 { /* for testing purpose */
-                       label = "qspi-fsbl-uboot";
-                       reg = <0x0 0x100000>;
-               };
-               partition@100000 { /* for testing purpose */
-                       label = "qspi-linux";
-                       reg = <0x100000 0x500000>;
-               };
-               partition@600000 { /* for testing purpose */
-                       label = "qspi-device-tree";
-                       reg = <0x600000 0x20000>;
-               };
-               partition@620000 { /* for testing purpose */
-                       label = "qspi-rootfs";
-                       reg = <0x620000 0x5e0000>;
+               partitions {
+                       compatible = "fixed-partitions";
+                       #address-cells = <1>;
+                       #size-cells = <1>;
+
+                       partition@0 { /* for testing purpose */
+                               label = "qspi-fsbl-uboot";
+                               reg = <0x0 0x100000>;
+                       };
+                       partition@100000 { /* for testing purpose */
+                               label = "qspi-linux";
+                               reg = <0x100000 0x500000>;
+                       };
+                       partition@600000 { /* for testing purpose */
+                               label = "qspi-device-tree";
+                               reg = <0x600000 0x20000>;
+                       };
+                       partition@620000 { /* for testing purpose */
+                               label = "qspi-rootfs";
+                               reg = <0x620000 0x5e0000>;
+                       };
                };
        };
 };
index f7a91402a097c77e67c7fad102756d170be4cead..21ce50e1da93bfe2c8a684d6a87e3a9108812350 100644 (file)
        status = "okay";
        flash@0 {
                compatible = "m25p80", "jedec,spi-nor"; /* n25q512a 128MiB */
-               #address-cells = <1>;
-               #size-cells = <1>;
                reg = <0x0>;
                spi-tx-bus-width = <4>;
                spi-rx-bus-width = <4>;
                spi-max-frequency = <108000000>; /* Based on DC1 spec */
-               partition@0 { /* for testing purpose */
-                       label = "qspi-fsbl-uboot";
-                       reg = <0x0 0x100000>;
-               };
-               partition@100000 { /* for testing purpose */
-                       label = "qspi-linux";
-                       reg = <0x100000 0x500000>;
-               };
-               partition@600000 { /* for testing purpose */
-                       label = "qspi-device-tree";
-                       reg = <0x600000 0x20000>;
-               };
-               partition@620000 { /* for testing purpose */
-                       label = "qspi-rootfs";
-                       reg = <0x620000 0x5e0000>;
+               partitions {
+                       compatible = "fixed-partitions";
+                       #address-cells = <1>;
+                       #size-cells = <1>;
+
+                       partition@0 { /* for testing purpose */
+                               label = "qspi-fsbl-uboot";
+                               reg = <0x0 0x100000>;
+                       };
+                       partition@100000 { /* for testing purpose */
+                               label = "qspi-linux";
+                               reg = <0x100000 0x500000>;
+                       };
+                       partition@600000 { /* for testing purpose */
+                               label = "qspi-device-tree";
+                               reg = <0x600000 0x20000>;
+                       };
+                       partition@620000 { /* for testing purpose */
+                               label = "qspi-rootfs";
+                               reg = <0x620000 0x5e0000>;
+                       };
                };
        };
 };
index 5eb5f77220d6781e57b64239656fc10fb13973a5..0ac1472c55dd9c95af2bb3eb3706d23b948a8f53 100644 (file)
        num-cs = <2>;
        flash@0 {
                compatible = "m25p80", "jedec,spi-nor"; /* 32MB */
-               #address-cells = <1>;
-               #size-cells = <1>;
                reg = <0>, <1>;
                parallel-memories = /bits/ 64 <0x4000000 0x4000000>; /* 64MB */
                spi-tx-bus-width = <4>;
                spi-rx-bus-width = <4>; /* FIXME also DUAL configuration possible */
                spi-max-frequency = <108000000>; /* Based on DC1 spec */
-               partition@0 { /* for testing purpose */
-                       label = "qspi-fsbl-uboot";
-                       reg = <0x0 0x100000>;
-               };
-               partition@100000 { /* for testing purpose */
-                       label = "qspi-linux";
-                       reg = <0x100000 0x500000>;
-               };
-               partition@600000 { /* for testing purpose */
-                       label = "qspi-device-tree";
-                       reg = <0x600000 0x20000>;
-               };
-               partition@620000 { /* for testing purpose */
-                       label = "qspi-rootfs";
-                       reg = <0x620000 0x5e0000>;
+               partitions {
+                       compatible = "fixed-partitions";
+                       #address-cells = <1>;
+                       #size-cells = <1>;
+
+                       partition@0 { /* for testing purpose */
+                               label = "qspi-fsbl-uboot";
+                               reg = <0x0 0x100000>;
+                       };
+                       partition@100000 { /* for testing purpose */
+                               label = "qspi-linux";
+                               reg = <0x100000 0x500000>;
+                       };
+                       partition@600000 { /* for testing purpose */
+                               label = "qspi-device-tree";
+                               reg = <0x600000 0x20000>;
+                       };
+                       partition@620000 { /* for testing purpose */
+                               label = "qspi-rootfs";
+                               reg = <0x620000 0x5e0000>;
+                       };
                };
        };
 };
index 72d331a740fa7bc58124230210feb5d59af09663..7894daeca9433939570ed10c5535b4c9ec6a70e6 100644 (file)
        num-cs = <2>;
        flash@0 {
                compatible = "m25p80", "jedec,spi-nor"; /* 32MB */
-               #address-cells = <1>;
-               #size-cells = <1>;
                reg = <0>, <1>;
                parallel-memories = /bits/ 64 <0x10000000 0x10000000>; /* 256MB */
                spi-tx-bus-width = <4>;
                spi-rx-bus-width = <4>; /* FIXME also DUAL configuration possible */
                spi-max-frequency = <108000000>; /* Based on DC1 spec */
-               partition@0 { /* for testing purpose */
-                       label = "qspi-fsbl-uboot";
-                       reg = <0x0 0x100000>;
-               };
-               partition@100000 { /* for testing purpose */
-                       label = "qspi-linux";
-                       reg = <0x100000 0x500000>;
-               };
-               partition@600000 { /* for testing purpose */
-                       label = "qspi-device-tree";
-                       reg = <0x600000 0x20000>;
-               };
-               partition@620000 { /* for testing purpose */
-                       label = "qspi-rootfs";
-                       reg = <0x620000 0x5e0000>;
+               partitions {
+                       compatible = "fixed-partitions";
+                       #address-cells = <1>;
+                       #size-cells = <1>;
+
+                       partition@0 { /* for testing purpose */
+                               label = "qspi-fsbl-uboot";
+                               reg = <0x0 0x100000>;
+                       };
+                       partition@100000 { /* for testing purpose */
+                               label = "qspi-linux";
+                               reg = <0x100000 0x500000>;
+                       };
+                       partition@600000 { /* for testing purpose */
+                               label = "qspi-device-tree";
+                               reg = <0x600000 0x20000>;
+                       };
+                       partition@620000 { /* for testing purpose */
+                               label = "qspi-rootfs";
+                               reg = <0x620000 0x5e0000>;
+                       };
                };
        };
 };
index cc9f5b160254d1ec19306a9d8ab8efbd6b48661d..b9d51fadc2ab7021b5a318641b89bf4a86dac655 100644 (file)
        status = "okay";
        flash@0 {
                compatible = "m25p80", "jedec,spi-nor"; /* 32MB */
-               #address-cells = <1>;
-               #size-cells = <1>;
                reg = <0x0>;
                spi-tx-bus-width = <4>;
                spi-rx-bus-width = <4>; /* FIXME also DUAL configuration possible */
                spi-max-frequency = <108000000>; /* Based on DC1 spec */
-               partition@0 { /* for testing purpose */
-                       label = "qspi-fsbl-uboot";
-                       reg = <0x0 0x100000>;
-               };
-               partition@100000 { /* for testing purpose */
-                       label = "qspi-linux";
-                       reg = <0x100000 0x500000>;
-               };
-               partition@600000 { /* for testing purpose */
-                       label = "qspi-device-tree";
-                       reg = <0x600000 0x20000>;
-               };
-               partition@620000 { /* for testing purpose */
-                       label = "qspi-rootfs";
-                       reg = <0x620000 0x5e0000>;
+               partitions {
+                       compatible = "fixed-partitions";
+                       #address-cells = <1>;
+                       #size-cells = <1>;
+
+                       partition@0 { /* for testing purpose */
+                               label = "qspi-fsbl-uboot";
+                               reg = <0x0 0x100000>;
+                       };
+                       partition@100000 { /* for testing purpose */
+                               label = "qspi-linux";
+                               reg = <0x100000 0x500000>;
+                       };
+                       partition@600000 { /* for testing purpose */
+                               label = "qspi-device-tree";
+                               reg = <0x600000 0x20000>;
+                       };
+                       partition@620000 { /* for testing purpose */
+                               label = "qspi-rootfs";
+                               reg = <0x620000 0x5e0000>;
+                       };
                };
        };
 };
index f78da03628001cdf3c0f0e8e1c220a023eda8ff2..f26d9843243b9573b9ce30b4e1184d2d16273905 100644 (file)
        status = "okay";
        flash@0 {
                compatible = "m25p80", "jedec,spi-nor"; /* 32MB */
-               #address-cells = <1>;
-               #size-cells = <1>;
                reg = <0x0>;
                spi-tx-bus-width = <1>;
                spi-rx-bus-width = <1>;
                spi-max-frequency = <108000000>; /* Based on DC1 spec */
-               partition@0 { /* for testing purpose */
-                       label = "qspi-fsbl-uboot";
-                       reg = <0x0 0x100000>;
-               };
-               partition@100000 { /* for testing purpose */
-                       label = "qspi-linux";
-                       reg = <0x100000 0x500000>;
-               };
-               partition@600000 { /* for testing purpose */
-                       label = "qspi-device-tree";
-                       reg = <0x600000 0x20000>;
-               };
-               partition@620000 { /* for testing purpose */
-                       label = "qspi-rootfs";
-                       reg = <0x620000 0x5e0000>;
+               partitions {
+                       compatible = "fixed-partitions";
+                       #address-cells = <1>;
+                       #size-cells = <1>;
+
+                       partition@0 { /* for testing purpose */
+                               label = "qspi-fsbl-uboot";
+                               reg = <0x0 0x100000>;
+                       };
+                       partition@100000 { /* for testing purpose */
+                               label = "qspi-linux";
+                               reg = <0x100000 0x500000>;
+                       };
+                       partition@600000 { /* for testing purpose */
+                               label = "qspi-device-tree";
+                               reg = <0x600000 0x20000>;
+                       };
+                       partition@620000 { /* for testing purpose */
+                               label = "qspi-rootfs";
+                               reg = <0x620000 0x5e0000>;
+                       };
                };
        };
 };