]> git.ipfire.org Git - thirdparty/u-boot.git/commitdiff
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 a9bd5a2be84abf5645c540360b08f15260bca5d3..4344cefeba3f7395a333379184d18bd1b7a753e6 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 f743c4353b49c882a87631610232e6d6de1300c4..1619f733a0d6c790160fc2a07f51e8780a70146a 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 65fef6e479070bb64cd1297d17b189c72892379f..6c4ad72d9368d304da8c5a1aeb037f5583c40243 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 a284226320ccdf9953f2f107ee6595664e425156..786c7a2d458c2c5765889981f66983eeff670d36 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 e64c165ecbf1cd82586b850549776ad189b104dc..214acd7f0f727618555f9a95e847436fc28d43c8 100644 (file)
                                        arch = "arm32";
                                        compression = "none";
                                        os = "tifsstub-fs";
-                                       load = <0x9ca00000>;
-                                       entry = <0x9ca00000>;
+                                       load = <0x9ca10000>;
+                                       entry = <0x9ca10000>;
                                        blob-ext {
                                                filename = "tifsstub.bin_fs";
                                        };
index 966905bd64db98742eb131b7d3eeb5a51ca14889..59d8902bf4887d011cfdf12f0e2efa5928b8d022 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>;