From: Patrick DELAUNAY <patrick.delaunay@foss.st.com>
To: Sean Anderson <seanga2@gmail.com>, <u-boot@lists.denx.de>
Cc: Gabriel FERNANDEZ <gabriel.fernandez@foss.st.com>,
Lukasz Majewski <lukma@denx.de>,
Patrice Chotard <patrice.chotard@foss.st.com>,
Tom Rini <trini@konsulko.com>,
U-Boot STM32 <uboot-stm32@st-md-mailman.stormreply.com>
Subject: Re: [PATCH 0/4] stm32mp: add minimal RCC support for STM32MP13
Date: Tue, 17 May 2022 10:12:48 +0200 [thread overview]
Message-ID: <21688d64-ffeb-d0b7-b6e5-2efeb3f33ec1@foss.st.com> (raw)
In-Reply-To: <41b170c1-99ba-18ac-4a94-01c90f67b97c@gmail.com>
Hi,
On 5/11/22 18:44, Sean Anderson wrote:
> Hi Patrick,
>
> On 5/10/22 3:51 AM, Patrick Delaunay wrote:
>>
>> Add a minimal support for 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 empty driver for STM32MP13x =
>> drivers/clk/stm32/clk-stm32mp13.c
>> - Add RCC node in SOC device tree with 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 introduced by [1] and it
>> prepares
>> the next device tree alignment with Linux kernel.
>>
>> The functional STMP13 clock driver based on CCF and on SCMI clocks
>> provided by OP-TEE and the clock and reset references in SOC device tree
>> will be pushed when the associated patches in [1] will be accepted.
>>
>> [1] Introduction of STM32MP13 RCC driver (Reset Clock Controller)
>> https://lore.kernel.org/linux-arm-kernel/20220316131000.9874-1-gabriel.fernandez@foss.st.com/
>
> I'm not really sure what the purpose of this series is. Can you
> elaborate a bit on why we need a dummy clock driver? Why don't
> you just add the binding to the device tree without the associated
> driver?
After this serie, the RCC reset part is functional on STM32MP13 (probe
and ops)
even if the associated binding is not present in device tree.
tested with:
------------------------- arch/arm/dts/stm32mp131.dtsi
-------------------------
index fcb0af09b5..d9c6185bcf 100644
@@ -197,6 +197,7 @@
interrupt-names = "cmd_irq";
clocks = <&clk_pll4_p>;
clock-names = "apb_pclk";
+ resets = <&rcc 14224>;
cap-sd-highspeed;
cap-mmc-highspeed;
max-frequency = <130000000>;
A dummy STM32MP13 clock driver is requested to allow RCC MISC and RCC RESET
binding and probe without issue.
This reset support was requested by SDMCC driver and SD-Card boot,
before the patch:
http://patchwork.ozlabs.org/project/uboot/patch/20220506160540.13.I39b69e8dc7b43b8e265e77388fb53f7c1fa2a007@changeid/
As we solve the SDMCC dependency issue (reset become optionnal), so this
serie is no more mandatory.
This serie is a just a cleanup / preliminary step, but I can drop this
dummy RCC driver if it is disturbing.
>
> --Sean
Patrick
next prev parent reply other threads:[~2022-05-17 8:12 UTC|newest]
Thread overview: 10+ messages / expand[flat|nested] mbox.gz Atom feed top
2022-05-10 7:51 [PATCH 0/4] stm32mp: add minimal RCC support for STM32MP13 Patrick Delaunay
2022-05-10 7:51 ` [PATCH 1/4] clk: Add directory for STM32 clock drivers Patrick Delaunay
2022-05-11 16:40 ` Sean Anderson
2022-05-10 7:51 ` [PATCH 2/4] clk: stm32mp13: add a STM32MP13 RCC clock driver Patrick Delaunay
2022-05-10 12:18 ` [Uboot-stm32] " Grzegorz Szymaszek
2022-05-10 7:51 ` [PATCH 3/4] misc: stm32mp13: introduce STM32MP13 RCC driver Patrick Delaunay
2022-05-10 7:51 ` [PATCH 4/4] ARM: dts: stm32: add rcc node for STM32MP13 Patrick Delaunay
2022-05-11 16:44 ` [PATCH 0/4] stm32mp: add minimal RCC support " Sean Anderson
2022-05-17 8:12 ` Patrick DELAUNAY [this message]
2022-05-19 13:42 ` Sean Anderson
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=21688d64-ffeb-d0b7-b6e5-2efeb3f33ec1@foss.st.com \
--to=patrick.delaunay@foss.st.com \
--cc=gabriel.fernandez@foss.st.com \
--cc=lukma@denx.de \
--cc=patrice.chotard@foss.st.com \
--cc=seanga2@gmail.com \
--cc=trini@konsulko.com \
--cc=u-boot@lists.denx.de \
--cc=uboot-stm32@st-md-mailman.stormreply.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.