Received: by 2002:a05:6358:d09b:b0:dc:cd0c:909e with SMTP id jc27csp2568213rwb; Fri, 16 Dec 2022 04:01:11 -0800 (PST) X-Google-Smtp-Source: AA0mqf7IJWNQdRqBullchlEL9H70OszShD6gOqEhnxHluE6O1Up+SqE487QKEzP3MXwWf5zGyxJu X-Received: by 2002:a17:907:a68a:b0:7b9:ee36:6153 with SMTP id vv10-20020a170907a68a00b007b9ee366153mr27213195ejc.2.1671192071285; Fri, 16 Dec 2022 04:01:11 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1671192071; cv=none; d=google.com; s=arc-20160816; b=bGCfJnMrbRxvqGiOMYbRZwc2JxTtLRvPwbZsmVuEbnALT9JFgzZAjN0B5QL9nafS8p pJgeRLLui62SPmsErF6pLMtutaeUMAQZwmvuxp1GvTRqeaFECj6WlsUhC1tOlO+AIB29 ERYv0SwTAu1w5yh5XNe7BSNV5esgPs5KkA5ekjj0X784Y03ynCvimfKT0YjYHyKlru6+ gstSJGaxEB9iEAaf9vMLyE1YPjm9jWlv+taBXiTiMIWg55yRWSWtpkcCCWe6Dc/MZJhY 55jGB57xgY/ba8214fTQcIVMMqnoP0Uqeq8F9LucIf3m0CAkcFQiKf9/NKsEGnUbgXFS brQw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:in-reply-to:from :references:cc:to:content-language:subject:user-agent:mime-version :date:message-id:dkim-signature; bh=TduGez5okMoaMoWtG+a/gDZ6K+tMIFN63iCFQSQsXnc=; b=asCTvLGRaPMfB9ujG+sHoC3ZegVBWL+PZZpXRkwOCEjwPWPxXeaq1G4dVvpkZOymjY Si/4AJxAyJNmvCHaEYbayuiAhE2A+QhIHepFY+uP4AZdsIgZ/YiFNVN/yIFhie+nuVmn /hIXR1WP1xOOUYB9V6HJRAy/MOoB56Mua+zjKFZN3A5QXQPn1IdLtCsMO6htUrsQPaCq itYi+kw1urB1YYQ9HpSnnmvVVO0lv7PEQ2w7XYeXdT7zDk4ztC75xRUTGuiJ3rLgi7k3 0k0BAoNDf2RmY7/a1Q9U4Km1WgU097Qc6idCDNbHGc8pMKApRTOQwUcF/eHNSrBNOP/x vVnQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20210112 header.b=poGvMOI+; 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=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id s5-20020a17090699c500b007ae4c686a4dsi2471667ejn.649.2022.12.16.04.00.52; Fri, 16 Dec 2022 04:01:11 -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=@gmail.com header.s=20210112 header.b=poGvMOI+; 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=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230458AbiLPLQL (ORCPT + 68 others); Fri, 16 Dec 2022 06:16:11 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:53816 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230447AbiLPLQC (ORCPT ); Fri, 16 Dec 2022 06:16:02 -0500 Received: from mail-wm1-x330.google.com (mail-wm1-x330.google.com [IPv6:2a00:1450:4864:20::330]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id E94B12BD3; Fri, 16 Dec 2022 03:15:49 -0800 (PST) Received: by mail-wm1-x330.google.com with SMTP id v124-20020a1cac82000000b003cf7a4ea2caso3850053wme.5; Fri, 16 Dec 2022 03:15:48 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=content-transfer-encoding:in-reply-to:from:references:cc:to :content-language:subject:user-agent:mime-version:date:message-id :from:to:cc:subject:date:message-id:reply-to; bh=TduGez5okMoaMoWtG+a/gDZ6K+tMIFN63iCFQSQsXnc=; b=poGvMOI+DZhFnvewifa7xuMgoYfEN6GfdHixircewhmNWI1wf7jJRpF6FLe2k+gBh+ BfaBVFfBiZmo8WvNNTkM1KA2ip8M8Inf32AtLoX875ooAjtN+w5lJ+waGJsab2ThhKAj m1+vBp3R5kwpep77ei/Pid7DFabFUTtpheALbrtR8L9+2DQHbgiS7k+HVUshCj0mZy4A z2B7TSCqZHlCM0+sgeWTfBf34NWB+670zIUaIMF4rVYWbIq0lFLpY0P06BQmT6rfRItw lDrc2JcsKGgGiVgw516DWiUEqgVltFg1DfjtTCYkzoThvNDSJv8VIghV9G0SoUfnSVE6 Qkrg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=content-transfer-encoding:in-reply-to:from:references:cc:to :content-language:subject:user-agent:mime-version:date:message-id :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=TduGez5okMoaMoWtG+a/gDZ6K+tMIFN63iCFQSQsXnc=; b=NmXB377L1I+hEzbK8OqIH2u4D6WH5YyAh5V3Wq8BISMAbS/ugYzyqU2/bt2WZbOzaP CNJA+SSj06wCXuYVQI6gnmDyL31RQnDohZHWjPiQ6mWSJksru4n+nwdiX9aCPvh/2EKM yc/YTlTugxaINu4G+1uZOSXCinZVtj5uyPNCpK9+GXEz4hWjt2gmJRDDnvCvKcXzJHg0 lDqwav2hn4xbblG0WTrulNyIX/LMRyRZiRYEpF2hOjXtKfyKtoLuQ0zv/cyLQHFOR7qK uc9KxDdzFcSFWbw78eYIJzblUce1/X+SZX3+VOQT6UXmKvwwbIubkV7odP8wQiGh39Xb Hz5w== X-Gm-Message-State: ANoB5pmY0YDKX/CCv/sjFhCvUJam0lbNo25rbuxodOdBl1wAtV4by2zj RsB4cqgZK154/6f8UQcnHcDm7O0iXgQ= X-Received: by 2002:a05:600c:3555:b0:3d0:8643:caf1 with SMTP id i21-20020a05600c355500b003d08643caf1mr17299280wmq.16.1671189347575; Fri, 16 Dec 2022 03:15:47 -0800 (PST) Received: from [192.168.1.132] ([207.188.167.132]) by smtp.gmail.com with ESMTPSA id i26-20020a1c541a000000b003c6c182bef9sm11257713wmb.36.2022.12.16.03.15.45 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Fri, 16 Dec 2022 03:15:46 -0800 (PST) Message-ID: <9511c5b1-203b-a7e3-b96b-614e1c52639a@gmail.com> Date: Fri, 16 Dec 2022 12:15:44 +0100 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Thunderbird/102.5.1 Subject: Re: [PATCH 2/4] soc: mediatek: pm-domains: Add ADSP power domain data for MT8192 Content-Language: en-US To: Allen-KH Cheng , Rob Herring , Krzysztof Kozlowski , Chun-Jie Chen , Stephen Boyd , Ikjoon Jang 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 References: <20221215120016.26611-1-allen-kh.cheng@mediatek.com> <20221215120016.26611-3-allen-kh.cheng@mediatek.com> From: Matthias Brugger In-Reply-To: <20221215120016.26611-3-allen-kh.cheng@mediatek.com> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,FREEMAIL_FROM,NICE_REPLY_A, RCVD_IN_DNSWL_NONE,SPF_HELO_NONE,SPF_PASS 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 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 > --- > 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),