Skip to content

arm: socfpga: Add Arria 10 SoCDK QSPI and NAND board variants

[email protected] u-boot 1 version New

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest4 patches 0 repliesNew

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/4arm: dts: socfpga: Update Arria 10 SoCDK U-Boot handoff dataarch/arm/dts/socfpga_arria10-handoff.dtsi arch/arm/dts/socfpga_arria10_chameleonv3_270_3_handoff.h arch/arm/dts/socfpga_arria10_chameleonv3_480_2_handoff.h +6 more+1110 -4100 replies
2/4ARM: socfpga: Add default FIT images for Arria 10 SoCDKboard/altera/arria10-socdk/fit_kernel_nand.its board/altera/arria10-socdk/fit_kernel_qspi.its board/altera/arria10-socdk/fit_uboot.its+131 -00 replies
3/4arm: socfpga: Add Arria 10 SoCDK QSPI and NAND boardsarch/arm/dts/socfpga_arria10_socdk_nand.dts arch/arm/dts/socfpga_arria10_socdk_qspi.dts configs/socfpga_arria10_nand_defconfig +2 more+245 -00 replies
4/4doc: socfpga: Describe Arria 10 SoCDK QSPI U-Boot and SPL build flowdoc/README.socfpga_arria10_qspi_socdk+56 -00 replies

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.

Read the v1 thread

Cover letter [PATCH 0/4] arm: socfpga: Add Arria 10 SoCDK QSPI and NAND board variants

From: Dinesh Maniyam <[email protected]>

This series adds U-Boot support for two new Arria 10 SoCDK boot variants (Cadence QSPI and Denali NAND) and refreshes the matching U-Boot handoff data so the existing Arria 10 boards keep building cleanly:

1/4 arm: dts: socfpga: Update Arria 10 SoCDK U-Boot handoff data
Refresh the U-Boot-only handoff dtsi and the generated headers, and rename the CONFIG_IO_* macros to CFG_IO_* on both the producer (qts-filter-a10.sh) and consumer (handoff dtsi / Chameleon V3 270_3 and 480_2 headers) sides so the device tree compiler stops emitting "Unexpected 'CONFIG_IO_*'" lexical errors when building the Arria 10 SoCDK and Chameleon V3 DTBs.

2/4 ARM: socfpga: Add default FIT images for Arria 10 SoCDK
Add default FIT image templates for SPL/U-Boot and the Linux kernel under board/altera/arria10-socdk/ so the SoCDK can boot via a single mkimage-generated FIT.

3/4 arm: socfpga: Add Arria 10 SoCDK QSPI and NAND boards
Add the two new in-tree DTS files, the U-Boot dtsi overlays, handoff headers, defconfigs and shared board config bits for the QSPI (Cadence QSPI) and NAND (Denali NAND) boot variants. The boards intentionally stay on the in-tree DTS rather than CONFIG_OF_UPSTREAM because the upstream Linux Arria 10 device tree does not expose the clkmgr (and related) labels that arch/arm/dts/socfpga_arria10-u-boot.dtsi already references.

4/4 doc: socfpga: Describe Arria 10 SoCDK QSPI U-Boot and SPL build
flow
Document how to build SPL + U-Boot, assemble the default FIT images and lay them out on QSPI flash.

Hardware tested
---------------
- Intel Arria 10 SoCDK rev C, Cadence QSPI flash, SPL + U-Boot
- Intel Arria 10 SoCDK rev C, Denali NAND flash, SPL + U-Boot

Dependencies
------------
This series depends on three earlier U-Boot NAND prerequisite changes already posted to the list:

1) "mtd: nand: raw: Cadence NAND cleanup" series (2 patches)

     https://lore.kernel.org/u-boot/[email protected]/

2) "mtd: rawnand: denali: add NAND_DENALI_SKIP_BBTSCAN_SPL Kconfig"

     https://lore.kernel.org/u-boot/[email protected]/

3) "mtd: rawnand: allow SYS_NAND_BLOCK_SIZE when SPL_NAND_CADENCE

     is set"
     https://lore.kernel.org/u-boot/[email protected]/

Without (1) the SPL Cadence NAND build does not select the right MTD header and Kconfig dependencies; without (2)/(3) the new Arria 10 NAND defconfig cannot disable the Denali BBT scan in SPL or pick its own SYS_NAND_BLOCK_SIZE.

Dinesh Maniyam (4):
arm: dts: socfpga: Update Arria 10 SoCDK U-Boot handoff data
ARM: socfpga: Add default FIT images for Arria 10 SoCDK
arm: socfpga: Add Arria 10 SoCDK QSPI and NAND boards
doc: socfpga: Describe Arria 10 SoCDK QSPI U-Boot and SPL build flow

 arch/arm/dts/socfpga_arria10-handoff.dtsi     |  36 +--
 ...ocfpga_arria10_chameleonv3_270_3_handoff.h | 250 +++++++-------
 ...ocfpga_arria10_chameleonv3_480_2_handoff.h | 250 +++++++-------
 .../socfpga_arria10_socdk_nand-u-boot.dtsi    |  42 +++
 arch/arm/dts/socfpga_arria10_socdk_nand.dts   |  26 ++
 .../dts/socfpga_arria10_socdk_nand_handoff.h  | 305 ++++++++++++++++++
 .../socfpga_arria10_socdk_qspi-u-boot.dtsi    |  48 +++
 arch/arm/dts/socfpga_arria10_socdk_qspi.dts   |  11 +
 .../dts/socfpga_arria10_socdk_qspi_handoff.h  | 305 ++++++++++++++++++
 .../dts/socfpga_arria10_socdk_sdmmc_handoff.h | 262 +++++++--------
 arch/arm/mach-socfpga/qts-filter-a10.sh       |  22 +-
 .../altera/arria10-socdk/fit_kernel_nand.its  |  44 +++
 .../altera/arria10-socdk/fit_kernel_qspi.its  |  44 +++
 board/altera/arria10-socdk/fit_uboot.its      |  43 +++
 configs/socfpga_arria10_nand_defconfig        |  95 ++++++
 configs/socfpga_arria10_qspi_defconfig        |  86 +++++
 doc/README.socfpga_arria10_qspi_socdk         |  56 ++++
 include/configs/socfpga_arria10_socdk.h       |  27 ++
 18 files changed, 1542 insertions(+), 410 deletions(-)
 create mode 100644 arch/arm/dts/socfpga_arria10_socdk_nand-u-boot.dtsi
 create mode 100644 arch/arm/dts/socfpga_arria10_socdk_nand.dts
 create mode 100644 arch/arm/dts/socfpga_arria10_socdk_nand_handoff.h
 create mode 100644 arch/arm/dts/socfpga_arria10_socdk_qspi-u-boot.dtsi
 create mode 100644 arch/arm/dts/socfpga_arria10_socdk_qspi.dts
 create mode 100644 arch/arm/dts/socfpga_arria10_socdk_qspi_handoff.h
 create mode 100644 board/altera/arria10-socdk/fit_kernel_nand.its
 create mode 100644 board/altera/arria10-socdk/fit_kernel_qspi.its
 create mode 100644 board/altera/arria10-socdk/fit_uboot.its
 create mode 100644 configs/socfpga_arria10_nand_defconfig
 create mode 100644 configs/socfpga_arria10_qspi_defconfig
 create mode 100644 doc/README.socfpga_arria10_qspi_socdk
Signature · 1 line
2.43.7