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

2023-06-16 Thread Shuijing Li
Add the compatible because there are different definitions for cmdq register bit control in mt8188. Signed-off-by: Shuijing Li Signed-off-by: Jitao Shi Reviewed-by: Matthias Brugger --- drivers/gpu/drm/mediatek/mtk_drm_drv.c | 2 ++ drivers/gpu/drm/mediatek/mtk_dsi.c | 8 2 files

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

2023-06-16 Thread Shuijing Li
packets. Base on the branch of linus/master v6.4. Shuijing Li (3): dt-bindings: display: mediatek: dsi: Add compatible for MediaTek MT8188 drm/mediatek: Add mt8188 dsi compatible to mtk_dsi.c drm/mediatek: dsi: Add dsi cmdq_ctl to send panel initial code .../bindings/display/mediatek

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

2023-06-16 Thread Shuijing Li
Add dt-binding documentation of dsi for MediaTek MT8188 SoC. Signed-off-by: Shuijing Li Signed-off-by: Jitao Shi Acked-by: Krzysztof Kozlowski Reviewed-by: Matthias Brugger --- .../devicetree/bindings/display/mediatek/mediatek,dsi.yaml | 1 + 1 file changed, 1 insertion(+) diff --git

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

2023-06-16 Thread Shuijing Li
For mt8188, add dsi cmdq reg control to send long packets to panel initialization. Signed-off-by: Shuijing Li Signed-off-by: Jitao Shi --- Changes in v2: use mtk_dsi_mask(dsi, DSI_CMDQ_SIZE, CMDQ_SIZE_SEL, CMDQ_SIZE_SEL); directly, per suggestion from the previous thread: https

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

2023-05-16 Thread Shuijing Li
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: Shuijing Li Signed-off-by: Xinlei Lee Reviewed-by: AngeloGioacchino Del Regno --- drivers/gpu/drm/panel

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

2023-05-16 Thread Shuijing Li
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: Shuijing Li Signed-off-by: Xinlei Lee Reviewed-by: AngeloGioacchino Del Regno --- drivers/gpu

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

2023-05-16 Thread Shuijing Li
. Remove the applied patch. 2. Change the commit title and the description. Change since v1: 1. Added fine-tuning panel power sequence modification. Shuijing Li (2): drm/panel: boe-tv101wum-nl6: Remove extra delay drm/panel: boe-tv101wum-nl6: Fine tune the panel power sequence drivers/gpu

[PATCH v3,0/3] Add compatible to increase MT8188 audio control

2023-07-20 Thread Shuijing Li
to the difference of HW, different dividers need to be set. Base on the branch of linus/master v6.4. Shuijing Li (3): dt-bindings: display: mediatek: dp: Add compatible for MediaTek MT8188 drm/mediatek: dp: Add the audio control to mtk_dp_data struct drm/mediatek: dp: Add the audio divider

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

2023-07-20 Thread Shuijing Li
Add dt-binding documentation of dp-tx for MediaTek MT8188 SoC. Signed-off-by: Shuijing Li Signed-off-by: Jitao Shi Reviewed-by: AngeloGioacchino Del Regno Acked-by: Krzysztof Kozlowski --- Changes in v2: add a mediatek,mt8188-edp-tx compatible per suggestion from the previous thread: https

[PATCH v3, 3/3] drm/mediatek: dp: Add the audio divider to mtk_dp_data struct

2023-07-20 Thread Shuijing Li
Due to the difference of HW, different dividers need to be set. Signed-off-by: Shuijing Li Signed-off-by: Jitao Shi --- Changes in v3: Separate these two things into two different patches. per suggestion from the previous thread: https://lore.kernel.org/lkml

[PATCH v3, 2/3] drm/mediatek: dp: Add the audio packet flag to mtk_dp_data struct

2023-07-20 Thread Shuijing Li
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 mt8195, this function needs to be turned off. Signed-off-by: Shuijing Li Signed-off-by: Jitao Shi --- Changes in v3: Separate these two things into

[PATCH v4,0/3] Add compatible to increase MT8188 audio control

