[v1, 3/3] drm/mediatek: Move the getting bridge node function to mtk_dsi_bind

2022-01-27 Thread xinlei.lee
From: xinlei lee The order of probe function for bridge drivers and dsi drivers is uncertain. To avoid the dsi probe cannot be executed, we place getting bridge node function in mtk_dsi_bind. Signed-off-by:Xinlei Lee --- drivers/gpu/drm/mediatek/mtk_dsi.c | 29 +++-- 1

[v1, 0/3] Add mt8186 dsi compatoble & Move the getting bridge node function

2022-01-27 Thread xinlei.lee
From: xinlei lee The modification is based on avoiding screen shift: https://patchwork.kernel.org/project/linux-mediatek/cover/20220114092110.12137-1-rex-bc.c...@mediatek.com/ xinlei lee (3): dt-bindings: display: mediatek: dsi: add documentation for MT8186 SoC drm/mediatek: Add mt8186 dsi c

[v1,2/3] drm/mediatek: Add mt8186 dsi compatible to mtk_dsi.c

2022-01-27 Thread xinlei.lee
From: xinlei lee Add the compatible of mt8186-dsi because we use different cmdq addresses in mt8186. Signed-off-by: Xinlei Lee --- drivers/gpu/drm/mediatek/mtk_dsi.c | 8 1 file changed, 8 insertions(+) diff --git a/drivers/gpu/drm/mediatek/mtk_dsi.c b/drivers/gpu/drm/mediatek/mtk_

[v1, 1/3] dt-bindings: display: mediatek: dsi: add documentation for MT8186 SoC

2022-01-27 Thread xinlei.lee
From: xinlei lee Add binding documentation for the MT8186 SoC. Signed-off-by: Xinlei Lee --- Documentation/devicetree/bindings/display/mediatek/mediatek,dsi.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Documentation/devicetree/bindings/display/mediatek/mediatek,dsi.

[PATCH v7,0/3] Add dpi output format control for MT8186

2022-09-22 Thread xinlei.lee
From: Xinlei Lee Base on the branch of ck-linux-next/mediatek-drm-fixes. Changes since v6: 1. Different from other ICs, when mt8186 DPI changes the output format, the mmsys_base+400 register needs to be set to be valid at the same time. In this series, all the situations that mmsys need to be

[PATCH v7,3/3] drm: mediatek: Add mt8186 dpi compatible to

2022-09-22 Thread xinlei.lee
From: Xinlei Lee Add the compatible because use edge_cfg_in_mmsys in mt8186. Signed-off-by: Xinlei Lee --- drivers/gpu/drm/mediatek/mtk_dpi.c | 21 + drivers/gpu/drm/mediatek/mtk_drm_drv.c | 2 ++ 2 files changed, 23 insertions(+) diff --git a/drivers/gpu/drm/mediatek

[PATCH v7,2/3] drm: mediatek: Adjust the dpi output format to MT8186

