]> git.baikalelectronics.ru Git - kernel.git/commit
drm/stm: dsi: provide the implementation of mode_valid()
authorAntonio Borneo <antonio.borneo@foss.st.com>
Sat, 18 Dec 2021 21:50:54 +0000 (22:50 +0100)
committerRobert Foss <robert.foss@linaro.org>
Tue, 4 Jan 2022 11:54:02 +0000 (12:54 +0100)
commitd209cfe8414f0d19784310483a23c5c27c073912
tree4760c7b2ce5ec007f32f647cd92af125641d5993
parent18f0ad06829a19940aa7114d84e6acb6053d5fd5
drm/stm: dsi: provide the implementation of mode_valid()

The dsi has several constraints on the video modes it can support,
mainly due to the frequencies that can be generated by the PLL
integrated in the DSI device.

Verify that the required HS clock can be generated by the PLL.

The dsi clock from the dsi PLL and the ltdc pixel clock are
asynchronous. The dsi needs to return in LP mode during HFP or HBP
to re-synchronize at each video line.

Verify that the duration of HFP and HBP allows the dsi to enter in
LP mode.

Signed-off-by: Antonio Borneo <antonio.borneo@foss.st.com>
Acked-by: Philippe Cornu <philippe.cornu@foss.st.com>
Reviewed-by: Philippe Cornu <philippe.cornu@foss.st.com>
Signed-off-by: Robert Foss <robert.foss@linaro.org>
Link: https://patchwork.freedesktop.org/patch/msgid/20211218215055.212421-3-antonio.borneo@foss.st.com
drivers/gpu/drm/stm/dw_mipi_dsi-stm.c