[PATCH v5 0/5] clk: stm32: Add the STM32MP2 SYSCFG LTDC pixel clock mux

Brian Masney masneyb at kernel.org
Tue Dec 1 08:04:21 PST 2026


> On STM32MP23x and STM32MP25x, the LTDC pixel clock is selected in the
> SYSCFG DISPLAYCLKCR register among the LTDC kernel clock (RGB output),
> the LVDS PHY pixel clock (reset value) and the DSI PHY byte lane clock.
> The SYSCFG node is already described as the provider of this clock, used
> as the LTDC "ref" clock, but no driver registers it, so the RGB output
> can't be used.
> 
> This series adds a clock driver for this mux. It is based on the RFC
> sent by Dario [1] and on the driver delivered in the ST downstream
> kernel.
> 
> The SYSCFG node remains the clock provider ('#clock-cells = <0>'), and
> the inputs of the mux are described by its "clocks" property. They are
> only described on STM32MP235 and STM32MP255, which have the LVDS and the
> DSI and whose LTDC uses this clock, with new SoC specific SYSCFG
> compatibles. As the SYSCFG node is bound to the STM32MP2 SYSCFG driver,
> the clock driver is an auxiliary driver, whose device is created by the
> SYSCFG driver. The LTDC "ref" clock is left unchanged.
> 
> As the SYSCFG node is a syscon, the syscon core attaches its first
> clock to the SYSCFG regmap, i.e. the LTDC kernel clock on STM32MP235 and
> STM32MP255: this clock is kept prepared, with its parents, and enabled
> around each register access. The SYSCFG registers don't need it, but
> this has no functional impact. The LTDC kernel clock is listed first as
> it is always provided by the RCC, while the LVDS may be disabled, which
> would defer all the SYSCFG users.
> 
> v3 avoided this by registering the SYSCFG regmap from the SYSCFG
> driver, but the syscon users could create it before, all the more as
> fw_devlink defers the SYSCFG probe until its clocks are available. As
> doing it reliably would require an early initcall, this patch is
> dropped. Please let me know if you would prefer this approach.
> 
> Changes compared to the RFC [1]:
> - parents described by clocks/clock-names instead of global names
> - auxiliary device created on STM32MP23x too
> - SoC devicetrees updated, Engicam board patches dropped
> 
> [1] https://lore.kernel.org/all/20261028135915.2665857-1-dario.binacchi@amarulasolutions.com/
> 
> Signed-off-by: Gabriel Fernandez <gabriel.fernandez at foss.st.com>

What's the merge strategy for this? Does it all need to go in together?

Brian

-- 
Brian Masney <masneyb at kernel.org>



More information about the linux-arm-kernel mailing list