[PATCH v2] drm/mediatek: add ctm property support

2019-12-03 Thread yongqiang.niu
From: Yongqiang Niu add ctm property support Change-Id: I8111da7b309b1809c6302e7748dd9fd06dc97bde Signed-off-by: Yongqiang Niu --- drivers/gpu/drm/mediatek/mtk_drm_crtc.c | 15 ++- drivers/gpu/drm/mediatek/mtk_drm_ddp_comp.c | 61 - drivers/gpu/drm/mediatek/

[PATCH v1] drm/mediatek: add ctm property support

2019-12-02 Thread yongqiang.niu
From: Yongqiang Niu add ctm property support Signed-off-by: Yongqiang Niu --- drivers/gpu/drm/mediatek/mtk_drm_crtc.c | 7 +++- drivers/gpu/drm/mediatek/mtk_drm_ddp_comp.c | 59 - drivers/gpu/drm/mediatek/mtk_drm_ddp_comp.h | 9 + 3 files changed, 72 inser

[PATCH v1, 2/2] drm/mediatek: Fix external display vblank timeout issue

2019-11-27 Thread yongqiang.niu
From: Yongqiang Niu Fix external display vblank timeout issue Signed-off-by: Yongqiang Niu --- drivers/gpu/drm/mediatek/mtk_dpi.c | 14 +- drivers/gpu/drm/mediatek/mtk_drm_crtc.c | 6 ++ drivers/gpu/drm/mediatek/mtk_drm_ddp_comp.h | 14 ++ 3 files chan

[PATCH v1, 1/2] drm/mediatek: Fixup external display black screen issue

2019-11-27 Thread yongqiang.niu
From: Yongqiang Niu Problem: overlay hangup when external display hotplut test Fix: disable overlay when crtc disable Signed-off-by: Yongqiang Niu --- drivers/gpu/drm/mediatek/mtk_drm_crtc.c | 39 + 1 file changed, 25 insertions(+), 14 deletions(-) diff --git

[PATCH v1, 0/2] drm/mediatek: Fix external display issue

2019-11-27 Thread yongqiang.niu
From: Yongqiang Niu Fix external display issue Yongqiang Niu (2): drm/mediatek: Fixup external display black screen issue drm/mediatek: Fix external display vblank timeout issue drivers/gpu/drm/mediatek/mtk_dpi.c | 14 + drivers/gpu/drm/mediatek/mtk_drm_crtc.c | 45 +++

[PATCH v1] drm/mediatek: fix up 1440x900 dp display black screen issue

2019-11-26 Thread yongqiang.niu
From: Yongqiang Niu This patch fix up 1440x900 dp display black screen issue the computed result will overflow rdma1 fifo max size when external display pixel clock bigger than 74MHZ Signed-off-by: Yongqiang Niu --- drivers/gpu/drm/mediatek/mtk_disp_rdma.c | 4 1 file changed, 4 insertion

[PATCH v5, 07/32] drm/mediatek: add mutex mod into ddp private data

2019-08-30 Thread yongqiang.niu
From: Yongqiang Niu except mutex mod, mutex mod reg,mutex sof reg, and mutex sof id will be ddp private data Signed-off-by: Yongqiang Niu Reviewed-by: CK Hu --- drivers/gpu/drm/mediatek/mtk_drm_ddp.c | 41 +- 1 file changed, 30 insertions(+), 11 deletions(-) d

[PATCH v5, 19/32] drm/medaitek: add layer_nr for ovl private data

2019-08-30 Thread yongqiang.niu
From: Yongqiang Niu This patch add layer_nr for ovl private data ovl_2l almost same with with ovl hardware, except the layer number for ovl_2l is 2 and ovl is 4. this patch is a preparation for ovl-2l and ovl share the same driver. Signed-off-by: Yongqiang Niu Reviewed-by: CK Hu --- drivers/g

[PATCH v5, 02/32] dt-bindings: mediatek: add ovl_2l description for mt8183 display

2019-08-30 Thread yongqiang.niu
From: Yongqiang Niu Update device tree binding documention for the display subsystem for Mediatek MT8183 SOCs Signed-off-by: Yongqiang Niu Reviewed-by: Rob Herring --- .../bindings/display/mediatek/mediatek,disp.txt| 27 +++--- 1 file changed, 14 insertions(+), 13 deletion

[PATCH v5, 30/32] drm/mediatek: add connection from DITHER0 to DSI0

2019-08-30 Thread yongqiang.niu
From: Yongqiang Niu This patch add connection from DITHER0 to DSI0 Signed-off-by: Yongqiang Niu --- drivers/gpu/drm/mediatek/mtk_drm_ddp.c | 5 + 1 file changed, 5 insertions(+) diff --git a/drivers/gpu/drm/mediatek/mtk_drm_ddp.c b/drivers/gpu/drm/mediatek/mtk_drm_ddp.c index 237824f..fd

[PATCH v5, 13/32] drm/mediatek: move rdma sout from mtk_ddp_mout_en into mtk_ddp_sout_sel

2019-08-30 Thread yongqiang.niu
From: Yongqiang Niu This patch move rdma sout from mtk_ddp_mout_en into mtk_ddp_sout_sel rdma only has single output, but no multi output, all these rdma->dsi/dpi usecase should move to mtk_ddp_sout_sel Signed-off-by: Yongqiang Niu --- drivers/gpu/drm/mediatek/mtk_drm_ddp.c | 90 ++

[PATCH v5, 06/32] arm64: dts: add display nodes for mt8183

2019-08-30 Thread yongqiang.niu
From: Yongqiang Niu This patch add display nodes for mt8183 Signed-off-by: Yongqiang Niu --- arch/arm64/boot/dts/mediatek/mt8183.dtsi | 111 +++ 1 file changed, 111 insertions(+) diff --git a/arch/arm64/boot/dts/mediatek/mt8183.dtsi b/arch/arm64/boot/dts/mediatek/

[PATCH v5, 03/32] dt-bindings: mediatek: add ccorr description for mt8183 display

2019-08-29 Thread yongqiang.niu
From: Yongqiang Niu Update device tree binding documention for the display subsystem for Mediatek MT8183 SOCs Signed-off-by: Yongqiang Niu Reviewed-by: Rob Herring --- Documentation/devicetree/bindings/display/mediatek/mediatek,disp.txt | 1 + 1 file changed, 1 insertion(+) diff --git a/Doc

