Skip to content

RFC Select the STM32MP25 LTDC pixel clock source for the RGB output

Dario Binacchi linux-arm-kernel linux-clk linux-devicetree lkml 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 RFC Latest4 patches 3 repliesIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/4arm64: dts: st: fix the Engicam RMM RGB display pixel clockarch/arm64/boot/dts/st/stm32mp257d-engicam-microgea-rmm-overlay-rk050hr345-ct106a.dtso+3 -00 replies
2/4clk: stm32: add STM32MP25 SYSCFG clock driverdrivers/clk/stm32/Kconfig drivers/clk/stm32/Makefile drivers/clk/stm32/clk-stm32mp25-syscfg.c+124 -00 replies
3/4soc: st: stm32mp2-syscfg: register the STM32MP25 clock devicedrivers/soc/st/Kconfig drivers/soc/st/stm32mp2-syscfg.c+27 -20 replies
4/4arm64: dts: st: select the Engicam RMM display pixel clock sourcearch/arm64/boot/dts/st/stm32mp257d-engicam-microgea-rmm-overlay-am-1280800w8tzqw-t00h.dtso arch/arm64/boot/dts/st/stm32mp257d-engicam-microgea-rmm-overlay-rk050hr345-ct106a.dtso+5 -01 reply

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.

Read the v1 thread

Cover letter [RFC PATCH 0/4] Select the STM32MP25 LTDC pixel clock source for the RGB output

On STM32MP25 the LTDC pixel clock is selected in the SYSCFG DISPLAYCLKCR register among the DSI byte lane clock, the LVDS PHY pixel clock (reset value) and the LTDC kernel clock. The SYSCFG node is already described as provider of this clock, which the LTDC references as "ref" clock, but no driver registers it, so the RGB (DPI) output can't work.

This series adds a driver for this mux, probed as an auxiliary device of the STM32MP2 SYSCFG driver, and selects the pixel clock source on the Engicam MicroGEA-STM32MP257D-RMM display overlays. Patch 1 is an independent fix for the RGB display overlay.

Tested on the Engicam MicroGEA-STM32MP257D-RMM board with both the RGB (Rocktech RK050HR345-CT106A) and the LVDS (Ampire AM-1280800W8TZQW-T00H) displays.

I am sending it as RFC since I am not sure about:

- the mux parents are referenced by their global names. Should they rather be described by clocks/clock-names in the SYSCFG binding? Moreover, no driver registers "txbyteclk" yet.

- the pixel clock source is selected in the board devicetree by assigned-clock-parents. Should the LTDC driver rather select it according to its output (RGB, LVDS or DSI)?

Dario Binacchi (4):
arm64: dts: st: fix the Engicam RMM RGB display pixel clock
clk: stm32: add STM32MP25 SYSCFG clock driver
soc: st: stm32mp2-syscfg: register the STM32MP25 clock device
arm64: dts: st: select the Engicam RMM display pixel clock source

 ...gea-rmm-overlay-am-1280800w8tzqw-t00h.dtso |   3 +
 ...icrogea-rmm-overlay-rk050hr345-ct106a.dtso |   5 +
 drivers/clk/stm32/Kconfig                     |  12 ++
 drivers/clk/stm32/Makefile                    |   1 +
 drivers/clk/stm32/clk-stm32mp25-syscfg.c      | 111 ++++++++++++++++++
 drivers/soc/st/Kconfig                        |   1 +
 drivers/soc/st/stm32mp2-syscfg.c              |  28 ++++-
 7 files changed, 159 insertions(+), 2 deletions(-)
 create mode 100644 drivers/clk/stm32/clk-stm32mp25-syscfg.c

---
base-commit: 65ba8f34ec886ec72b2c07ddc8cf3d815c32869d
branch: stm32mp25-ltdc-pixclk

Signature · 1 line
2.43.0