]> 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)
commitdeba99bf618e80928e668a7fc1ff8c7d2e817f02
tree4760c7b2ce5ec007f32f647cd92af125641d5993
parent352e5745ec7194c18c86d893a6be70472ea9e5a4
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