2022-09-22 Thread xinlei.lee
From: Xinlei Lee Due to the mt8186 hardware changes, we need to modify the dpi output format corresponding to the mmsys register(mmsys_base+0x400). Because different sink ICs may support other output formats. The current DRM architecture supports retrieving the output format of all bridges (eg

[PATCH v7, 1/3] soc: mediatek: Add mmsys func to adapt to dpi output for MT8186

2022-09-22 Thread xinlei.lee
From: Xinlei Lee The difference between MT8186 and other ICs is that when modifying the output format, we need to modify the mmsys_base+0x400 register to take effect. So when setting the dpi output format, we need to call mmsys_func to set it to MT8186 synchronously. Co-developed-by: Jitao Shi

[PATCH v8,0/3] Add dpi output format control for MT8186

2022-09-22 Thread xinlei.lee
From: Xinlei Lee Base on the branch of ck-linux-next/mediatek-drm-fixes. Changes since v7: 1. This series is based on the following patch: [1] soc: mediatek: Add mmsys func to adapt to dpi output for MT8186 https://patchwork.kernel.org/project/linux-mediatek/patch/1663161662-1598-2-git-se

[PATCH v8, 1/3] soc: mediatek: Add all settings to mtk_mmsys_ddp_dpi_fmt_config func

2022-09-22 Thread xinlei.lee
From: Xinlei Lee The difference between MT8186 and other ICs is that when modifying the output format, we need to modify the mmsys_base+0x400 register to take effect. So when setting the dpi output format, we need to call mmsys_func to set it to MT8186 synchronously. Adding mmsys all the settings

[PATCH v8, 3/3] drm: mediatek: Add mt8186 dpi compatibles and platform data

2022-09-22 Thread xinlei.lee
From: Xinlei Lee Add the compatible because use edge_cfg_in_mmsys in mt8186. Signed-off-by: Xinlei Lee --- drivers/gpu/drm/mediatek/mtk_dpi.c | 21 + drivers/gpu/drm/mediatek/mtk_drm_drv.c | 2 ++ 2 files changed, 23 insertions(+) diff --git a/drivers/gpu/drm/mediatek

[PATCH v8,2/3]drm: mediatek: Adjust the dpi output format to MT8186

2022-09-22 Thread xinlei.lee
From: Xinlei Lee Due to the mt8186 hardware changes, we need to modify the dpi output format corresponding to the mmsys register(mmsys_base+0x400). Because different sink ICs may support other output formats. The current DRM architecture supports retrieving the output format of all bridges (eg

[PATCH] dt-bindings: display: mediatek: dsi: Add compatible for MediaTek MT8188

2022-09-22 Thread xinlei.lee
From: xinlei lee Add dt-binding documentation of dpi for MediaTek MT8188 SoC. Signed-off-by: xinlei lee --- Documentation/devicetree/bindings/display/mediatek/mediatek,dsi.yaml | 1 + 1 file changed, 1 insertion(+) diff --git a/Documentation/devicetree/bindings/display/mediatek/mediatek,dsi.

[PATCH v9, 3/3] drm: mediatek: Add mt8186 dpi compatibles and platform data

2022-09-23 Thread xinlei.lee
From: Xinlei Lee Add the compatible because use edge_cfg_in_mmsys in mt8186. Signed-off-by: Xinlei Lee Reviewed-by: CK Hu --- drivers/gpu/drm/mediatek/mtk_dpi.c | 21 + drivers/gpu/drm/mediatek/mtk_drm_drv.c | 2 ++ 2 files changed, 23 insertions(+) diff --git a/driv

[PATCH v9, 1/3] soc: mediatek: Add all settings to mtk_mmsys_ddp_dpi_fmt_config func

2022-09-23 Thread xinlei.lee
From: Xinlei Lee The difference between MT8186 and other ICs is that when modifying the output format, we need to modify the mmsys_base+0x400 register to take effect. So when setting the dpi output format, we need to call mmsys_func to set it to MT8186 synchronously. Adding mmsys all the settings

[PATCH v9,0/3] Add dpi output format control for MT8186

2022-09-23 Thread xinlei.lee
From: Xinlei Lee Base on the branch of ck-linux-next/mediatek-drm-fixes. Change since v8: 1. Modified the title and some description information. Changes since v7: 1. This series is based on the following patch: [1] soc: mediatek: Add mmsys func to adapt to dpi output for MT8186 https://

[PATCH v9,2/3] drm: mediatek: Set dpi format in mmsys

2022-09-23 Thread xinlei.lee
From: Xinlei Lee Due to the mt8186 hardware changes, we need to modify the dpi output format corresponding to the mmsys register(mmsys_base+0x400). Co-developed-by: Jitao Shi Signed-off-by: Jitao Shi Signed-off-by: Xinlei Lee --- drivers/gpu/drm/mediatek/mtk_dpi.c | 11 +++ 1 file ch

[PATCH v10,0/3] Add dpi output format control for MT8186

2022-09-23 Thread xinlei.lee
From: Xinlei Lee Base on the branch of ck-linux-next/mediatek-drm-fixes. Change since v9: 1. Modify the location of the mmsys_dev member variable. Change since v8: 1. Modified the title and some description information. Changes since v7: 1. This series is based on the following patch: [1] s

[PATCH v10, 1/3] soc: mediatek: Add all settings to mtk_mmsys_ddp_dpi_fmt_config func

2022-09-23 Thread xinlei.lee
From: Xinlei Lee The difference between MT8186 and other ICs is that when modifying the output format, we need to modify the mmsys_base+0x400 register to take effect. So when setting the dpi output format, we need to call mmsys_func to set it to MT8186 synchronously. Adding mmsys all the settings

[PATCH v10, 3/3] drm: mediatek: Add mt8186 dpi compatibles and platform data

2022-09-23 Thread xinlei.lee
From: Xinlei Lee Add the compatible because use edge_cfg_in_mmsys in mt8186. Signed-off-by: Xinlei Lee Reviewed-by: CK Hu Reviewed-by: AngeloGioacchino Del Regno --- drivers/gpu/drm/mediatek/mtk_dpi.c | 21 + drivers/gpu/drm/mediatek/mtk_drm_drv.c | 2 ++ 2 files ch

[PATCH v10, 2/3] drm: mediatek: Adjust the dpi output format to MT8186

2022-09-23 Thread xinlei.lee
From: Xinlei Lee Dpi output needs to adjust the output format to dual edge for MT8186. Co-developed-by: Jitao Shi Signed-off-by: Jitao Shi Signed-off-by: Xinlei Lee --- drivers/gpu/drm/mediatek/mtk_dpi.c | 11 +++ 1 file changed, 11 insertions(+) diff --git a/drivers/gpu/drm/mediate

[PATCH v11,0/3] Add dpi output format control for MT8186

2022-09-26 Thread xinlei.lee
From: Xinlei Lee From: Xinlei Lee Base on the branch of ck-linux-next/mediatek-drm-fixes. Change since v10: 1. Modify patch title and add review tag. Change since v9: 1. Modify the location of the mmsys_dev member variable. Change since v8: 1. Modified the title and some description informat

[PATCH v11, 1/3] soc: mediatek: Add all settings to mtk_mmsys_ddp_dpi_fmt_config func

2022-09-26 Thread xinlei.lee
From: Xinlei Lee The difference between MT8186 and other ICs is that when modifying the output format, we need to modify the mmsys_base+0x400 register to take effect. So when setting the dpi output format, we need to call mmsys_func to set it to MT8186 synchronously. Adding mmsys all the settings

[PATCH v11,2/3] drm: mediatek: Set dpi format in mmsys

2022-09-26 Thread xinlei.lee
From: Xinlei Lee Dpi output needs to adjust the output format to dual edge for MT8186. Co-developed-by: Jitao Shi Signed-off-by: Jitao Shi Signed-off-by: Xinlei Lee Reviewed-by: CK Hu --- drivers/gpu/drm/mediatek/mtk_dpi.c | 11 +++ 1 file changed, 11 insertions(+) diff --git a/dri

[PATCH v11, 3/3] drm: mediatek: Add mt8186 dpi compatibles and platform data

2022-09-26 Thread xinlei.lee
From: Xinlei Lee Add the compatible because use edge_cfg_in_mmsys in mt8186. Signed-off-by: Xinlei Lee Reviewed-by: CK Hu Reviewed-by: AngeloGioacchino Del Regno --- drivers/gpu/drm/mediatek/mtk_dpi.c | 21 + drivers/gpu/drm/mediatek/mtk_drm_drv.c | 2 ++ 2 files ch

[PATCH v3 0/2] Reduce lcm_reset to DSI LP11 send cmd time

2023-01-30 Thread xinlei.lee
From: Xinlei Lee The panel spec stipulates that after lcm_reset is pulled high, cmd should be sent to initialize the panel. Within the allowable range of the DSI spec, this time needs to be reduced to avoid panel exceptions. Base on the branch of linus/master v6.2. Change since v2: 1. Remove th

[PATCH v3 1/2] drm/panel: boe-tv101wum-nl6: Remove extra delay

2023-01-30 Thread xinlei.lee
From: Xinlei Lee Reduce the delay after LCM reset by removing an extra delay in the initialization commands array. The required delay of at least 6ms after reset is guaranteed by boe_panel_prepare(). Signed-off-by: Xinlei Lee --- drivers/gpu/drm/panel/panel-boe-tv101wum-nl6.c | 1 - 1 file cha

[PATCH v3 2/2] drm/panel: boe-tv101wum-nl6: Fine tune the panel power sequence

2023-01-30 Thread xinlei.lee
From: Xinlei Lee For "boe,tv105wum-nw0" this special panel, it is stipulated in the panel spec that MIPI needs to keep the LP11 state before the lcm_reset pin is pulled high. Signed-off-by: Xinlei Lee --- drivers/gpu/drm/panel/panel-boe-tv101wum-nl6.c | 6 ++ 1 file changed, 6 insertions(+

[PATCH v12, 1/3] soc: mediatek: Add all settings to mtk_mmsys_ddp_dpi_fmt_config func

2022-10-18 Thread xinlei.lee
From: Xinlei Lee The difference between MT8186 and other ICs is that when modifying the output format, we need to modify the mmsys_base+0x400 register to take effect. So when setting the dpi output format, we need to call mmsys_func to set it to MT8186 synchronously. Adding mmsys all the settings

[PATCH v12,2/3] drm: mediatek: Set dpi format in mmsys

2022-10-18 Thread xinlei.lee
From: Xinlei Lee Dpi output needs to adjust the output format to dual edge for MT8186. Co-developed-by: Jitao Shi Signed-off-by: Jitao Shi Signed-off-by: Xinlei Lee Reviewed-by: CK Hu --- drivers/gpu/drm/mediatek/mtk_dpi.c | 11 +++ 1 file changed, 11 insertions(+) diff --git a/dri

[PATCH v12,0/3] Add dpi output format control for MT8186

2022-10-18 Thread xinlei.lee
From: Xinlei Lee Base on the branch of linus/master v6.1 rc1. Change since v11: 1. Rebase on v6.1-rc1. Change nothing. Change since v10: 1. Modify patch title and add review tag. Change since v9: 1. Modify the location of the mmsys_dev member variable. Change since v8: 1. Modified the title a

[PATCH v12, 3/3] drm: mediatek: Add mt8186 dpi compatibles and platform data

2022-10-18 Thread xinlei.lee
From: Xinlei Lee Add the compatible because use edge_cfg_in_mmsys in mt8186. Signed-off-by: Xinlei Lee Reviewed-by: CK Hu Reviewed-by: AngeloGioacchino Del Regno --- drivers/gpu/drm/mediatek/mtk_dpi.c | 21 + drivers/gpu/drm/mediatek/mtk_drm_drv.c | 2 ++ 2 files ch

[PATCH v2] drm: mediatek: Modify dpi power on/off sequence.

2022-10-18 Thread xinlei.lee
From: Xinlei Lee Modify dpi power on/off sequence so that the first gpio operation will take effect. Fixes: 6bd4763fd532 ("drm/mediatek: set dpi pin mode to gpio low to avoid leakage current") Signed-off-by: Xinlei Lee --- change note: v1: Rebase on linus/master v6.1-rc1. Change nothing. Be

[PATCH v3] drm: mediatek: Modify dpi power on/off sequence.

2022-10-19 Thread xinlei.lee
From: Xinlei Lee Modify dpi power on/off sequence so that the first gpio operation will take effect. Fixes: 6bd4763fd532 ("drm/mediatek: set dpi pin mode to gpio low to avoid leakage current") Signed-off-by: Xinlei Lee --- change note: v2: Remove the empty line between Fixes: and S-o-b. v1:

[PATCH 0/2] Add dpi compatibles and platform data for MT8188

2022-10-20 Thread xinlei.lee
From: xinlei lee Rebase on linus/master v6.1-rc1. xinlei lee (2): dt-bindings: display: mediatek: dpi: Add compatible for MediaTek MT8188 drm: mediatek: Add mt8188 dpi compatibles and platform data .../bindings/display/mediatek/mediatek,dpi.yaml | 1 + drivers/gpu/drm/mediatek

[PATCH, 1/2] dt-bindings: display: mediatek: dpi: Add compatible for MediaTek MT8188

2022-10-20 Thread xinlei.lee
From: xinlei lee For MT8188, the vdosys0 only supports 1T1P mode while the vdosys0 supports 2T1P mode in MT8195. So we need to add dt-binding documentation of dpi for MediaTek MT8188 SoC. Signed-off-by: xinlei lee --- Documentation/devicetree/bindings/display/mediatek/mediatek,dpi.yaml | 1 +

[PATCH, 2/2] drm: mediatek: Add mt8188 dpi compatibles and platform data

2022-10-20 Thread xinlei.lee
From: xinlei lee For MT8188, the vdosys0 only supports 1T1P mode, so we need to add the compatible for mt8188 edp-intf. Signed-off-by: xinlei lee --- drivers/gpu/drm/mediatek/mtk_dpi.c | 17 + drivers/gpu/drm/mediatek/mtk_drm_drv.c | 2 ++ 2 files changed, 19 insertions(+

[PATCH v2,0/2] Add dpi compatibles and platform data for MT8188

2022-10-20 Thread xinlei.lee
From: xinlei lee Rebase on linus/master v6.1-rc1. change note: v1: Modify variable name. xinlei lee (2): dt-bindings: display: mediatek: dpi: Add compatible for MediaTek MT8188 drm: mediatek: Add mt8188 dpi compatibles and platform data .../bindings/display/mediatek/mediatek,dpi.yaml

[PATCH v2, 2/2] drm: mediatek: Add mt8188 dpi compatibles and platform data

2022-10-20 Thread xinlei.lee
From: xinlei lee For MT8188, the vdosys0 only supports 1T1P mode, so we need to add the compatible for mt8188 edp-intf. Signed-off-by: xinlei lee --- drivers/gpu/drm/mediatek/mtk_dpi.c | 17 + drivers/gpu/drm/mediatek/mtk_drm_drv.c | 2 ++ 2 files changed, 19 insertions(+

[PATCH v2, 1/2] dt-bindings: display: mediatek: dpi: Add compatible for MediaTek MT8188

2022-10-20 Thread xinlei.lee
From: xinlei lee For MT8188, the vdosys0 only supports 1T1P mode while the vdosys0 supports 2T1P mode in MT8195. So we need to add dt-binding documentation of dpi for MediaTek MT8188 SoC. Signed-off-by: xinlei lee --- Documentation/devicetree/bindings/display/mediatek/mediatek,dpi.yaml | 1 +

[PATCH v13,0/3] Add dpi output format control for MT8186

2022-10-23 Thread xinlei.lee
From: Xinlei Lee Base on the branch of linus/master v6.1 rc1. Change since v12: 1. Add MT8186_ prefix to variables added in mt8186-mmsys.h file. Change since v11: 1. Rebase on v6.1-rc1. Change nothing. Change since v10: 1. Modify patch title and add review tag. Change since v9: 1. Modify the

[PATCH v13, 1/3] soc: mediatek: Add all settings to mtk_mmsys_ddp_dpi_fmt_config func

2022-10-23 Thread xinlei.lee
From: Xinlei Lee The difference between MT8186 and other ICs is that when modifying the output format, we need to modify the mmsys_base+0x400 register to take effect. So when setting the dpi output format, we need to call mtk_mmsys_ddp_dpi_fmt_config to set it to MT8186 synchronously. Commit

[PATCH v13, 3/3] drm: mediatek: Add mt8186 dpi compatibles and platform data

2022-10-23 Thread xinlei.lee
From: Xinlei Lee Add the compatible because use edge_cfg_in_mmsys in mt8186. Signed-off-by: Xinlei Lee Reviewed-by: CK Hu Reviewed-by: AngeloGioacchino Del Regno Reviewed-by: N??colas F. R. A. Prado --- drivers/gpu/drm/mediatek/mtk_dpi.c | 21 + drivers/gpu/drm/medi

[PATCH v13,2/3] drm: mediatek: Set dpi format in mmsys

2022-10-23 Thread xinlei.lee
From: Xinlei Lee Dpi output needs to adjust the output format to dual edge for MT8186. Co-developed-by: Jitao Shi Signed-off-by: Jitao Shi Signed-off-by: Xinlei Lee Reviewed-by: CK Hu Reviewed-by: AngeloGioacchino Del Regno Reviewed-by: N??colas F. R. A. Prado --- drivers/gpu/drm/mediate

[PATCH v4] drm: mediatek: Modify dpi power on/off sequence.

2022-11-09 Thread xinlei.lee
From: Xinlei Lee Modify dpi power on/off sequence so that the first gpio operation will take effect. Fixes: 6bd4763fd532 ("drm/mediatek: set dpi pin mode to gpio low to avoid leakage current") Signed-off-by: Xinlei Lee --- change note: v3: Moved pull-down pin control after mtk_dpi_power_off.

[PATCH 1/2] drm/mediatek: dsi: Reduce the time of dsi from LP11 to sending cmd

2023-01-05 Thread xinlei.lee
From: Xinlei Lee According to Figure 16 Turnaround Procedure on page 36 in [1], you can see the status of LP-00 -> LP10 -> LP11. This state can correspond to the state of DSI from LP00 -> LP11 in mtk_dsi_lane_ready function in mtk_dsi.c. LP-00 -> LP10 -> LP11 takes about 2*TLPX time (refer to [1

[PATCH 2/2] drm/panel: boe-tv101wum-nl6: Reduce lcm_reset to send initial code time

2023-01-05 Thread xinlei.lee
From: Xinlei Lee Since the panel spec stipulates that the time from lcm_reset to DSI to send the initial code should be greater than 6ms and less than 40ms, so reduce the delay before sending the initial code and avoid panel exceptions. Fixes: a869b9db7adf ("drm/panel: support for boe tv101wum-n

[PATCH 0/2]Reduce lcm_reset to DSI LP11 send cmd time

2023-01-05 Thread xinlei.lee
From: Xinlei Lee The panel spec stipulates that after lcm_reset is pulled high, cmd should be sent to initialize the panel. Within the allowable range of the DSI spec, this time needs to be reduced to avoid panel exceptions. Xinlei Lee (2): drm/mediatek: dsi: Reduce the time of dsi from LP11 t

[PATCH v2 0/3] Reduce lcm_reset to DSI LP11 send cmd time

2023-01-09 Thread xinlei.lee
From: Xinlei Lee The panel spec stipulates that after lcm_reset is pulled high, cmd should be sent to initialize the panel. Within the allowable range of the DSI spec, this time needs to be reduced to avoid panel exceptions. Base on the branch of linus/master v6.2. Change since v1: 1. Added fin

[PATCH v2 2/3] drm/panel: boe-tv101wum-nl6: Reduce lcm_reset to send initial code time

2023-01-09 Thread xinlei.lee
From: Xinlei Lee Since the panel spec stipulates that the time from lcm_reset to DSI to send the initial code should be greater than 6ms and less than 40ms, so reduce the delay before sending the initial code and avoid panel exceptions. Fixes: a869b9db7adf ("drm/panel: support for boe tv101wum-n

[PATCH v2 3/3] drm/panel: boe-tv101wum-nl6: Fine tune the panel power sequence

2023-01-09 Thread xinlei.lee
From: Xinlei Lee For "boe,tv105wum-nw0" this special panel, it is stipulated in the panel spec that MIPI needs to keep the LP11 state before the lcm_reset pin is pulled high. Signed-off-by: Xinlei Lee --- drivers/gpu/drm/panel/panel-boe-tv101wum-nl6.c | 6 ++ 1 file changed, 6 insertions

[PATCH v2 1/3] drm/mediatek: dsi: Reduce the time of dsi from LP11 to sending cmd

2023-01-09 Thread xinlei.lee
From: Xinlei Lee According to Figure 16 Turnaround Procedure on page 36 in [1], you can see the status of LP-00 -> LP10 -> LP11. This state can correspond to the state of DSI from LP00 -> LP11 in mtk_dsi_lane_ready function in mtk_dsi.c. LP-00 -> LP10 -> LP11 takes about 2*TLPX time (refer to [1

[PATCH 0/2] Add compatible to increase MT8188 audio control

2023-04-12 Thread xinlei.lee
From: Xinlei Lee Add dt-binding documentation of dp-tx for MediaTek MT8188 SoC. Mainly add the following two flag: 1.The audio packet arrangement function is to only arrange audio packets into the Hblanking area. In order to align with the HW default setting of g1200, this function needs to be t

[PATCH 1/2] dt-bindings: display: mediatek: dp: Add compatible for MediaTek MT8188

2023-04-12 Thread xinlei.lee
From: Xinlei Lee Add dt-binding documentation of dp-tx for MediaTek MT8188 SoC. Signed-off-by: Xinlei Lee Signed-off-by: Jitao Shi --- .../devicetree/bindings/display/mediatek/mediatek,dp.yaml| 1 + 1 file changed, 1 insertion(+) diff --git a/Documentation/devicetree/bindings/displa

[PATCH 2/2] drm/mediatek: dp: Add the audio control to mtk_dp_data struct

2023-04-12 Thread xinlei.lee
From: Xinlei Lee Mainly add the following two flag: 1.The audio packet arrangement function is to only arrange audio packets into the Hblanking area. In order to align with the HW default setting of g1200, this function needs to be turned off. 2.Due to the difference of HW, different dividers n

[PATCH 1/3] dt-bindings: display: mediatek: dsi: Add compatible for MediaTek MT8188

2023-04-12 Thread xinlei.lee
From: Xinlei Lee Add dt-binding documentation of dsi for MediaTek MT8188 SoC. Signed-off-by: Xinlei Lee Signed-off-by: Jitao Shi --- .../devicetree/bindings/display/mediatek/mediatek,dsi.yaml | 1 + 1 file changed, 1 insertion(+) diff --git a/Documentation/devicetree/bindings/display/

[PATCH 3/3] drm/mediatek: dsi: Add dsi cmdq_ctl to send panel initial code

2023-04-12 Thread xinlei.lee
From: Xinlei Lee For mt8188, add dsi cmdq reg control to send long packets to panel initialization. Signed-off-by: Xinlei Lee Signed-off-by: Jitao Shi --- drivers/gpu/drm/mediatek/mtk_dsi.c | 12 1 file changed, 12 insertions(+) diff --git a/drivers/gpu/drm/mediatek/mtk_dsi.c

[PATCH 0/3] Add mt8188 compatiable for DSI cmd packet control

2023-04-12 Thread xinlei.lee
From: Xinlei Lee Add dt-binding documentation of DSI for MediaTek MT8188 SoC. Because of the difference between SOC and DSI cmd packet control, for MT8188, it is necessary to increase the DSI_CMDQ_SIZE control when sending long packets to initialize the panel. Of course, this will not affect the

[PATCH 2/3] drm/mediatek: Add mt8188 dsi compatible to mtk_dsi.c

2023-04-12 Thread xinlei.lee
From: Xinlei Lee Add the compatible because there are different definitions for cmdq register bit control in mt8188. Signed-off-by: Xinlei Lee Signed-off-by: Jitao Shi --- drivers/gpu/drm/mediatek/mtk_drm_drv.c | 2 ++ drivers/gpu/drm/mediatek/mtk_dsi.c | 8 2 files changed, 10 i

[PATCH] drm/mediatek: dp: change the aux retries times when receiving AUX_DEFER

2023-03-28 Thread xinlei.lee
From: Xinlei Lee DP 1.4a Section 2.8.7.1.5.6.1: A DP Source device shall retry at least seven times upon receiving AUX_DEFER before giving up the AUX transaction. The drm_dp_i2c_do_msg() function in the drm_dp_helper.c file will judge the status of the msg->reply parameter passed to aux_transfer