arm64: dts: ti: iot2050: Add layout of OSPI flash
authorJan Kiszka <jan.kiszka@siemens.com>
Thu, 19 Jan 2023 06:40:40 +0000 (07:40 +0100)
committerVignesh Raghavendra <vigneshr@ti.com>
Thu, 26 Jan 2023 08:17:35 +0000 (13:47 +0530)
Describe the layout of the OSPI flash as the latest firmware uses it.
Specifically the location of the U-Boot envs is important for userspace
in order to access it.

Signed-off-by: Jan Kiszka <jan.kiszka@siemens.com>
Link: https://lore.kernel.org/r/d135b246bd302060175276d3653f2891077eb109.1674110442.git.jan.kiszka@siemens.com
Signed-off-by: Vignesh Raghavendra <vigneshr@ti.com>
arch/arm64/boot/dts/ti/k3-am65-iot2050-common.dtsi

index 3cced26..96ac2b4 100644 (file)
                cdns,tchsh-ns = <60>;
                cdns,tslch-ns = <60>;
                cdns,read-delay = <2>;
+
+               partitions {
+                       compatible = "fixed-partitions";
+                       #address-cells = <1>;
+                       #size-cells = <1>;
+
+                       seboot@0 {
+                               label = "seboot";
+                               reg = <0x0 0x180000>; /* 1.5M */
+                       };
+
+                       tispl@180000 {
+                               label = "tispl";
+                               reg = <0x180000 0x200000>; /* 2M */
+                       };
+
+                       u-boot@380000 {
+                               label = "u-boot";
+                               reg = <0x380000 0x300000>; /* 3M */
+                       };
+
+                       env@680000 {
+                               label = "env";
+                               reg = <0x680000 0x20000>; /* 128K */
+                       };
+
+                       env-backup@6a0000 {
+                               label = "env.backup";
+                               reg = <0x6a0000 0x20000>; /* 128K */
+                       };
+
+                       otpcmd@6c0000 {
+                               label = "otpcmd";
+                               reg = <0x6c0000 0x10000>; /* 64K */
+                       };
+
+                       unused@6d0000 {
+                               label = "unused";
+                               reg = <0x6d0000 0x7b0000>; /* 7872K */
+                       };
+
+                       seboot-backup@e80000 {
+                               label = "seboot.backup";
+                               reg = <0xe80000 0x180000>; /* 1.5M */
+                       };
+               };
        };
 };