Skip to content

RFC Support SPI NAND booting on the T113

John Watts u-boot 1 version In review

Get series with b4
b4 am [email protected] change-id 20240411-spinand-eb7d8319813b

Versions newest first

  1. v1 RFC Latest15 patches 2 repliesIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/15sunxi: SPL SPI: Add SPI boot support for the Allwinner R528/T113 SoCsarch/arm/mach-sunxi/Kconfig arch/arm/mach-sunxi/spl_spi_sunxi.c+58 -220 replies
2/15sunxi: SPL SPI: extract code for doing SPI transferarch/arm/mach-sunxi/spl_spi_sunxi.c+59 -460 replies
3/15sunxi: SPL SPI: add support for read command with 2 byte addressarch/arm/mach-sunxi/spl_spi_sunxi.c+13 -70 replies
4/15sunxi: SPL SPI: allow multiple boot attemptarch/arm/mach-sunxi/spl_spi_sunxi.c+34 -170 replies
5/15sunxi: SPL SPI: add initial support for booting from SPI NANDarch/arm/mach-sunxi/Kconfig arch/arm/mach-sunxi/spl_spi_sunxi.c+91 -00 replies
6/15sunxi: enable support for SPI NAND booting on SUNIVarch/arm/mach-sunxi/board.c+1 -30 replies
7/15sunxi: Separate boot device and boot positionarch/arm/include/asm/arch-sunxi/spl.h arch/arm/mach-sunxi/board.c+13 -110 replies
8/15spl: Add BOOT_DEVICE_SPINAND optionarch/arm/include/asm/spl.h arch/mips/include/asm/spl.h arch/riscv/include/asm/spl.h +1 more+4 -00 replies
9/15sunxi: Implement BOOT_DEVICE_SPINAND in SPLarch/arm/include/asm/arch-sunxi/spl.h arch/arm/mach-sunxi/board.c arch/arm/mach-sunxi/spl_spi_sunxi.c+23 -110 replies
10/15spl: Add SPL_SPINAND configuration optionscommon/spl/Kconfig+21 -00 replies
11/15sunxi: Use SPL_SPINAND for configurationarch/arm/mach-sunxi/Kconfig arch/arm/mach-sunxi/spl_spi_sunxi.c+5 -210 replies
12/15nand: Add spinand_ helper functionsinclude/nand.h+3 -00 replies
13/15sunxi: Implement spinand_ helpersarch/arm/mach-sunxi/spl_spi_sunxi.c+21 -00 replies
14/15spl: Support SPI NAND boot in UBIcommon/spl/spl_ubi.c+14 -10 replies
15/15spl: Support loading FIT images in UBIcommon/spl/spl_ubi.c+30 -40 replies

Reviews trailers per patch

4 of 15 patches have a Reviewed-by or Acked-by.

PatchSam EdwardsSamuel Holland
1/15T-b
2/15R-b T-b
3/15R-b T-b
4/15R-b T-b
5/15T-b
6/15R-b
7/15
8/15
9/15
10/15
11/15
12/15
13/15
14/15
15/15

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.

Read the v1 thread

Cover letter [PATCH RFC 00/15] Support SPI NAND booting on the T113

This series is my current working and tested setup for booting from SPI NAND chips on the Allwinner T113.

I have included the following patches from others. I may have modified them to work with the latest mainline:

https://lore.kernel.org/all/[email protected]/
https://lore.kernel.org/all/[email protected]/

Hopefully this can get the ball rolling on how to properly implement SPI NAND support in mainline U-Boot.

---
Icenowy Zheng (5):
sunxi: SPL SPI: extract code for doing SPI transfer
sunxi: SPL SPI: add support for read command with 2 byte address
sunxi: SPL SPI: allow multiple boot attempt
sunxi: SPL SPI: add initial support for booting from SPI NAND
sunxi: enable support for SPI NAND booting on SUNIV

John Watts (9):
sunxi: Separate boot device and boot position
spl: Add BOOT_DEVICE_SPINAND option
sunxi: Implement BOOT_DEVICE_SPINAND in SPL
spl: Add SPL_SPINAND configuration options
sunxi: Use SPL_SPINAND for configuration
nand: Add spinand_ helper functions
sunxi: Implement spinand_ helpers
spl: Support SPI NAND boot in UBI
spl: Support loading FIT images in UBI

Maksim Kiselev (1):
sunxi: SPL SPI: Add SPI boot support for the Allwinner R528/T113 SoCs

 arch/arm/include/asm/arch-sunxi/spl.h |   3 +-
 arch/arm/include/asm/spl.h            |   1 +
 arch/arm/mach-sunxi/Kconfig           |   2 +-
 arch/arm/mach-sunxi/board.c           |  31 +--
 arch/arm/mach-sunxi/spl_spi_sunxi.c   | 348 +++++++++++++++++++++++++---------
 arch/mips/include/asm/spl.h           |   1 +
 arch/riscv/include/asm/spl.h          |   1 +
 arch/sandbox/include/asm/spl.h        |   1 +
 common/spl/Kconfig                    |  21 ++
 common/spl/spl_ubi.c                  |  49 ++++-
 include/nand.h                        |   3 +
 11 files changed, 354 insertions(+), 107 deletions(-)

---
base-commit: 777c28460947371ada40868dc994dfe8537d7115
change-id: 20240411-spinand-eb7d8319813b

Best regards,

Signature · 1 line
John Watts <[email protected]>