2023-08-14 Thread Shuijing Li
to the difference of HW, different dividers need to be set. Base on the branch of linus/master v6.4. Shuijing Li (3): dt-bindings: display: mediatek: dp: Add compatible for MediaTek MT8188 drm/mediatek: dp: Add the audio packet flag to mtk_dp_data struct drm/mediatek: dp: Add the audio

[PATCH v4, 3/3] drm/mediatek: dp: Add the audio divider to mtk_dp_data struct

2023-08-14 Thread Shuijing Li
Due to the difference of HW, different dividers need to be set. Signed-off-by: Shuijing Li Signed-off-by: Jitao Shi --- Changes in v4: list all configuration for MT8188 and MT8195. per suggestion from the previous thread: https://lore.kernel.org/all/a9d1b9b7ef4780f51574d0bbbe28f6dd109a6ab8.ca

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

2023-08-14 Thread Shuijing Li
Add dt-binding documentation of dp-tx for MediaTek MT8188 SoC. Signed-off-by: Shuijing Li Signed-off-by: Jitao Shi Reviewed-by: AngeloGioacchino Del Regno Acked-by: Krzysztof Kozlowski --- Changes in v2: add a mediatek,mt8188-edp-tx compatible per suggestion from the previous thread: https

[PATCH v4, 2/3] drm/mediatek: dp: Add the audio packet flag to mtk_dp_data struct

2023-08-14 Thread Shuijing Li
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 mt8195, this function needs to be turned off. Signed-off-by: Shuijing Li Signed-off-by: Jitao Shi --- Changes in v4: drop mt8188_edp_data and remove

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

2023-08-16 Thread Shuijing Li
Add dt-binding documentation of dp-tx for MediaTek MT8188 SoC. Signed-off-by: Shuijing Li Signed-off-by: Jitao Shi Reviewed-by: AngeloGioacchino Del Regno Reviewed-by: CK Hu Acked-by: Krzysztof Kozlowski --- Changes in v2: add a mediatek,mt8188-edp-tx compatible per suggestion from the

[PATCH v5,0/4] Add compatible to increase MT8188 audio control

2023-08-16 Thread Shuijing Li
to the difference of HW, different dividers need to be set. Base on the branch of linus/master v6.4. Shuijing Li (4): dt-bindings: display: mediatek: dp: Add compatible for MediaTek MT8188 drm/mediatek: dp: Add the audio packet flag to mtk_dp_data struct drm/mediatek: dp: Add the audio

[PATCH v5,4/4] drm/mediatek: dp: Add support MT8188 dp/edp function

2023-08-16 Thread Shuijing Li
Add mtk_dp_audio_sample_arrange_disable function for MT8188. Signed-off-by: Shuijing Li --- Changes in v5: Separate mt8188 related code into mtk_dp_data structure and mt8188 dp/edp function per suggestion from the previous thread: https://lore.kernel.org/lkml

[PATCH v5, 2/4] drm/mediatek: dp: Add the audio packet flag to mtk_dp_data struct

2023-08-16 Thread Shuijing Li
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 mt8195, this function needs to be turned off. Signed-off-by: Shuijing Li --- Changes in v5: Separate mt8188 related code into mtk_dp_data structure and

[PATCH v5, 3/4] drm/mediatek: dp: Add the audio divider to mtk_dp_data struct

2023-08-16 Thread Shuijing Li
Due to the difference of HW, different dividers need to be set. Signed-off-by: Shuijing Li --- Changes in v4: list all configuration for MT8188 and MT8195. per suggestion from the previous thread: https://lore.kernel.org/all/a9d1b9b7ef4780f51574d0bbbe28f6dd109a6ab8.ca...@mediatek.com/ Changes in

[PATCH v6,4/4] drm/mediatek: dp: Add support MT8188 dp/edp function

2023-08-21 Thread Shuijing Li
Add support MT8188 dp/edp function Signed-off-by: Shuijing Li --- Changes in v6: Move audio function to patch [2/4]. per suggestion from the previous thread: https://lore.kernel.org/all/1d41747060c613ca0ae8e3b6395cc33bfa4d9056.ca...@mediatek.com/ Changes in v5: Separate mt8188 related code into

