[PATCH 2/3] clk: stm32mp13: introduce STM32MP13 RCC driver

Patrick DELAUNAY patrick.delaunay at foss.st.com
Wed Oct 12 18:29:15 CEST 2022


Hi Gabriel,

On 10/12/22 14:33, Gabriel Fernandez wrote:
> Introduce STM32MP13 RCC driver using Common Clock Framework.
>
> Signed-off-by: Gabriel Fernandez <gabriel.fernandez at foss.st.com>
> ---
>
>   drivers/clk/stm32/Kconfig          |   15 +
>   drivers/clk/stm32/Makefile         |    2 +
>   drivers/clk/stm32/clk-stm32-core.c |  349 ++++++
>   drivers/clk/stm32/clk-stm32-core.h |  154 +++
>   drivers/clk/stm32/clk-stm32mp13.c  |  839 +++++++++++++
>   drivers/clk/stm32/stm32mp13_rcc.h  | 1751 ++++++++++++++++++++++++++++
>   6 files changed, 3110 insertions(+)
>   create mode 100644 drivers/clk/stm32/clk-stm32-core.c
>   create mode 100644 drivers/clk/stm32/clk-stm32-core.h
>   create mode 100644 drivers/clk/stm32/clk-stm32mp13.c
>   create mode 100644 drivers/clk/stm32/stm32mp13_rcc.h
>

Reviewed-by: Patrick Delaunay <patrick.delaunay at foss.st.com>
Tested-by: Patrick Delaunay <patrick.delaunay at foss.st.com>

tested on STM32MP135F-DK board, stm32mp13_defconfig.

I have a dependency with patch "firmware: scmi: fix the multi channel 
support with CCF"

http://patchwork.ozlabs.org/project/uboot/patch/20220930093635.1.I38e66d79350b381b6059a6a80ce60c62f01f3894@changeid/


This this patch the SD-Card boot is OK with 2 traces :


1- because USBPHY is not yet present in DT:

clk_register: failed to get ck_usbo_48m device (parent of usbo_k)


2- the console trace is pertubated by UART RESET introduction in DT

=> the UART FIFO is not flush before the probe after relocation

       and the reset of HW device

Clocks:
- MPU : 650 MHz
- AXI : 266.500 MHz
- PER : 24 MHz
- DDR�Core:  165 devices, 23 uclasses, devicetree: board
MMC:   STM32 SD/MMC: 0


For information "clk dump" command cause a crash because the SCMI clock

are not probed when clk_get_rate is used,  but I prepare a patch to 
avoid this issue.


Thanks
Patrick



More information about the U-Boot mailing list