[PATCH v5, 10/32] drm/mediatek: add mutex sof register offset into ddp private data

2019-08-29 Thread yongqiang.niu
From: Yongqiang Niu mutex sof register offset will be private data of ddp Signed-off-by: Yongqiang Niu Reviewed-by: CK Hu --- drivers/gpu/drm/mediatek/mtk_drm_ddp.c | 13 ++--- 1 file changed, 10 insertions(+), 3 deletions(-) diff --git a/drivers/gpu/drm/mediatek/mtk_drm_ddp.c b/dri

[PATCH v5, 11/32] drm/mediatek: split DISP_REG_CONFIG_DSI_SEL setting into another use case

2019-08-29 Thread yongqiang.niu
From: Yongqiang Niu Here is two modifition in this patch: 1.bls->dpi0 and rdma1->dsi are differen usecase, Split DISP_REG_CONFIG_DSI_SEL setting into anther usecase 2.remove DISP_REG_CONFIG_DPI_SEL setting, DPI_SEL_IN_BLS is 0 and this is same with hardware defautl setting, Signed-off-by: Yongqi

[PATCH v5, 01/32] dt-bindings: mediatek: add binding for mt8183 display

2019-08-29 Thread yongqiang.niu
From: Yongqiang Niu Update device tree binding documention for the display subsystem for Mediatek MT8183 SOCs Signed-off-by: Yongqiang Niu --- .../bindings/display/mediatek/mediatek,display.txt | 21 + 1 file changed, 21 insertions(+) create mode 100644 Documentation/dev

[PATCH v5, 08/32] drm/mediatek: add mutex mod register offset into ddp private data

2019-08-29 Thread yongqiang.niu
From: Yongqiang Niu mutex mod register offset will be private data of ddp. Signed-off-by: Yongqiang Niu Reviewed-by: CK Hu --- drivers/gpu/drm/mediatek/mtk_drm_ddp.c | 24 1 file changed, 16 insertions(+), 8 deletions(-) diff --git a/drivers/gpu/drm/mediatek/mtk_drm_

[PATCH v5, 15/32] drm/mediatek: add commponent OVL_2L0

2019-08-29 Thread yongqiang.niu
From: Yongqiang Niu This patch add commponent OVL_2L0 Signed-off-by: Yongqiang Niu Reviewed-by: CK Hu --- drivers/gpu/drm/mediatek/mtk_drm_ddp_comp.c | 2 ++ drivers/gpu/drm/mediatek/mtk_drm_ddp_comp.h | 2 ++ 2 files changed, 4 insertions(+) diff --git a/drivers/gpu/drm/mediatek/mtk_drm_ddp

[PATCH v5, 09/32] drm/mediatek: add mutex sof into ddp private data

2019-08-29 Thread yongqiang.niu
From: Yongqiang Niu mutex sof will be ddp private data Signed-off-by: Yongqiang Niu Reviewed-by: CK Hu --- drivers/gpu/drm/mediatek/mtk_drm_ddp.c | 43 +++--- 1 file changed, 35 insertions(+), 8 deletions(-) diff --git a/drivers/gpu/drm/mediatek/mtk_drm_ddp.c b/d

[PATCH v5, 17/32] drm/mediatek: add component DITHER

2019-08-29 Thread yongqiang.niu
From: Yongqiang Niu This patch add component DITHER Signed-off-by: Yongqiang Niu Reviewed-by: CK Hu --- drivers/gpu/drm/mediatek/mtk_drm_ddp_comp.c | 32 + drivers/gpu/drm/mediatek/mtk_drm_ddp_comp.h | 2 ++ 2 files changed, 34 insertions(+) diff --git a/drivers/

[PATCH v5, 20/32] drm/mediatek: add function to background color input select for ovl/ovl_2l direct link

2019-08-29 Thread yongqiang.niu
From: Yongqiang Niu This patch add function to background color input select for ovl/ovl_2l direct link for ovl/ovl_2l direct link usecase, we need set background color input select for these hardware. this is preparation patch for ovl/ovl_2l usecase Signed-off-by: Yongqiang Niu Reviewed-by: C

[PATCH v5, 12/32] drm/mediatek: add mmsys private data for ddp path config

2019-08-29 Thread yongqiang.niu
From: Yongqiang Niu This patch add mmsys private data for ddp path config all these register offset and value will be different in future SOC add these define into mmsys private data u32 ovl0_mout_en; u32 rdma1_sout_sel_in; u32 rdma1_sout_dsi0; u32 dpi0_sel_in;

[PATCH v5, 18/32] drm/mediatek: add gmc_bits for ovl private data

2019-08-29 Thread yongqiang.niu
From: Yongqiang Niu This patch add gmc_bits for ovl private data GMC register was set RDMA ultra and pre-ultra threshold. 10bit GMC register define is different with other SOC, gmc_thrshd_l not used. Signed-off-by: Yongqiang Niu Reviewed-by: CK Hu --- drivers/gpu/drm/mediatek/mtk_disp_ovl.c |

[PATCH v5, 29/32] drm/mediatek: add connection from OVL_2L1 to RDMA1

2019-08-29 Thread yongqiang.niu
From: Yongqiang Niu This patch add connection from OVL_2L1 to RDMA1 Signed-off-by: Yongqiang Niu --- drivers/gpu/drm/mediatek/mtk_drm_ddp.c | 6 ++ 1 file changed, 6 insertions(+) diff --git a/drivers/gpu/drm/mediatek/mtk_drm_ddp.c b/drivers/gpu/drm/mediatek/mtk_drm_ddp.c index 943e114..

[PATCH v5, 31/32] drm/mediatek: add connection from RDMA0 to DSI0

2019-08-29 Thread yongqiang.niu
From: Yongqiang Niu This patch add connection from RDMA0 to DSI0 Signed-off-by: Yongqiang Niu --- drivers/gpu/drm/mediatek/mtk_drm_ddp.c | 4 1 file changed, 4 insertions(+) diff --git a/drivers/gpu/drm/mediatek/mtk_drm_ddp.c b/drivers/gpu/drm/mediatek/mtk_drm_ddp.c index fd38658..6a7cb