[PATCH v6, 3/4] drm/mediatek: dp: Add the audio divider to mtk_dp_data struct

2023-08-21 Thread Shuijing Li
Due to the difference of HW, different dividers need to be set. Signed-off-by: Shuijing Li --- Changes in v6: Move MT8188 defintion to patch[4/4]. per suggestion from the previous thread: https://lore.kernel.org/all/60ba1ab40fc943f1abf3e78b0b32223be402302c.ca...@mediatek.com/ Changes in v4: list

[PATCH v6,0/4] Add compatible to increase MT8188 audio control

2023-08-21 Thread Shuijing Li
to the difference of HW, different dividers need to be set. Base on the branch of linus/master v6.4. Shuijing Li (4): dt-bindings: display: mediatek: dp: Add compatible for MediaTek MT8188 drm/mediatek: dp: Add the audio packet flag to mtk_dp_data struct drm/mediatek: dp: Add the audio

[PATCH v6, 2/4] drm/mediatek: dp: Add the audio packet flag to mtk_dp_data struct

2023-08-21 Thread Shuijing Li
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 mt8195, this function needs to be turned off. Signed-off-by: Shuijing Li --- Changes in v6: Move mt8188 related code to another patch per suggestion

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

2023-08-21 Thread Shuijing Li
Add dt-binding documentation of dp-tx for MediaTek MT8188 SoC. Signed-off-by: Shuijing Li Signed-off-by: Jitao Shi Reviewed-by: AngeloGioacchino Del Regno Reviewed-by: CK Hu Acked-by: Krzysztof Kozlowski --- Changes in v2: add a mediatek,mt8188-edp-tx compatible per suggestion from the

[PATCH] drm/mediatek: Support IGT in dp driver

2023-08-23 Thread Shuijing Li
Support IGT (Intel GPU Tools) in Mediatek DisplayPort driver Signed-off-by: Shuijing Li --- drivers/gpu/drm/mediatek/mtk_dsi.c | 20 1 file changed, 20 insertions(+) diff --git a/drivers/gpu/drm/mediatek/mtk_dsi.c b/drivers/gpu/drm/mediatek/mtk_dsi.c index 7d5250351193

[PATCH v2] drm/mediatek: dsi: Add mode_valid callback to DSI bridge

2023-08-23 Thread Shuijing Li
: Shuijing Li --- Changes in v2: Correct descriptions of title and commit message. --- drivers/gpu/drm/mediatek/mtk_dsi.c | 20 1 file changed, 20 insertions(+) diff --git a/drivers/gpu/drm/mediatek/mtk_dsi.c b/drivers/gpu/drm/mediatek/mtk_dsi.c index 7d5250351193..a494e04f0ddf

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

2023-07-05 Thread Shuijing Li
. Signed-off-by: Shuijing Li Signed-off-by: Jitao Shi --- Changes in v2: - change the variables' name to be more descriptive - add a comment that describes the function of mtk_dp_audio_sample_arrange - reduce indentation by doing the inverse check - add a definition of some bits - add suppor

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

2023-07-05 Thread Shuijing Li
to the difference of HW, different dividers need to be set. Base on the branch of linus/master v6.4. Shuijing Li (2): dt-bindings: display: mediatek: dp: Add compatible for MediaTek MT8188 drm/mediatek: dp: Add the audio control to mtk_dp_data struct .../display/mediatek/mediatek,dp.yaml

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

2023-07-05 Thread Shuijing Li
Add dt-binding documentation of dp-tx for MediaTek MT8188 SoC. Signed-off-by: Shuijing Li Signed-off-by: Jitao Shi --- Changes in v2: add a mediatek,mt8188-edp-tx compatible per suggestion from the previous thread: https://lore.kernel.org/lkml/c4a4a900-c80d-b110-f10e-7fa2dae8b...@collabora.com

[PATCH v8] drm/mediatek: dsi: Add dsi per-frame lp code for mt8188

