[PATCH 00/16] stm32mp: add STM32MP13x support

Patrick Delaunay patrick.delaunay at foss.st.com
Fri May 6 16:06:07 CEST 2022


Add the minimal support of the new STM32MP13x in mach-stm32mp
to allow boot from SD Card.

STM32MP13x is a single Cortex-A7 MPU aimed at various applications.
The discovery board is supported with stm32mp13_defconfig and the
device tree stm32mp135f-dk.dts.

The supported boot sequence is:
- TF-A BL2
- OP-TEE
- U-Boot
- Linux Kernel

The console over UART and boot from SD Card is functional
with this serie.

The RCC driver, with support of reset and clock, is not yet provided
today and the SCMI is not yet activated in device tree as in Linux
kernel.



Patrick Delaunay (16):
  ARM: dts: stm32: add STM32MP13 SoCs support
  configs: stm32mp1: move SUPPORT_SPL in STM32MP15x
  arm: stm32mp: move the get_otp helper function in bsec
  arm: stm32mp: move code for STM32MP15x
  arm: stm32mp: add choice for STM32MP SOC family
  arm: stm32mp: add sub config Kconfig.15x
  arm: stm32mp: add CONFIG_STM32MP15_PWR
  arm: stm32mp: add support of STM32MP13x
  arm: stm32mp: support 2 MAC address for STM32MP13
  pinctrl: stm32: add support of STM32MP135
  board: stm32pm1: add stm32mp13 board support
  ram: stm32mp1: add support of STM32MP13x
  mmc: stm32_sdmmc2: make reset property optional
  arm: dts: stm32mp: add stm32mp13 device tree for U-Boot
  configs: add stm32mp13 defconfig
  doc: st: stm32mp1: add STM32MP13x support

 arch/arm/Kconfig                              |   1 -
 arch/arm/dts/Makefile                         |   3 +
 arch/arm/dts/stm32mp13-pinctrl.dtsi           | 123 ++++++
 arch/arm/dts/stm32mp13-u-boot.dtsi            |  91 ++++
 arch/arm/dts/stm32mp131.dtsi                  | 358 ++++++++++++++++
 arch/arm/dts/stm32mp133.dtsi                  |  37 ++
 arch/arm/dts/stm32mp135.dtsi                  |  12 +
 arch/arm/dts/stm32mp135f-dk-u-boot.dtsi       |  30 ++
 arch/arm/dts/stm32mp135f-dk.dts               |  57 +++
 arch/arm/dts/stm32mp13xc.dtsi                 |  17 +
 arch/arm/dts/stm32mp13xf.dtsi                 |  17 +
 arch/arm/mach-stm32mp/Kconfig                 | 146 ++-----
 arch/arm/mach-stm32mp/Kconfig.13x             |  57 +++
 arch/arm/mach-stm32mp/Kconfig.15x             | 135 ++++++
 arch/arm/mach-stm32mp/Makefile                |   5 +-
 arch/arm/mach-stm32mp/bsec.c                  |  17 +
 arch/arm/mach-stm32mp/cpu.c                   | 392 ++----------------
 arch/arm/mach-stm32mp/fdt.c                   |  11 +-
 arch/arm/mach-stm32mp/include/mach/stm32.h    |  26 ++
 .../arm/mach-stm32mp/include/mach/sys_proto.h |  34 +-
 arch/arm/mach-stm32mp/spl.c                   |   1 +
 arch/arm/mach-stm32mp/stm32mp13x.c            | 135 ++++++
 arch/arm/mach-stm32mp/stm32mp15x.c            | 350 ++++++++++++++++
 board/st/stm32mp1/Kconfig                     |  15 +
 board/st/stm32mp1/MAINTAINERS                 |   4 +
 board/st/stm32mp1/stm32mp1.c                  |  27 +-
 configs/stm32mp13_defconfig                   |  54 +++
 configs/stm32mp15_basic_defconfig             |   6 +-
 configs/stm32mp15_defconfig                   |   6 +-
 configs/stm32mp15_trusted_defconfig           |   8 +-
 doc/board/st/stm32mp1.rst                     | 181 +++++---
 .../memory-controllers/st,stm32mp1-ddr.txt    |  49 ++-
 drivers/mmc/stm32_sdmmc2.c                    |  14 +-
 drivers/pinctrl/pinctrl_stm32.c               |   1 +
 drivers/ram/stm32mp1/stm32mp1_ram.c           |  28 +-
 include/configs/stm32mp13_common.h            | 106 +++++
 include/configs/stm32mp13_st_common.h         |  17 +
 include/configs/stm32mp15_common.h            |   4 +-
 38 files changed, 1992 insertions(+), 583 deletions(-)
 create mode 100644 arch/arm/dts/stm32mp13-pinctrl.dtsi
 create mode 100644 arch/arm/dts/stm32mp13-u-boot.dtsi
 create mode 100644 arch/arm/dts/stm32mp131.dtsi
 create mode 100644 arch/arm/dts/stm32mp133.dtsi
 create mode 100644 arch/arm/dts/stm32mp135.dtsi
 create mode 100644 arch/arm/dts/stm32mp135f-dk-u-boot.dtsi
 create mode 100644 arch/arm/dts/stm32mp135f-dk.dts
 create mode 100644 arch/arm/dts/stm32mp13xc.dtsi
 create mode 100644 arch/arm/dts/stm32mp13xf.dtsi
 create mode 100644 arch/arm/mach-stm32mp/Kconfig.13x
 create mode 100644 arch/arm/mach-stm32mp/Kconfig.15x
 create mode 100644 arch/arm/mach-stm32mp/stm32mp13x.c
 create mode 100644 arch/arm/mach-stm32mp/stm32mp15x.c
 create mode 100644 configs/stm32mp13_defconfig
 create mode 100644 include/configs/stm32mp13_common.h
 create mode 100644 include/configs/stm32mp13_st_common.h

-- 
2.25.1



More information about the U-Boot mailing list