Skip to content

stm32mp1: use OPP information for PLL1 settings in SPL

Patrick Delaunay u-boot 2 versions – New

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v2 Latest9 patches 0 repliesNew
  2. v19 patches 0 repliesSuperseded

Changes in v2 from the cover letter

- add stpmic1_init function, called in board_early_init_f for dh_stm32mp1 board support (and no more use spl.c from stm32mp1)
- remove CONFIG_SPL_BOARD_INIT
- stmpic_buck1_set is a static function called in stpmic1_init (with new parameter for vddcore value)
- update also dh_stm32mp1 board
- update stm32mp15xx-dhcor and dhcom device tree
- NEW: merge spl.c and board.c to avoid a file with only one function

Patches in v2 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/9arm: stm32mp: spl: add bsec driver in SPLarch/arm/dts/stm32mp15-u-boot.dtsi arch/arm/mach-stm32mp/Makefile arch/arm/mach-stm32mp/bsec.c+8 -71 reply
2/9ARM: dts: stm32: add cpufreq support on stm32mp15xarch/arm/dts/stm32mp151.dtsi arch/arm/dts/stm32mp157c-ed1.dts arch/arm/dts/stm32mp15xx-dkx.dtsi+37 -00 replies
3/9board: st: create common file stpmic1.cboard/dhelectronics/dh_stm32mp1/Makefile board/st/common/Makefile board/st/common/stpmic1.c +1 more+164 -1590 replies
4/9stm32mp1: clk: configure pll1 with OPPdoc/device-tree-bindings/clock/st,stm32mp1.txt drivers/clk/clk_stm32mp1.c+266 -280 replies
5/9arm: stm32mp: add weak function to save vddcorearch/arm/mach-stm32mp/include/mach/sys_proto.h drivers/clk/clk_stm32mp1.c+8 -00 replies
6/9board: st: stpmic1: add function stpmic1_initarch/arm/mach-stm32mp/Kconfig board/dhelectronics/dh_stm32mp1/Makefile board/dhelectronics/dh_stm32mp1/board.c +5 more+52 -391 reply
7/9board: stm32mp1: update vddcore in SPLboard/dhelectronics/dh_stm32mp1/board.c board/st/common/stpmic1.c board/st/common/stpmic1.h +1 more+41 -41 reply
8/9ARM: dts: stm32mp1: use OPP information for PLL1 settings in SPLarch/arm/dts/stm32mp15-u-boot.dtsi arch/arm/dts/stm32mp157a-dk1-u-boot.dtsi arch/arm/dts/stm32mp157c-ed1-u-boot.dtsi +2 more+10 -361 reply
9/9board: stm32mp1: move the function board_debug_uart_init in spl.cboard/st/stm32mp1/Makefile board/st/stm32mp1/board.c board/st/stm32mp1/spl.c+26 -361 reply

Reviews trailers per patch

All 9 patches have a Reviewed-by or Acked-by.

PatchPatrice Chotard
1/9R-b R-b
2/9R-b
3/9R-b
4/9R-b
5/9R-b
6/9R-b
7/9R-b
8/9R-b
9/9R-b

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

Read the v2 thread

Cover letter [PATCH v2 0/9] stm32mp1: use OPP information for PLL1 settings in SPL

This serie allows to switch the CPU frequency to the max frequency supported in OPP device tree nodes and supported by STM32MP SOC (800MHz is supported by STM32MP15xD and STM32MP15xF).

Board also increases the VDDCore voltage to support this new operation point.

This V2 version of [1] is rebased on top of custodian stm32 and solve issue with dh_stm32mp1 (because spl.c was shared between stm32mp1 and dh_stm32mp1).

[1] http://patchwork.ozlabs.org/project/uboot/list/?series=171767&state=*

Changes in v2:
- add stpmic1_init function, called in board_early_init_f for dh_stm32mp1 board support (and no more use spl.c from stm32mp1)
- remove CONFIG_SPL_BOARD_INIT
- stmpic_buck1_set is a static function called in stpmic1_init (with new parameter for vddcore value)
- update also dh_stm32mp1 board
- update stm32mp15xx-dhcor and dhcom device tree
- NEW: merge spl.c and board.c to avoid a file with only one function

Patrick Delaunay (9):
arm: stm32mp: spl: add bsec driver in SPL
ARM: dts: stm32: add cpufreq support on stm32mp15x
board: st: create common file stpmic1.c
stm32mp1: clk: configure pll1 with OPP
arm: stm32mp: add weak function to save vddcore
board: st: stpmic1: add function stpmic1_init
board: stm32mp1: update vddcore in SPL
ARM: dts: stm32mp1: use OPP information for PLL1 settings in SPL
board: stm32mp1: move the function board_debug_uart_init in spl.c

 arch/arm/dts/stm32mp15-u-boot.dtsi            |  12 +-
 arch/arm/dts/stm32mp151.dtsi                  |  21 ++
 arch/arm/dts/stm32mp157a-dk1-u-boot.dtsi      |   9 -
 arch/arm/dts/stm32mp157c-ed1-u-boot.dtsi      |   9 -
 arch/arm/dts/stm32mp157c-ed1.dts              |   8 +
 arch/arm/dts/stm32mp15xx-dhcom-u-boot.dtsi    |   9 -
 arch/arm/dts/stm32mp15xx-dhcor-u-boot.dtsi    |   9 -
 arch/arm/dts/stm32mp15xx-dkx.dtsi             |   8 +
 arch/arm/mach-stm32mp/Kconfig                 |   1 -
 arch/arm/mach-stm32mp/Makefile                |   2 +-
 arch/arm/mach-stm32mp/bsec.c                  |  11 +-
 .../arm/mach-stm32mp/include/mach/sys_proto.h |   3 +
 board/dhelectronics/dh_stm32mp1/Makefile      |   6 +-
 board/dhelectronics/dh_stm32mp1/board.c       |  10 +
 board/st/common/Makefile                      |   1 +
 .../st/{stm32mp1/board.c => common/stpmic1.c} |  82 +++--
 board/st/common/stpmic1.h                     |   6 +
 board/st/stm32mp1/Makefile                    |   2 -
 board/st/stm32mp1/spl.c                       |  72 +++--
 board/st/stm32mp1/stm32mp1.c                  |   6 +
 configs/stm32mp15_basic_defconfig             |   1 +
 .../clock/st,stm32mp1.txt                     |   4 +
 drivers/clk/clk_stm32mp1.c                    | 295 ++++++++++++++++--
 23 files changed, 445 insertions(+), 142 deletions(-)
 rename board/st/{stm32mp1/board.c => common/stpmic1.c} (74%)
 create mode 100644 board/st/common/stpmic1.h
Signature · 1 line
2.17.1