[PATCH v2 0/3] stm32mp: prepare RCC support for STM32MP13

Patrick Delaunay patrick.delaunay at foss.st.com
Thu May 19 17:56:44 CEST 2022


Prepare the support of STM32MP13 RCC, the reset and clock controller
- update of the RCC MISC driver to bind the correct clock and reset driver
- reset driver, same than STM32MP15x = drivers/reset/stm32-reset.c
- clock driver, add a stm32 sub directory to prepare the addition of
  stm32mp13 drivers named "stm32mp13_clk";
  the stm32mp1 driver is only required for STM32MP15x family
- Add RCC node in SOC device tree with the needed tag
  u-boot,dm-pre-reloc property

This serie is only a preliminary step for STM32MP13 clock and reset support
in U-Boot, based on Linux kernel binding [1];
It prepares the next device tree alignment with Linux kernel and simplify
the review of the serie with addition of STMP13 clock driver based on CCF
and on SCMI clocks provided by OP-TEE, with files
- drivers/clk/stm32/clk-stm32mp13.c
- drivers/clk/stm32/clk-stm32-core.c

In the V2, I remove the addition of a dummy stm32mp13 clock driver:
  [2/4] clk: stm32mp13: add a STM32MP13 RCC clock driver

[1] Introduction of STM32MP13 RCC driver (Reset Clock Controller)
    https://lore.kernel.org/linux-arm-kernel/20220316131000.9874-1-gabriel.fernandez@foss.st.com/


(no changes since v1)

Patrick Delaunay (3):
  clk: Add directory for STM32 clock drivers
  misc: stm32mp13: introduce STM32MP13 RCC driver
  ARM: dts: stm32: add rcc node for STM32MP13

 MAINTAINERS                                   |  2 +-
 arch/arm/dts/stm32mp13-u-boot.dtsi            |  4 ++++
 arch/arm/dts/stm32mp131.dtsi                  |  7 ++++++
 drivers/clk/Kconfig                           | 17 +-------------
 drivers/clk/Makefile                          |  5 ++--
 drivers/clk/stm32/Kconfig                     | 23 +++++++++++++++++++
 drivers/clk/stm32/Makefile                    |  7 ++++++
 .../clk/{clk_stm32f.c => stm32/clk-stm32f.c}  |  0
 .../{clk_stm32h7.c => stm32/clk-stm32h7.c}    |  0
 .../{clk_stm32mp1.c => stm32/clk-stm32mp1.c}  |  0
 drivers/misc/stm32_rcc.c                      |  6 +++++
 11 files changed, 51 insertions(+), 20 deletions(-)
 create mode 100644 drivers/clk/stm32/Kconfig
 create mode 100644 drivers/clk/stm32/Makefile
 rename drivers/clk/{clk_stm32f.c => stm32/clk-stm32f.c} (100%)
 rename drivers/clk/{clk_stm32h7.c => stm32/clk-stm32h7.c} (100%)
 rename drivers/clk/{clk_stm32mp1.c => stm32/clk-stm32mp1.c} (100%)

-- 
2.25.1



More information about the U-Boot mailing list