Skip to content

Qualcomm IPQ5210 SoC bringup

Varadarajan Narayanan u-boot 10 versions – In review

Get series with b4
b4 am [email protected] change-id 20260630-fix-edl-0307ee6e36fa

Versions newest first

  1. v10 Latest posting 3/315 patches 10 repliesIn review
  2. v10 posting 2/315 patches 0 repliesSuperseded
  3. v10 posting 1/315 patches 0 repliesSuperseded inferred link
Earlier versions · 7
VersionPostedPatchesRepliesStatus
v711 patches0 repliesSuperseded inferred link
v611 patches29 repliesSuperseded inferred link
v513 patches4 repliesSuperseded inferred link
v413 patches5 repliesSuperseded inferred link
v310 patches14 repliesSuperseded inferred link
v29 patches18 repliesSuperseded inferred link
v19 patches1 replySuperseded

Changes in v10 from the cover letter

- Update board/qualcomm/config.mk to work with v3 of mkmbn series
(https://lore.kernel.org/u-boot/[email protected]/)
- Fix mailing list e-mail id problem
- Since v9 was sent to old denx mailing list, lore URL is not available. Please use the patchwork link below. Apologies for the inconvenience.
- Link to v9: https://patchwork.ozlabs.org/project/uboot/list/?series=523494

Patches in v10 posting 3/3 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/15misc: qcom_geni: Add minicore supportdrivers/misc/Kconfig drivers/misc/Makefile drivers/misc/qcom_geni-minicore.c +4 more+215 -110 replies
2/15mach-snapdragon: Kconfig: Auto select options based on configsarch/arm/Kconfig+6 -63 replies
3/15mach-snapdragon: Add PBL shared data definesarch/arm/mach-snapdragon/Makefile arch/arm/mach-snapdragon/board_spl.c arch/arm/mach-snapdragon/pbl-shared-data.c+127 -82 replies
4/15mach-snapdragon: spl: Update boot device information in SMEMarch/arm/mach-snapdragon/board_spl.c+42 -01 reply
5/15mach-snapdragon: spl: Add support for MMC booting in SPLarch/arm/mach-snapdragon/board_spl.c+57 -01 reply
6/15mach-snapdragon: Kconfig: Add rules to create SPL imagesarch/arm/mach-snapdragon/Kconfig board/qualcomm/config.mk+31 -11 reply
7/15mach-snapdragon: spl: Load next stage FIT imagearch/arm/mach-snapdragon/board_spl.c+153 -20 replies
8/15mach-snapdragon: spl: Add DDR initialization supportarch/arm/mach-snapdragon/Makefile arch/arm/mach-snapdragon/fit-handler.c+132 -00 replies
9/15mach-snapdragon: Add Qclib handling supportarch/arm/mach-snapdragon/Makefile arch/arm/mach-snapdragon/include/mach/qclib.h arch/arm/mach-snapdragon/qclib.c+243 -00 replies
10/15dts: ipq5210-rdp504-u-boot: add override dtsiarch/arm/dts/ipq5210-rdp504-u-boot.dtsi+12 -01 reply
11/15clk/qcom: add clock driver for ipq5210drivers/clk/qcom/Kconfig drivers/clk/qcom/Makefile drivers/clk/qcom/clock-ipq5210.c+102 -00 replies
12/15pinctrl: qcom: Add ipq5210 pinctrl driverdrivers/pinctrl/qcom/Kconfig drivers/pinctrl/qcom/Makefile drivers/pinctrl/qcom/pinctrl-ipq5210.c+358 -00 replies
13/15mach-snapdragon: spl: ipq5210: Add SPL supportarch/arm/mach-snapdragon/board_spl.c arch/arm/mach-snapdragon/include/mach/spl.h board/qualcomm/ipq5210/Makefile +3 more+146 -01 reply
14/15configs: Add qcom_ipq5210_mmc_defconfigconfigs/qcom_ipq5210_mmc_defconfig+113 -00 replies
15/15doc: board/qualcomm: Update RDP build instructionsdoc/board/qualcomm/rdp.rst+92 -40 replies

Reviews trailers per patch

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

PatchBalaji SelvanathanSimon GlassSumit Garg
1/15R-b R-b
2/15
3/15R-b R-b
4/15R-b R-b
5/15R-b R-b
6/15
7/15R-b R-b
8/15R-b R-b
9/15
10/15R-b R-b
11/15R-b
12/15R-b
13/15R-b R-b
14/15R-b R-b
15/15R-b R-b

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes. Scroll the table sideways for all 3 reviewers.

Read the v10 thread

Cover letter [PATCH RESEND v10 00/15] Qualcomm IPQ5210 SoC bringup

Add pinctrl, clock drivers and SPL to support the IPPQ5210 SoC in U-Boot.

The relevant DT files are available in linux-next [1] & [2]

Working features, as tested on RDP504:
* Serial console
* UART
* MMC
* Boot sequence transitions from Boot ROM to U-Boot SPL, proprietary binaries (a.k.a QCLib) load and execute as appropriate and eventual jump to U-Boot.
* The QCLib handles
- DDR initialization
- Clock setup

1 - https://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git/tree/arch/arm64/boot/dts/qcom/ipq5210.dtsi

    https://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git/tree/arch/arm64/boot/dts/qcom/ipq5210-rdp504.dts
    https://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git/tree/include/dt-bindings/clock/qcom,ipq5210-gcc.h
    https://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git/tree/include/dt-bindings/reset/qcom,ipq5210-gcc.h

2 - https://lore.kernel.org/linux-arm-msm/[email protected]/

---
Changes in v10:
- Update board/qualcomm/config.mk to work with v3 of mkmbn series
(https://lore.kernel.org/u-boot/[email protected]/)
- Fix mailing list e-mail id problem
- Since v9 was sent to old denx mailing list, lore URL is not available. Please use the patchwork link below. Apologies for the inconvenience.
- Link to v9: https://patchwork.ozlabs.org/project/uboot/list/?series=523494

v9: - RESENd because sent to old denx mailing list
- Address review feedback
- Move qclib handling to separate file with some functionality as
'weak' functions to allow SoC implementations to override it
- Link to v8: https://lore.kernel.org/u-boot/[email protected]/

v8: - Rebased on https://source.denx.de/u-boot/custodians/u-boot-snapdragon.git
- Address Casey's review comments on v6
- Spin off GENI Minicore support and mkmbn support as separate patches [PATCH] misc: qcom_geni: Add minicore support - [a] [PATCH 0/3] tools: qcom: mkmbn: Updates to support ipq5210 - [b]
- Re-organize the functions from spl.c into board_spl.c and fit-handler.c and remove spl.c
- Retained R-b tags since the code just moved
- Removed references to MBN and multi-elf creation steps in rdp.rst since mkmbn.py takes care of it
- Add details about the interface table in doc/board/qualcomm/spl-qclib.rst
- May need to update config.mk based on the final shape of mkmbn patches [b]

a - https://patchwork.ozlabs.org/project/uboot/list/?series=514770
b - https://lore.kernel.org/u-boot/[email protected]/

v7: - Fix inadvertant typo in doc/board/qualcomm/rdp.rst
- Pick multiple R-b tags
- No code changes

v6: - Move binman related changes to separate series, so that the
SPL changes can move forward.
- Restore v3 build steps for now
- https://lore.kernel.org/u-boot/[email protected]/

v5: - Reorganize SPL related code into common and SoC specific functions
to allow SoCs to customize according to their boot flow
- Fix documentation related build errors
- Please see the patches for specific changes
- https://lore.kernel.org/u-boot/[email protected]/

v4: - Add binman based image creation support instead of special scripts
- Identify boot media based on PBL shared info instead of CONFIG_xxx
- Address v3 feedback (see individual patch for details)
- https://lore.kernel.org/u-boot/[email protected]/

v3: - Move stack range
- Split spl.c patch
- Move documentation towards the end of the series
- Pick couple of R-b
- https://lore.kernel.org/u-boot/[email protected]/

v2: - Add QCOM_GENI_MINICORE config option
- Move minicore register settings to separate file and include
if QCOM_GENI_MINICORE is enabled
- Remove bootph-all from override dts and moved them to kernel
DT - https://lore.kernel.org/linux-arm-msm/[email protected]/T/#u
- https://lore.kernel.org/u-boot/[email protected]/

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

---
Varadarajan Narayanan (15):
misc: qcom_geni: Add minicore support
mach-snapdragon: Kconfig: Auto select options based on configs
mach-snapdragon: Add PBL shared data defines
mach-snapdragon: spl: Update boot device information in SMEM
mach-snapdragon: spl: Add support for MMC booting in SPL
mach-snapdragon: Kconfig: Add rules to create SPL images
mach-snapdragon: spl: Load next stage FIT image
mach-snapdragon: spl: Add DDR initialization support
mach-snapdragon: Add Qclib handling support
dts: ipq5210-rdp504-u-boot: add override dtsi clk/qcom: add clock driver for ipq5210
pinctrl: qcom: Add ipq5210 pinctrl driver
mach-snapdragon: spl: ipq5210: Add SPL support
configs: Add qcom_ipq5210_mmc_defconfig
doc: board/qualcomm: Update RDP build instructions

 arch/arm/Kconfig                                |  12 +-
 arch/arm/dts/ipq5210-rdp504-u-boot.dtsi         |  12 +
 arch/arm/mach-snapdragon/Kconfig                |   7 +
 arch/arm/mach-snapdragon/Makefile               |   3 +
 arch/arm/mach-snapdragon/board_spl.c            | 255 ++++++++++++++++-
 arch/arm/mach-snapdragon/fit-handler.c          | 131 +++++++++
 arch/arm/mach-snapdragon/include/mach/qclib.h   |  82 ++++++
 arch/arm/mach-snapdragon/include/mach/spl.h     |  13 +
 arch/arm/mach-snapdragon/pbl-shared-data.c      | 125 +++++++++
 arch/arm/mach-snapdragon/qclib.c                | 160 +++++++++++
 board/qualcomm/config.mk                        |  25 +-
 board/qualcomm/ipq5210/Makefile                 |   3 +
 board/qualcomm/ipq5210/ipq5210-spl-wrap-elf.lds |  18 ++
 board/qualcomm/ipq5210/spl-ipq5210.c            |  99 +++++++
 configs/qcom_ipq5210_mmc_defconfig              | 113 ++++++++
 doc/board/qualcomm/rdp.rst                      |  96 ++++++-
 drivers/clk/qcom/Kconfig                        |   8 +
 drivers/clk/qcom/Makefile                       |   1 +
 drivers/clk/qcom/clock-ipq5210.c                |  93 +++++++
 drivers/misc/Kconfig                            |   6 +
 drivers/misc/Makefile                           |   1 +
 drivers/misc/qcom_geni-minicore.c               | 103 +++++++
 drivers/misc/qcom_geni.c                        |  85 +++++-
 drivers/pinctrl/qcom/Kconfig                    |   8 +
 drivers/pinctrl/qcom/Makefile                   |   1 +
 drivers/pinctrl/qcom/pinctrl-ipq5210.c          | 349 ++++++++++++++++++++++++
 include/configs/ipq5210.h                       |  11 +
 include/soc/qcom/geni-se.h                      |   5 +
 include/soc/qcom/minicore.h                     |  25 ++
 include/soc/qcom/qup-fw-load.h                  |   1 +
 30 files changed, 1824 insertions(+), 27 deletions(-)

---
base-commit: e0ef25054db31fee49d031ac337099b12c67e5b8
change-id: 20260825-spl-55fcb0c72ebd

Best regards,

Signature · 1 line
Varadarajan Narayanan <[email protected]>