arm: dts: k3-am6xx: Fix FIT image memory overlap in binman configurations
authorAristo Chen <jj251510319013@gmail.com>
Sun, 14 Sep 2025 10:59:29 +0000 (10:59 +0000)
committerTom Rini <trini@konsulko.com>
Tue, 23 Sep 2025 19:35:22 +0000 (13:35 -0600)
Fix memory overlaps in FIT image configurations for TI AM62x and AM64x
PHYCore and SK boards.

The overlaps occurred in two categories:

1. TI firmware stub images (tifsstub-hs, tifsstub-fs, tifsstub-gp):
   These mutually exclusive firmware variants were incorrectly assigned
   the same load address within FIT configurations, causing overlap
   detection to fail. Adjust addresses with 64KB spacing:
   - tifsstub-hs: Keep original address
   - tifsstub-fs: Move to +64KB offset
   - tifsstub-gp: Move to +128KB offset

2. Device tree overlay images (som-no-rtc, som-no-spi, som-no-eth):
   These overlay files had insufficient spacing between load addresses,
   causing actual memory overlaps. Increase spacing to 8KB boundaries
   to accommodate overlay sizes safely.

An upcoming commit will validate if the memory region is overlapped

Signed-off-by: Aristo Chen <aristo.chen@canonical.com>
arch/arm/dts/k3-am625-phycore-som-binman.dtsi
arch/arm/dts/k3-am625-sk-binman.dtsi
arch/arm/dts/k3-am625-verdin-wifi-dev-binman.dtsi
arch/arm/dts/k3-am62a-phycore-som-binman.dtsi
arch/arm/dts/k3-am62a-sk-binman.dtsi
arch/arm/dts/k3-am642-phycore-som-binman.dtsi

index a9bd5a2..4344cef 100644 (file)
                                        arch = "arm32";
                                        compression = "none";
                                        os = "tifsstub-fs";
-                                       load = <0x9dc00000>;
-                                       entry = <0x9dc00000>;
+                                       load = <0x9dc10000>;
+                                       entry = <0x9dc10000>;
                                        blob-ext {
                                                filename = "tifsstub.bin_fs";
                                        };
                                        arch = "arm32";
                                        compression = "none";
                                        os = "tifsstub-gp";
-                                       load = <0x9dc00000>;
-                                       entry = <0x9dc00000>;
+                                       load = <0x9dc20000>;
+                                       entry = <0x9dc20000>;
                                        blob-ext {
                                                filename = "tifsstub.bin_gp";
                                        };
                                        description = "k3-am6xx-phycore-disable-spi-nor";
                                        type = "flat_dt";
                                        compression = "none";
