From patchwork Wed Mar 22 03:22:01 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: 13183511 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 9949EC6FD1F for ; Wed, 22 Mar 2023 03:25:02 +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:References:In-Reply-To: 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: List-Owner; bh=7IuEgR8uL2lGK94qMf6ue9g+eUD9lmAA2Jqf8n3gy8E=; b=qP8JBptD5WHlYT Qlh2wXImw8a0DzsuFPj+plbjfE0pZO9V94ve7R56yVpTj5nn2NC8Ddc9aJXnlmeo6m2H0UyMX9Y4G +O0QfB/AKHDbny6+3zrFMJb3zRBg3KqMfrwSBenv1B0OrROpg7k65w30pTKUbHQxSotK4Y2RYWY9c ZJ41wxtrMZoYr2qtbUg3L0rNBD0WQvFcIbEBafyer7NHxSPIH+ItJvg83gaGRwniWs7CSnV1QXXUg N+OeCIEzPIIMIhLk3XeHdLFCqvP/99lzqet9t4ILZ3BUtpxzcyHZ/D/S8aTcLH2P/OYheB6R3fM2Z RGrM+eJsq4dfgQ3qchRQ==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.96 #2 (Red Hat Linux)) id 1pep4P-00EQXS-2J; Wed, 22 Mar 2023 03:23:25 +0000 Received: from mailgw02.mediatek.com ([216.200.240.185]) by bombadil.infradead.org with esmtps (Exim 4.96 #2 (Red Hat Linux)) id 1pep4L-00EQVy-2r; Wed, 22 Mar 2023 03:23:23 +0000 X-UUID: e2d4f27ec86011ed8687db9d93187ff1-20230321 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=mediatek.com; s=dk; h=Content-Type:MIME-Version:References:In-Reply-To:Message-ID:Date:Subject:CC:To:From; bh=RSPxWcIg1Osvz8bIovKM5keV/3d/k1WnFlYzKJH8ckM=; b=q7bK7iGsM5dGmF0a+mA1l6kfeRKnMePKyUKJzWoUXF5B5OeTBbP2MuDQGHmUa9tn/B7MZdUyOUGkRNlsqbiDyevR+/ECebSMhwk37K0+ZXiepbNeALV68E6GqE7+Iq5hZI2fs+yrJ3IrP90BIWoGOX5M0xp6NGzgKYAYbQ/25Ps=; X-CID-P-RULE: Release_Ham X-CID-O-INFO: VERSION:1.1.22,REQID:4315a876-ea31-4ae0-96cb-f475b27c8218,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.22,REQID:4315a876-ea31-4ae0-96cb-f475b27c8218,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:120426c,CLOUDID:c930f9b3-beed-4dfc-bd9c-e1b22fa6ccc4,B ulkID:230322112259RNNV5FA2,BulkQuantity:3,Recheck:0,SF:38|29|28|17|19|48,T C:nil,Content:0,EDM:-3,IP:nil,URL:0,File:nil,Bulk:40,QS:nil,BEC:nil,COL:0, OSI:0,OSA:0,AV:0 X-CID-BVR: 0,NGT X-CID-BAS: 0,NGT,0,_ X-UUID: e2d4f27ec86011ed8687db9d93187ff1-20230321 Received: from mtkmbs13n1.mediatek.inc [(172.21.101.193)] by mailgw02.mediatek.com (envelope-from ) (musrelay.mediatek.com ESMTP with TLSv1.2 ECDHE-RSA-AES256-GCM-SHA384 256/256) with ESMTP id 98042199; Tue, 21 Mar 2023 20:23:16 -0700 Received: from mtkmbs13n2.mediatek.inc (172.21.101.108) by mtkmbs10n2.mediatek.inc (172.21.101.183) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.2.1118.25; Wed, 22 Mar 2023 11:22:40 +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.25 via Frontend Transport; Wed, 22 Mar 2023 11:22:40 +0800 From: Shawn Sung To: Matthias Brugger , AngeloGioacchino Del Regno , Philipp Zabel , Rob Herring , "Krzysztof Kozlowski" CC: , , , , , Chun-Kuang Hu , Singo Chang , Nancy Lin , Jason-JH Lin , "Shawn Sung" Subject: [PATCH v1 1/2] dt-bindings: reset: mt8188: Add reset control for DSI0 Date: Wed, 22 Mar 2023 11:22:01 +0800 Message-ID: <20230322032202.12598-2-shawn.sung@mediatek.com> X-Mailer: git-send-email 2.18.0 In-Reply-To: <20230322032202.12598-1-shawn.sung@mediatek.com> References: <20230322032202.12598-1-shawn.sung@mediatek.com> MIME-Version: 1.0 X-MTK: N X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20230321_202321_925732_CA826F15 X-CRM114-Status: GOOD ( 11.06 ) 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 Add reset control for DSI0. Signed-off-by: Shawn Sung --- include/dt-bindings/reset/mt8188-resets.h | 3 +++ 1 file changed, 3 insertions(+) -- 2.18.0 diff --git a/include/dt-bindings/reset/mt8188-resets.h b/include/dt-bindings/reset/mt8188-resets.h index 377cdfda82a9..5c9e74130ef0 100644 --- a/include/dt-bindings/reset/mt8188-resets.h +++ b/include/dt-bindings/reset/mt8188-resets.h @@ -33,4 +33,7 @@ #define MT8188_TOPRGU_SW_RST_NUM 24 +/* VDOSYS0 */ +#define MT8188_VDO0_RST_DSI0 21 + #endif /* _DT_BINDINGS_RESET_CONTROLLER_MT8188 */ From patchwork Wed Mar 22 03:22:02 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: 13183510 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 13154C6FD1C for ; Wed, 22 Mar 2023 03:24:47 +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:References:In-Reply-To: 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: List-Owner; bh=RMQBxEXwJDoS3ETp+NCGUbKG4WkAsbUk4LG1BD32Nlc=; b=1dkCpn5ZMIyv4y 6qUDNweE2QtiwBqSPzfuDCLCrdE3LrCwbfwF4tiWD3RcTA1mseA354ETLuNHW5uqCnJWpbXXbP9vh M8cqNcfRkIC+j0mLGqNfE9kysbnmUwv/sXivUHGWKPz/q35NHzjMTAD1VcswOSvr5swuVSutSYGsk kEd6BujsIfyka5boRVgSFK8HzTv1eoe5whM/imhW8OgrVxMzRS9LvTcOZjbI3Rrn3u11rMCV5I9zo jwEZv1zeVKajCSgT8boL+Wt4qRg2OhyR2fQm9w+iNlVPpv1riyZlUK/zTYTzf5KmHlyDWpFf1H3Se 4mYU61ry09CdHKpC3lKA==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.96 #2 (Red Hat Linux)) id 1pep4O-00EQWo-0X; Wed, 22 Mar 2023 03:23:24 +0000 Received: from mailgw02.mediatek.com ([216.200.240.185]) by bombadil.infradead.org with esmtps (Exim 4.96 #2 (Red Hat Linux)) id 1pep4K-00EQVh-34; Wed, 22 Mar 2023 03:23:22 +0000 X-UUID: e337c7b4c86011ed8687db9d93187ff1-20230321 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=mediatek.com; s=dk; h=Content-Type:MIME-Version:References:In-Reply-To:Message-ID:Date:Subject:CC:To:From; bh=HqINvGVZ3MdtERFP0p1vlV/ZfAjPsoruqdwVGSyeDWI=; b=QuI9t4EZ1RUpTrWPigCbUx08lBuU41qlcexJhhUP1ab3xDrGOQOO8IuEuUFMddk3W3QIIinalVjG/XUiIKL/vdaMUK7Ejqq6GMUZmxVwqbM9A02u4fiRoD0vpf4m4RMEQUIpKqzV3sZWm0jTxpbQ0P/jCYUfpmC8gT12a6LkztU=; X-CID-P-RULE: Release_Ham X-CID-O-INFO: VERSION:1.1.22,REQID:67fd2da1-b149-46c4-b8a9-9a6b4581789b,IP:0,U RL:0,TC:0,Content:-5,EDM:0,RT:0,SF:95,FILE:0,BULK:0,RULE:Release_Ham,ACTIO N:release,TS:90 X-CID-INFO: VERSION:1.1.22,REQID:67fd2da1-b149-46c4-b8a9-9a6b4581789b,IP:0,URL :0,TC:0,Content:-5,EDM:0,RT:0,SF:95,FILE:0,BULK:0,RULE:Spam_GS981B3D,ACTIO N:quarantine,TS:90 X-CID-META: VersionHash:120426c,CLOUDID:3b361829-564d-42d9-9875-7c868ee415ec,B ulkID:230322112243BQPGG959,BulkQuantity:5,Recheck:0,SF:38|29|28|17|19|48,T C:nil,Content:0,EDM:-3,IP:nil,URL:0,File:nil,Bulk:40,QS:nil,BEC:nil,COL:0, OSI:0,OSA:0,AV:0 X-CID-BVR: 0,NGT X-CID-BAS: 0,NGT,0,_ X-UUID: e337c7b4c86011ed8687db9d93187ff1-20230321 Received: from mtkmbs13n1.mediatek.inc [(172.21.101.193)] by mailgw02.mediatek.com (envelope-from ) (musrelay.mediatek.com ESMTP with TLSv1.2 ECDHE-RSA-AES256-GCM-SHA384 256/256) with ESMTP id 42776413; Tue, 21 Mar 2023 20:23:17 -0700 Received: from mtkmbs13n2.mediatek.inc (172.21.101.108) by mtkmbs10n2.mediatek.inc (172.21.101.183) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.2.1118.25; Wed, 22 Mar 2023 11:22:40 +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.25 via Frontend Transport; Wed, 22 Mar 2023 11:22:40 +0800 From: Shawn Sung To: Matthias Brugger , AngeloGioacchino Del Regno , Philipp Zabel , Rob Herring , "Krzysztof Kozlowski" CC: , , , , , Chun-Kuang Hu , Singo Chang , Nancy Lin , Jason-JH Lin , "Shawn Sung" Subject: [PATCH v1 2/2] soc: mediatek: Add reset control for DSI0 Date: Wed, 22 Mar 2023 11:22:02 +0800 Message-ID: <20230322032202.12598-3-shawn.sung@mediatek.com> X-Mailer: git-send-email 2.18.0 In-Reply-To: <20230322032202.12598-1-shawn.sung@mediatek.com> References: <20230322032202.12598-1-shawn.sung@mediatek.com> MIME-Version: 1.0 X-MTK: N X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20230321_202320_997459_2DCCD10E X-CRM114-Status: GOOD ( 11.68 ) 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 Add reset control for DSI0. Signed-off-by: Shawn Sung --- drivers/soc/mediatek/mt8188-mmsys.h | 1 + drivers/soc/mediatek/mtk-mmsys.c | 2 ++ 2 files changed, 3 insertions(+) -- 2.18.0 diff --git a/drivers/soc/mediatek/mt8188-mmsys.h b/drivers/soc/mediatek/mt8188-mmsys.h index 448cc3761b43..08c7de771aec 100644 --- a/drivers/soc/mediatek/mt8188-mmsys.h +++ b/drivers/soc/mediatek/mt8188-mmsys.h @@ -3,6 +3,7 @@ #ifndef __SOC_MEDIATEK_MT8188_MMSYS_H #define __SOC_MEDIATEK_MT8188_MMSYS_H +#define MT8188_VDO0_SW0_RST_B 0x190 #define MT8188_VDO0_OVL_MOUT_EN 0xf14 #define MT8188_MOUT_DISP_OVL0_TO_DISP_RDMA0 BIT(0) #define MT8188_MOUT_DISP_OVL0_TO_DISP_WDMA0 BIT(1) diff --git a/drivers/soc/mediatek/mtk-mmsys.c b/drivers/soc/mediatek/mtk-mmsys.c index eb4c7e57896c..e82dd42d9c34 100644 --- a/drivers/soc/mediatek/mtk-mmsys.c +++ b/drivers/soc/mediatek/mtk-mmsys.c @@ -78,6 +78,8 @@ static const struct mtk_mmsys_driver_data mt8188_vdosys0_driver_data = { .clk_driver = "clk-mt8188-vdo0", .routes = mmsys_mt8188_routing_table, .num_routes = ARRAY_SIZE(mmsys_mt8188_routing_table), + .sw0_rst_offset = MT8188_VDO0_SW0_RST_B, + .num_resets = 32, }; static const struct mtk_mmsys_driver_data mt8192_mmsys_driver_data = {