Received: by 2002:a05:6a10:f347:0:0:0:0 with SMTP id d7csp8964pxu; Wed, 6 Jan 2021 19:14:34 -0800 (PST) X-Google-Smtp-Source: ABdhPJypIhZ1W7cDaAAyW9+8ZuxeBkOa+NRIgKeCkX1pGW7YUF+L8fp9coreKagTZhkXecNpS+2V X-Received: by 2002:a17:907:6e9:: with SMTP id yh9mr4849680ejb.131.1609989274258; Wed, 06 Jan 2021 19:14:34 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1609989274; cv=none; d=google.com; s=arc-20160816; b=aiGLYhBCozibtZYuN69g91ZCNQR90mMUWF7Yv8j7ftx1X+sxNgL6X4Ki0sWRWSL2Eh EEPxP4b9VsDVuJl67J8KSq1fLxAwZGf4O5drSUVsZ17D+BX1AeawBB1x+yFIOmMscnOm Ktvj9WLWgXW4cXjrz1gh/H31i8WwX50bHK77cjtv5GxxFYUyziY93YNMuCHdIwu7MsMf UfzA3yHiyzfyod5eSnToeBGeBaDoUMy3jLNS++F8E0JMeW/KekoCWh09iv9tjFZnb0PJ FjSKf3Q/LEGMLdLydyRbVMGhM1OrNSmRAL4bo4aQ85ZsCG+Wz0u5Ch3Eije21/Vzr3T0 p6iQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:mime-version:message-id:date:subject:cc:to:from; bh=Sa1Zo8qA6v8PKLYN3WFfXoJdm7y4H25J+/hfZTe1GKs=; b=jekws/9aRW2YhvHivtYBvOfQYpTvQYqu+WjAAfPCtiUPUCYC49wASGXV2EImypS9AF hbg1K6gCYoHKTOJufJ2Fnr6PWLk71bhDCdHi76R1/BrLQ0D2/meEjaZGBHAFH+tcWXxx oXuCbFbJZRIUp43JdXA0Fjplge8O7ZdpiEXG70jr95z6ZNTbD9xtFzOKyk0NDIHKbKqS 98U8zhITziKsc4t3k9/7iFXZ53WYr7NloZtK5jInuU86O0ml7VY9QD3vMlkAgdiB2W/o jxPPeyQ7iCIem+bkbLG7FiMSDR57tVegMcpD6abHpEbtmEXWph6k5VLRsvd6xxx2E137 ipxg== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=mediatek.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id i8si1687150edr.271.2021.01.06.19.14.08; Wed, 06 Jan 2021 19:14:34 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=mediatek.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726771AbhAGDMK (ORCPT + 99 others); Wed, 6 Jan 2021 22:12:10 -0500 Received: from mailgw02.mediatek.com ([210.61.82.184]:44828 "EHLO mailgw02.mediatek.com" rhost-flags-OK-FAIL-OK-FAIL) by vger.kernel.org with ESMTP id S1726009AbhAGDMK (ORCPT ); Wed, 6 Jan 2021 22:12:10 -0500 X-UUID: 771d5a973aaf4a4096b8b39418b25130-20210107 X-UUID: 771d5a973aaf4a4096b8b39418b25130-20210107 Received: from mtkcas06.mediatek.inc [(172.21.101.30)] by mailgw02.mediatek.com (envelope-from ) (Cellopoint E-mail Firewall v4.1.14 Build 0819 with TLSv1.2 ECDHE-RSA-AES256-SHA384 256/256) with ESMTP id 799338514; Thu, 07 Jan 2021 11:11:25 +0800 Received: from mtkcas11.mediatek.inc (172.21.101.40) by mtkmbs05n2.mediatek.inc (172.21.101.140) with Microsoft SMTP Server (TLS) id 15.0.1497.2; Thu, 7 Jan 2021 11:11:24 +0800 Received: from localhost.localdomain (10.17.3.153) by mtkcas11.mediatek.inc (172.21.101.73) with Microsoft SMTP Server id 15.0.1497.2 via Frontend Transport; Thu, 7 Jan 2021 11:11:24 +0800 From: Yongqiang Niu To: CK Hu , Philipp Zabel , Rob Herring , Matthias Brugger CC: David Airlie , Daniel Vetter , Mark Rutland , , , , , , , Hsin-Yi Wang , Yongqiang Niu Subject: [PATCH v9, 00/11] drm/mediatek: add support for mediatek SOC MT8183 Date: Thu, 7 Jan 2021 11:11:10 +0800 Message-ID: <1609989081-29353-1-git-send-email-yongqiang.niu@mediatek.com> X-Mailer: git-send-email 1.8.1.1.dirty MIME-Version: 1.0 Content-Type: text/plain X-MTK: N Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org This series are based on 5.11-rc1 and provide 11 patch to support mediatek SOC MT8183 Change since v8 - fix some review comment in v8 - separate gamma module for mt8183 has no dither function in gamma - enable dither function for 5 or 6 bpc panel display - separate ddp mutex patch from the whole Soc patch Change since v7 - add dt-binding for mt8183 display - base mmsys patch https://patchwork.kernel.org/project/linux-mediatek/cover/1607506379-10998-1-git-send-email-yongqiang.niu@mediatek.com/ - base dts patch https://patchwork.kernel.org/project/linux-mediatek/cover/20201127104930.1981497-1-enric.balletbo@collabora.com/ - add mt8183 function call for setting the routing registers - add RDMA fifo size error handle Change since v6 - move ddp component define into mtk_mmsys.h - add mmsys private data to support different ic path connection - add mt8183-mmsys.c to support 8183 path connection - fix reviewed issue in v6 Change since v5 - fix reviewed issue in v5 base https://patchwork.kernel.org/project/linux-mediatek/list/?series=213219 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 mutex node into dts file Changes since v1: - fix reviewed issue in v1 - add dts for mt8183 display nodes - adjust display clock control flow in patch 22 - add vmap support for mediatek drm in patch 23 - fix page offset issue for mmap function in patch 24 - enable allow_fb_modifiers for mediatek drm in patch 25 Yongqiang Niu (11): dt-bindings: mediatek: add rdma-fifo-size description for mt8183 display dt-bindings: mediatek: add description for mt8183 display arm64: dts: mt8183: rename rdma fifo size arm64: dts: mt8183: refine gamma compatible name drm/mediatek: add fifo_size into rdma private data drm/mediatek: add RDMA fifo size error handle drm/mediatek: separate gamma module drm/mediatek: add has_dither private data for gamma drm/mediatek: enable dither function drm/mediatek: add DDP support for MT8183 This patch add support for mediatek SOC MT8183 .../bindings/display/mediatek/mediatek,disp.txt | 11 +- arch/arm64/boot/dts/mediatek/mt8183.dtsi | 7 +- drivers/gpu/drm/mediatek/Makefile | 1 + drivers/gpu/drm/mediatek/mtk_disp_gamma.c | 192 +++++++++++++++++++++ drivers/gpu/drm/mediatek/mtk_disp_ovl.c | 18 ++ drivers/gpu/drm/mediatek/mtk_disp_rdma.c | 29 +++- drivers/gpu/drm/mediatek/mtk_drm_ddp.c | 48 ++++++ drivers/gpu/drm/mediatek/mtk_drm_ddp_comp.c | 96 ++++------- drivers/gpu/drm/mediatek/mtk_drm_ddp_comp.h | 1 + drivers/gpu/drm/mediatek/mtk_drm_drv.c | 49 +++++- drivers/gpu/drm/mediatek/mtk_drm_drv.h | 1 + 11 files changed, 388 insertions(+), 65 deletions(-) create mode 100644 drivers/gpu/drm/mediatek/mtk_disp_gamma.c -- 1.8.1.1.dirty