Message ID | 20221215120016.26611-3-allen-kh.cheng@mediatek.com |
---|---|
State | New |
Headers |
Return-Path: <linux-kernel-owner@vger.kernel.org> Delivered-To: ouuuleilei@gmail.com Received: by 2002:adf:e747:0:0:0:0:0 with SMTP id c7csp309012wrn; Thu, 15 Dec 2022 04:05:30 -0800 (PST) X-Google-Smtp-Source: AA0mqf7fjMctWOEfBj7ZzuR22/7YzCtFoWZaZeZw+pF782qo6Byzt+oiR9YJ90MajJf7VDHPTlxC X-Received: by 2002:a17:906:3a96:b0:78d:f454:ba4a with SMTP id y22-20020a1709063a9600b0078df454ba4amr4424825ejd.73.1671105930029; Thu, 15 Dec 2022 04:05:30 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1671105930; cv=none; d=google.com; s=arc-20160816; b=rp2fhHyjPJ0h6j7idTPgfgHw66ikWAGL376QGq/kah/tCOxKJWtJI+bUFhpbBRU8Xi nVhDoe/pAdUWrZxPwcl3UnbX1eF3iWjhAKW/NX8ajb6jy96HmAkc86U1Y62I7YjqfZs3 QHqrQmwDOEyc1+IG472pidcXphsP4IFktVSh6duRVQa5hL/Csg5j+oKoRV/zpVQplmtu X6QW5IwjB+zmXeShtusK32CBve8E6G9zM5hvPJZz+k+EnbKC8oS4YJm1nDHBxbncd8mB EXe82/IWrCZj0nxmghaAtWzhTRGfCL5pIxBdVv/6I7fkKOAwYoghh37LO7GL/f/6liO5 Q1xA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:mime-version:references:in-reply-to:message-id :date:subject:cc:to:from:dkim-signature; bh=FxQw7bHLyA5vKeEmlF/GvXF0yb0AjLvtCurZOZUuMoM=; b=P7NEOfaVo/mbl7ABgHo2TY36Glsy6AWwPNfTBqXm7NTlC9a0l/wMlcKzm8ZVsQz9AG MNiuQWgTUEfOcEQnvx0ZUwjshP+K+CltJq5zSp4nH+SUmyQGb38V4vvFp2I1RLbrrQA8 vbXGv8FNgxCNmOKfQi85X0c4jz5WlbSTsb+05zhYKdV1jxhsISrUCi5b5ygBNi9T6lgv CF//FUYjDv0G8mRUmV3Q++1lKyFzAWyL1tYPd9ezV695yjwTpRA/BS0ZQrkFyDTFFiag DH7M3P3INOawxbWxAckVCUOQ4jrKLy0hdLe2AUJ4n4VNmEdAUJbqwj19eIHtjyLp8wIz Qp/Q== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@mediatek.com header.s=dk header.b=nx+NOYZc; 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 xa8-20020a170906fd8800b0078d4ba46622si14127076ejb.616.2022.12.15.04.05.04; Thu, 15 Dec 2022 04:05:30 -0800 (PST) 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=nx+NOYZc; 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 S230040AbiLOMBD (ORCPT <rfc822;jeantsuru.cumc.mandola@gmail.com> + 99 others); Thu, 15 Dec 2022 07:01:03 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:59878 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229983AbiLOMAj (ORCPT <rfc822;linux-kernel@vger.kernel.org>); Thu, 15 Dec 2022 07:00:39 -0500 Received: from mailgw01.mediatek.com (unknown [60.244.123.138]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 84BB92A95F; Thu, 15 Dec 2022 04:00:31 -0800 (PST) X-UUID: 0a16a4efc1764ac6a4620304fbafbe30-20221215 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=FxQw7bHLyA5vKeEmlF/GvXF0yb0AjLvtCurZOZUuMoM=; b=nx+NOYZciDWe4I3Rv3GJE54p3oJ2nBUhK3vRbCHaQ8Q5coVSuvD9gBn8Ujzp3XgC3qwiz49BnEVlbytMgsU7rRObOKkwcOzaFF0VOkbXeQjd3L4Z9dNbpHPVm4FMT24kjDLiJXMbVTP6lv6UkEM34ISjOI7sy391HKMH7JgpeZM=; X-CID-P-RULE: Release_Ham X-CID-O-INFO: VERSION:1.1.14,REQID:5899478d-19cd-48ef-a7b9-bc0734f5b9c1,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.14,REQID:5899478d-19cd-48ef-a7b9-bc0734f5b9c1,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:dcaaed0,CLOUDID:60725635-a6a3-44f7-8aad-08fee1939a08,B ulkID:221215200023XLXFLJZU,BulkQuantity:0,Recheck:0,SF:38|28|17|19|48,TC:n il,Content:0,EDM:-3,IP:nil,URL:0,File:nil,Bulk:nil,QS:nil,BEC:nil,COL:0 X-UUID: 0a16a4efc1764ac6a4620304fbafbe30-20221215 Received: from mtkmbs13n1.mediatek.inc [(172.21.101.193)] by mailgw01.mediatek.com (envelope-from <allen-kh.cheng@mediatek.com>) (Generic MTA with TLSv1.2 ECDHE-RSA-AES256-GCM-SHA384 256/256) with ESMTP id 1892519801; Thu, 15 Dec 2022 20:00:20 +0800 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.792.3; Thu, 15 Dec 2022 20:00:19 +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.792.15 via Frontend Transport; Thu, 15 Dec 2022 20:00:19 +0800 From: Allen-KH Cheng <allen-kh.cheng@mediatek.com> To: Rob Herring <robh+dt@kernel.org>, Krzysztof Kozlowski <krzysztof.kozlowski+dt@linaro.org>, Matthias Brugger <matthias.bgg@gmail.com>, Chun-Jie Chen <chun-jie.chen@mediatek.com>, "Stephen Boyd" <sboyd@kernel.org>, Ikjoon Jang <ikjn@chromium.org> CC: <Project_Global_Chrome_Upstream_Group@mediatek.com>, <angelogioacchino.delregno@collabora.com>, <devicetree@vger.kernel.org>, <linux-arm-kernel@lists.infradead.org>, <linux-kernel@vger.kernel.org>, <linux-mediatek@lists.infradead.org>, Chen-Yu Tsai <wenst@chromium.org>, Allen-KH Cheng <allen-kh.cheng@mediatek.com> Subject: [PATCH 2/4] soc: mediatek: pm-domains: Add ADSP power domain data for MT8192 Date: Thu, 15 Dec 2022 20:00:14 +0800 Message-ID: <20221215120016.26611-3-allen-kh.cheng@mediatek.com> X-Mailer: git-send-email 2.18.0 In-Reply-To: <20221215120016.26611-1-allen-kh.cheng@mediatek.com> References: <20221215120016.26611-1-allen-kh.cheng@mediatek.com> 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,RCVD_IN_MSPIKE_H2,SPF_HELO_PASS, SPF_PASS,UNPARSEABLE_RELAY 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?1752281571820366766?= X-GMAIL-MSGID: =?utf-8?q?1752281571820366766?= |
Series |
Add ADSP power domains controller support for MT8192
|
|
Commit Message
Allen-KH Cheng
Dec. 15, 2022, noon UTC
Add ADSP pm-domains (mtcmos) data for MT8192 SoC.
Signed-off-by: Allen-KH Cheng <allen-kh.cheng@mediatek.com>
---
drivers/soc/mediatek/mt8192-pm-domains.h | 16 ++++++++++++++++
1 file changed, 16 insertions(+)
Comments
On 15/12/2022 13:00, Allen-KH Cheng wrote: > Add ADSP pm-domains (mtcmos) data for MT8192 SoC. > > Signed-off-by: Allen-KH Cheng <allen-kh.cheng@mediatek.com> > --- > drivers/soc/mediatek/mt8192-pm-domains.h | 16 ++++++++++++++++ > 1 file changed, 16 insertions(+) > > diff --git a/drivers/soc/mediatek/mt8192-pm-domains.h b/drivers/soc/mediatek/mt8192-pm-domains.h > index b97b2051920f..19e58f0ca1df 100644 > --- a/drivers/soc/mediatek/mt8192-pm-domains.h > +++ b/drivers/soc/mediatek/mt8192-pm-domains.h > @@ -287,6 +287,22 @@ static const struct scpsys_domain_data scpsys_domain_data_mt8192[] = { > .sram_pdn_bits = GENMASK(8, 8), > .sram_pdn_ack_bits = GENMASK(12, 12), > }, > + [MT8192_POWER_DOMAIN_ADSP] = { > + .name = "adsp", > + .sta_mask = BIT(22), > + .ctl_offs = 0x0358, > + .sram_pdn_bits = GENMASK(8, 8), > + .sram_pdn_ack_bits = GENMASK(12, 12), > + .ext_buck_iso_offs = 0x039C, > + .ext_buck_iso_mask = BIT(2), Not defined in upstream. It seems we are missing something here. Regards, Matthias > + .bp_infracfg = { > + BUS_PROT_WR(MT8192_TOP_AXI_PROT_EN_2_ADSP, > + MT8192_TOP_AXI_PROT_EN_2_SET, > + MT8192_TOP_AXI_PROT_EN_2_CLR, > + MT8192_TOP_AXI_PROT_EN_2_STA1), > + }, > + .caps = MTK_SCPD_SRAM_ISO | MTK_SCPD_EXT_BUCK_ISO, > + }, > [MT8192_POWER_DOMAIN_CAM] = { > .name = "cam", > .sta_mask = BIT(23),
Hi Matthias, Thanks for the reminder. I will check this and resend next version. Best Regards, Allen -----Original Message----- From: Matthias Brugger <matthias.bgg@gmail.com> Sent: Friday, December 16, 2022 7:16 PM To: Allen-KH Cheng (程冠勳) <Allen-KH.Cheng@mediatek.com>; Rob Herring < robh+dt@kernel.org>; Krzysztof Kozlowski < krzysztof.kozlowski+dt@linaro.org>; Chun-Jie Chen (陳浚桀) < Chun-Jie.Chen@mediatek.com>; Stephen Boyd <sboyd@kernel.org>; Ikjoon Jang <ikjn@chromium.org> Cc: Project_Global_Chrome_Upstream_Group < Project_Global_Chrome_Upstream_Group@mediatek.com>; angelogioacchino.delregno@collabora.com; devicetree@vger.kernel.org; linux-arm-kernel@lists.infradead.org; linux-kernel@vger.kernel.org; linux-mediatek@lists.infradead.org; Chen-Yu Tsai <wenst@chromium.org> Subject: Re: [PATCH 2/4] soc: mediatek: pm-domains: Add ADSP power domain data for MT8192 On 15/12/2022 13:00, Allen-KH Cheng wrote: > Add ADSP pm-domains (mtcmos) data for MT8192 SoC. > > Signed-off-by: Allen-KH Cheng <allen-kh.cheng@mediatek.com> > --- > drivers/soc/mediatek/mt8192-pm-domains.h | 16 ++++++++++++++++ > 1 file changed, 16 insertions(+) > > diff --git a/drivers/soc/mediatek/mt8192-pm-domains.h > b/drivers/soc/mediatek/mt8192-pm-domains.h > index b97b2051920f..19e58f0ca1df 100644 > --- a/drivers/soc/mediatek/mt8192-pm-domains.h > +++ b/drivers/soc/mediatek/mt8192-pm-domains.h > @@ -287,6 +287,22 @@ static const struct scpsys_domain_data > scpsys_domain_data_mt8192[] = { > .sram_pdn_bits = GENMASK(8, 8), > .sram_pdn_ack_bits = GENMASK(12, 12), > }, > + [MT8192_POWER_DOMAIN_ADSP] = { > + .name = "adsp", > + .sta_mask = BIT(22), > + .ctl_offs = 0x0358, > + .sram_pdn_bits = GENMASK(8, 8), > + .sram_pdn_ack_bits = GENMASK(12, 12), > + .ext_buck_iso_offs = 0x039C, > + .ext_buck_iso_mask = BIT(2), Not defined in upstream. It seems we are missing something here. Regards, Matthias > + .bp_infracfg = { > + BUS_PROT_WR(MT8192_TOP_AXI_PROT_EN_2_ADSP, > + MT8192_TOP_AXI_PROT_EN_2_SET, > + MT8192_TOP_AXI_PROT_EN_2_CLR, > + MT8192_TOP_AXI_PROT_EN_2_STA1), > + }, > + .caps = MTK_SCPD_SRAM_ISO | MTK_SCPD_EXT_BUCK_ISO, > + }, > [MT8192_POWER_DOMAIN_CAM] = { > .name = "cam", > .sta_mask = BIT(23),
diff --git a/drivers/soc/mediatek/mt8192-pm-domains.h b/drivers/soc/mediatek/mt8192-pm-domains.h index b97b2051920f..19e58f0ca1df 100644 --- a/drivers/soc/mediatek/mt8192-pm-domains.h +++ b/drivers/soc/mediatek/mt8192-pm-domains.h @@ -287,6 +287,22 @@ static const struct scpsys_domain_data scpsys_domain_data_mt8192[] = { .sram_pdn_bits = GENMASK(8, 8), .sram_pdn_ack_bits = GENMASK(12, 12), }, + [MT8192_POWER_DOMAIN_ADSP] = { + .name = "adsp", + .sta_mask = BIT(22), + .ctl_offs = 0x0358, + .sram_pdn_bits = GENMASK(8, 8), + .sram_pdn_ack_bits = GENMASK(12, 12), + .ext_buck_iso_offs = 0x039C, + .ext_buck_iso_mask = BIT(2), + .bp_infracfg = { + BUS_PROT_WR(MT8192_TOP_AXI_PROT_EN_2_ADSP, + MT8192_TOP_AXI_PROT_EN_2_SET, + MT8192_TOP_AXI_PROT_EN_2_CLR, + MT8192_TOP_AXI_PROT_EN_2_STA1), + }, + .caps = MTK_SCPD_SRAM_ISO | MTK_SCPD_EXT_BUCK_ISO, + }, [MT8192_POWER_DOMAIN_CAM] = { .name = "cam", .sta_mask = BIT(23),