[PATCH v5, 16/32] drm/mediatek: add component OVL_2L1

2019-08-29 Thread yongqiang.niu
From: Yongqiang Niu This patch add component OVL_2L1 Signed-off-by: Yongqiang Niu Reviewed-by: CK Hu --- drivers/gpu/drm/mediatek/mtk_drm_ddp_comp.c | 1 + drivers/gpu/drm/mediatek/mtk_drm_ddp_comp.h | 1 + 2 files changed, 2 insertions(+) diff --git a/drivers/gpu/drm/mediatek/mtk_drm_ddp_co

[PATCH v5, 22/32] drm/mediatek: add ovl0/ovl_2l0 usecase

2019-08-29 Thread yongqiang.niu
From: Yongqiang Niu This patch add ovl0/ovl_2l0 usecase in ovl->ovl_2l0 direct link usecase: 1. the crtc support layer number will 4+2 2. ovl_2l0 background color input select ovl0 when crtc init and disable it when crtc finish 3. config ovl_2l0 layer, if crtc config layer number is bigger than o

[PATCH v5, 28/32] drm/mediatek: add connection from OVL_2L0 to RDMA0

2019-08-29 Thread yongqiang.niu
From: Yongqiang Niu this patch add add connection from OVL_2L0 to RDMA0 Signed-off-by: Yongqiang Niu --- drivers/gpu/drm/mediatek/mtk_drm_ddp.c | 14 ++ 1 file changed, 14 insertions(+) diff --git a/drivers/gpu/drm/mediatek/mtk_drm_ddp.c b/drivers/gpu/drm/mediatek/mtk_drm_ddp.c i

[PATCH v5, 32/32] drm/mediatek: add support for mediatek SOC MT8183

2019-08-29 Thread yongqiang.niu
From: Yongqiang Niu This patch add support for mediatek SOC MT8183 1.ovl_2l share driver with ovl 2.rdma1 share drive with rdma0, but fifo size is different 3.add mt8183 mutex private data, and mmsys private data 4.add mt8183 main and external path module for crtc create Signed-off-by: Yongqiang

[PATCH v5, 27/32] drm/mediatek: add connection from RDMA1 to DSI0

2019-08-29 Thread yongqiang.niu
From: Yongqiang Niu This patch add connection from RDMA1 to DSI0 Signed-off-by: Yongqiang Niu --- drivers/gpu/drm/mediatek/mtk_drm_ddp.c | 4 1 file changed, 4 insertions(+) diff --git a/drivers/gpu/drm/mediatek/mtk_drm_ddp.c b/drivers/gpu/drm/mediatek/mtk_drm_ddp.c index 03a46ec..aa617

[PATCH v5, 23/32] drm/mediatek: distinguish ovl and ovl_2l by layer_nr

2019-08-29 Thread yongqiang.niu
From: Yongqiang Niu distinguish ovl and ovl_2l by layer_nr when get comp id Signed-off-by: Yongqiang Niu Reviewed-by: CK Hu --- drivers/gpu/drm/mediatek/mtk_disp_ovl.c | 9 ++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/drivers/gpu/drm/mediatek/mtk_disp_ovl.c b/drive

[PATCH v5, 26/32] drm/mediatek: add connection from RDMA0 to COLOR0

2019-08-29 Thread yongqiang.niu
From: Yongqiang Niu This patch add connection from RDMA0 to COLOR0 Signed-off-by: Yongqiang Niu --- drivers/gpu/drm/mediatek/mtk_drm_ddp.c | 5 + 1 file changed, 5 insertions(+) diff --git a/drivers/gpu/drm/mediatek/mtk_drm_ddp.c b/drivers/gpu/drm/mediatek/mtk_drm_ddp.c index 42a130a..03

[PATCH v5, 25/32] drm/mediatek: add connection from OVL0 to OVL_2L0

2019-08-29 Thread yongqiang.niu
From: Yongqiang Niu This patch add connection from OVL0 to OVL_2L0 Signed-off-by: Yongqiang Niu --- drivers/gpu/drm/mediatek/mtk_drm_ddp.c | 5 + 1 file changed, 5 insertions(+) diff --git a/drivers/gpu/drm/mediatek/mtk_drm_ddp.c b/drivers/gpu/drm/mediatek/mtk_drm_ddp.c index effc24a..42

[PATCH v5, 14/32] drm/mediatek: add ddp component CCORR

2019-08-29 Thread yongqiang.niu
From: Yongqiang Niu This patch add ddp component CCORR Signed-off-by: Yongqiang Niu Reviewed-by: CK Hu --- drivers/gpu/drm/mediatek/mtk_drm_ddp_comp.c | 32 + drivers/gpu/drm/mediatek/mtk_drm_ddp_comp.h | 2 ++ 2 files changed, 34 insertions(+) diff --git a/drive

[PATCH v5, 21/32] drm/mediatek: add background color input select function for ovl/ovl_2l

2019-08-29 Thread yongqiang.niu
From: Yongqiang Niu This patch add background color input select function for ovl/ovl_2l ovl include 4 DRAM layer and 1 background color layer ovl_2l include 4 DRAM layer and 1 background color layer DRAM layer frame buffer data from render hardware, GPU for example. backgournd color layer is em

[PATCH v5, 24/32] drm/mediatek: add clock property check before get it

2019-08-29 Thread yongqiang.niu
From: Yongqiang Niu This patch add clock property check before get it Signed-off-by: Yongqiang Niu --- drivers/gpu/drm/mediatek/mtk_drm_ddp.c | 10 ++ 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/drivers/gpu/drm/mediatek/mtk_drm_ddp.c b/drivers/gpu/drm/mediatek/mtk_dr

[PATCH v5, 04/32] dt-bindings: mediatek: add dither description for mt8183 display

2019-08-29 Thread yongqiang.niu
From: Yongqiang Niu Update device tree binding documention for the display subsystem for Mediatek MT8183 SOCs Signed-off-by: Yongqiang Niu Reviewed-by: Rob Herring --- Documentation/devicetree/bindings/display/mediatek/mediatek,disp.txt | 1 + 1 file changed, 1 insertion(+) diff --git a/Doc

[PATCH v5, 05/32] dt-bindings: mediatek: add mutex description for mt8183 display

