Message ID | 20230621031938.5884-1-shawn.sung@mediatek.com |
---|---|
Headers |
Return-Path: <linux-kernel-owner@vger.kernel.org> Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:994d:0:b0:3d9:f83d:47d9 with SMTP id k13csp4098189vqr; Tue, 20 Jun 2023 20:37:44 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ7yylTHXvL48QZK5EBFWr1MknvjRCpBNCBFP5nMrO50dp7a9G2sRh1VOD0avUk01BvP5n/h X-Received: by 2002:a05:6a21:7897:b0:122:9e67:1d77 with SMTP id bf23-20020a056a21789700b001229e671d77mr3453005pzc.38.1687318664225; Tue, 20 Jun 2023 20:37:44 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1687318664; cv=none; d=google.com; s=arc-20160816; b=S7URkBrm234n5LAe8H1LLRh+RUgYUJswU1lRe0d3uwbG3NmRGSEcvZx62y/O/QQLrB 67Sl2IhvJQjVC0IHbAf+DKaQlWQFjME8BDAw1ukka9XRxP68cARMsQG+pVz9LIMhxmL0 jZOYZwpKFdEr+il1R6hDW07L09+Mh5Qp1TScJSi2kVjynHDEWOVrFmzQs+ENCxojHEUr QpExRRKrkN3yfiCZo+nx3r+tWLk1rFpEkkGEKpRDZmKV/WhkEpDkd6lm18Fz8hvLFgeG ZNZwzjO5/w+lCWoQRraKDBgsSxI+2vYDAuFWvvH9GD0zEMdqgB2C2XY1bol0Qa12+R41 dh+w== 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 :dkim-signature; bh=NZDf0EuWJWJGcmV68PzjnlEs53NabiiMIddCzlKZJ30=; b=ktaWVy/y4OedpLT3/NPJtP+gItTnOxZdfM1HU/aATrbp3mNFB+lXC8q9VCmPDfD3bn dQAkZolbgyxHMc5E7hOUXWSAcl3wEcvI8MixX+j3OzWkAhUt4veOdjtGNljkPk6snX74 emeHhgpjK1NRTgGgFb3A57gt3dJQceJUtiv+gQVKSWgpX3AckUFk+YbdJlPjVeyhMDJ5 +nd2yh/JDIGnSy6+0W3j81pOZRcqNVsgZiyl6w5Xhd7Ew//i5oAKE036aShENpHGSnmK Sovs7xeO+olWDtmnZzDiWaME0Oc/2l/3Lne0RK8+wA6sg9z7gpba4Hf8uAc2fZDOcCm8 Xltg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@mediatek.com header.s=dk header.b=nBS6w6UO; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=mediatek.com Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id ay7-20020a1709028b8700b001ab1a00d95dsi3102907plb.250.2023.06.20.20.37.28; Tue, 20 Jun 2023 20:37:44 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@mediatek.com header.s=dk header.b=nBS6w6UO; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=mediatek.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230220AbjFUDUm (ORCPT <rfc822;maxin.john@gmail.com> + 99 others); Tue, 20 Jun 2023 23:20:42 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:60344 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230084AbjFUDTy (ORCPT <rfc822;linux-kernel@vger.kernel.org>); Tue, 20 Jun 2023 23:19:54 -0400 Received: from mailgw02.mediatek.com (unknown [210.61.82.184]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 6488C173F; Tue, 20 Jun 2023 20:19:51 -0700 (PDT) X-UUID: 75b85a900fe211eeb20a276fd37b9834-20230621 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=NZDf0EuWJWJGcmV68PzjnlEs53NabiiMIddCzlKZJ30=; b=nBS6w6UOt9t5bK9tWIY2n851vqqzCSb08FFflpcjiNRTk/9WncbP7F0PrPyI/ffVDyjgyJaGSiF7poKH7o30+0YJ5DiHQhhewNLK1krDBibyn1hlZEf+NNciqaOC9ey9C/kilGzWt/xwduNFF/53jY2sEQZI1wXUmz+l4N/iQpo=; X-CID-P-RULE: Release_Ham X-CID-O-INFO: VERSION:1.1.27,REQID:0e5c0ebc-b8ab-49b9-8ace-c557f41c1f65,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:01c9525,CLOUDID:97f4473f-7aa7-41f3-a6bd-0433bee822f3,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,NGT X-CID-BAS: 0,NGT,0,_ X-CID-FACTOR: TF_CID_SPAM_SNR X-UUID: 75b85a900fe211eeb20a276fd37b9834-20230621 Received: from mtkmbs13n2.mediatek.inc [(172.21.101.108)] by mailgw02.mediatek.com (envelope-from <shawn.sung@mediatek.com>) (Generic MTA with TLSv1.2 ECDHE-RSA-AES256-GCM-SHA384 256/256) with ESMTP id 1969511011; Wed, 21 Jun 2023 11:19:40 +0800 Received: from mtkmbs13n2.mediatek.inc (172.21.101.108) by mtkmbs10n1.mediatek.inc (172.21.101.34) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.2.1118.26; Wed, 21 Jun 2023 11:19:39 +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, 21 Jun 2023 11:19:39 +0800 From: Hsiao Chien Sung <shawn.sung@mediatek.com> To: AngeloGioacchino Del Regno <angelogioacchino.delregno@collabora.com>, Chun-Kuang Hu <chunkuang.hu@kernel.org>, Krzysztof Kozlowski <krzysztof.kozlowski+dt@linaro.org>, Matthias Brugger <matthias.bgg@gmail.com>, Philipp Zabel <p.zabel@pengutronix.de>, Rob Herring <robh+dt@kernel.org> CC: <linux-kernel@vger.kernel.org>, <linux-arm-kernel@lists.infradead.org>, <linux-mediatek@lists.infradead.org>, <devicetree@vger.kernel.org>, <Project_Global_Chrome_Upstream_Group@mediatek.com>, Singo Chang <singo.chang@mediatek.com>, Nancy Lin <nancy.lin@mediatek.com>, Jason-JH Lin <jason-jh.lin@mediatek.com>, Shawn Sung <shawn.sung@mediatek.com> Subject: [PATCH v4 00/14] Add display driver for MT8188 VDOSYS1 Date: Wed, 21 Jun 2023 11:19:24 +0800 Message-ID: <20230621031938.5884-1-shawn.sung@mediatek.com> X-Mailer: git-send-email 2.18.0 MIME-Version: 1.0 Content-Type: text/plain X-MTK: N X-Spam-Status: No, score=-1.3 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RDNS_NONE,SPF_HELO_PASS, SPF_PASS,T_SCC_BODY_TEXT_LINE,UNPARSEABLE_RELAY,URIBL_BLOCKED autolearn=no autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: <linux-kernel.vger.kernel.org> X-Mailing-List: linux-kernel@vger.kernel.org X-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1769281855864440689?= X-GMAIL-MSGID: =?utf-8?q?1769281855864440689?= |
Series |
Add display driver for MT8188 VDOSYS1
|
|
Message
Shawn Sung (宋孝謙)
June 21, 2023, 3:19 a.m. UTC
Support MT8188 VDOSYS1 in display driver. Changes in v4: - Add new functions in mtk_disp_ovl_adaptor.c to enable/disable components and reuse them when clock enable/disable - Rename components in mtk_disp_ovl_adaptor.c and sort them in alphabetical order Changes in v3: - Define macro MMSYS_RST_NR in mtk-mmsys.h and update reset table - Fix typos (ETDHR -> ETHDR, VSNYC -> VSYNC) - Rebase dt-bindings on linux-next - Refine description of Padding - Squash reset bit map commits for VDO0 and VDO1 into one Changes in v2: - Remove redundant compatibles of MT8188 because it shares the same configuration with MT8195 - Separate dt-bindings by modules - Support reset bit mapping in mmsys driver Hsiao Chien Sung (14): 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 MT8188 dt-bindings: arm: mediatek: Add compatible for MT8188 dt-bindings: reset: mt8188: Add VDOSYS 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 VDOSYS reset bit map drm/mediatek: Support MT8188 VDOSYS1 in display driver drm/mediatek: Improve compatibility of display driver drm/mediatek: Sort OVL adaptor components in alphabetical order drm/mediatek: Support MT8188 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 | 249 ++++++++++-------- 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 | 136 ++++++++++ drivers/soc/mediatek/mt8188-mmsys.h | 210 +++++++++++++++ drivers/soc/mediatek/mtk-mmsys.c | 24 ++ drivers/soc/mediatek/mtk-mmsys.h | 32 +++ 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, 782 insertions(+), 112 deletions(-) create mode 100644 Documentation/devicetree/bindings/display/mediatek/mediatek,padding.yaml create mode 100644 drivers/gpu/drm/mediatek/mtk_padding.c -- 2.39.2