2024-08-25 Thread Shuijing Li
P^^RGB^^HFP^^HSA+HBP^^RGB^^HFP^ Per Line LP: |<---One Active Frame--->| --__--__--____ ^HSA+HBP^^RGB^ ^HSA+HBP^^RGB^ ^HSA+HBP^^RGB^^HSA+HBP^^RGB^ Signed-off-by: Shuijing Li --- Changes in v8: Directly writ

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

2023-09-11 Thread Shuijing Li
-off-by: Shuijing Li --- Changes in v3: reorder patch 2/3 and 3/3, and describe more about why mt8188 need this patch, per suggestion from the previous thread: https://lore.kernel.org/lkml/411ddbf95e2c2298b84899065691d478069ec273.ca...@mediatek.com/ Changes in v2: use mtk_dsi_mask(dsi

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

2023-09-11 Thread Shuijing Li
packets. Base on the branch of linus/master v6.5. Shuijing Li (3): dt-bindings: display: mediatek: dsi: Add compatible for MediaTek MT8188 drm/mediatek: dsi: Add dsi cmdq_ctl to send panel initial code drm/mediatek: Add mt8188 dsi compatible to mtk_dsi.c .../bindings/display/mediatek

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

2023-09-11 Thread Shuijing Li
Add the compatible because there are different definitions for cmdq register bit control in mt8188. Signed-off-by: Shuijing Li --- Changes in v3: reorder patch 2/3 and 3/3, per suggestion from the previous thread: https://lore.kernel.org/lkml/338122485db025f6bfb8be550d426ca11698497c.ca

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

2023-09-11 Thread Shuijing Li
Add dt-binding documentation of dsi for MediaTek MT8188 SoC. Signed-off-by: Shuijing Li Signed-off-by: Jitao Shi Acked-by: Krzysztof Kozlowski Reviewed-by: Matthias Brugger --- .../devicetree/bindings/display/mediatek/mediatek,dsi.yaml | 1 + 1 file changed, 1 insertion(+) diff --git

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

2023-09-11 Thread Shuijing Li
packets. Base on the branch of linus/master v6.5. Shuijing Li (3): dt-bindings: display: mediatek: dsi: Add compatible for MediaTek MT8188 drm/mediatek: dsi: Add dsi cmdq_ctl to send panel initial code drm/mediatek: Add mt8188 dsi compatible to mtk_dsi.c .../bindings/display/mediatek

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

2023-09-11 Thread Shuijing Li
Add the compatible because there are different definitions for cmdq register bit control in mt8188. Signed-off-by: Shuijing Li Reviewed-by: AngeloGioacchino Del Regno --- Changes in v3: reorder patch 2/3 and 3/3, per suggestion from the previous thread: https://lore.kernel.org/lkml

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

2023-09-11 Thread Shuijing Li
-off-by: Shuijing Li Reviewed-by: AngeloGioacchino Del Regno --- Changes in v4: Add a comment per suggestion from the previous thread: https://lore.kernel.org/all/14e03873-3723-8293-0190-445a71828...@collabora.com/ Changes in v3: reorder patch 2/3 and 3/3, and describe more about why mt8188 need

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

2023-09-11 Thread Shuijing Li
Add dt-binding documentation of dsi for MediaTek MT8188 SoC. Signed-off-by: Shuijing Li Signed-off-by: Jitao Shi Acked-by: Krzysztof Kozlowski Reviewed-by: Matthias Brugger Reviewed-by: AngeloGioacchino Del Regno --- .../devicetree/bindings/display/mediatek/mediatek,dsi.yaml | 1 + 1

[PATCH] mediatek: dsi: Add dsi per-frame lp code for mt8188

2024-03-14 Thread Shuijing Li
P^^RGB^^HFP^^HSA+HBP^^RGB^^HFP^ Per Line LP: |<---One Active Frame--->| --__--__--____ ^HSA+HBP^^RGB^ ^HSA+HBP^^RGB^ ^HSA+HBP^^RGB^^HSA+HBP^^RGB^ Signed-off-by: Shuijing Li --- drivers/gpu/drm/mediatek/mtk