-                                       load = <0x8F001000>;
+                                       load = <0x8F002000>;
                                        arch = "arm";
                                        ti-secure {
                                                content = <&am6xx_phycore_disable_spi_not_dtbo>;
                                        description = "k3-am6xx-phycore-disable-eth-phy";
                                        type = "flat_dt";
                                        compression = "none";
-                                       load = <0x8F002000>;
+                                       load = <0x8F004000>;
                                        arch = "arm";
                                        ti-secure {
                                                content = <&am6xx_phycore_disable_eth_phy_dtbo>;
                                        description = "k3-am6xx-phycore-qspi-nor";
                                        type = "flat_dt";
                                        compression = "none";
-                                       load = <0x8F003000>;
+                                       load = <0x8F006000>;
                                        arch = "arm";
                                        ti-secure {
                                                content = <&am6xx_phycore_disable_qspi_nor_dtbo>;
                                        arch = "arm32";
                                        compression = "none";
                                        os = "tifsstub-fs";
-                                       load = <0x9dc00000>;
-                                       entry = <0x9dc00000>;
+                                       load = <0x9dc10000>;
+                                       entry = <0x9dc10000>;
                                        blob-ext {
                                                filename = "tifsstub.bin_fs";
                                        };
                                        arch = "arm32";
                                        compression = "none";
                                        os = "tifsstub-gp";
-                                       load = <0x9dc00000>;
-                                       entry = <0x9dc00000>;
+                                       load = <0x9dc20000>;
+                                       entry = <0x9dc20000>;
                                        blob-ext {
                                                filename = "tifsstub.bin_gp";
                                        };
index f743c43..1619f73 100644 (file)
                                        arch = "arm32";
                                        compression = "none";
                                        os = "tifsstub-fs";
-                                       load = <0x9dc00000>;
-                                       entry = <0x9dc00000>;
+                                       load = <0x9dc10000>;
+                                       entry = <0x9dc10000>;
                                        blob-ext {
                                                filename = "tifsstub.bin_fs";
                                        };
                                        arch = "arm32";
                                        compression = "none";
                                        os = "tifsstub-gp";
-                                       load = <0x9dc00000>;
-                                       entry = <0x9dc00000>;
+                                       load = <0x9dc20000>;
+                                       entry = <0x9dc20000>;
                                        blob-ext {
                                                filename = "tifsstub.bin_gp";
                                        };
                                        arch = "arm32";
                                        compression = "none";
                                        os = "tifsstub-fs";
-                                       load = <0x9dc00000>;
-                                       entry = <0x9dc00000>;
+                                       load = <0x9dc10000>;
+                                       entry = <0x9dc10000>;
                                        blob-ext {
                                                filename = "tifsstub.bin_fs";
                                        };
                                        arch = "arm32";
                                        compression = "none";
                                        os = "tifsstub-gp";
-                                       load = <0x9dc00000>;
-                                       entry = <0x9dc00000>;
+                                       load = <0x9dc20000>;
+                                       entry = <0x9dc20000>;
                                        blob-ext {
                                                filename = "tifsstub.bin_gp";
                                        };
index 65fef6e..6c4ad72 100644 (file)
                                        arch = "arm32";
                                        compression = "none";
                                        os = "tifsstub-fs";
-                                       load = <0x9dc00000>;
-                                       entry = <0x9dc00000>;
+                                       load = <0x9dc10000>;
+                                       entry = <0x9dc10000>;
                                        blob-ext {
                                                filename = "tifsstub.bin_fs";
                                        };
                                        arch = "arm32";
                                        compression = "none";
                                        os = "tifsstub-gp";
-                                       load = <0x9dc00000>;
-                                       entry = <0x9dc00000>;
+                                       load = <0x9dc20000>;
+                                       entry = <0x9dc20000>;
                                        blob-ext {
                                                filename = "tifsstub.bin_gp";
                                        };
                                        arch = "arm32";
                                        compression = "none";
                                        os = "tifsstub-fs";
-                                       load = <0x9dc00000>;
-                                       entry = <0x9dc00000>;
+                                       load = <0x9dc10000>;
+                                       entry = <0x9dc10000>;
                                        blob-ext {
                                                filename = "tifsstub.bin_fs";
                                        };
                                        arch = "arm32";
                                        compression = "none";
                                        os = "tifsstub-gp";
-                                       load = <0x9dc00000>;
-                                       entry = <0x9dc00000>;
+                                       load = <0x9dc20000>;
+                                       entry = <0x9dc20000>;
                                        blob-ext {
                                                filename = "tifsstub.bin_gp";
                                        };
index a284226..786c7a2 100644 (file)
                                        arch = "arm32";
                                        compression = "none";
                                        os = "tifsstub-fs";
-                                       load = <0x9ca00000>;
-                                       entry = <0x9ca00000>;
+                                       load = <0x9ca10000>;
+                                       entry = <0x9ca10000>;
                                        blob-ext {
                                                filename = "tifsstub.bin_fs";
                                        };
                                        description = "k3-am6xx-phycore-disable-spi-nor";
                                        type = "flat_dt";
                                        compression = "none";
-                                       load = <0x8F001000>;
+                                       load = <0x8F002000>;
                                        arch = "arm";
                                        ti-secure {
                                                content = <&am6xx_phycore_disable_spi_not_dtbo>;
                                        description = "k3-am6xx-phycore-disable-eth-phy";
                                        type = "flat_dt";
                                        compression = "none";
-                                       load = <0x8F002000>;
+                                       load = <0x8F004000>;
                                        arch = "arm";
                                        ti-secure {
                                                content = <&am6xx_phycore_disable_eth_phy_dtbo>;
                                        description = "k3-am6xx-phycore-qspi-nor";
                                        type = "flat_dt";
                                        compression = "none";
-                                       load = <0x8F003000>;
+                                       load = <0x8F006000>;
                                        arch = "arm";
                                        ti-secure {
                                                content = <&am6xx_phycore_disable_qspi_nor_dtbo>;
index e64c165..214acd7 100644 (file)
                                        arch = "arm32";
                                        compression = "none";
                                        os = "tifsstub-fs";
-                                       load = <0x9ca00000>;
-                                       entry = <0x9ca00000>;
+                                       load = <0x9ca10000>;
+                                       entry = <0x9ca10000>;
                                        blob-ext {
                                                filename = "tifsstub.bin_fs";
                                        };
index 966905b..59d8902 100644 (file)
                                        description = "k3-am6xx-phycore-disable-spi-nor";
                                        type = "flat_dt";
                                        compression = "none";
-                                       load = <0x8F001000>;
+                                       load = <0x8F002000>;
                                        arch = "arm";
                                        ti-secure {
                                                content = <&am6xx_phycore_disable_spi_not_dtbo>;
                                        description = "k3-am6xx-phycore-disable-eth-phy";
                                        type = "flat_dt";
                                        compression = "none";
-                                       load = <0x8F002000>;
+                                       load = <0x8F004000>;
                                        arch = "arm";
                                        ti-secure {
                                                content = <&am6xx_phycore_disable_eth_phy_dtbo>;
                                        description = "k3-am6xx-phycore-qspi-nor";
                                        type = "flat_dt";
                                        compression = "none";
-                                       load = <0x8F003000>;
+                                       load = <0x8F006000>;
                                        arch = "arm";
                                        ti-secure {
                                                content = <&am6xx_phycore_disable_qspi_nor_dtbo>;