2019-08-29 Thread yongqiang.niu
From: Yongqiang Niu This patch add mutex description for mt8183 display Signed-off-by: Yongqiang Niu --- Documentation/devicetree/bindings/display/mediatek/mediatek,disp.txt | 1 + 1 file changed, 1 insertion(+) diff --git a/Documentation/devicetree/bindings/display/mediatek/mediatek,disp.tx

[PATCH v5, 00/32] add drm support for MT8183

2019-08-29 Thread yongqiang.niu
From: Yongqiang Niu This series are based on 5.3-rc1 and provid 32 patch to support mediatek SOC MT8183 Change since v4 - fix reviewed issue in v4 Change since v3 - fix reviewed issue in v3 - fix type error in v3 - fix conflict with iommu patch Change since v2 - fix reviewed issue in v2 - add

[PATCH v4, 25/33] drm/mediatek: add clock property check before get it

2019-07-09 Thread yongqiang.niu
From: Yongqiang Niu This patch add clock property check before get it Signed-off-by: Yongqiang Niu --- drivers/gpu/drm/mediatek/mtk_drm_ddp.c | 10 ++ 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/drivers/gpu/drm/mediatek/mtk_drm_ddp.c b/drivers/gpu/drm/mediatek/mtk_dr

[PATCH v4, 14/33] drm/mediatek: move rdma sout from mtk_ddp_mout_en into mtk_ddp_sout_sel

2019-07-09 Thread yongqiang.niu
From: Yongqiang Niu This patch move rdma sout from mtk_ddp_mout_en into mtk_ddp_sout_sel rdma only has single output, but no multi output, all these rdma->dsi/dpi usecase should move to mtk_ddp_sout_sel Signed-off-by: Yongqiang Niu --- drivers/gpu/drm/mediatek/mtk_drm_ddp.c | 90 ++

[PATCH v4, 26/33] drm/mediatek: add connection from OVL0 to OVL_2L0

2019-07-09 Thread yongqiang.niu
From: Yongqiang Niu This patch add connection from OVL0 to OVL_2L0 Signed-off-by: Yongqiang Niu --- drivers/gpu/drm/mediatek/mtk_drm_ddp.c | 5 + 1 file changed, 5 insertions(+) diff --git a/drivers/gpu/drm/mediatek/mtk_drm_ddp.c b/drivers/gpu/drm/mediatek/mtk_drm_ddp.c index a9d3e27..fe

[PATCH v4, 13/33] drm/mediatek: add mmsys private data for ddp path config

2019-07-09 Thread yongqiang.niu
From: Yongqiang Niu This patch add mmsys private data for ddp path config all these register offset and value will be different in future SOC add these define into mmsys private data u32 ovl0_mout_en; u32 rdma0_sout_sel_in; u32 rdma0_sout_color0; u32 rdma1_sout_sel

[PATCH v4, 02/33] dt-bindings: mediatek: add ovl_2l description for mt8183 display

2019-07-08 Thread yongqiang.niu
From: Yongqiang Niu Update device tree binding documention for the display subsystem for Mediatek MT8183 SOCs Signed-off-by: Yongqiang Niu --- .../bindings/display/mediatek/mediatek,disp.txt| 27 +++--- 1 file changed, 14 insertions(+), 13 deletions(-) diff --git a/Docume

[PATCH v4, 06/33] dt-bindings: mediatek: add mutex description for mt8183 display

2019-07-08 Thread yongqiang.niu
From: Yongqiang Niu This patch add mutex description for mt8183 display Signed-off-by: Yongqiang Niu --- Documentation/devicetree/bindings/display/mediatek/mediatek,disp.txt | 1 + 1 file changed, 1 insertion(+) diff --git a/Documentation/devicetree/bindings/display/mediatek/mediatek,disp.tx

[PATCH v4, 04/33] dt-bindings: mediatek: add dither description for mt8183 display

2019-07-08 Thread yongqiang.niu
From: Yongqiang Niu Update device tree binding documention for the display subsystem for Mediatek MT8183 SOCs Signed-off-by: Yongqiang Niu --- Documentation/devicetree/bindings/display/mediatek/mediatek,disp.txt | 1 + 1 file changed, 1 insertion(+) diff --git a/Documentation/devicetree/bind

[PATCH v4, 07/33] arm64: dts: add display nodes for mt8183

2019-07-08 Thread yongqiang.niu
From: Yongqiang Niu This patch add display nodes for mt8183 Signed-off-by: Yongqiang Niu --- arch/arm64/boot/dts/mediatek/mt8183.dtsi | 109 +++ 1 file changed, 109 insertions(+) diff --git a/arch/arm64/boot/dts/mediatek/mt8183.dtsi b/arch/arm64/boot/dts/mediatek/

[PATCH v4, 29/33] drm/mediatek: add connection from OVL_2L0 to RDMA0

2019-07-08 Thread yongqiang.niu
From: Yongqiang Niu this patch add add connection from OVL_2L0 to RDMA0 Signed-off-by: Yongqiang Niu --- drivers/gpu/drm/mediatek/mtk_drm_ddp.c | 14 ++ 1 file changed, 14 insertions(+) diff --git a/drivers/gpu/drm/mediatek/mtk_drm_ddp.c b/drivers/gpu/drm/mediatek/mtk_drm_ddp.c i

[PATCH v4, 18/33] drm/mediatek: add component DITHER

2019-07-08 Thread yongqiang.niu
From: Yongqiang Niu This patch add component DITHER Signed-off-by: Yongqiang Niu Reviewed-by: CK Hu --- drivers/gpu/drm/mediatek/mtk_drm_ddp_comp.c | 32 + drivers/gpu/drm/mediatek/mtk_drm_ddp_comp.h | 2 ++ 2 files changed, 34 insertions(+) diff --git a/drivers/

[PATCH v4, 23/33] drm/mediatek: add ovl0/ovl_2l0 usecase

2019-07-08 Thread yongqiang.niu
From: Yongqiang Niu This patch add ovl0/ovl_2l0 usecase in ovl->ovl_2l0 direct link usecase: 1. the crtc support layer number will 4+2 2. ovl_2l0 background color input select ovl0 when crtc init and disable it when crtc finish 3. config ovl_2l0 layer, if crtc config layer number is bigger than o

