From: Yannick FERTRE - foss <yannick.fertre@foss.st.com>
To: Dario Binacchi <dario.binacchi@amarulasolutions.com>,
"Alexandre TORGUE - foss" <alexandre.torgue@foss.st.com>,
Stephen Boyd <sboyd@kernel.org>
Cc: Marek Vasut <marex@nabladev.com>,
Gabriel FERNANDEZ - foss <gabriel.fernandez@foss.st.com>,
"michael@amarulasolutions.com" <michael@amarulasolutions.com>,
"linux-amarula@amarulasolutions.com"
<linux-amarula@amarulasolutions.com>,
Raphael GALLAIS-POU - foss <raphael.gallais-pou@foss.st.com>,
Conor Dooley <conor+dt@kernel.org>,
Krzysztof Kozlowski <krzk+dt@kernel.org>,
Maxime Coquelin <mcoquelin.stm32@gmail.com>,
Rob Herring <robh@kernel.org>,
"devicetree@vger.kernel.org" <devicetree@vger.kernel.org>,
"linux-arm-kernel@lists.infradead.org"
<linux-arm-kernel@lists.infradead.org>,
"linux-kernel@vger.kernel.org" <linux-kernel@vger.kernel.org>,
"linux-stm32@st-md-mailman.stormreply.com"
<linux-stm32@st-md-mailman.stormreply.com>
Subject: Re: [RFC PATCH 4/4] arm64: dts: st: select the Engicam RMM display pixel clock source
Date: Mon, 9 Nov 2026 12:25:04 +0000 [thread overview]
Message-ID: <01bd9e22-b357-4093-82f7-485698be30a4@foss.st.com> (raw)
In-Reply-To: <20261028135915.2665857-5-dario.binacchi@amarulasolutions.com>
Hi Dario,
The parent clock of ltdc must not be assigned in the DTS file.
The ltdc driver must check the display path at probe and assign the
parent clock based on the type of connected panel (LVDS/DSI or DPI).
Best regards
On 10/28/26 14:59, Dario Binacchi wrote:
> On STM32MP255/257 the LTDC pixel clock is selected by the SYSCFG
> pixel clock mux, whose reset value is the LVDS PHY pixel clock. With
> the RGB panel the LTDC is then clocked by the unused LVDS PHY, and every
> commit times out:
>
> [CRTC:42:crtc-0] vblank wait timed out
> [drm] *ERROR* flip_done timed out
>
> Select the LTDC kernel clock as pixel clock source in the RGB panel
> overlay and, for consistency, without relying on the reset value, the
> LVDS PHY pixel clock in the LVDS panel overlay.
>
> Signed-off-by: Dario Binacchi <dario.binacchi@amarulasolutions.com>
>
> ---
>
> ...57d-engicam-microgea-rmm-overlay-am-1280800w8tzqw-t00h.dtso | 3 +++
> ...2mp257d-engicam-microgea-rmm-overlay-rk050hr345-ct106a.dtso | 2 ++
> 2 files changed, 5 insertions(+)
>
> diff --git a/arch/arm64/boot/dts/st/stm32mp257d-engicam-microgea-rmm-overlay-am-1280800w8tzqw-t00h.dtso b/arch/arm64/boot/dts/st/stm32mp257d-engicam-microgea-rmm-overlay-am-1280800w8tzqw-t00h.dtso
> index 7655c1bf56b1..b44e1d3ddb1b 100644
> --- a/arch/arm64/boot/dts/st/stm32mp257d-engicam-microgea-rmm-overlay-am-1280800w8tzqw-t00h.dtso
> +++ b/arch/arm64/boot/dts/st/stm32mp257d-engicam-microgea-rmm-overlay-am-1280800w8tzqw-t00h.dtso
> @@ -32,6 +32,9 @@ &framebuffer {
> };
>
> <dc {
> + /* LVDS output: the pixel clock is the LVDS PHY one */
> + assigned-clocks = <&syscfg>;
> + assigned-clock-parents = <&lvds>;
> status = "okay";
>
> port {
> diff --git a/arch/arm64/boot/dts/st/stm32mp257d-engicam-microgea-rmm-overlay-rk050hr345-ct106a.dtso b/arch/arm64/boot/dts/st/stm32mp257d-engicam-microgea-rmm-overlay-rk050hr345-ct106a.dtso
> index 7be955be58ed..7855086c33c7 100644
> --- a/arch/arm64/boot/dts/st/stm32mp257d-engicam-microgea-rmm-overlay-rk050hr345-ct106a.dtso
> +++ b/arch/arm64/boot/dts/st/stm32mp257d-engicam-microgea-rmm-overlay-rk050hr345-ct106a.dtso
> @@ -38,6 +38,8 @@ touchscreen@38 {
> <dc {
> /* RGB output: the pixel clock is the LTDC kernel clock */
> clocks = <&rcc CK_KER_LTDC>, <&rcc CK_BUS_LTDC>, <&syscfg>, <&lvds>;
> + assigned-clocks = <&syscfg>;
> + assigned-clock-parents = <&rcc CK_KER_LTDC>;
> pinctrl-names = "default", "sleep";
> pinctrl-0 = <<dc_pins_a>;
> pinctrl-1 = <<dc_sleep_pins_a>;
next prev parent reply other threads:[~2026-11-09 12:25 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-10-28 13:59 [RFC PATCH 0/4] Select the STM32MP25 LTDC pixel clock source for the RGB output Dario Binacchi
2026-10-28 13:59 ` [RFC PATCH 1/4] arm64: dts: st: fix the Engicam RMM RGB display pixel clock Dario Binacchi
2026-10-28 13:59 ` [RFC PATCH 2/4] clk: stm32: add STM32MP25 SYSCFG clock driver Dario Binacchi
2026-10-28 13:59 ` [RFC PATCH 3/4] soc: st: stm32mp2-syscfg: register the STM32MP25 clock device Dario Binacchi
2026-10-28 13:59 ` [RFC PATCH 4/4] arm64: dts: st: select the Engicam RMM display pixel clock source Dario Binacchi
2026-11-09 12:25 ` Yannick FERTRE - foss [this message]
2026-11-04 10:42 ` [RFC PATCH 0/4] Select the STM32MP25 LTDC pixel clock source for the RGB output Gabriel FERNANDEZ
2026-11-04 14:30 ` Dario Binacchi
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=01bd9e22-b357-4093-82f7-485698be30a4@foss.st.com \
--to=yannick.fertre@foss.st.com \
--cc=alexandre.torgue@foss.st.com \
--cc=conor+dt@kernel.org \
--cc=dario.binacchi@amarulasolutions.com \
--cc=devicetree@vger.kernel.org \
--cc=gabriel.fernandez@foss.st.com \
--cc=krzk+dt@kernel.org \
--cc=linux-amarula@amarulasolutions.com \
--cc=linux-arm-kernel@lists.infradead.org \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-stm32@st-md-mailman.stormreply.com \
--cc=marex@nabladev.com \
--cc=mcoquelin.stm32@gmail.com \
--cc=michael@amarulasolutions.com \
--cc=raphael.gallais-pou@foss.st.com \
--cc=robh@kernel.org \
--cc=sboyd@kernel.org \
/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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®