[PATCH 1/3] drm: bridge: Add DSI HS clock frequency limits to bridge state

Marek Vasut marex at denx.de
Wed Oct 26 15:35:57 UTC 2022


Add the ability to pass DSI HS clock frequency constraints between
neighboring DSI bridges via struct drm_bridge_state . This way the
DSI HS clock frequency negotiation can be implemented instead of
the current ad-hoc method where each bridge attempts to guess the
neighbor HS clock frequency setting or expectation.

Signed-off-by: Marek Vasut <marex at denx.de>
---
Cc: Laurent Pinchart <Laurent.pinchart at ideasonboard.com>
Cc: Lucas Stach <l.stach at pengutronix.de>
Cc: Maxime Ripard <maxime at cerno.tech>
Cc: Robert Foss <robert.foss at linaro.org>
Cc: Sam Ravnborg <sam at ravnborg.org>
---
 include/drm/drm_atomic.h | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/include/drm/drm_atomic.h b/include/drm/drm_atomic.h
index 10b1990bc1f68..eece7557933d2 100644
--- a/include/drm/drm_atomic.h
+++ b/include/drm/drm_atomic.h
@@ -1117,6 +1117,8 @@ struct drm_bridge_state {
 	 * @input_bus_cfg: input bus configuration
 	 */
 	struct drm_bus_cfg input_bus_cfg;
+	unsigned long hs_rate_min;
+	unsigned long hs_rate_max;
 
 	/**
 	 * @output_bus_cfg: input bus configuration
-- 
2.35.1



More information about the dri-devel mailing list