[PATCH v4, 15/33] drm/mediatek: add ddp component CCORR

2019-07-08 Thread yongqiang.niu
From: Yongqiang Niu This patch add ddp component CCORR Signed-off-by: Yongqiang Niu Reviewed-by: CK Hu --- drivers/gpu/drm/mediatek/mtk_drm_ddp_comp.c | 32 + drivers/gpu/drm/mediatek/mtk_drm_ddp_comp.h | 2 ++ 2 files changed, 34 insertions(+) diff --git a/drive

[PATCH v4, 16/33] drm/mediatek: add commponent OVL_2L0

2019-07-08 Thread yongqiang.niu
From: Yongqiang Niu This patch add commponent OVL_2L0 Signed-off-by: Yongqiang Niu Reviewed-by: CK Hu --- drivers/gpu/drm/mediatek/mtk_drm_ddp_comp.c | 2 ++ drivers/gpu/drm/mediatek/mtk_drm_ddp_comp.h | 2 ++ 2 files changed, 4 insertions(+) diff --git a/drivers/gpu/drm/mediatek/mtk_drm_ddp

[PATCH v4, 11/33] drm/mediatek: add mutex sof register offset into ddp private data

2019-07-08 Thread yongqiang.niu
From: Yongqiang Niu mutex sof register offset will be private data of ddp Signed-off-by: Yongqiang Niu --- drivers/gpu/drm/mediatek/mtk_drm_ddp.c | 13 ++--- 1 file changed, 10 insertions(+), 3 deletions(-) diff --git a/drivers/gpu/drm/mediatek/mtk_drm_ddp.c b/drivers/gpu/drm/mediate

[PATCH v4, 17/33] drm/mediatek: add component OVL_2L1

2019-07-08 Thread yongqiang.niu
From: Yongqiang Niu This patch add component OVL_2L1 Signed-off-by: Yongqiang Niu Reviewed-by: CK Hu --- drivers/gpu/drm/mediatek/mtk_drm_ddp_comp.c | 1 + drivers/gpu/drm/mediatek/mtk_drm_ddp_comp.h | 1 + 2 files changed, 2 insertions(+) diff --git a/drivers/gpu/drm/mediatek/mtk_drm_ddp_co

[PATCH v4, 20/33] drm/medaitek: add layer_nr for ovl private data

2019-07-08 Thread yongqiang.niu
From: Yongqiang Niu This patch add layer_nr for ovl private data ovl_2l almost same with with ovl hardware, except the layer number for ovl_2l is 2 and ovl is 4. this patch is a preparation for ovl-2l and ovl share the same driver. Signed-off-by: Yongqiang Niu Reviewed-by: CK Hu --- drivers/g

[PATCH v4, 10/33] drm/mediatek: add mutex sof into ddp private data

2019-07-08 Thread yongqiang.niu
From: Yongqiang Niu mutex sof will be ddp private data Signed-off-by: Yongqiang Niu --- drivers/gpu/drm/mediatek/mtk_drm_ddp.c | 43 +++--- 1 file changed, 35 insertions(+), 8 deletions(-) diff --git a/drivers/gpu/drm/mediatek/mtk_drm_ddp.c b/drivers/gpu/drm/media

[PATCH v4, 09/33] drm/mediatek: add mutex mod register offset into ddp private data

2019-07-08 Thread yongqiang.niu
From: Yongqiang Niu mutex mod register offset will be private data of ddp. Signed-off-by: Yongqiang Niu --- drivers/gpu/drm/mediatek/mtk_drm_ddp.c | 24 1 file changed, 16 insertions(+), 8 deletions(-) diff --git a/drivers/gpu/drm/mediatek/mtk_drm_ddp.c b/drivers/gpu

[PATCH v4, 03/33] dt-bindings: mediatek: add ccorr description for mt8183 display

2019-07-08 Thread yongqiang.niu
From: Yongqiang Niu Update device tree binding documention for the display subsystem for Mediatek MT8183 SOCs Signed-off-by: Yongqiang Niu --- Documentation/devicetree/bindings/display/mediatek/mediatek,disp.txt | 1 + 1 file changed, 1 insertion(+) diff --git a/Documentation/devicetree/bind

[PATCH v4, 28/33] drm/mediatek: add connection from RDMA1 to DSI0

2019-07-08 Thread yongqiang.niu
From: Yongqiang Niu This patch add connection from RDMA1 to DSI0 Signed-off-by: Yongqiang Niu --- drivers/gpu/drm/mediatek/mtk_drm_ddp.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/drivers/gpu/drm/mediatek/mtk_drm_ddp.c b/drivers/gpu/drm/mediatek/mtk_drm_ddp.c index c87bc4c..fbea47

[PATCH v4, 31/33] drm/mediatek: add connection from DITHER0 to DSI0

2019-07-08 Thread yongqiang.niu
From: Yongqiang Niu This patch add connection from DITHER0 to DSI0 Signed-off-by: Yongqiang Niu --- drivers/gpu/drm/mediatek/mtk_drm_ddp.c | 5 + 1 file changed, 5 insertions(+) diff --git a/drivers/gpu/drm/mediatek/mtk_drm_ddp.c b/drivers/gpu/drm/mediatek/mtk_drm_ddp.c index 4d75cef..c4

[PATCH v4, 19/33] drm/mediatek: add gmc_bits for ovl private data

2019-07-08 Thread yongqiang.niu
From: Yongqiang Niu This patch add gmc_bits for ovl private data GMC register was set RDMA ultra and pre-ultra threshold. 10bit GMC register define is different with other SOC, gmc_thrshd_l not used. Signed-off-by: Yongqiang Niu Reviewed-by: CK Hu --- drivers/gpu/drm/mediatek/mtk_disp_ovl.c |

[PATCH v4, 33/33] drm/mediatek: add support for mediatek SOC MT8183

2019-07-08 Thread yongqiang.niu
From: Yongqiang Niu This patch add support for mediatek SOC MT8183 1.ovl_2l share driver with ovl 2.rdma1 share drive with rdma0, but fifo size is different 3.add mt8183 mutex private data, and mmsys private data 4.add mt8183 main and external path module for crtc create Signed-off-by: Yongqiang