[PATCH] mediatek: dsi: Correct calculation formula of PHY Timing

2024-03-15 Thread Shuijing Li
This patch correct calculation formula of PHY timing. Make actual phy timing more accurate. Signed-off-by: Shuijing Li --- drivers/gpu/drm/mediatek/mtk_dsi.c | 33 +++--- 1 file changed, 17 insertions(+), 16 deletions(-) diff --git a/drivers/gpu/drm/mediatek/mtk_dsi.c

[PATCH v3] drm/mediatek: dsi: Add dsi per-frame lp code for mt8188

2024-07-03 Thread Shuijing Li
P^^RGB^^HFP^^HSA+HBP^^RGB^^HFP^ Per Line LP: |<---One Active Frame--->| --__--__--____ ^HSA+HBP^^RGB^ ^HSA+HBP^^RGB^ ^HSA+HBP^^RGB^^HSA+HBP^^RGB^ Signed-off-by: Shuijing Li --- Changes in v3: Use function i

[PATCH v4] drm/mediatek: dsi: Add dsi per-frame lp code for mt8188

2024-08-01 Thread Shuijing Li
P^^RGB^^HFP^^HSA+HBP^^RGB^^HFP^ Per Line LP: |<---One Active Frame--->| --__--__--____ ^HSA+HBP^^RGB^ ^HSA+HBP^^RGB^ ^HSA+HBP^^RGB^^HSA+HBP^^RGB^ Signed-off-by: Shuijing Li --- Changes in v4: Drop the cod

[PATCH v5] drm/mediatek: dsi: Add dsi per-frame lp code for mt8188

2024-08-12 Thread Shuijing Li
P^^RGB^^HFP^^HSA+HBP^^RGB^^HFP^ Per Line LP: |<---One Active Frame--->| --__--__--____ ^HSA+HBP^^RGB^ ^HSA+HBP^^RGB^ ^HSA+HBP^^RGB^^HSA+HBP^^RGB^ Signed-off-by: Shuijing Li --- Changes in v5: Fix code style i

[PATCH v6] drm/mediatek: dsi: Add dsi per-frame lp code for mt8188

2024-08-12 Thread Shuijing Li
P^^RGB^^HFP^^HSA+HBP^^RGB^^HFP^ Per Line LP: |<---One Active Frame--->| --__--__--____ ^HSA+HBP^^RGB^ ^HSA+HBP^^RGB^ ^HSA+HBP^^RGB^^HSA+HBP^^RGB^ Signed-off-by: Shuijing Li --- Changes in v6: Simplify

[PATCH v7] drm/mediatek: dsi: Add dsi per-frame lp code for mt8188

2024-08-18 Thread Shuijing Li
P^^RGB^^HFP^^HSA+HBP^^RGB^^HFP^ Per Line LP: |<---One Active Frame--->| --__--__--____ ^HSA+HBP^^RGB^ ^HSA+HBP^^RGB^ ^HSA+HBP^^RGB^^HSA+HBP^^RGB^ Signed-off-by: Shuijing Li --- Changes in v7: Fix code style

[PATCH v2] mediatek: dsi: Correct calculation formula of PHY Timing

2024-04-11 Thread Shuijing Li
This patch correct calculation formula of PHY timing. The spec define HS-PREPARE should be from 40ns+4*UI(44ns) to 85ns+6*UI(91ns). But current duration is 88ns and is near the boundary. So this patch make the duration to 64ns so it is near the safe range. Signed-off-by: Shuijing Li --- Changes

[PATCH v2] drm/mediatek: dsi: Add dsi per-frame lp code for mt8188

2024-04-24 Thread Shuijing Li
P^^RGB^^HFP^^HSA+HBP^^RGB^^HFP^ Per Line LP: |<---One Active Frame--->| --__--__--____ ^HSA+HBP^^RGB^ ^HSA+HBP^^RGB^ ^HSA+HBP^^RGB^^HSA+HBP^^RGB^ Signed-off-by: Shuijing Li --- Changes in v2: Use bitfield ma