From patchwork Sat Aug 8 02:53:44 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Yongqiang Niu X-Patchwork-Id: 11707109 Return-Path: Received: from mail.kernel.org (pdx-korg-mail-1.web.codeaurora.org [172.30.200.123]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id 6550B722 for ; Mon, 10 Aug 2020 07:37:05 +0000 (UTC) Received: from gabe.freedesktop.org (gabe.freedesktop.org [131.252.210.177]) (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 436D32073A for ; Mon, 10 Aug 2020 07:37:05 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=fail reason="signature verification failed" (1024-bit key) header.d=mediatek.com header.i=@mediatek.com header.b="r1TRE7aG" DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 436D32073A Authentication-Results: mail.kernel.org; dmarc=fail (p=none dis=none) header.from=mediatek.com Authentication-Results: mail.kernel.org; spf=none smtp.mailfrom=dri-devel-bounces@lists.freedesktop.org Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id F39506E39E; Mon, 10 Aug 2020 07:36:13 +0000 (UTC) X-Original-To: dri-devel@lists.freedesktop.org Delivered-To: dri-devel@lists.freedesktop.org Received: from mailgw02.mediatek.com (unknown [210.61.82.184]) by gabe.freedesktop.org (Postfix) with ESMTP id 403D96E0F6 for ; Sat, 8 Aug 2020 02:54:44 +0000 (UTC) X-UUID: 9d98cbe1fc1546d9a5d2c6c601b4cf18-20200808 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=88Oan/DCv4ZxqhgZhz72479y9BC+k/u9ZQCcKP31Pt8=; b=r1TRE7aGbcUUsG4ssDNgCGBnDIh7ymTfIcpGcDKKiqeL02uWfTHga8S6eCoC0g2DtrmE+/JouPrQJs8UNUxTecGyPGrdfLB8nzPMAguasMERLTyOYSqgkkyUkeonbicfev8ytMUrDan2sm8wPjka9/Z9k5XS1PzTyGJAXCEOgTo=; X-UUID: 9d98cbe1fc1546d9a5d2c6c601b4cf18-20200808 Received: from mtkcas10.mediatek.inc [(172.21.101.39)] by mailgw02.mediatek.com (envelope-from ) (Cellopoint E-mail Firewall v4.1.10 Build 0809 with TLS) with ESMTP id 21590948; Sat, 08 Aug 2020 10:54:40 +0800 Received: from MTKCAS06.mediatek.inc (172.21.101.30) by mtkmbs05n1.mediatek.inc (172.21.101.15) with Microsoft SMTP Server (TLS) id 15.0.1497.2; Sat, 8 Aug 2020 10:54:39 +0800 Received: from localhost.localdomain (10.17.3.153) by MTKCAS06.mediatek.inc (172.21.101.73) with Microsoft SMTP Server id 15.0.1497.2 via Frontend Transport; Sat, 8 Aug 2020 10:54:38 +0800 From: Yongqiang Niu To: CK Hu , Philipp Zabel , Rob Herring , Matthias Brugger Subject: [RESEND v7, PATCH 0/7] add drm support for MT8183 Date: Sat, 8 Aug 2020 10:53:44 +0800 Message-ID: <1596855231-5782-1-git-send-email-yongqiang.niu@mediatek.com> X-Mailer: git-send-email 1.8.1.1.dirty MIME-Version: 1.0 X-MTK: N X-Mailman-Approved-At: Mon, 10 Aug 2020 07:35:59 +0000 X-BeenThere: dri-devel@lists.freedesktop.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Direct Rendering Infrastructure - Development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Mark Rutland , devicetree@vger.kernel.org, Yongqiang Niu , David Airlie , linux-kernel@vger.kernel.org, dri-devel@lists.freedesktop.org, linux-mediatek@lists.infradead.org, linux-arm-kernel@lists.infradead.org Errors-To: dri-devel-bounces@lists.freedesktop.org Sender: "dri-devel" This series are based on 5.8-rc1 and provide 7 patch to support mediatek SOC MT8183 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 (7): dt-bindings: mediatek: add rdma_fifo_size description for mt8183 display drm/mediatek: move ddp component define into mtk_mmsys.h mtk-mmsys: add mmsys private data mtk-mmsys: add mt8183 mmsys support drm/mediatek: add fifo_size into rdma private data drm/mediatek: add support for mediatek SOC MT8183 arm64: dts: add display nodes for mt8183 .../bindings/display/mediatek/mediatek,disp.txt | 14 ++ arch/arm64/boot/dts/mediatek/mt8183.dtsi | 98 ++++++++ drivers/gpu/drm/mediatek/mtk_disp_ovl.c | 18 ++ drivers/gpu/drm/mediatek/mtk_disp_rdma.c | 25 +- drivers/gpu/drm/mediatek/mtk_drm_ddp.c | 47 ++++ drivers/gpu/drm/mediatek/mtk_drm_ddp_comp.h | 34 +-- drivers/gpu/drm/mediatek/mtk_drm_drv.c | 43 ++++ drivers/soc/mediatek/Makefile | 1 + drivers/soc/mediatek/mmsys/Makefile | 3 + drivers/soc/mediatek/mmsys/mt2701-mmsys.c | 250 +++++++++++++++++++ drivers/soc/mediatek/mmsys/mt8183-mmsys.c | 154 ++++++++++++ drivers/soc/mediatek/mtk-mmsys.c | 276 ++++----------------- include/linux/soc/mediatek/mtk-mmsys.h | 48 ++++ 13 files changed, 749 insertions(+), 262 deletions(-) create mode 100644 drivers/soc/mediatek/mmsys/Makefile create mode 100644 drivers/soc/mediatek/mmsys/mt2701-mmsys.c create mode 100644 drivers/soc/mediatek/mmsys/mt8183-mmsys.c