[PATCH v4, 27/33] drm/mediatek: add connection from RDMA0 to COLOR0

2019-07-08 Thread yongqiang.niu
From: Yongqiang Niu This patch add connection from RDMA0 to COLOR0 Signed-off-by: Yongqiang Niu --- drivers/gpu/drm/mediatek/mtk_drm_ddp.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/drivers/gpu/drm/mediatek/mtk_drm_ddp.c b/drivers/gpu/drm/mediatek/mtk_drm_ddp.c index fe4a458..c87b

[PATCH v4, 24/33] drm/mediatek: distinguish ovl and ovl_2l by layer_nr

2019-07-08 Thread yongqiang.niu
From: Yongqiang Niu distinguish ovl and ovl_2l by layer_nr when get comp id Signed-off-by: Yongqiang Niu --- drivers/gpu/drm/mediatek/mtk_disp_ovl.c | 9 ++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/drivers/gpu/drm/mediatek/mtk_disp_ovl.c b/drivers/gpu/drm/mediatek/

[PATCH v4, 22/33] drm/mediatek: add background color input select function for ovl/ovl_2l

2019-07-08 Thread yongqiang.niu
From: Yongqiang Niu This patch add background color input select function for ovl/ovl_2l ovl include 4 DRAM layer and 1 background color layer ovl_2l include 4 DRAM layer and 1 background color layer DRAM layer frame buffer data from render hardware, GPU for example. backgournd color layer is em

[PATCH v4, 21/33] drm/mediatek: add function to background color input select for ovl/ovl_2l direct link

2019-07-08 Thread yongqiang.niu
From: Yongqiang Niu This patch add function to background color input select for ovl/ovl_2l direct link for ovl/ovl_2l direct link usecase, we need set background color input select for these hardware. this is preparation patch for ovl/ovl_2l usecase Signed-off-by: Yongqiang Niu --- drivers/g

[PATCH v4, 32/33] drm/mediatek: add connection from RDMA0 to DSI0

2019-07-08 Thread yongqiang.niu
From: Yongqiang Niu This patch add connection from RDMA0 to DSI0 Signed-off-by: Yongqiang Niu --- drivers/gpu/drm/mediatek/mtk_drm_ddp.c | 4 1 file changed, 4 insertions(+) diff --git a/drivers/gpu/drm/mediatek/mtk_drm_ddp.c b/drivers/gpu/drm/mediatek/mtk_drm_ddp.c index c4c8531..c4d8e

[PATCH v4, 30/33] drm/mediatek: add connection from OVL_2L1 to RDMA1

2019-07-08 Thread yongqiang.niu
From: Yongqiang Niu This patch add connection from OVL_2L1 to RDMA1 Signed-off-by: Yongqiang Niu --- drivers/gpu/drm/mediatek/mtk_drm_ddp.c | 6 ++ 1 file changed, 6 insertions(+) diff --git a/drivers/gpu/drm/mediatek/mtk_drm_ddp.c b/drivers/gpu/drm/mediatek/mtk_drm_ddp.c index 0a63dd0..

[PATCH v4, 01/33] dt-bindings: mediatek: add binding for mt8183 display

2019-07-08 Thread yongqiang.niu
From: Yongqiang Niu Update device tree binding documention for the display subsystem for Mediatek MT8183 SOCs Signed-off-by: Yongqiang Niu --- .../bindings/display/mediatek/mediatek,display.txt | 21 + 1 file changed, 21 insertions(+) create mode 100644 Documentation/dev

[PATCH v4, 08/33] drm/mediatek: add mutex mod into ddp private data

2019-07-08 Thread yongqiang.niu
From: Yongqiang Niu except mutex mod, mutex mod reg,mutex sof reg, and mutex sof id will be ddp private data Signed-off-by: Yongqiang Niu --- drivers/gpu/drm/mediatek/mtk_drm_ddp.c | 41 +- 1 file changed, 30 insertions(+), 11 deletions(-) diff --git a/drivers/

[PATCH v4, 05/33] dt-bindings: mediatek: add RDMA1 description for mt8183 display

2019-07-08 Thread yongqiang.niu
From: Yongqiang Niu This patch add RDMA1 description for mt8183 display Signed-off-by: Yongqiang Niu --- Documentation/devicetree/bindings/display/mediatek/mediatek,disp.txt | 1 + 1 file changed, 1 insertion(+) diff --git a/Documentation/devicetree/bindings/display/mediatek/mediatek,disp.tx

[PATCH v4, 12/33] drm/mediatek: split DISP_REG_CONFIG_DSI_SEL setting into another use case

2019-07-08 Thread yongqiang.niu
From: Yongqiang Niu Here is two modifition in this patch: 1.bls->dpi0 and rdma1->dsi are differen usecase, Split DISP_REG_CONFIG_DSI_SEL setting into anther usecase 2.remove DISP_REG_CONFIG_DPI_SEL setting, DPI_SEL_IN_BLS is 0 and this is same with hardware defautl setting, Signed-off-by: Yongqi

[PATCH v4, 00/33] add drm support for MT8183

2019-07-08 Thread yongqiang.niu
From: Yongqiang Niu This series are based on 5.2-rc1 and provid 27 patch to support mediatek SOC MT8183 Change since v3 - fix reviewed issue in v3 - fix type error in v3 - fix conflict with iommu patch Yongqiang Niu (33): dt-bindings: mediatek: add binding for mt8183 display dt-bindings: me

[PATCH v3, 00/27] add drm support for MT8183

2019-06-06 Thread yongqiang.niu
From: Yongqiang Niu This series are based on 5.2-rc1 and provid 27 patch to support mediatek SOC MT8183 Change since v2 - fix reviewed issue in v2 - add mutex node into dts file Yongqiang Niu (27): dt-bindings: mediatek: add binding for mt8183 display dt-bindings: mediatek: add ovl_2l descr

[PATCH v3, 25/27] drm/mediatek: add connection from RDMA1 to DSI0

2019-06-06 Thread yongqiang.niu
From: Yongqiang Niu This patch add connection from RDMA1 to DSI0 Signed-off-by: Yongqiang Niu --- drivers/gpu/drm/mediatek/mtk_drm_ddp.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/drivers/gpu/drm/mediatek/mtk_drm_ddp.c b/drivers/gpu/drm/mediatek/mtk_drm_ddp.c index adafa41..9986c6

