Skip to content

Commit 36e9e1a

Browse files
Mihai Sainclaudiubeznea
authored andcommitted
ARM: dts: microchip: sama7g54_curiosity: Add fixed-partitions for spi-nor flash
Add fixed-partitions for spi-nor flash to match the at91 boot flow and layout of the nand flash. Partitions can be listed from /proc/mtd: [root@sama7g54 ~]$ cat /proc/mtd | grep qspi mtd6: 00040000 00001000 "qspi1: at91bootstrap" mtd7: 00100000 00001000 "qspi1: u-boot" mtd8: 00040000 00001000 "qspi1: u-boot env" mtd9: 00080000 00001000 "qspi1: device tree" mtd10: 00600000 00001000 "qspi1: kernel" [root@sama7g54 ~]$ mtdinfo /dev/mtd10 mtd10 Name: qspi1: kernel Type: nor Eraseblock size: 4096 bytes, 4.0 KiB Amount of eraseblocks: 1536 (6291456 bytes, 6.0 MiB) Minimum input/output unit size: 1 byte Sub-page size: 1 byte Character device major/minor: 90:20 Bad blocks are allowed: false Device is writable: true Signed-off-by: Mihai Sain <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Claudiu Beznea <[email protected]>
1 parent e634fd7 commit 36e9e1a

File tree

1 file changed

+32
-0
lines changed

1 file changed

+32
-0
lines changed

arch/arm/boot/dts/microchip/at91-sama7g54_curiosity.dts

Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -369,6 +369,38 @@
369369
spi-tx-bus-width = <4>;
370370
spi-rx-bus-width = <4>;
371371
m25p,fast-read;
372+
label = "at91-qspi";
373+
374+
partitions {
375+
compatible = "fixed-partitions";
376+
#address-cells = <1>;
377+
#size-cells = <1>;
378+
379+
at91bootstrap@0 {
380+
label = "qspi1: at91bootstrap";
381+
reg = <0x0 0x40000>;
382+
};
383+
384+
bootloader@40000 {
385+
label = "qspi1: u-boot";
386+
reg = <0x40000 0x100000>;
387+
};
388+
389+
bootloaderenv@140000 {
390+
label = "qspi1: u-boot env";
391+
reg = <0x140000 0x40000>;
392+
};
393+
394+
dtb@180000 {
395+
label = "qspi1: device tree";
396+
reg = <0x180000 0x80000>;
397+
};
398+
399+
kernel@200000 {
400+
label = "qspi1: kernel";
401+
reg = <0x200000 0x600000>;
402+
};
403+
};
372404
};
373405
};
374406

0 commit comments

Comments
 (0)