Message ID | 20230627063946.14935-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 k13csp7995816vqr; Mon, 26 Jun 2023 23:55:45 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ5hVGuYu61xb03IiNKNzWYVxvLZfc7juY1pNWxlgPtvZjnGs2xUSIG+bE7PM8w/ZuMT7cag X-Received: by 2002:a17:907:7e9c:b0:991:37d2:c9f0 with SMTP id qb28-20020a1709077e9c00b0099137d2c9f0mr5145055ejc.68.1687848945276; Mon, 26 Jun 2023 23:55:45 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1687848945; cv=none; d=google.com; s=arc-20160816; b=lwF7/uj4g8CW3cERczIrEGcLjn1yL761nml284ziKs6MGKqPBmQdZsHCYwigai/3vy OkPMfQKy3g2RqtOrh7hF4592hHlOOZEQAb9Ihq4ErMh/RtpsDRCRZ9BqHkRGbEz33LfG G5KRSDsWCRvH5e0dVZ40IZvjcTpiLKrbStFMKyTu56Yrn0Rs0QWc9mvOwH9bBEg16TXx Zt5r2MLdpmk9BSVFX5XYO3WmK2i/D3JmNBVkcjt3Cums24/gmsIUVaQqdwFL9YXekI5O 84w20BZhOGwXfrSASa9ZEu1fX+iwNLoIaSyOtILn26a340f+cT/R4f9X5FVjO4jmEPAZ FowA== 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=2XXVEk7qA2iHfqWdaM8/8LGdZaxFNHpbgzLNpR/WPQ0=; fh=eGT9imnITysaZP7qqwDR6mqUkV/i49Ro5oyELgOcwP4=; b=nG2rjEEenjBQsuN2s3y9lZBsjJgAWeviv1n0Hykadq6q65hCgXW2iNcpfHJWRy6u/x 2UBZ0kvdCofftsmK3xt9RH3qtdPa20jyEegRl2E3fkC1Tssh2zzIakdxOxKwaQVZV4y3 LdkP66TPlAmrLf9XuoQeZ1oj7F2vXjPhHHNFyog8n7f+1u4RKW67B/taNiNSqNB1la7I lXg7AAl3DRAiksDBnyUb9iASR4VMr1MsY/pzHMvFdqgGiJzMdGTdMM8R1AKKb/3pDCXU 5Kp480cp4+yJVOm9HgGxgIH3vwLZkUXUuxgtYZmJ5tIs4Zl3QKJXl1G2GIbM1vaVVFW4 SWmQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@mediatek.com header.s=dk header.b=FWSsfj1x; 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 f21-20020a170906561500b00989623654bbsi3916075ejq.363.2023.06.26.23.55.16; Mon, 26 Jun 2023 23:55: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=FWSsfj1x; 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 S231134AbjF0GkS (ORCPT <rfc822;nicolai.engesland@gmail.com> + 99 others); Tue, 27 Jun 2023 02:40:18 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:40232 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230405AbjF0GkE (ORCPT <rfc822;linux-kernel@vger.kernel.org>); Tue, 27 Jun 2023 02:40:04 -0400 Received: from mailgw01.mediatek.com (unknown [60.244.123.138]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id D9F2610F5; Mon, 26 Jun 2023 23:40:01 -0700 (PDT) X-UUID: 6d47ba4014b511ee9cb5633481061a41-20230627 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=2XXVEk7qA2iHfqWdaM8/8LGdZaxFNHpbgzLNpR/WPQ0=; b=FWSsfj1xCEnvYl/zjXzT+XUHt7nAgo4YDvHzdA9gi9R3xwQCxXijR7v7r/6kIPHp/dopMSBfR7PKlH8vlcwyLOrsuJdVWxgcO0ZbmbksbaYHZCjeEXKA+iVrhcnIfL+El+M4V3XPAWeWG5edhdGPSMzqAAjdhw9tazVCH4gbqZQ=; X-CID-P-RULE: Release_Ham X-CID-O-INFO: VERSION:1.1.27,REQID:77d96bcd-b316-4147-8e11-f51fc04f2a02,IP:0,U RL:0,TC:0,Content:0,EDM:0,RT:0,SF:95,FILE:0,BULK:0,RULE:Release_Ham,ACTION :release,TS:95 X-CID-INFO: VERSION:1.1.27,REQID:77d96bcd-b316-4147-8e11-f51fc04f2a02,IP:0,URL :0,TC:0,Content:0,EDM:0,RT:0,SF:95,FILE:0,BULK:0,RULE:Spam_GS981B3D,ACTION :quarantine,TS:95 X-CID-META: VersionHash:01c9525,CLOUDID:7952833c-1de7-4159-8529-a1dab19d9307,B ulkID:230627143956DFE8WQJ8,BulkQuantity:0,Recheck:0,SF:38|29|28|17|19|48,T C:nil,Content:0,EDM:-3,IP:nil,URL: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_SDM,TF_CID_SPAM_ASC,TF_CID_SPAM_FAS,TF_CID_SPAM_FSD, TF_CID_SPAM_SNR X-UUID: 6d47ba4014b511ee9cb5633481061a41-20230627 Received: from mtkmbs10n1.mediatek.inc [(172.21.101.34)] by mailgw01.mediatek.com (envelope-from <shawn.sung@mediatek.com>) (Generic MTA with TLSv1.2 ECDHE-RSA-AES256-GCM-SHA384 256/256) with ESMTP id 803903847; Tue, 27 Jun 2023 14:39:55 +0800 Received: from mtkmbs13n1.mediatek.inc (172.21.101.193) by mtkmbs11n2.mediatek.inc (172.21.101.187) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.2.1118.26; Tue, 27 Jun 2023 14:39:53 +0800 Received: from mtksdccf07.mediatek.inc (172.21.84.99) by mtkmbs13n1.mediatek.inc (172.21.101.73) with Microsoft SMTP Server id 15.2.1118.26 via Frontend Transport; Tue, 27 Jun 2023 14:39:53 +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 v5 00/14] Add display driver for MT8188 VDOSYS1 Date: Tue, 27 Jun 2023 14:39:32 +0800 Message-ID: <20230627063946.14935-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=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,SPF_HELO_PASS,SPF_PASS, T_SCC_BODY_TEXT_LINE,UNPARSEABLE_RELAY,URIBL_BLOCKED autolearn=ham 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?1769837895535054440?= X-GMAIL-MSGID: =?utf-8?q?1769837895535054440?= |
Series |
Add display driver for MT8188 VDOSYS1
|
|
Message
Shawn Sung (宋孝謙)
June 27, 2023, 6:39 a.m. UTC
Support MT8188 VDOSYS1 in display driver. Changes in v5: - Reuse .clk_enable/.clk_disable in struct mtk_ddp_comp_funcs in mtk_disp_ovl_adaptor.c - Adjust commits order 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: Sort OVL adaptor components in alphabetical order drm/mediatek: Improve compatibility of display driver 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 | 226 +++++++++--------- drivers/gpu/drm/mediatek/mtk_drm_drv.c | 4 + drivers/gpu/drm/mediatek/mtk_drm_drv.h | 2 +- drivers/gpu/drm/mediatek/mtk_mdp_rdma.c | 20 +- drivers/gpu/drm/mediatek/mtk_padding.c | 136 +++++++++++ drivers/soc/mediatek/mt8188-mmsys.h | 210 ++++++++++++++++ drivers/soc/mediatek/mtk-mmsys.c | 23 ++ 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 + 18 files changed, 768 insertions(+), 122 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
Comments
Hi Hsiao-Chien, On Tue, Jun 27, 2023 at 2:50 PM Hsiao Chien Sung <shawn.sung@mediatek.com> wrote: > > Support MT8188 VDOSYS1 in display driver. I'm testing this series with my local MT8188 setup + an external 4K display, and I feel there is something missing in it. With these patches the external display can be lit up on my end, but I only see glitches and no meaningful content is rendered. Could you check again and send the updated series with the fix? Thanks, Fei
Hi Fei, On Tue, 2023-07-18 at 16:08 +0800, Fei Shao wrote: > > External email : Please do not click links or open attachments until > you have verified the sender or the content. > Hi Hsiao-Chien, > > On Tue, Jun 27, 2023 at 2:50 PM Hsiao Chien Sung > <shawn.sung@mediatek.com> wrote: > > > > Support MT8188 VDOSYS1 in display driver. > > I'm testing this series with my local MT8188 setup + an external 4K > display, and I feel there is something missing in it. Yes, there is a patch for fixing DPI misconfiguration (.input_2pixel = true), but since I'm not DPI owner, didn't include that in this patch. > With these patches the external display can be lit up on my end, but > I > only see glitches and no meaningful content is rendered. > Could you check again and send the updated series with the fix? Will discuss with DPI owner and merge that fix into this series and re- send it again if you would like to. > > Thanks, > Fei Thanks, Hsiao Chien Sung