From patchwork Tue Feb 15 07:59:47 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: =?utf-8?b?UmV4LUJDIENoZW4gKOmZs+afj+i+sCk=?= X-Patchwork-Id: 12746574 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org 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 smtp.lore.kernel.org (Postfix) with ESMTPS id 87B75C433F5 for ; Tue, 15 Feb 2022 08:03:25 +0000 (UTC) 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=svqgd5Ydl4nYdm0E1zkXf/7fknB24pJ0OECDbDwolmQ=; b=txscp/1dx8Mu/g pzRTkqJTIoYXUtJ2zau1ONUBL21svG8+KCmnF/R7/QbVnw4WyyOE0L/Z2nsYQmgQv6412jX0pRfNL 8ZexeTmLzDdDirq07S9EhVswZc2RlIJ+vNTGGqBibp4QrAQ7mBnzdgjNfgdDmnK6St901jOIIzJVu 59LmVbXR0OJNCDcfzGXiNDMWsu9j2HMyNaJjpJRizN5dq0mehxigVSk0JVmhbzO4j7FpabR2gOxgk 67AJlpYIEcJOwre9AzZglB5jTg/Gmc62WPq/3RkTT9i1Wx45kKVjcajdQWEhdSb6bdwK3Wnml8oZz 3TClNobzynxzfLjjE9gA==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1nJsml-001Ssl-RM; Tue, 15 Feb 2022 08:02:08 +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 1nJsmf-001Smr-Bp; Tue, 15 Feb 2022 08:02:02 +0000 X-UUID: 02e40b18311346dea9f44e83a4d41746-20220215 X-UUID: 02e40b18311346dea9f44e83a4d41746-20220215 Received: from mtkcas68.mediatek.inc [(172.29.94.19)] by mailgw02.mediatek.com (envelope-from ) (musrelay.mediatek.com ESMTP with TLSv1.2 ECDHE-RSA-AES256-SHA384 256/256) with ESMTP id 2082290733; Tue, 15 Feb 2022 01:01:57 -0700 Received: from mtkexhb01.mediatek.inc (172.21.101.102) by MTKMBS62DR.mediatek.inc (172.29.94.18) with Microsoft SMTP Server (TLS) id 15.0.1497.2; Tue, 15 Feb 2022 00:01:55 -0800 Received: from mtkcas10.mediatek.inc (172.21.101.39) by mtkexhb01.mediatek.inc (172.21.101.102) with Microsoft SMTP Server (TLS) id 15.0.1497.2; Tue, 15 Feb 2022 16:01:47 +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; Tue, 15 Feb 2022 16:01:46 +0800 From: Rex-BC Chen To: , , CC: , , , , , , , , , , , , , Rex-BC Chen Subject: [v2,0/6] add display support for MediaTek SoC MT8186 Date: Tue, 15 Feb 2022 15:59:47 +0800 Message-ID: <20220215075953.3310-1-rex-bc.chen@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-20220215_000201_421598_1CD9D524 X-CRM114-Status: UNSURE ( 9.87 ) X-CRM114-Notice: Please train this message. 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 Changes different from v1: 1. Add binding documentation for mmsys, mutex and mtk_display. 2. Remove duplicated definition of postmask registers on mtk_drm_drv. 3. Add disp_ovl support for MT8186. 4. Add detailed commit messages. Rex-BC Chen (2): dt-bindings: arm: mediatek: mmsys: add support for MT8186 dt-bindings: display: mediatek: update supported SoC Yongqiang Niu (4): soc: mediatek: mmsys: add mt8186 mmsys routing table soc: mediatek: add MTK mutex support for MT8186 drm/mediatek: separate postmask component from mtk_disp_drv.c drm/mediatek: add display support for MT8186 .../bindings/arm/mediatek/mediatek,mmsys.yaml | 1 + .../display/mediatek/mediatek,disp.txt | 2 +- drivers/gpu/drm/mediatek/Makefile | 1 + drivers/gpu/drm/mediatek/mtk_disp_drv.h | 8 + drivers/gpu/drm/mediatek/mtk_disp_ovl.c | 20 +++ drivers/gpu/drm/mediatek/mtk_disp_postmask.c | 155 ++++++++++++++++++ drivers/gpu/drm/mediatek/mtk_drm_ddp_comp.c | 36 +--- drivers/gpu/drm/mediatek/mtk_drm_drv.c | 41 +++++ drivers/gpu/drm/mediatek/mtk_drm_drv.h | 1 + drivers/soc/mediatek/mt8186-mmsys.h | 113 +++++++++++++ drivers/soc/mediatek/mtk-mmsys.c | 11 ++ drivers/soc/mediatek/mtk-mutex.c | 45 +++++ 12 files changed, 400 insertions(+), 34 deletions(-) create mode 100644 drivers/gpu/drm/mediatek/mtk_disp_postmask.c create mode 100644 drivers/soc/mediatek/mt8186-mmsys.h