From: Patrice CHOTARD <patrice.chotard@foss.st.com>
To: Patrick DELAUNAY <patrick.delaunay@foss.st.com>, <u-boot@lists.denx.de>
Cc: U-Boot STM32 <uboot-stm32@st-md-mailman.stormreply.com>,
Lukasz Majewski <lukma@denx.de>,
Sean Anderson <seanga2@gmail.com>, Simon Glass <sjg@chromium.org>,
Tom Rini <trini@konsulko.com>
Subject: Re: [PATCH 08/13] stm32mp1: clk: Update index for DSI gate
Date: Tue, 22 Apr 2025 11:42:27 +0200 [thread overview]
Message-ID: <2be878a1-a4a6-4fd7-9ea7-d2337a4bbad4@foss.st.com> (raw)
In-Reply-To: <993246d8-098b-4849-9c1a-822f2d14f77e@foss.st.com>
On 4/22/25 10:24, Patrick DELAUNAY wrote:
> Hi
>
> On 4/1/25 15:14, Patrice Chotard wrote:
>> Since upstream kernel commit bda732fda193 ("ARM: dts: stm32: fix
>> DSI peripheral clock on stm32mp15 boards"), DSI clock can't be enabled
>> as shown on following U-Boot log:
>>
>> MMC: STM32 SD/MMC: 0
>> Loading Environment from MMC... Reading from MMC(0)... OK
>> clk id 57 not found
>> stm32-display-dsi dsi@5a000000: peripheral clock enable error -22
>> stm32_display display-controller@5a001000: panel device error -22
>> In: serial
>> Out: serial
>> Err: serial
>> Net: eth0: ethernet@5800a000
>>
>> Update clk-stm32mp1 driver accordingly.
>>
>> Signed-off-by: Patrice Chotard <patrice.chotard@foss.st.com>
>> ---
>>
>> drivers/clk/stm32/clk-stm32mp1.c | 2 +-
>> 1 file changed, 1 insertion(+), 1 deletion(-)
>>
>> diff --git a/drivers/clk/stm32/clk-stm32mp1.c b/drivers/clk/stm32/clk-stm32mp1.c
>> index 4044edfb768..204a4b7de45 100644
>> --- a/drivers/clk/stm32/clk-stm32mp1.c
>> +++ b/drivers/clk/stm32/clk-stm32mp1.c
>> @@ -550,7 +550,7 @@ static const struct stm32mp1_clk_gate stm32mp1_clk_gate[] = {
>> STM32MP1_CLK_SET_CLR_F(RCC_MP_APB4ENSETR, 0, LTDC_PX, _PLL4_Q),
>> STM32MP1_CLK_SET_CLR_F(RCC_MP_APB4ENSETR, 4, DSI_PX, _PLL4_Q),
>> - STM32MP1_CLK_SET_CLR(RCC_MP_APB4ENSETR, 4, DSI_K, _DSI_SEL),
>> + STM32MP1_CLK_SET_CLR(RCC_MP_APB4ENSETR, 4, DSI, _DSI_SEL),
>> STM32MP1_CLK_SET_CLR(RCC_MP_APB4ENSETR, 8, DDRPERFM, _UNKNOWN_SEL),
>> STM32MP1_CLK_SET_CLR(RCC_MP_APB4ENSETR, 15, IWDG2, _UNKNOWN_SEL),
>> STM32MP1_CLK_SET_CLR(RCC_MP_APB4ENSETR, 16, USBPHY_K, _USBPHY_SEL),
>
>
> See down stream path: "clk: stm32mp1: fix DSI clock setting"
Right, i missed this one.
>
> in fact both clock, DSI_K and DSI are supported, with the other source clock
>
> STM32MP1_CLK_SET_CLR_F(RCC_MP_APB4ENSETR, 4, DSI_PX, _PLL4_Q),
> STM32MP1_CLK_SET_CLR(RCC_MP_APB4ENSETR, 4, DSI_K, _DSI_SEL),
> + STM32MP1_CLK_SET_CLR(RCC_MP_APB4ENSETR, 4, DSI, _PLL4_P),
> STM32MP1_CLK_SET_CLR(RCC_MP_APB4ENSETR, 8, DDRPERFM, _UNKNOWN_SEL),
> STM32MP1_CLK_SET_CLR(RCC_MP_APB4ENSETR, 15, IWDG2, _UNKNOWN_SEL),
>
> => just need to add the "DSI" clock with same bit but with "PLL4_P" as source
Thanks
Patrice
>
next prev parent reply other threads:[~2025-04-22 9:44 UTC|newest]
Thread overview: 31+ messages / expand[flat|nested] mbox.gz Atom feed top
2025-04-01 13:14 [PATCH 00/13] Enable OF_UPSTREAM for STM32 and STi platforms Patrice Chotard
2025-04-01 13:14 ` [PATCH 01/13] ARM: dts: sti: convert stih410-b2260 board to OF_UPSTREAM Patrice Chotard
2025-04-22 7:59 ` Patrick DELAUNAY
2025-04-01 13:14 ` [PATCH 02/13] ARM: dts: stm32: convert stm23h7 boards " Patrice Chotard
2025-04-22 8:00 ` Patrick DELAUNAY
2025-04-01 13:14 ` [PATCH 03/13] ARM: dts: stm32: convert stm23f7 " Patrice Chotard
2025-04-22 8:06 ` Patrick DELAUNAY
2025-04-01 13:14 ` [PATCH 04/13] ARM: dts: stm32: convert stm23f4 " Patrice Chotard
2025-04-22 8:07 ` Patrick DELAUNAY
2025-04-01 13:14 ` [PATCH 05/13] ARM: dts: stm32: convert stm32mp13 board " Patrice Chotard
2025-04-22 8:08 ` Patrick DELAUNAY
2025-04-01 13:14 ` [PATCH 06/13] ARM: dts: stm32: convert stm32mp15 " Patrice Chotard
2025-04-22 8:10 ` Patrick DELAUNAY
2025-04-01 13:14 ` [PATCH 07/13] configs: stm32: introduce stm32mp15-odyssey_defconfig Patrice Chotard
2025-04-22 8:16 ` Patrick DELAUNAY
2025-04-22 9:06 ` Patrice CHOTARD
2025-04-01 13:14 ` [PATCH 08/13] stm32mp1: clk: Update index for DSI gate Patrice Chotard
2025-04-22 8:24 ` Patrick DELAUNAY
2025-04-22 9:42 ` Patrice CHOTARD [this message]
2025-04-01 13:14 ` [PATCH 09/13] ARM: stm32mp: add ETZPC system bus driver for STM32MP1 Patrice Chotard
2025-04-22 8:31 ` Patrick DELAUNAY
2025-04-22 9:33 ` Patrice CHOTARD
2025-04-01 13:14 ` [PATCH 10/13] ARM: dts: stm32: add ETZPC as a system bus for STM32MP1x boards Patrice Chotard
2025-04-22 8:32 ` Patrick DELAUNAY
2025-04-01 13:14 ` [PATCH 11/13] stm32mp: fdt: remove ETZPC peripheral cleanup Patrice Chotard
2025-04-22 8:37 ` Patrick DELAUNAY
2025-04-01 13:14 ` [PATCH 12/13] ARM: dts: stm32: convert stm32mp2 board to OF_UPSTREAM Patrice Chotard
2025-04-22 8:40 ` Patrick DELAUNAY
2025-04-01 13:14 ` [PATCH 13/13] ARM: stm32mp: add RIFSC system bus driver for STM32MP25 Patrice Chotard
2025-04-22 8:44 ` Patrick DELAUNAY
2025-04-22 8:51 ` Patrice CHOTARD
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=2be878a1-a4a6-4fd7-9ea7-d2337a4bbad4@foss.st.com \
--to=patrice.chotard@foss.st.com \
--cc=lukma@denx.de \
--cc=patrick.delaunay@foss.st.com \
--cc=seanga2@gmail.com \
--cc=sjg@chromium.org \
--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.