From patchwork Thu Dec 15 12:00:13 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Allen-KH Cheng X-Patchwork-Id: 33586 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:adf:e747:0:0:0:0:0 with SMTP id c7csp308133wrn; Thu, 15 Dec 2022 04:04:10 -0800 (PST) X-Google-Smtp-Source: AA0mqf7BXzJXP25W7NQ1tpU5l5ema3eqcNqP1v/7XAV2HBs9wL0UtmUHIl92FEzWJJ+t1ysg//V/ X-Received: by 2002:a17:906:a3c1:b0:7ad:7d4a:ebfd with SMTP id ca1-20020a170906a3c100b007ad7d4aebfdmr23262826ejb.62.1671105849879; Thu, 15 Dec 2022 04:04:09 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1671105849; cv=none; d=google.com; s=arc-20160816; b=tdzTu1oRMCYo0BpbhSdoy/ejhA10pteMxTKs+ALdOFyHTjIsLcH8PXoR2GDQrHrI2f 48wSSab9coBtlEwnkQu0Vj0zXYRGmINvlCVEY6bPTYBeiBkwcCFXp6oYT1/0CdVpnvQ3 8Jj5rf2fnuQaOhcKc0FB1vVYjtc8NYUSCuC6H+pqZBqvb4Q3NNhEor+N/RRWO/j1TaIM fjyev6e6L92AztNDpvZkQ526R+23w1RHONld3Mv7Gvr8h02UfYNMSIq8uogdGsnF6WVm DTh1vW5waW/i49uqDp+knXC6G2KFyeOKqx25f/5Xy8mAE4rgm4vAzIdNj1m8lgcvFqtU UqIw== 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=wEtcKJxSE9mxxuhtX/9piOaTQKW2w7JZNGu4dtoOPgQ=; b=YMGfyp68yeSTs3pHBttONlFzrXWnu3Q65RcNTsKpvGyPXCa+IA72IBBzGSAxTHoRfL qN92MLd+BttDARjirtV2v6LK/02istAJU+SKVnD4NXQV0bs7iSUHtmrE2pvGL1WUMkP1 SVsjDm/2pBMyTuaVF5TufxiEE22q8bjfVF5uAl6AJRoTCXcdua80abK618dvH8Lp5rzj 0s1S8/lAiIFTuiUXuNolpgoGcXrcnjDPmXIhYZD+YkRD95PQKhUTyf1jWK1adJguGhOy HbNCRtEZ6z3oNt7iICVRjxv7/U8v5MBkrAt3CgBOP9h0uxUcBpGa5bseqtlGr5xbxSuM OhUQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@mediatek.com header.s=dk header.b=crkgtFRP; 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 p10-20020a170906838a00b00730a4246dd0si10676768ejx.593.2022.12.15.04.03.44; Thu, 15 Dec 2022 04:04:09 -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=crkgtFRP; 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 S229588AbiLOMAi (ORCPT + 99 others); Thu, 15 Dec 2022 07:00:38 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:59728 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229822AbiLOMAd (ORCPT ); Thu, 15 Dec 2022 07:00:33 -0500 Received: from mailgw02.mediatek.com (unknown [210.61.82.184]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 98C102CCA8; Thu, 15 Dec 2022 04:00:26 -0800 (PST) X-UUID: 65af131f4ccc49eab05b8b5b2817ebc0-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=wEtcKJxSE9mxxuhtX/9piOaTQKW2w7JZNGu4dtoOPgQ=; b=crkgtFRPQ4te7/X2zeYhDY7MKNEdoyAWrRZbfZwg6hI2Ns/XvdIEow2ow9du8tTlQ16UJtR4abICdB6aSiqSYQJM9ilyRuJrUY9/5LYP0Fp4+amGRuMrpboZHEhpoYUa7BIJzztQSzS6P7BlisxvlJAwcku5kuiSoQfbMlkECa8=; X-CID-P-RULE: Release_Ham X-CID-O-INFO: VERSION:1.1.14,REQID:dcf50cbd-15ab-4cec-98a4-68feb5e1f5ee,IP:0,U RL:0,TC:0,Content:0,EDM:0,RT:0,SF:0,FILE:0,BULK:0,RULE:Release_Ham,ACTION: release,TS:0 X-CID-META: VersionHash:dcaaed0,CLOUDID:30725635-a6a3-44f7-8aad-08fee1939a08,B ulkID:nil,BulkQuantity:0,Recheck:0,SF:102,TC:nil,Content:0,EDM:-3,IP:nil,U RL:0,File:nil,Bulk:nil,QS:nil,BEC:nil,COL:0 X-UUID: 65af131f4ccc49eab05b8b5b2817ebc0-20221215 Received: from mtkmbs13n2.mediatek.inc [(172.21.101.108)] by mailgw02.mediatek.com (envelope-from ) (Generic MTA with TLSv1.2 ECDHE-RSA-AES256-GCM-SHA384 256/256) with ESMTP id 2031610687; Thu, 15 Dec 2022 20:00:20 +0800 Received: from mtkmbs13n2.mediatek.inc (172.21.101.108) 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.792.15; 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:18 +0800 From: Allen-KH Cheng To: Rob Herring , Krzysztof Kozlowski , Matthias Brugger , Chun-Jie Chen , Stephen Boyd , Ikjoon Jang CC: , , , , , , Chen-Yu Tsai , Allen-KH Cheng Subject: [PATCH 1/4] dt-bindings: power: Add MT8192 ADSP power domain Date: Thu, 15 Dec 2022 20:00:13 +0800 Message-ID: <20221215120016.26611-2-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 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, T_SPF_TEMPERROR,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: X-Mailing-List: linux-kernel@vger.kernel.org X-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1752281487154809781?= X-GMAIL-MSGID: =?utf-8?q?1752281487154809781?= Add power domain ID for the ADSP power partition found on MT8192 SoC. Signed-off-by: Allen-KH Cheng Acked-by: Krzysztof Kozlowski --- include/dt-bindings/power/mt8192-power.h | 1 + 1 file changed, 1 insertion(+) diff --git a/include/dt-bindings/power/mt8192-power.h b/include/dt-bindings/power/mt8192-power.h index 4eaa53d7270a..63e81cd0d06d 100644 --- a/include/dt-bindings/power/mt8192-power.h +++ b/include/dt-bindings/power/mt8192-power.h @@ -28,5 +28,6 @@ #define MT8192_POWER_DOMAIN_CAM_RAWA 18 #define MT8192_POWER_DOMAIN_CAM_RAWB 19 #define MT8192_POWER_DOMAIN_CAM_RAWC 20 +#define MT8192_POWER_DOMAIN_ADSP 21 #endif /* _DT_BINDINGS_POWER_MT8192_POWER_H */ From patchwork Thu Dec 15 12:00:14 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Allen-KH Cheng X-Patchwork-Id: 33588 Return-Path: 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 + 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 ); 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 ) (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 To: Rob Herring , Krzysztof Kozlowski , Matthias Brugger , Chun-Jie Chen , "Stephen Boyd" , Ikjoon Jang CC: , , , , , , Chen-Yu Tsai , Allen-KH Cheng 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 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: 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?= 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), + .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), From patchwork Thu Dec 15 12:00:15 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Allen-KH Cheng X-Patchwork-Id: 33585 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:adf:e747:0:0:0:0:0 with SMTP id c7csp307552wrn; Thu, 15 Dec 2022 04:03:12 -0800 (PST) X-Google-Smtp-Source: AA0mqf7e1qR3qOf8C1LWil4LmoHOqjGq+8uViOEA+xVxRj1qAy9+riBLgN6XKlprNGRywaAf7+uN X-Received: by 2002:a17:906:7712:b0:7c0:4ab2:66e8 with SMTP id q18-20020a170906771200b007c04ab266e8mr25444756ejm.70.1671105792331; Thu, 15 Dec 2022 04:03:12 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1671105792; cv=none; d=google.com; s=arc-20160816; b=lTB2plrKe91S3I/Y7JqALV/RgRZ7qmOU1C+1sL332kQO6YftHpAwedTBqfpjN5DtRZ 5S5Q6fLOwCy3AiI3Zp6Zg+cam7z3khRpgTlgR5a33FmjGSGrW5SdM50piIioQfZG12pO rW1AqkHZv42JZdlU/Noa6yihDjwei3N/eM055q91ZSDzVQKbwwDEEE32MSeCkInw/Cvb 1lCtqAf95rrPcRycYQOqT950f+YXrl8dNsbCvFZl5wE4Lbaw3kPlkCn++c/iYswQkKNL qzvVL8VjudQwtGrqO8KB4bjtw9Q33QVMRcm/uMnDyVTRyzs47YNA4HRcnp/aWp9dfWwH mncA== 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=8i5DSmAxTmfCANOGSKNu3P+/BEjO2MHm4RiH6/g3zxc=; b=Y4gGWSIQCh1/4NnPp/NLWrK2hvneg+j+xJzWtkWpwBbpOOymCIDF0ifipBYhOJ+dxb zAw4voVaGArubRriycXYdQkN/lqEvixAfONguvFtw498lXkDLPDDFNRfkz58VCFczvvr zDJ1CUN7rBfpVETY2EI10R+KIGzmZs9JBbUdTsVBJsAMkp4QTg86A/pPBmsDcILe/kUy AHyHgoTeGs6UbqQgKNoE94DhpRfH+aU9Ii+oNv3b7GwIomgBz0/nOlyHLlie1sohVFtt qwv7z/zTpG2rYKxhM+hf/SVMV1oR4WuWxy2ozXKjw884/dtIoqFVAIo9kTxi8uEVMm8H PphQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@mediatek.com header.s=dk header.b="jg/YxsC9"; 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 hp28-20020a1709073e1c00b007c164256d90si12364625ejc.638.2022.12.15.04.02.47; Thu, 15 Dec 2022 04:03:12 -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="jg/YxsC9"; 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 S229990AbiLOMAv (ORCPT + 99 others); Thu, 15 Dec 2022 07:00:51 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:59744 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229854AbiLOMAf (ORCPT ); Thu, 15 Dec 2022 07:00:35 -0500 Received: from mailgw02.mediatek.com (unknown [210.61.82.184]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 7D96A2A43E; Thu, 15 Dec 2022 04:00:29 -0800 (PST) X-UUID: cbba2d44e9e3436f8e709ea19c5d8a6a-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=8i5DSmAxTmfCANOGSKNu3P+/BEjO2MHm4RiH6/g3zxc=; b=jg/YxsC9p4XjgGIBdaSg4QKXoLNrnbW/vjzpH80CJ5pBbvv+2QOsCDRlXIPL68XUoLViflKgqGVSkeMolL+RQRpX7R1jOrb2+Jl5iSPXEV0ZzRLWVBvwJ5oXmpYdMWque5TSqST/FpJGRKTPJYh/tUjJDvBx+P0i3ChpIH7yO8M=; X-CID-P-RULE: Release_Ham X-CID-O-INFO: VERSION:1.1.14,REQID:f1aa6a34-1f2c-4ea7-b317-f75d1ce6f6ca,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.14,REQID:f1aa6a34-1f2c-4ea7-b317-f75d1ce6f6ca,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:dcaaed0,CLOUDID:6d725635-a6a3-44f7-8aad-08fee1939a08,B ulkID:221215200024ZJAXDO3V,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: cbba2d44e9e3436f8e709ea19c5d8a6a-20221215 Received: from mtkmbs10n1.mediatek.inc [(172.21.101.34)] by mailgw02.mediatek.com (envelope-from ) (Generic MTA with TLSv1.2 ECDHE-RSA-AES256-GCM-SHA384 256/256) with ESMTP id 1988709582; Thu, 15 Dec 2022 20:00:21 +0800 Received: from mtkmbs13n2.mediatek.inc (172.21.101.108) by mtkmbs13n2.mediatek.inc (172.21.101.108) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.2.792.15; Thu, 15 Dec 2022 20:00:20 +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:20 +0800 From: Allen-KH Cheng To: Rob Herring , Krzysztof Kozlowski , Matthias Brugger , Chun-Jie Chen , Stephen Boyd , Ikjoon Jang CC: , , , , , , Chen-Yu Tsai , Allen-KH Cheng Subject: [PATCH 3/4] dt-bindings: arm: mediatek: Add missing power-domains property Date: Thu, 15 Dec 2022 20:00:15 +0800 Message-ID: <20221215120016.26611-4-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 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, T_SPF_TEMPERROR,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: X-Mailing-List: linux-kernel@vger.kernel.org X-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1752281427211847007?= X-GMAIL-MSGID: =?utf-8?q?1752281427211847007?= The "mediatek,mt8192-scp_adsp" binding requires a power domain to be specified. Fixes: 4a803990aeb1 ("dt-bindings: ARM: Mediatek: Add new document bindings of MT8192 clock") Signed-off-by: Allen-KH Cheng --- .../arm/mediatek/mediatek,mt8192-clock.yaml | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) diff --git a/Documentation/devicetree/bindings/arm/mediatek/mediatek,mt8192-clock.yaml b/Documentation/devicetree/bindings/arm/mediatek/mediatek,mt8192-clock.yaml index b57cc2e69efb..cbedef114103 100644 --- a/Documentation/devicetree/bindings/arm/mediatek/mediatek,mt8192-clock.yaml +++ b/Documentation/devicetree/bindings/arm/mediatek/mediatek,mt8192-clock.yaml @@ -40,6 +40,9 @@ properties: reg: maxItems: 1 + power-domains: + maxItems: 1 + '#clock-cells': const: 1 @@ -49,11 +52,25 @@ required: additionalProperties: false +allOf: + - if: + properties: + compatible: + contains: + enum: + - mediatek,mt8192-scp_adsp + then: + required: + - power-domains + examples: - | + #include + scp_adsp: clock-controller@10720000 { compatible = "mediatek,mt8192-scp_adsp"; reg = <0x10720000 0x1000>; + power-domains = <&spm MT8192_POWER_DOMAIN_ADSP>; #clock-cells = <1>; }; From patchwork Thu Dec 15 12:00:16 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Allen-KH Cheng X-Patchwork-Id: 33587 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:adf:e747:0:0:0:0:0 with SMTP id c7csp308669wrn; Thu, 15 Dec 2022 04:04:58 -0800 (PST) X-Google-Smtp-Source: AA0mqf49TbL6SiQxlNkSgtJ8bnuRtEhsM+QxzmFE9GhcUTKz6ynsG7Mpuf4qeotTsrkWWnY2pome X-Received: by 2002:a17:906:b013:b0:7ba:fcc1:f284 with SMTP id v19-20020a170906b01300b007bafcc1f284mr24975290ejy.73.1671105898617; Thu, 15 Dec 2022 04:04:58 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1671105898; cv=none; d=google.com; s=arc-20160816; b=P73VLhR6cCcMPu8PaNuu0NRk/ip+1DgJShyMquEYWI6/BPyW2yx/i5VYqsX8DYYTCg BOLvwLR32TGtsn+zSbmkojhiUgk20ebQ/1+NRbo59K7fU86SuZnkwrTAqM3uis64wSuy eT7xeozoFQVIZFYykLqqkB2hZ5r6d/2QsAOf2qtZEzef+b1/R0CPoO7D0UXmT591LpZU I3ZAcysVhC3PoGVl6sDAs++kaIzWHqk0odsdrczKXQwcs1pHGUMVc6mB3En7RkLymRhN TlqVqcNlZ6TjZUT80FiHE1aSJfsslWZgkmABBKAtf4w/PK+wbl5C7OpF0Tg5M20CLHJZ 6Wmw== 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=vpKkQlPxOc+D9lcuAshw5hI22iECWZhtKc+FVAsWhts=; b=nxd1WaTHuJLrWJZSkKdI02NADix8XONTSIfLELwekr3AEjvKIS4D1HN6R8gtMyL0of Qm/94LjQptbCh8UxF5Wh7vtfFmPYzfFq3vGA44lFAWQSSxB0b+kinVLr/lNNhmoqmjEV oYR7/zYZWvyDsCj/N2+GNJo/lZ3xqocl2DBcJgbOU0jiZx6/nlk5qLjiukz3N5V/G8bY lKtemXL8QtutGgT3zsos2aVGZv13OHFwNYqDa5b3NRc0NN1VvMWTWyF/WVn1fPR6O5n2 QWq0qSc5UJ8oD9DwWF/Kq5SslCleQ6eHa1xhU4puSpalPEFlUeUrhqE8NbRNjxf8UzDz KMWw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@mediatek.com header.s=dk header.b=VT3JbfMx; 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 di18-20020a170906731200b007c11f2411e1si7721234ejc.815.2022.12.15.04.04.32; Thu, 15 Dec 2022 04:04:58 -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=VT3JbfMx; 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 S230012AbiLOMAo (ORCPT + 99 others); Thu, 15 Dec 2022 07:00:44 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:59776 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229911AbiLOMAg (ORCPT ); Thu, 15 Dec 2022 07:00:36 -0500 Received: from mailgw02.mediatek.com (unknown [210.61.82.184]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 85E202A971; Thu, 15 Dec 2022 04:00:30 -0800 (PST) X-UUID: b29e245b14ed4bf79f1c289646d8140c-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=vpKkQlPxOc+D9lcuAshw5hI22iECWZhtKc+FVAsWhts=; b=VT3JbfMxK3b75yAzLqHOgtpQsUB8hQEuXCnwQrrDjAUVq823jbW6tANMSNsdE5Laq0b2Ym2gVR8f4HbIZmEzg1gbVxiEBD9YW8XdPkse3NU9UIGcHJs3BxWzoNsfXvkViAOjvoKuvIiu7Nna0MuuIFOg5pMGhvaGpxg8iUJvIPM=; X-CID-P-RULE: Release_Ham X-CID-O-INFO: VERSION:1.1.14,REQID:62aa2467-c162-43e7-9cf8-0e1f198a5f57,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.14,REQID:62aa2467-c162-43e7-9cf8-0e1f198a5f57,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:dcaaed0,CLOUDID:2cc5b0b4-d2e2-434d-b6d3-aeae88dfcc78,B ulkID:2212152000249XNCI60I,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: b29e245b14ed4bf79f1c289646d8140c-20221215 Received: from mtkmbs10n1.mediatek.inc [(172.21.101.34)] by mailgw02.mediatek.com (envelope-from ) (Generic MTA with TLSv1.2 ECDHE-RSA-AES256-GCM-SHA384 256/256) with ESMTP id 251356229; Thu, 15 Dec 2022 20:00:21 +0800 Received: from mtkmbs13n2.mediatek.inc (172.21.101.108) by mtkmbs13n2.mediatek.inc (172.21.101.108) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.2.792.15; Thu, 15 Dec 2022 20:00:21 +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:21 +0800 From: Allen-KH Cheng To: Rob Herring , Krzysztof Kozlowski , Matthias Brugger , Chun-Jie Chen , Stephen Boyd , Ikjoon Jang CC: , , , , , , Chen-Yu Tsai , Allen-KH Cheng Subject: [PATCH 4/4] arm64: dts: mediatek: Add the missing ADSP power domains controller for MT8192 Date: Thu, 15 Dec 2022 20:00:16 +0800 Message-ID: <20221215120016.26611-5-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 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: X-Mailing-List: linux-kernel@vger.kernel.org X-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1752281538757656241?= X-GMAIL-MSGID: =?utf-8?q?1752281538757656241?= Add the missing ADSP power domains controller for mt8192-scp_adsp clock controllers. Fixes: 5d2b897bc6f5 ("arm64: dts: mediatek: Add mt8192 clock controllers") Signed-off-by: Allen-KH Cheng --- arch/arm64/boot/dts/mediatek/mt8192.dtsi | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/arch/arm64/boot/dts/mediatek/mt8192.dtsi b/arch/arm64/boot/dts/mediatek/mt8192.dtsi index 6b20376191a7..6ee60db3ac23 100644 --- a/arch/arm64/boot/dts/mediatek/mt8192.dtsi +++ b/arch/arm64/boot/dts/mediatek/mt8192.dtsi @@ -511,6 +511,14 @@ }; }; }; + + power-domain@MT8192_POWER_DOMAIN_ADSP { + reg = ; + clocks = <&topckgen CLK_TOP_ADSP_SEL>; + clock-names = "adsp"; + mediatek,infracfg = <&infracfg>; + #power-domain-cells = <0>; + }; }; }; @@ -574,6 +582,7 @@ scp_adsp: clock-controller@10720000 { compatible = "mediatek,mt8192-scp_adsp"; reg = <0 0x10720000 0 0x1000>; + power-domains = <&spm MT8192_POWER_DOMAIN_ADSP>; #clock-cells = <1>; };