[PATCH v3, 04/27] dt-bindings: mediatek: add dither description for mt8183 display

2019-06-06 Thread yongqiang.niu
From: Yongqiang Niu Update device tree binding documention for the display subsystem for Mediatek MT8183 SOCs Signed-off-by: Yongqiang Niu --- Documentation/devicetree/bindings/display/mediatek/mediatek,disp.txt | 1 + 1 file changed, 1 insertion(+) diff --git a/Documentation/devicetree/bind

[PATCH v3, 26/27] drm/mediatek: add clock property check before get it

2019-06-06 Thread yongqiang.niu
From: Yongqiang Niu This patch add clock property check before get it Signed-off-by: Yongqiang Niu --- drivers/gpu/drm/mediatek/mtk_drm_ddp.c | 10 ++ 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/drivers/gpu/drm/mediatek/mtk_drm_ddp.c b/drivers/gpu/drm/mediatek/mtk_dr

[PATCH v3, 11/27] drm/mediatek: add mmsys private data for ddp path config

2019-06-06 Thread yongqiang.niu
From: Yongqiang Niu This patch add mmsys private data for ddp path config all these register offset and value will be different in future SOC add these define into mmsys private data u32 ovl0_mout_en; u32 rdma0_sout_sel_in; u32 rdma0_sout_color0; u32 rdma1_sout_sel

[PATCH v3, 06/27] drm/mediatek: add mutex mod into ddp private data

2019-06-06 Thread yongqiang.niu
From: Yongqiang Niu except mutex mod, mutex mod reg,mutex sof reg, and mutex sof id will be ddp private data Signed-off-by: Yongqiang Niu --- drivers/gpu/drm/mediatek/mtk_drm_ddp.c | 53 +++--- 1 file changed, 36 insertions(+), 17 deletions(-) diff --git a/drivers/

[PATCH v3, 18/27] drm/medaitek: add layer_nr for ovl private data

2019-06-06 Thread yongqiang.niu
From: Yongqiang Niu This patch add layer_nr for ovl private data ovl_2l almost same with with ovl hardware, except the layer number for ovl_2l is 2 and ovl is 4. this patch is a preparation for ovl-2l and ovl share the same driver. Signed-off-by: Yongqiang Niu --- drivers/gpu/drm/mediatek/mtk_

[PATCH v3, 01/27] dt-bindings: mediatek: add binding for mt8183 display

2019-06-06 Thread yongqiang.niu
From: Yongqiang Niu Update device tree binding documention for the display subsystem for Mediatek MT8183 SOCs Signed-off-by: Yongqiang Niu --- .../bindings/display/mediatek/mediatek,disp.txt| 34 +- 1 file changed, 20 insertions(+), 14 deletions(-) diff --git a/Docume

[PATCH v3, 02/27] dt-bindings: mediatek: add ovl_2l description for mt8183 display

2019-06-06 Thread yongqiang.niu
From: Yongqiang Niu Update device tree binding documention for the display subsystem for Mediatek MT8183 SOCs Signed-off-by: Yongqiang Niu --- Documentation/devicetree/bindings/display/mediatek/mediatek,disp.txt | 1 + 1 file changed, 1 insertion(+) diff --git a/Documentation/devicetree/bind

[PATCH v3, 03/27] dt-bindings: mediatek: add ccorr description for mt8183 display

2019-06-06 Thread yongqiang.niu
From: Yongqiang Niu Update device tree binding documention for the display subsystem for Mediatek MT8183 SOCs Signed-off-by: Yongqiang Niu --- Documentation/devicetree/bindings/display/mediatek/mediatek,disp.txt | 1 + 1 file changed, 1 insertion(+) diff --git a/Documentation/devicetree/bind

[PATCH v3, 10/27] drm/mediatek: split DISP_REG_CONFIG_DSI_SEL setting into another use case

2019-06-06 Thread yongqiang.niu
From: Yongqiang Niu Here is two modifition in this patch: 1.bls->dpi0 and rdma1->dsi are differen usecase, Split DISP_REG_CONFIG_DSI_SEL setting into anther usecase 2.remove DISP_REG_CONFIG_DPI_SEL setting, DPI_SEL_IN_BLS is 0 and this is same with hardware defautl setting, Signed-off-by: Yongqi

[PATCH v3, 21/27] drm/mediatek: add ovl0/ovl_2l0 usecase

2019-06-05 Thread yongqiang.niu
From: Yongqiang Niu This patch add ovl0/ovl_2l0 usecase in ovl->ovl_2l0 direct link usecase: 1. the crtc support layer number will 4+2 2. ovl_2l0 background color input select ovl0 when crtc init and disable it when crtc finish 3. config ovl_2l0 layer, if crtc config layer number is bigger than o

[PATCH v3, 05/27] arm64: dts: add display nodes for mt8183

2019-06-05 Thread yongqiang.niu
From: Yongqiang Niu This patch add display nodes for mt8183 Signed-off-by: Yongqiang Niu --- arch/arm64/boot/dts/mediatek/mt8183.dtsi | 114 +++ 1 file changed, 114 insertions(+) diff --git a/arch/arm64/boot/dts/mediatek/mt8183.dtsi b/arch/arm64/boot/dts/mediatek/

[PATCH v3, 17/27] drm/mediatek: add gmc_bits for ovl private data

2019-06-05 Thread yongqiang.niu
From: Yongqiang Niu This patch add gmc_bits for ovl private data GMC register was set RDMA ultra and pre-ultra threshold. 10bit GMC register define is different with other SOC, gmc_thrshd_l not used. Signed-off-by: Yongqiang Niu --- drivers/gpu/drm/mediatek/mtk_disp_ovl.c | 23

[PATCH v3, 22/27] drm/mediatek: distinguish ovl and ovl_2l by layer_nr

2019-06-05 Thread yongqiang.niu
From: Yongqiang Niu distinguish ovl and ovl_2l by layer_nr when get comp id Signed-off-by: Yongqiang Niu --- drivers/gpu/drm/mediatek/mtk_disp_ovl.c | 9 ++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/drivers/gpu/drm/mediatek/mtk_disp_ovl.c b/drivers/gpu/drm/mediatek/

