arm64: zynqmp: Add mtd partition for secure OS storage area
authorAmit Kumar Mahapatra <amit.kumar-mahapatra@xilinx.com>
Tue, 2 May 2023 13:35:40 +0000 (15:35 +0200)
committerMichal Simek <michal.simek@amd.com>
Tue, 16 May 2023 12:50:14 +0000 (14:50 +0200)
Update MTD partitions of Kria device trees to allocate 128KB of QSPI
memory for secure OS. Increased "SHA256" partition size & changed
starting address of "User" partition to accommodate the new partition
"Secure OS Storage"

Signed-off-by: Amit Kumar Mahapatra <amit.kumar-mahapatra@xilinx.com>
Signed-off-by: Michal Simek <michal.simek@amd.com>
Link: https://lore.kernel.org/r/20dd23821118999c6fec2bad52ea446d1a66fefb.1683034376.git.michal.simek@amd.com
arch/arm64/boot/dts/xilinx/zynqmp-sm-k26-revA.dts

index d8b2c30..9778d56 100644 (file)
@@ -83,7 +83,7 @@
 
 &qspi { /* MIO 0-5 - U143 */
        status = "okay";
-       flash@0 { /* MT25QU512A */
+       spi_flash: flash@0 { /* MT25QU512A */
                compatible = "mt25qu512a", "jedec,spi-nor"; /* 64MB */
                #address-cells = <1>;
                #size-cells = <1>;
                };
                partition@2240000 {
                        label = "SHA256";
-                       reg = <0x2240000 0x10000>; /* 256B but 64KB sector */
+                       reg = <0x2240000 0x40000>; /* 256B but 256KB sector */
                        read-only;
                        lock;
                };
-               partition@2250000 {
+               partition@2280000 {
+                       label = "Secure OS Storage";
+                       reg = <0x2280000 0x20000>; /* 128KB */
+               };
+               partition@22A0000 {
                        label = "User";
-                       reg = <0x2250000 0x1db0000>; /* 29.5 MB */
+                       reg = <0x22A0000 0x1d60000>; /* 29.375 MB */
                };
        };
 };