OrangePi_CM5/drivers/gpu/drm/mediatek
Jitao Shi 2d05cf1069 drm/mediatek: Keep dsi as LP00 before dcs cmds transfer
[ Upstream commit 39e8d062b03c3dc257d880d82bd55cdd9e185a3b ]

To comply with the panel sequence, hold the mipi signal to LP00 before
the dcs cmds transmission, and pull the mipi signal high from LP00 to
LP11 until the start of the dcs cmds transmission.

The normal panel timing is :
(1) pp1800 DC pull up
(2) avdd & avee AC pull high
(3) lcm_reset pull high -> pull low -> pull high
(4) Pull MIPI signal high (LP11) -> initial code -> send video data
    (HS mode)

The power-off sequence is reversed.
If dsi is not in cmd mode, then dsi will pull the mipi signal high in
the mtk_output_dsi_enable function. The delay in lane_ready func is
the reaction time of dsi_rx after pulling up the mipi signal.

Fixes: 2dd8075d21 ("drm/mediatek: mtk_dsi: Use the drm_panel_bridge API")

Link: https://patchwork.kernel.org/project/linux-mediatek/patch/1653012007-11854-4-git-send-email-xinlei.lee@mediatek.com/
Cc: <stable@vger.kernel.org> # 5.10.x: 7f6335c6a258: drm/mediatek: Modify dsi funcs to atomic operations
Cc: <stable@vger.kernel.org> # 5.10.x: cde7e2e35c28: drm/mediatek: Separate poweron/poweroff from enable/disable and define new funcs
Cc: <stable@vger.kernel.org> # 5.10.x
Signed-off-by: Jitao Shi <jitao.shi@mediatek.com>
Signed-off-by: Xinlei Lee <xinlei.lee@mediatek.com>
Reviewed-by: AngeloGioacchino Del Regno <angelogioacchino.delregno@collabora.com>
Reviewed-by: Rex-BC Chen <rex-bc.chen@mediatek.com>
Signed-off-by: Chun-Kuang Hu <chunkuang.hu@kernel.org>
Signed-off-by: Sasha Levin <sashal@kernel.org>
2022-08-21 15:16:15 +02:00
..
Kconfig
Makefile
mtk_cec.c drm/mediatek: Fix mtk_cec_mask() 2022-06-09 10:21:00 +02:00
mtk_cec.h
mtk_disp_color.c
mtk_disp_ovl.c
mtk_disp_rdma.c
mtk_dpi.c drm/mediatek: dpi: Only enable dpi after the bridge is enabled 2022-08-21 15:15:44 +02:00
mtk_dpi_regs.h
mtk_drm_crtc.c drm/mediatek: Fix PM reference leak in mtk_crtc_ddp_hw_init() 2021-07-19 09:44:38 +02:00
mtk_drm_crtc.h
mtk_drm_ddp.c
mtk_drm_ddp.h
mtk_drm_ddp_comp.c drm/mediatek: Add AAL output size configuration 2021-08-26 08:35:43 -04:00
mtk_drm_ddp_comp.h soc / drm: mediatek: Move DDP component defines into mtk-mmsys.h 2021-08-26 08:35:42 -04:00
mtk_drm_drv.c
mtk_drm_drv.h
mtk_drm_gem.c
mtk_drm_gem.h
mtk_drm_plane.c
mtk_drm_plane.h
mtk_dsi.c drm/mediatek: Keep dsi as LP00 before dcs cmds transfer 2022-08-21 15:16:15 +02:00
mtk_hdmi.c
mtk_hdmi.h
mtk_hdmi_ddc.c
mtk_hdmi_regs.h
mtk_mipi_tx.c phy: mediatek: Fix missing check in mtk_mipi_tx_probe 2022-01-27 10:54:24 +01:00
mtk_mipi_tx.h
mtk_mt8173_mipi_tx.c
mtk_mt8183_mipi_tx.c