fsl, powerpc: Fix SPD read and appended DTB alignment
Get series with b4
b4 am [email protected]Versions newest first
- v1 Latest3 patches 1 replyIn review
Patches in v1 No applies recorded yet
| # | Subject and files | Size | Replies | Applied |
|---|---|---|---|---|
| 1/3 | ddr: fsl: Fix SPD read when legacy I2C is useddrivers/ | +1 | 0 replies | |
| 2/3 | powerpc: mpc85xx: Move alignment padding into __u_boot_list sectionarch/ | +1 | 0 replies | |
| 3/3 | board: cssi: Move alignment padding into __u_boot_list sectionboard/ board/ | +2 | 0 replies |
Reviews trailers per patch
No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.
Cover letter [PATCH 0/3] fsl, powerpc: Fix SPD read and appended DTB alignment
Three generic fixes found while bringing up mainline U-Boot on a CZ.NIC Turris 1.1. Patch 1 fixes the DDR code used by NXP boards that read SPD over legacy I2C. Patches 2 and 3 fix linker scripts for mpc85xx and the two CS GROUP boards.
Patch 1 restores the legacy I2C SPD read that commit 98dfa70f84f0 ("fsl: mxc: Drop legacy I2c") turned into a stub. Boards using this path otherwise get an all-zero SPD and either fail with "Error: No valid SPD detected." or fall back to built-in timings.
Patches 2 and 3 move the _end alignment padding into the last output section with content, so the appended device tree lands at _end, where fdtdec_setup() looks for it. They also remove the alignment immediately before _end, allowing the existing ASSERT to catch a misaligned image. The padding fix is split because mpc85xx and the CS GROUP boards are handled by different custodian trees.
On main (6c246142f39) built with Debian GCC 14.2, the appended device tree starts 4 bytes before _end on turris_1x_nor, P1010RDB-PB_NAND, T2080RDB_NAND, MCR3000 and CMPC885, and on turris_1x_nor also with the kernel.org GCC 14.2.0 used by CI. With the patches it is exactly at _end in all of these builds.
All 83 PowerPC boards build with the series. For the NXP Layerscape reference boards, patch 1 changes only the six configurations that use legacy I2C for SPD; the other 54 produce identical U-Boot and SPL binaries.
On a Turris 1.1, patch 1 makes the SD card SPL built from main (v2026.10-rc2) initialize DDR and start U-Boot, where it failed with "Error: No valid SPD detected." before. turris_1x_nor built from main with the series booted from NOR and started OpenWrt from the SD card. That boot also needs "mtd: rawnand: fsl_elbc: Select NAND_ECC_BCH" from the LTO series for next. Without it, turris_1x_nor on main stops at the NAND probe with or without this series. The other boards are build tested only.
If this is too late for v2026.10, next is fine too.
Josef Schlehofer (3):
ddr: fsl: Fix SPD read when legacy I2C is used
powerpc: mpc85xx: Move alignment padding into __u_boot_list section
board: cssi: Move alignment padding into __u_boot_list section
arch/powerpc/cpu/mpc85xx/u-boot.lds | 2 +- board/cssi/cmpc885/u-boot.lds | 2 +- board/cssi/mcr3000/u-boot.lds | 2 +- drivers/ddr/fsl/main.c | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-)
base-commit: 6c246142f39fe0b406a730010010a66e6e926cbc
Signature · 1 line
2.54.0 (Apple Git-157)