From patchwork Tue Jun 27 06:39:32 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: 11323 Return-Path: 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 + 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 ); 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 ) (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 To: AngeloGioacchino Del Regno , Chun-Kuang Hu , Krzysztof Kozlowski , Matthias Brugger , Philipp Zabel , Rob Herring CC: , , , , , Singo Chang , Nancy Lin , Jason-JH Lin , Shawn Sung 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 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: 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?= 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