Linux clock framework development
 help / color / mirror / Atom feed
* [PATCH v3 0/2] Remove hard coded values for MIPI-DSI
@ 2025-10-22 23:59 Chris Brandt
  2025-10-22 23:59 ` [PATCH v3 1/2] clk: renesas: rzg2l: Remove DSI clock rate restrictions Chris Brandt
  2025-10-22 23:59 ` [PATCH v3 2/2] drm: renesas: rz-du: Set DSI divider based on target MIPI device Chris Brandt
  0 siblings, 2 replies; 18+ messages in thread
From: Chris Brandt @ 2025-10-22 23:59 UTC (permalink / raw)
  To: Geert Uytterhoeven, Michael Turquette, Stephen Boyd, Biju Das,
	Maarten Lankhorst, Maxime Ripard, Thomas Zimmermann, David Airlie,
	Simona Vetter, Hien Huynh, Nghia Vo, Hugo Villeneuve
  Cc: linux-renesas-soc, linux-clk, dri-devel, Chris Brandt

When the initial drivers were submitted, some of the timing was hard coded and
did not allow for any MIPI-DSI panel to be attached.
In general, panels or bridges can only be supported if MIPI-DSI lanes were 4.
If the number of lanes were 3,2,1, the math no longer works out.

A new API was created for the clock driver because the behaivior of the clock
driver depends on DPI vs MIPI, the screen resolution, and the number of MIPI
lanes.


Testing:
* RZ/G2L SMARC  (MIPI-DSI to HDMI bridge, lanes = 4)
* RZ/G2L-SBC    (MIPI-DSI to LCD panel, lanes = 2)
* RZ/G2UL SMARC (DPI to HDMI bridge)


Regression Testing:
There are 2 patches in this series.
If you just apply the first patch that only modifies the clock driver, the
operation of the RZ/G2L SMARC and RZ/G2UL SMARC remains the same.

However of course, the second patch is needed in the mipi-dsi driver in order
to make sure of the new API so that lanes 3,2,1 can be supported.

Chris Brandt (2):
  clk: renesas: rzg2l: Remove DSI clock rate restrictions
  drm: renesas: rz-du: Set DSI divider based on target MIPI device

 drivers/clk/renesas/rzg2l-cpg.c               | 129 ++++++++++++++++--
 .../gpu/drm/renesas/rz-du/rzg2l_mipi_dsi.c    |  19 +++
 include/linux/clk/renesas.h                   |  11 ++
 3 files changed, 149 insertions(+), 10 deletions(-)

--
2.50.1


^ permalink raw reply	[flat|nested] 18+ messages in thread

end of thread, other threads:[~2025-10-28 23:10 UTC | newest]

Thread overview: 18+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2025-10-22 23:59 [PATCH v3 0/2] Remove hard coded values for MIPI-DSI Chris Brandt
2025-10-22 23:59 ` [PATCH v3 1/2] clk: renesas: rzg2l: Remove DSI clock rate restrictions Chris Brandt
2025-10-23  1:49   ` Hugo Villeneuve
2025-10-23 16:47     ` Chris Brandt
2025-10-23 18:03       ` Hugo Villeneuve
2025-10-23 18:25         ` Chris Brandt
2025-10-23 18:25   ` kernel test robot
2025-10-23 18:31   ` Hugo Villeneuve
2025-10-28 16:17     ` Chris Brandt
2025-10-28 16:38       ` Hugo Villeneuve
2025-10-28 17:45         ` Chris Brandt
2025-10-28 19:06           ` Biju Das
2025-10-28 19:43             ` Chris Brandt
2025-10-28 20:11               ` Biju Das
2025-10-28 23:10                 ` Chris Brandt
2025-10-24  7:31   ` Geert Uytterhoeven
2025-10-22 23:59 ` [PATCH v3 2/2] drm: renesas: rz-du: Set DSI divider based on target MIPI device Chris Brandt
2025-10-23 18:25   ` kernel test robot

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox