[PATCH v3 09/17] soc: mediatek: mutex: add mutex support for MT8196

2025-05-15 Thread paul-pl . chen
: Paul-pl Chen --- drivers/soc/mediatek/mtk-mutex.c | 140 ++- 1 file changed, 138 insertions(+), 2 deletions(-) diff --git a/drivers/soc/mediatek/mtk-mutex.c b/drivers/soc/mediatek/mtk-mutex.c index b2a9992fb232..183f3abcd7dd 100644 --- a/drivers/soc/mediatek/mtk-mutex.c

[PATCH v3 04/17] dt-bindings: display: mediatek: add OUTPROC yaml for MT8196

2025-05-15 Thread paul-pl . chen
From: Paul-pl Chen Add mediate,outproc.yaml to support OUTPROC for MT8196. MediaTek display overlap output processor, namely OVL_OUTPROC or OUTPROC,handles the post-stage of pixel processing in the overlapping procedure. Signed-off-by: Nancy Lin Signed-off-by: Paul-pl Chen --- .../display

[PATCH v3 11/17] drm/mediatek: drm/mediatek: Export OVL ignore pixel alpha function

2025-05-15 Thread paul-pl . chen
From: Nancy Lin For the new BLENDER component, the OVL ignore pixel alpha logic should be exported as a function and reused it. Signed-off-by: Nancy Lin Signed-off-by: Paul-pl Chen --- drivers/gpu/drm/mediatek/mtk_disp_ovl.c | 24 ++-- drivers/gpu/drm/mediatek

[PATCH v3 06/17] soc: mediatek: add mmsys support for MT8196

2025-05-15 Thread paul-pl . chen
From: Nancy Lin Add driver data for MT8196 and add the routing table for each mmsys. Signed-off-by: Nancy Lin Signed-off-by: Paul-pl Chen --- drivers/soc/mediatek/mt8196-mmsys.h| 396 + drivers/soc/mediatek/mtk-mmsys.c | 54 include/linux/soc/mediatek

[PATCH v3 03/17] dt-bindings: display: mediatek: add BLENDER yaml for MT8196

2025-05-15 Thread paul-pl . chen
From: Paul-pl Chen Add mediatek,blender.yaml to support BLENDER for MT8196. MediaTek display overlap blender, namely OVL_BLENDER or BLENDER, executes the alpha blending function for overlapping layers from different sources. Reviewed-by: Krzysztof Kozlowski Signed-off-by: Nancy Lin Signed

[PATCH v3 16/17] drm/mediatek: Add support for multiple mmsys in the one mediatek-drm driver

2025-05-15 Thread paul-pl . chen
From: Paul-pl Chen To support multiple mmsys instances in the one mediatek-drm instance, providing improved flexibility and scalability by the following changes: 1. Add DDP_COMPONENT_DRM_OVLSYS_ADAPTOR* to probe the ovlsys_adaptor drivers and support different mmsys composition. 2. Added new

[PATCH v3 07/17] soc: mediatek: mutex: Reused the switch case for SOF ID

2025-05-15 Thread paul-pl . chen
From: Paul-pl Chen Reused the switch case for SOF IDs. Signed-off-by: Nancy Lin Signed-off-by: Paul-pl Chen --- drivers/soc/mediatek/mtk-mutex.c | 81 ++-- 1 file changed, 36 insertions(+), 45 deletions(-) diff --git a/drivers/soc/mediatek/mtk-mutex.c b/drivers

[PATCH v3 13/17] drm/mediatek: add BLENDER support for MT8196

2025-05-15 Thread paul-pl . chen
From: Paul-pl Chen BLENDER executes the alpha blending function for overlapping layers from different sources, which is the primary function of the overlapping system. Signed-off-by: Nancy Lin Signed-off-by: Paul-pl Chen --- drivers/gpu/drm/mediatek/Makefile | 1 + drivers/gpu

[PATCH v3 17/17] drm/mediatek: Add support for MT8196 multiple mmsys

2025-05-15 Thread paul-pl . chen
From: Nancy Lin Add code to support MT8196 SOC Multi MMSYS Driver Signed-off-by: Nancy Lin Signed-off-by: Paul-pl Chen --- drivers/gpu/drm/mediatek/mtk_drm_drv.c | 119 - 1 file changed, 115 insertions(+), 4 deletions(-) diff --git a/drivers/gpu/drm/mediatek

[PATCH v3 12/17] drm/mediatek: add EXDMA support for MT8196

2025-05-15 Thread paul-pl . chen
and refine RG24 Signed-off-by: Nancy Lin Signed-off-by: Paul-pl Chen --- drivers/gpu/drm/mediatek/Makefile | 1 + drivers/gpu/drm/mediatek/mtk_ddp_comp.c | 1 + drivers/gpu/drm/mediatek/mtk_ddp_comp.h | 1 + drivers/gpu/drm/mediatek/mtk_disp_drv.h | 9 + drivers/gpu/drm

[PATCH v3 00/17] Add MediaTek SoC DRM support for MT8196

2025-05-15 Thread paul-pl . chen
From: Paul-pl Chen This patch series adds support for the MediaTek MT8196 SoC's display subsystem in the DRM driver. Changes in v3: - [PATCH v3 06/17] Refine runtime PM, top clocks and async controls for MMSYS - [PATCH v3 08/17] Refactor SOF settings by a

[PATCH v3 14/17] drm/mediatek: add OUTPROC support for MT8196

2025-05-15 Thread paul-pl . chen
From: Nancy Lin OUTPROC handles the post-stage of pixel processing in the overlapping procedure.OUTPROC manages pixels for gamma correction and ensures that pixel values are within the correct range. Signed-off-by: Nancy Lin Signed-off-by: Paul-pl Chen --- drivers/gpu/drm/mediatek/Makefile

[PATCH v3 10/17] drm/mediatek: Export OVL formats definitions and format conversion API

2025-05-15 Thread paul-pl . chen
-off-by: Paul-pl Chen --- drivers/gpu/drm/mediatek/mtk_disp_ovl.c | 214 ++-- drivers/gpu/drm/mediatek/mtk_disp_ovl.h | 28 2 files changed, 150 insertions(+), 92 deletions(-) create mode 100644 drivers/gpu/drm/mediatek/mtk_disp_ovl.h diff --git a/drivers/gpu/drm

[PATCH v3 08/17] soc: mediatek: mutex: refactor SOF settings for output components

2025-05-15 Thread paul-pl . chen
From: Paul-pl Chen Refactor SOF settings by adding mtk_mutex_get_output_comp_sof() and extracting SOF logic from mtk_mutex_add_comp() and mtk_mutex_remove_comp(). Signed-off-by: Nancy Lin Signed-off-by: Paul-pl Chen --- drivers/soc/mediatek/mtk-mutex.c | 60

[PATCH v3 15/17] drm/mediatek: add ovlsys_adaptor support for MT8196

2025-05-15 Thread paul-pl . chen
integrated within the mtk_ddp_comp framework. Signed-off-by: Nancy Lin Signed-off-by: Paul-pl Chen --- drivers/gpu/drm/mediatek/Makefile | 1 + drivers/gpu/drm/mediatek/mtk_ddp_comp.c | 28 + drivers/gpu/drm/mediatek/mtk_ddp_comp.h | 1 + drivers/gpu/drm/mediatek

[PATCH v3 02/17] dt-bindings: display: mediatek: add EXDMA yaml for MT8196

2025-05-15 Thread paul-pl . chen
From: Paul-pl Chen Add mediatek,exdma.yaml to support EXDMA for MT8196. The MediaTek display overlap extended DMA engine, namely OVL_EXDMA or EXDMA, primarily functions as a DMA engine for reading data from DRAM with various DRAM footprints and data formats. Signed-off-by: Nancy Lin Signed-off

[PATCH v3 05/17] soc: mediatek: Add runtime PM and top clocks and async controls for MMSYS

2025-05-15 Thread paul-pl . chen
: Paul-pl Chen --- drivers/soc/mediatek/mtk-mmsys.c | 152 - drivers/soc/mediatek/mtk-mmsys.h | 18 +++ include/linux/soc/mediatek/mtk-mmsys.h | 8 ++ 3 files changed, 177 insertions(+), 1 deletion(-) diff --git a/drivers/soc/mediatek/mtk-mmsys.c b/drivers

[PATCH v3 01/17] dt-bindings: soc: mediatek: add mutex yaml for MT8196

2025-05-15 Thread paul-pl . chen
From: Nancy Lin Add compatible string to support mutex for MT8196. Acked-by: Krzysztof Kozlowski Signed-off-by: Nancy Lin Signed-off-by: Paul-pl Chen --- .../devicetree/bindings/soc/mediatek/mediatek,mutex.yaml| 2 ++ 1 file changed, 2 insertions(+) diff --git a/Documentation

[PATCH v2 11/15] drm/mediatek: add BLENDER support for MT8196

2025-04-05 Thread paul-pl . chen
From: Nancy Lin BLENDER executes the alpha blending function for overlapping layers from different sources, which is the primary function of the overlapping system. Signed-off-by: Nancy Lin Signed-off-by: Paul-pl Chen --- drivers/gpu/drm/mediatek/Makefile | 1 + drivers/gpu/drm

[PATCH v2 04/15] dt-bindings: display: mediatek: add BLENDER yaml for MT8196

2025-04-05 Thread paul-pl . chen
From: Paul-pl Chen Add mediatek,blender.yaml to support BLENDER for MT8196. MediaTek display overlap blender, namely OVL_BLENDER or BLENDER, executes the alpha blending function for overlapping layers from different sources. Signed-off-by: Paul-pl Chen --- .../display/mediatek/mediatek

[PATCH v2 07/15] soc: mediatek: mutex: refactor SOF settings for output components

2025-04-05 Thread paul-pl . chen
MOD and SOF logic. Signed-off-by: Nancy Lin Signed-off-by: Paul-pl Chen --- drivers/soc/mediatek/mtk-mutex.c | 121 +++-- include/linux/soc/mediatek/mtk-mutex.h | 4 + 2 files changed, 79 insertions(+), 46 deletions(-) diff --git a/drivers/soc/mediatek/mtk-mutex.c b

[PATCH v2 00/15] Add MediaTek SoC DRM support for MT8196

2025-03-27 Thread paul-pl . chen
From: Paul-pl Chen This patch series adds support for the MediaTek MT8196 SoC's display subsystem in the DRM driver. Changes in v2: - add support for MT8196's new hardware components (EXDMA, BLENDER, OUTPROC) following the previous MTK OVL software architecture. - reuse mtk_ovl

[PATCH v2 09/15] drm/mediatek: Refine OVL format convert API and export to public

2025-03-25 Thread paul-pl . chen
From: Nancy Lin Refine OVL format convert API and export to public. Signed-off-by: Nancy Lin Signed-off-by: Paul-pl Chen --- drivers/gpu/drm/mediatek/mtk_disp_ovl.c | 158 drivers/gpu/drm/mediatek/mtk_disp_ovl.h | 16 +++ 2 files changed, 122 insertions(+), 52

[PATCH v2 03/15] dt-bindings: display: mediatek: add EXDMA yaml for MT8196

2025-03-24 Thread paul-pl . chen
From: Paul-pl Chen Add mediatek,exdma.yaml to support EXDMA for MT8196. The MediaTek display overlap extended DMA engine, namely OVL_EXDMA or EXDMA, primarily functions as a DMA engine for reading data from DRAM with various DRAM footprints and data formats. Signed-off-by: Paul-pl Chen

[PATCH v2 05/15] dt-bindings: display: mediatek: add OUTPROC yaml for MT8196

2025-03-22 Thread paul-pl . chen
From: Paul-pl Chen Add mediate,outproc.yaml to support OUTPROC for MT8196. MediaTek display overlap output processor, namely OVL_OUTPROC or OUTPROC,handles the post-stage of pixel processing in the overlapping procedure. Signed-off-by: Paul-pl Chen --- .../display/mediatek/mediatek

[PATCH v2 13/15] drm/mediatek: add ovlsys_adaptor support for MT8196

2025-03-22 Thread paul-pl . chen
integrated within the mtk_ddp_comp framework. Signed-off-by: Nancy Lin Signed-off-by: Paul-pl Chen --- drivers/gpu/drm/mediatek/Makefile | 1 + drivers/gpu/drm/mediatek/mtk_ddp_comp.c | 28 + drivers/gpu/drm/mediatek/mtk_ddp_comp.h | 1 + drivers/gpu/drm/mediatek

[PATCH v2 08/15] soc: mediatek: mutex: add mutex support for MT8196

2025-03-21 Thread paul-pl . chen
: Paul-pl Chen --- drivers/soc/mediatek/mtk-mutex.c | 140 ++- 1 file changed, 138 insertions(+), 2 deletions(-) diff --git a/drivers/soc/mediatek/mtk-mutex.c b/drivers/soc/mediatek/mtk-mutex.c index c026ac0e6969..f51d1cb5ad1e 100644 --- a/drivers/soc/mediatek/mtk-mutex.c

[PATCH v2 10/15] drm/mediatek: add EXDMA support for MT8196

2025-03-21 Thread paul-pl . chen
and refine RG24 Signed-off-by: Nancy Lin Signed-off-by: Paul-pl Chen --- drivers/gpu/drm/mediatek/Makefile | 1 + drivers/gpu/drm/mediatek/mtk_ddp_comp.c | 1 + drivers/gpu/drm/mediatek/mtk_ddp_comp.h | 1 + drivers/gpu/drm/mediatek/mtk_disp_drv.h | 9 + drivers/gpu/drm

[PATCH v2 15/15] drm/mediatek: Add support for MT8196 multiple mmsys

2025-03-21 Thread paul-pl . chen
From: Nancy Lin Add code to support MT8196 SOC Multi MMSYS Driver Signed-off-by: Nancy Lin Signed-off-by: Paul-pl Chen --- drivers/gpu/drm/mediatek/mtk_drm_drv.c | 119 - 1 file changed, 115 insertions(+), 4 deletions(-) diff --git a/drivers/gpu/drm/mediatek

[PATCH v2 14/15] drm/mediatek: Add support for multiple mmsys in the one mediatek-drm driver

2025-03-21 Thread paul-pl . chen
-by: Nancy Lin Signed-off-by: Paul-pl Chen --- drivers/gpu/drm/mediatek/mtk_crtc.c | 342 +++- drivers/gpu/drm/mediatek/mtk_crtc.h | 6 +- drivers/gpu/drm/mediatek/mtk_ddp_comp.c | 102 +++ drivers/gpu/drm/mediatek/mtk_ddp_comp.h | 2 + drivers/gpu/drm/mediatek

[PATCH v2 12/15] drm/mediatek: add OUTPROC support for MT8196

2025-03-21 Thread paul-pl . chen
From: Nancy Lin OUTPROC handles the post-stage of pixel processing in the overlapping procedure.OUTPROC manages pixels for gamma correction and ensures that pixel values are within the correct range. Signed-off-by: Nancy Lin Signed-off-by: Paul-pl Chen --- drivers/gpu/drm/mediatek/Makefile

[PATCH v2 06/15] soc: mediatek: add mmsys support for MT8196

2025-03-21 Thread paul-pl . chen
power-domains property. 4. Adding functions to configure ddp components and set default configurations. 5. Adding the routing table for each mmsys in MT8196. Signed-off-by: Nancy Lin Signed-off-by: Paul-pl Chen --- drivers/soc/mediatek/mt8196-mmsys.h| 451 + drivers

[PATCH v2 02/15] dt-bindings: soc: mediatek: add mutex yaml for MT8196

2025-03-21 Thread paul-pl . chen
From: Paul-pl Chen Add compatible string to support mutex for MT8196. Signed-off-by: Paul-pl Chen --- .../devicetree/bindings/soc/mediatek/mediatek,mutex.yaml| 2 ++ 1 file changed, 2 insertions(+) diff --git a/Documentation/devicetree/bindings/soc/mediatek/mediatek,mutex.yaml b

[PATCH v2 01/15] dt-bindings: arm: mediatek: mmsys: add compatible for MT8196

2025-03-21 Thread paul-pl . chen
From: Paul-pl Chen In previous SoCs, a single HW pipeline was an independent mmsys, which included the OVL module, PQ module, and display interface module. In the 8196, to increase the flexibility of pipeline connection and control, the OVL module on a single HW pipeline was separated into two

[PATCH 00/12] Add Mediatek Soc DRM support for mt8196

2025-01-10 Thread paul-pl . chen
From: "Paul-pl.Chen" Add support multiple mmsys instances in the one mediatek-drm instance. Nancy.Lin (7): soc: mediatek: add mmsys support for MT8196 soc: mediatek: mutex: add mutex support for MT8196 drm/mediatek: add EXDMA support for MT8196 drm/mediatek: add BLENDER support for MT819

[PATCH 03/12] dt-bindings: display: mediatek: add EXDMA yaml for MT8196

2025-01-10 Thread paul-pl . chen
From: "Paul-pl.Chen" Add mediatek,exdma.yaml to support EXDMA for MT8196. Signed-off-by: Paul-pl.Chen --- The header used in examples: #include #include are not upstreamed yet. It will be sent by related owner soon. --- .../display/mediatek/mediatek,exdma.yaml | 77 +++

[PATCH 12/12] drm/mediatek: Add support for multiple mmsys in the one mediatek-drm driver

2025-01-10 Thread paul-pl . chen
From: "Nancy.Lin" To support multiple mmsys instances in the one mediatek-drm instance, providing improved flexibility and scalability by the following changes: 1. Defined new DRM component IDs DDP_COMPONENT_DRM_OVLSYS_ADAPTOR* to support different mmsys composition. 2. Added new component typ

[PATCH 11/12] drm/mediatek: add ovlsys_adaptor support for MT8196

2025-01-10 Thread paul-pl . chen
From: "Nancy.Lin" Ovlsys_adaptor is an encapsulated module designed to simplify the DRM control flow. This module is composed of 20 EXDMAs, 20 BLENDERs, and 12 OUTPROCs. Two EXDMAs merge into one layer, allowing the module to support 20 layers for 3 display paths. Ovlsys_adaptor driver is integra

[PATCH 03/12] dt-bindings: display: mediatek: add EXDMA yaml for MT8196

2025-01-10 Thread paul-pl . chen
From: "Paul-pl.Chen" Add mediatek,exdma.yaml to support EXDMA for MT8196. Signed-off-by: Paul-pl.Chen --- The header used in examples: #include #include are not upstreamed yet. It will be sent by related owner soon. --- .../display/mediatek/mediatek,exdma.yaml | 77 +++

[PATCH 04/12] dt-bindings: display: mediatek: add BLENDER yaml for MT8196

2025-01-10 Thread paul-pl . chen
From: "Paul-pl.Chen" Add mediatek,blender.yaml to support BLENDER for MT8196. Signed-off-by: Paul-pl.Chen --- The header used in examples: #include is not upstreamed yet. It will be sent by related owner soon. --- .../display/mediatek/mediatek,blender.yaml| 50 +++ 1 fil

[PATCH 05/12] dt-bindings: display: mediatek: add OUTPROC yaml for MT8196

2025-01-10 Thread paul-pl . chen
From: "Paul-pl.Chen" Add mediate,outproc.yaml to support OUTPROC for MT8196. Signed-off-by: Paul-pl.Chen --- The header used in examples: #include is not upstreamed yet. It will be sent by related owner soon. --- .../display/mediatek/mediatek,outproc.yaml| 57 +++ 1 fil

[PATCH 02/12] dt-bindings: soc: mediatek: add mutex yaml for MT8196

2025-01-10 Thread paul-pl . chen
From: "Paul-pl.Chen" Add compatible string to support mutex for MT8196. Signed-off-by: Paul-pl.Chen --- .../devicetree/bindings/soc/mediatek/mediatek,mutex.yaml| 2 ++ 1 file changed, 2 insertions(+) diff --git a/Documentation/devicetree/bindings/soc/mediatek/mediatek,mutex.yaml b/Do

[PATCH 10/12] drm/mediatek: add OUTPROC support for MT8196

2025-01-10 Thread paul-pl . chen
From: "Nancy.Lin" OUTPROC handles the post-stage of pixel processing in the overlapping procedure.OUTPROC manages pixels for gamma correction and ensures that pixel values are within the correct range. Signed-off-by: Nancy.Lin Signed-off-by: Paul-pl.Chen --- drivers/gpu/drm/mediatek/Makefile

[PATCH 07/12] soc: mediatek: mutex: add mutex support for MT8196

2025-01-10 Thread paul-pl . chen
From: "Nancy.Lin" Add mutex support the main and external display for MT8196. Signed-off-by: Nancy.Lin Signed-off-by: Paul-pl.Chen --- drivers/soc/mediatek/mtk-mutex.c | 233 +++-- include/linux/soc/mediatek/mtk-mutex.h | 2 + 2 files changed, 222 insertions(+), 13

[PATCH 08/12] drm/mediatek: add EXDMA support for MT8196

2025-01-10 Thread paul-pl . chen
From: "Nancy.Lin" EXDMA is a DMA engine for reading data from DRAM with various DRAM footprints and data formats. For input sources in certain color formats and color domains, EXDMA also includes a color transfer function to process pixels into a consistent color domain. Signed-off-by: Nancy.Lin

[PATCH 09/12] drm/mediatek: add BLENDER support for MT8196

2025-01-10 Thread paul-pl . chen
From: "Nancy.Lin" BLENDER executes the alpha blending function for overlapping layers from different sources, which is the primary function of the overlapping system. Signed-off-by: Nancy.Lin Signed-off-by: Paul-pl.Chen --- drivers/gpu/drm/mediatek/Makefile | 1 + drivers/gpu/drm/

[PATCH 06/12] soc: mediatek: add mmsys support for MT8196

2025-01-10 Thread paul-pl . chen
From: "Nancy.Lin" 1. Defining driver data and adding compatible string for different subsystems (DISPSYS0, DISPSYS1, OVLSYS0, OVLSYS1, VDISP_AO) 2. Adding functions to control top clocks and ddp clocks. 3. Updating the probe function to initialize clocks and enable runtime PM if its node has the

[PATCH 01/12] dt-bindings: arm: mediatek: mmsys: add compatible for MT8196

2025-01-10 Thread paul-pl . chen
From: "Paul-pl.Chen" Add compatible for mmsys yaml of MT8196 Signed-off-by: Paul-pl.Chen --- .../devicetree/bindings/arm/mediatek/mediatek,mmsys.yaml | 5 + 1 file changed, 5 insertions(+) diff --git a/Documentation/devicetree/bindings/arm/mediatek/mediatek,mmsys.yaml b/Documentation