From patchwork Sat Jul 10 11:38:10 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: =?utf-8?b?SmFzb24tSkggTGluICjmnpfnnb/npaUp?= X-Patchwork-Id: 12368543 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-12.4 required=3.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,HEADER_FROM_DIFFERENT_DOMAINS,INCLUDES_PATCH, MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS,UNPARSEABLE_RELAY,URIBL_BLOCKED, USER_AGENT_GIT autolearn=unavailable autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 9CA1CC07E9B for ; Sat, 10 Jul 2021 11:43:44 +0000 (UTC) Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id 6B159613BF for ; Sat, 10 Jul 2021 11:43:44 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 6B159613BF Authentication-Results: mail.kernel.org; dmarc=fail (p=none dis=none) header.from=mediatek.com Authentication-Results: mail.kernel.org; spf=none smtp.mailfrom=linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender: Content-Transfer-Encoding:Content-Type:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:MIME-Version:Message-ID:Date:Subject:CC :To:From:Reply-To:Content-ID:Content-Description:Resent-Date:Resent-From: Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:In-Reply-To:References: List-Owner; bh=tmdHr7lmwKt55TQPaBktJO30ZGwWZwJeAH+Yo64HxaM=; b=JohO4hQa19NsGj kynVGTYyOLQaP958W5fxdmmETX93C+yfpQEWucRAEJ/Pxzyv+v4SsvE4fXf6/TnYvd0ognT/YqU7f vfd/MQ0RuVPgbyVRSK7RFl0iU6Jcn/BhYwBWppjcMcNcnjidcTkECPpUT60XHNaqE3F4nVBMI8sZC rPi9/DjfvvQEoWanZvm7Mi6UuT47d2Ii96ZlPJbzZoa6Cx3aKeqfN4O7gvj0hZrWahHdmLVAqtaK9 X463//BTKVCpZWuvcoCUlVAxPmvqtv+k8OprC55nTBjqm2BdQqZRkabZsx11uIVtc916/BWdWFZdC fZERHBd1rD9rJFf0kE0w==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1m2BLZ-003WzP-GO; Sat, 10 Jul 2021 11:40:37 +0000 Received: from mailgw02.mediatek.com ([216.200.240.185]) by bombadil.infradead.org with esmtps (Exim 4.94.2 #2 (Red Hat Linux)) id 1m2BJx-003WTu-Fw; Sat, 10 Jul 2021 11:38:58 +0000 X-UUID: 4f75c411067145ab88f70b3bd20e3ca7-20210710 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=mediatek.com; s=dk; h=Content-Transfer-Encoding:Content-Type:MIME-Version:Message-ID:Date:Subject:CC:To:From; bh=1Gx+AieyWPVp3jAy7NhDfoyrRAS/GTLRzvaUysOg+3w=; b=WsMB/J0W38f6fUp7o/yWbUwE8miLT3lTu3IFuo37ls1fPmZ8EO6OZ7D2lKNO3Zh+O6c7OEnkEa52URld8dgQqSmQtRog78DaXeaZkwOnLbAhpIBzjwufql/DXqtswWGPmdXxfyZt22tcIf4r+o5TLr3ygI5GwDla/drK0vDfMh0=; X-UUID: 4f75c411067145ab88f70b3bd20e3ca7-20210710 Received: from mtkcas67.mediatek.inc [(172.29.193.45)] by mailgw02.mediatek.com (envelope-from ) (musrelay.mediatek.com ESMTP with TLSv1.2 ECDHE-RSA-AES256-SHA384 256/256) with ESMTP id 1799063889; Sat, 10 Jul 2021 04:38:44 -0700 Received: from MTKMBS01N1.mediatek.inc (172.21.101.68) by MTKMBS62DR.mediatek.inc (172.29.94.18) with Microsoft SMTP Server (TLS) id 15.0.1497.2; Sat, 10 Jul 2021 04:38:42 -0700 Received: from mtkcas10.mediatek.inc (172.21.101.39) by mtkmbs01n1.mediatek.inc (172.21.101.68) with Microsoft SMTP Server (TLS) id 15.0.1497.2; Sat, 10 Jul 2021 19:38:27 +0800 Received: from mtksdccf07.mediatek.inc (172.21.84.99) by mtkcas10.mediatek.inc (172.21.101.73) with Microsoft SMTP Server id 15.0.1497.2 via Frontend Transport; Sat, 10 Jul 2021 19:38:27 +0800 From: jason-jh.lin To: , CC: , , , , , , , Subject: [PATCH v2 0/9] Add MediaTek SoC DRM (vdosys0) support for mt8195 Date: Sat, 10 Jul 2021 19:38:10 +0800 Message-ID: <20210710113819.5170-1-jason-jh.lin@mediatek.com> X-Mailer: git-send-email 2.18.0 MIME-Version: 1.0 X-MTK: N X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20210710_043857_653831_E476D848 X-CRM114-Status: GOOD ( 10.68 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org The hardware path of vdosys0 with eDP panel output need to go through by several modules, such as, OVL, RDMA, COLOR, CCORR, AAL, GAMMA, DITHER, DSC and MERGE. Add DRM and these modules support by the patches below: jason-jh.lin (9): dt-bindings: mediatek: add definition for mt8195 display dt-bindings: mediatek: add DSC definition for mt8195 dt-bindings: arm: mediatek: add definition for mt8195 mmsys arm64: dts: mt8195: add display node for vdosys0 soc: mediatek: add mtk-mmsys support for mt8195 vdosys0 soc: mediatek: add mtk-mutex support for mt8195 vdosys0 drm/mediatek: add mediatek-drm of vdosys0 support for MT8195 drm/mediatek: add DSC support for MT8195 drm/mediatek: add MERGE support for MT8195 .../bindings/arm/mediatek/mediatek,mmsys.txt | 15 + .../display/mediatek/mediatek,disp.txt | 9 +- .../display/mediatek/mediatek,dsc.yaml | 57 ++ arch/arm64/boot/dts/mediatek/mt8195.dtsi | 111 ++++ drivers/gpu/drm/mediatek/Makefile | 2 + drivers/gpu/drm/mediatek/mtk_disp_drv.h | 16 + drivers/gpu/drm/mediatek/mtk_disp_dsc.c | 205 +++++++ drivers/gpu/drm/mediatek/mtk_disp_merge.c | 525 ++++++++++++++++++ drivers/gpu/drm/mediatek/mtk_disp_rdma.c | 6 + drivers/gpu/drm/mediatek/mtk_drm_crtc.h | 14 + drivers/gpu/drm/mediatek/mtk_drm_ddp_comp.c | 29 + drivers/gpu/drm/mediatek/mtk_drm_ddp_comp.h | 2 + drivers/gpu/drm/mediatek/mtk_drm_drv.c | 32 ++ drivers/gpu/drm/mediatek/mtk_drm_drv.h | 2 + drivers/soc/mediatek/mt8195-mmsys.h | 191 +++++++ drivers/soc/mediatek/mtk-mmsys.c | 11 + drivers/soc/mediatek/mtk-mutex.c | 107 +++- include/linux/soc/mediatek/mtk-mmsys.h | 10 + 18 files changed, 1337 insertions(+), 7 deletions(-) create mode 100644 Documentation/devicetree/bindings/display/mediatek/mediatek,dsc.yaml create mode 100644 drivers/gpu/drm/mediatek/mtk_disp_dsc.c create mode 100644 drivers/gpu/drm/mediatek/mtk_disp_merge.c create mode 100644 drivers/soc/mediatek/mt8195-mmsys.h