From patchwork Wed Jun 14 07:31:10 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: =?utf-8?b?U2hhd24gU3VuZyAo5a6L5a2d6KyZKQ==?= X-Patchwork-Id: 13279657 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 6E9CDEB64D9 for ; Wed, 14 Jun 2023 07:32:32 +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=Ns1XaN01FCvh7aeTeyruvPQG+uAjF2salp5Y/7s/CFQ=; b=ukazTwNh7pzcYl FKSWSSVzTpDbmf/NHNl8J8TbC5xtnLcyQOZRe9Gh0euRXbx0Cc8/TpcAuYy4ypj5FFPg6zLYzkBOJ vo5V+jaV461Lwzt1o1nW4ugF7NeAjJIneV6B1UonhKyyHYxoDHGCLJ4FvmiEDVBv+AK8guqkYE1u8 rLJVs9ize8sLFV94m5T7dQLGeQMe/5HvXQpmMnwl8uw1drYQ1ozXwwPqJSnj9imRRkEz+JmOMMiHd VJ352gxueENjTX8siwZKHktmV5N+mEhm11mgeoTCGUPvhSG6cS3HqTS6RAfNyJxe34CdhRjQ5FxJP Wd4uhrqoOr9cnXxaLxwQ==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.96 #2 (Red Hat Linux)) id 1q9KzE-00AgYv-1M; Wed, 14 Jun 2023 07:32:12 +0000 Received: from mailgw02.mediatek.com ([216.200.240.185]) by bombadil.infradead.org with esmtps (Exim 4.96 #2 (Red Hat Linux)) id 1q9Kyv-00AgJn-12; Wed, 14 Jun 2023 07:31:55 +0000 X-UUID: 8485b1e20a8511ee83ed1395ce914268-20230614 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=mediatek.com; s=dk; h=Content-Type:MIME-Version:Message-ID:Date:Subject:CC:To:From; bh=3d3+nqKfc7WyVFylcs5QJ0W6Qn3i6zaoXuAGBfq4eVw=; b=Yudy8m7RD8kWAhZSZX6KFUir0rKPpqT+4B7AtsRpTu8csHjg74Q4b2KACKTR66hKNMtSAZGQ9J5/6oYi4tLzztD6NxHjkAI6Mym3CdFKWd7g/iZzL8nWD/j1XQ8StoVMuPMyvWoybsJVfUnJ0uazbdsvFygYX6k0+wmAkp1jx3k=; X-CID-P-RULE: Release_Ham X-CID-O-INFO: VERSION:1.1.26,REQID:2fb84337-881d-489b-af45-c0ff873308ff,IP:0,U RL:0,TC:0,Content:0,EDM:0,RT:0,SF:0,FILE:0,BULK:0,RULE:Release_Ham,ACTION: release,TS:0 X-CID-META: VersionHash:cb9a4e1,CLOUDID:456e623e-de1e-4348-bc35-c96f92f1dcbb,B ulkID:nil,BulkQuantity:0,Recheck:0,SF:102,TC:nil,Content:0,EDM:-3,IP:nil,U RL:0,File:nil,Bulk:nil,QS:nil,BEC:nil,COL:0,OSI:0,OSA:0,AV:0,LES:1,SPR:NO X-CID-BVR: 0 X-CID-BAS: 0,_,0,_ X-CID-FACTOR: TF_CID_SPAM_SNR X-UUID: 8485b1e20a8511ee83ed1395ce914268-20230614 Received: from mtkmbs11n1.mediatek.inc [(172.21.101.185)] by mailgw02.mediatek.com (envelope-from ) (musrelay.mediatek.com ESMTP with TLSv1.2 ECDHE-RSA-AES256-GCM-SHA384 256/256) with ESMTP id 1453387903; Wed, 14 Jun 2023 00:31:46 -0700 Received: from mtkmbs13n2.mediatek.inc (172.21.101.108) by mtkmbs13n2.mediatek.inc (172.21.101.108) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.2.1118.26; Wed, 14 Jun 2023 15:31:43 +0800 Received: from mtksdccf07.mediatek.inc (172.21.84.99) by mtkmbs13n2.mediatek.inc (172.21.101.73) with Microsoft SMTP Server id 15.2.1118.26 via Frontend Transport; Wed, 14 Jun 2023 15:31:43 +0800 From: Hsiao Chien Sung To: Chun-Kuang Hu , Matthias Brugger , AngeloGioacchino Del Regno , Philipp Zabel , Rob Herring , Krzysztof Kozlowski CC: , , , , , Singo Chang , Nancy Lin , Jason-JH Lin , Shawn Sung Subject: [PATCH v2 00/15] Add display driver for MT8188 VDOSYS1 Date: Wed, 14 Jun 2023 15:31:10 +0800 Message-ID: <20230614073125.17958-1-shawn.sung@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-20230614_003153_391629_A9F4128E X-CRM114-Status: GOOD ( 12.14 ) 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 Support MT8188 VDOSYS1 in display driver. v2: - Separate dt-bindings by modules - Support reset bit mapping in mmsys driver - Remove redundant compatibles of MT8188 because it shares the same configuration with MT8195 Hsiao Chien Sung (15): dt-bindings: display: mediatek: ethdr: Add compatible for MT8188 dt-bindings: display: mediatek: mdp-rdma: Add compatible for MT8188 dt-bindings: display: mediatek: merge: Add compatible for MT8188 dt-bindings: display: mediatek: padding: Add documentation for MT8188 dt-bindings: arm: mediatek: Add compatible for MT8188 dt-bindings: reset: mt8188: Add VDOSYS0 reset control bits dt-bindings: reset: mt8188: Add VDOSYS1 reset control bits soc: mediatek: Support MT8188 VDOSYS1 in mtk-mmsys soc: mediatek: Support MT8188 VDOSYS1 PADDING in mtk-mmsys soc: mediatek: Support reset bit mapping in mmsys driver soc: mediatek: Add MT8188 VDO0 reset bit map soc: mediatek: Add MT8188 VDO1 reset bit map drm/mediatek: Support MT8188 VDOSYS1 in display driver drm/mediatek: Improve compatibility of display driver drm/mediatek: Support MT8188 VDOSYS1 PADDING in display driver .../bindings/arm/mediatek/mediatek,mmsys.yaml | 1 + .../display/mediatek/mediatek,ethdr.yaml | 6 +- .../display/mediatek/mediatek,mdp-rdma.yaml | 6 +- .../display/mediatek/mediatek,merge.yaml | 3 + .../display/mediatek/mediatek,padding.yaml | 81 +++++++ drivers/gpu/drm/mediatek/Makefile | 3 +- drivers/gpu/drm/mediatek/mtk_disp_drv.h | 3 + .../gpu/drm/mediatek/mtk_disp_ovl_adaptor.c | 170 +++++++++----- drivers/gpu/drm/mediatek/mtk_drm_drv.c | 4 + drivers/gpu/drm/mediatek/mtk_drm_drv.h | 2 +- drivers/gpu/drm/mediatek/mtk_padding.c | 127 +++++++++++ drivers/soc/mediatek/mt8188-mmsys.h | 210 ++++++++++++++++++ drivers/soc/mediatek/mtk-mmsys.c | 26 +++ drivers/soc/mediatek/mtk-mmsys.h | 30 +++ drivers/soc/mediatek/mtk-mutex.c | 51 +++++ include/dt-bindings/reset/mt8188-resets.h | 75 +++++++ include/linux/soc/mediatek/mtk-mmsys.h | 8 + 17 files changed, 751 insertions(+), 55 deletions(-) create mode 100644 Documentation/devicetree/bindings/display/mediatek/mediatek,padding.yaml create mode 100644 drivers/gpu/drm/mediatek/mtk_padding.c --- 2.18.0