[PATCH v3, 12/27] drm/mediatek: move rdma sout from mtk_ddp_mout_en into mtk_ddp_sout_sel

2019-06-05 Thread yongqiang.niu
From: Yongqiang Niu This patch move rdma sout from mtk_ddp_mout_en into mtk_ddp_sout_sel rdma only has single output, but no multi output, all these rdma->dsi/dpi usecase should move to mtk_ddp_sout_sel Signed-off-by: Yongqiang Niu --- drivers/gpu/drm/mediatek/mtk_drm_ddp.c | 90 ++

[PATCH v3, 15/27] drm/mediatek: add component OVL_2L1

2019-06-05 Thread yongqiang.niu
From: Yongqiang Niu This patch add component OVL_2L1 Signed-off-by: Yongqiang Niu --- drivers/gpu/drm/mediatek/mtk_drm_ddp_comp.c | 1 + drivers/gpu/drm/mediatek/mtk_drm_ddp_comp.h | 1 + 2 files changed, 2 insertions(+) diff --git a/drivers/gpu/drm/mediatek/mtk_drm_ddp_comp.c b/drivers/gpu/

[PATCH v3, 08/27] drm/mediatek: add mutex sof into ddp private data

2019-06-05 Thread yongqiang.niu
From: Yongqiang Niu mutex sof will be ddp private data Signed-off-by: Yongqiang Niu --- drivers/gpu/drm/mediatek/mtk_drm_ddp.c | 44 +++--- 1 file changed, 36 insertions(+), 8 deletions(-) diff --git a/drivers/gpu/drm/mediatek/mtk_drm_ddp.c b/drivers/gpu/drm/media

[PATCH v3, 09/27] drm/mediatek: add mutex sof register offset into ddp private data

2019-06-05 Thread yongqiang.niu
From: Yongqiang Niu mutex sof register offset will be private data of ddp Signed-off-by: Yongqiang Niu --- drivers/gpu/drm/mediatek/mtk_drm_ddp.c | 13 ++--- 1 file changed, 10 insertions(+), 3 deletions(-) diff --git a/drivers/gpu/drm/mediatek/mtk_drm_ddp.c b/drivers/gpu/drm/mediate

[PATCH v3, 07/27] drm/mediatek: add mutex mod register offset into ddp private data

2019-06-05 Thread yongqiang.niu
From: Yongqiang Niu mutex mod register offset will be private data of ddp. Signed-off-by: Yongqiang Niu --- drivers/gpu/drm/mediatek/mtk_drm_ddp.c | 14 +++--- 1 file changed, 11 insertions(+), 3 deletions(-) diff --git a/drivers/gpu/drm/mediatek/mtk_drm_ddp.c b/drivers/gpu/drm/media

[PATCH v3, 14/27] drm/mediatek: add commponent OVL_2L0

2019-06-05 Thread yongqiang.niu
From: Yongqiang Niu This patch add commponent OVL_2L0 Signed-off-by: Yongqiang Niu --- drivers/gpu/drm/mediatek/mtk_drm_ddp_comp.c | 2 ++ drivers/gpu/drm/mediatek/mtk_drm_ddp_comp.h | 2 ++ 2 files changed, 4 insertions(+) diff --git a/drivers/gpu/drm/mediatek/mtk_drm_ddp_comp.c b/drivers/g

[PATCH v3, 23/27] drm/mediatek: add connection from ovl0 to ovl_2l0

2019-06-05 Thread yongqiang.niu
From: Yongqiang Niu This patch add connection from ovl0 to ovl_2l0 Signed-off-by: Yongqiang Niu --- drivers/gpu/drm/mediatek/mtk_drm_ddp.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/drivers/gpu/drm/mediatek/mtk_drm_ddp.c b/drivers/gpu/drm/mediatek/mtk_drm_ddp.c index 872c744..f980

[PATCH v3, 16/27] drm/mediatek: add component DITHER

2019-06-05 Thread yongqiang.niu
From: Yongqiang Niu This patch add component DITHER Signed-off-by: Yongqiang Niu --- drivers/gpu/drm/mediatek/mtk_drm_ddp_comp.c | 32 + drivers/gpu/drm/mediatek/mtk_drm_ddp_comp.h | 2 ++ 2 files changed, 34 insertions(+) diff --git a/drivers/gpu/drm/mediatek/mtk

[PATCH v3, 24/27] drm/mediatek: add connection from RDMA0 to COLOR0

2019-06-05 Thread yongqiang.niu
From: Yongqiang Niu This patch add connection from RDMA0 to COLOR0 Signed-off-by: Yongqiang Niu --- drivers/gpu/drm/mediatek/mtk_drm_ddp.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/drivers/gpu/drm/mediatek/mtk_drm_ddp.c b/drivers/gpu/drm/mediatek/mtk_drm_ddp.c index f980826..adaf

[PATCH v3, 19/27] drm/mediatek: add function to background color input select for ovl/ovl_2l direct link

2019-06-05 Thread yongqiang.niu
From: Yongqiang Niu This patch add function to background color input select for ovl/ovl_2l direct link for ovl/ovl_2l direct link usecase, we need set background color input select for these hardware. this is preparation patch for ovl/ovl_2l usecase Signed-off-by: Yongqiang Niu --- drivers/g

[PATCH v3, 27/27] drm/mediatek: add support for mediatek SOC MT8183

2019-06-05 Thread yongqiang.niu
From: Yongqiang Niu This patch add support for mediatek SOC MT8183 1.ovl_2l share driver with ovl 2.rdma1 share drive with rdma0, but fifo size is different 3.add mt8183 mutex private data, and mmsys private data 4.add mt8183 main and external path module for crtc create Signed-off-by: Yongqiang

[PATCH v3, 13/27] drm/mediatek: add ddp component CCORR

2019-06-05 Thread yongqiang.niu
From: Yongqiang Niu This patch add ddp component CCORR Signed-off-by: Yongqiang Niu --- drivers/gpu/drm/mediatek/mtk_drm_ddp_comp.c | 32 + drivers/gpu/drm/mediatek/mtk_drm_ddp_comp.h | 2 ++ 2 files changed, 34 insertions(+) diff --git a/drivers/gpu/drm/mediatek/

  1   2   >