Received: by 2002:a05:6a10:9afc:0:0:0:0 with SMTP id t28csp3546564pxm; Mon, 28 Feb 2022 23:59:58 -0800 (PST) X-Google-Smtp-Source: ABdhPJwZaZrucJRpkWH64rpTV+lvE1/KsJAyQxHQADUd4L8hAoaPvx4gP9DQ2kEwwzwtjmsquJth X-Received: by 2002:a17:902:a404:b0:14b:1100:aebc with SMTP id p4-20020a170902a40400b0014b1100aebcmr23718108plq.133.1646121597983; Mon, 28 Feb 2022 23:59:57 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1646121597; cv=none; d=google.com; s=arc-20160816; b=wNqpZJ8eB46fzOa7J/hhIYccqD100lUFMe5B01f4y72qFzMUrlYw2BIH3n4E/yB8X8 0cuaxLC/plj1scLkuBv+PrYdifSy4a/Hp6wgzG5DwBQ0TVu9ckTBdtd/aTaJL/pRC0jV 5jhpnoxtjAbmMLRESFPg0vqh4jSjEt4DGjaxbv2wG6WzYBP/MYzf+r2rCJtlPzEK3Gvq EJ4AkG0z4+APBcleaqNKMdQA0uarj/WrlbPJuTKJbU7+YFRBGe9swosB6Zq+lCHuk3Z1 gND2RPiHzH73AlaFuqlfeXrchg7LRgpLaBvon/M44l6/683sjZfyz4mqEaUWYFBF/DtJ dphQ== 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=ncaBgOYHVHyX562hJ+dSZXG5SoGXqG/UuIq2nR2m4Ds=; b=zD2bloXJIJzsChUPczCgkVTfW+qWnN6wAY2KL/SKiz2q1PeofLXQIJhRKjv0MVYYhR PXycPp6m/lhka6t7XYBSStbDv5+hTznFbugcWFG4TKbxmk+hBP5KxzMAzlV8grSGRbhe vjT7/niq7IUYPWtPP9Oz84v5mqHn3ieBw2wa9sAyY5hM1HHHKqBHn48bk4xA+Twv4Kro ZZMisADsnTHnve3cObtCvNYM0Z5I/I3tJ+AQJUwf8sOrSHu5E9kGy5rMrDZxTV24qm7V tNnmsFUTTD/ojfiMaUIVQCynPaYLU3QiqIpZxvt5QCpcXqHcvDobijwxwsUgBk+ydehR H1WA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20210112 header.b=posku0yA; 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 hi21-20020a17090b30d500b001bc7dee85e4si1580184pjb.96.2022.02.28.23.59.43; Mon, 28 Feb 2022 23:59:57 -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=posku0yA; 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 S233110AbiCAHvL (ORCPT + 99 others); Tue, 1 Mar 2022 02:51:11 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:55282 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232923AbiCAHvI (ORCPT ); Tue, 1 Mar 2022 02:51:08 -0500 Received: from mail-wr1-x42b.google.com (mail-wr1-x42b.google.com [IPv6:2a00:1450:4864:20::42b]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 072F165839; Mon, 28 Feb 2022 23:50:28 -0800 (PST) Received: by mail-wr1-x42b.google.com with SMTP id d3so19053914wrf.1; Mon, 28 Feb 2022 23:50:27 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=message-id:date:mime-version:user-agent:subject:content-language:to :cc:references:from:in-reply-to:content-transfer-encoding; bh=ncaBgOYHVHyX562hJ+dSZXG5SoGXqG/UuIq2nR2m4Ds=; b=posku0yAYAZ8Q7U6hzwy/v5OpkmWndRqp33Jjkoaw/Oq7onxRCi7jD1qn1P329zn4u 3nBjiUhHmSpgrmqMsjAXqkzmvmLIEiEigZRHFAgwztMqKPK0cLQ3TQQh/2PZIcRAGsP2 gcqqS004c9CIK614nvAnivYjXiNHr7ZoWqnxoE6W8y+XBQmmVUnzLnC906QPhIAy29Ju VRw5yWLIBu5BUI+6TIWDRJNWCgGlctbnPhFx1WwEVjs521ccmOYip3IE0QOteKOBIkYF bpcmMotTmLeBTV7MSVVGL2GiLO9/SY/1xGLUzg3xPPrFqEYXUtAO1qMqyMe0z5NybcTo h7tw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:message-id:date:mime-version:user-agent:subject :content-language:to:cc:references:from:in-reply-to :content-transfer-encoding; bh=ncaBgOYHVHyX562hJ+dSZXG5SoGXqG/UuIq2nR2m4Ds=; b=txvzDatlET0kbH1abB1mDhoaWubtM5j53CmfqeI0SMV5y4CwKQMa3QGrXcdxPPUL85 404q1A+rdQby4YGMZRgQ4Rltz/Hr1GhTCqyVxQlp1H7DiA+5hcv0bX8Mh9dzUEnoTvBo aekM9LYQlzWq4MIVzH5l86gZxnKim5j0zlsR6IhAA8fzKeKJlovM/7ENoWDDVEr1lDDW RQqa7COtkWkS9RlAdtKPIvdkrQwZIaP8boqfgq03zvB+mN5jYZW+osZpSTC9hTICSt52 bMSE2nVfG97I/IDFibrbHUZ5LF+z1+6kvlmg2E6W4HSCVL3+t9PqQfGjWOWZsI6D1jbS qHGQ== X-Gm-Message-State: AOAM5328j6XV7Lon1NkYbuOo0D0UtYz7Nxcqs9Wrt3lmxqKzoEWKDeqK pNVanYLFbpQ/KBIwY7zq7HI= X-Received: by 2002:adf:90e2:0:b0:1e3:f5a:553c with SMTP id i89-20020adf90e2000000b001e30f5a553cmr18027194wri.476.1646121026453; Mon, 28 Feb 2022 23:50:26 -0800 (PST) Received: from [192.168.2.177] ([207.188.167.132]) by smtp.gmail.com with ESMTPSA id r1-20020a5d4941000000b001ed89dcacbbsm12622004wrs.23.2022.02.28.23.50.25 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Mon, 28 Feb 2022 23:50:25 -0800 (PST) Message-ID: <908437cd-1f9c-2ef2-eb70-94e409d252e0@gmail.com> Date: Tue, 1 Mar 2022 08:50:24 +0100 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:91.0) Gecko/20100101 Thunderbird/91.5.0 Subject: Re: [v5] arm64: dts: mediatek: Add mt8192 power domains controller Content-Language: en-US To: Chun-Jie Chen , Rob Herring , Nicolas Boichat Cc: devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, linux-mediatek@lists.infradead.org, srv_heupstream@mediatek.com, Project_Global_Chrome_Upstream_Group@mediatek.com, Weiyi Lu References: <20210825010426.30303-1-chun-jie.chen@mediatek.com> From: Matthias Brugger In-Reply-To: <20210825010426.30303-1-chun-jie.chen@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,T_SCC_BODY_TEXT_LINE 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 25/08/2021 03:04, Chun-Jie Chen wrote: > Add power domains controller node for SoC mt8192 > > Signed-off-by: Weiyi Lu > Signed-off-by: Chun-Jie Chen Applied thanks! > --- > This patch is base on v5.14-rc1, > series "Mediatek MT8192 clock support"[1] and [2]. > No changes compare v4 > > [1] https://patchwork.kernel.org/project/linux-mediatek/list/?series=521127 > [2] https://patchwork.kernel.org/project/linux-mediatek/patch/20210727023205.20319-2-chun-jie.chen@mediatek.com/ > --- > arch/arm64/boot/dts/mediatek/mt8192.dtsi | 201 +++++++++++++++++++++++ > 1 file changed, 201 insertions(+) > > diff --git a/arch/arm64/boot/dts/mediatek/mt8192.dtsi b/arch/arm64/boot/dts/mediatek/mt8192.dtsi > index c7c7d4e017ae..a0084a7a5bcd 100644 > --- a/arch/arm64/boot/dts/mediatek/mt8192.dtsi > +++ b/arch/arm64/boot/dts/mediatek/mt8192.dtsi > @@ -9,6 +9,7 @@ > #include > #include > #include > +#include > > / { > compatible = "mediatek,mt8192"; > @@ -301,6 +302,206 @@ > #interrupt-cells = <2>; > }; > > + scpsys: syscon@10006000 { > + compatible = "syscon", "simple-mfd"; > + reg = <0 0x10006000 0 0x1000>; > + #power-domain-cells = <1>; > + > + /* System Power Manager */ > + spm: power-controller { > + compatible = "mediatek,mt8192-power-controller"; > + #address-cells = <1>; > + #size-cells = <0>; > + #power-domain-cells = <1>; > + > + /* power domain of the SoC */ > + power-domain@MT8192_POWER_DOMAIN_AUDIO { > + reg = ; > + clocks = <&topckgen CLK_TOP_AUD_INTBUS_SEL>, > + <&infracfg CLK_INFRA_AUDIO_26M_B>, > + <&infracfg CLK_INFRA_AUDIO>; > + clock-names = "audio", "audio1", "audio2"; > + mediatek,infracfg = <&infracfg>; > + #power-domain-cells = <0>; > + }; > + > + power-domain@MT8192_POWER_DOMAIN_CONN { > + reg = ; > + clocks = <&infracfg CLK_INFRA_PMIC_CONN>; > + clock-names = "conn"; > + mediatek,infracfg = <&infracfg>; > + #power-domain-cells = <0>; > + }; > + > + power-domain@MT8192_POWER_DOMAIN_MFG0 { > + reg = ; > + clocks = <&topckgen CLK_TOP_MFG_PLL_SEL>; > + clock-names = "mfg"; > + #address-cells = <1>; > + #size-cells = <0>; > + #power-domain-cells = <1>; > + > + power-domain@MT8192_POWER_DOMAIN_MFG1 { > + reg = ; > + mediatek,infracfg = <&infracfg>; > + #address-cells = <1>; > + #size-cells = <0>; > + #power-domain-cells = <1>; > + > + power-domain@MT8192_POWER_DOMAIN_MFG2 { > + reg = ; > + #power-domain-cells = <0>; > + }; > + > + power-domain@MT8192_POWER_DOMAIN_MFG3 { > + reg = ; > + #power-domain-cells = <0>; > + }; > + > + power-domain@MT8192_POWER_DOMAIN_MFG4 { > + reg = ; > + #power-domain-cells = <0>; > + }; > + > + power-domain@MT8192_POWER_DOMAIN_MFG5 { > + reg = ; > + #power-domain-cells = <0>; > + }; > + > + power-domain@MT8192_POWER_DOMAIN_MFG6 { > + reg = ; > + #power-domain-cells = <0>; > + }; > + }; > + }; > + > + power-domain@MT8192_POWER_DOMAIN_DISP { > + reg = ; > + clocks = <&topckgen CLK_TOP_DISP_SEL>, > + <&mmsys CLK_MM_SMI_INFRA>, > + <&mmsys CLK_MM_SMI_COMMON>, > + <&mmsys CLK_MM_SMI_GALS>, > + <&mmsys CLK_MM_SMI_IOMMU>; > + clock-names = "disp", "disp-0", "disp-1", "disp-2", > + "disp-3"; > + mediatek,infracfg = <&infracfg>; > + #address-cells = <1>; > + #size-cells = <0>; > + #power-domain-cells = <1>; > + > + power-domain@MT8192_POWER_DOMAIN_IPE { > + reg = ; > + clocks = <&topckgen CLK_TOP_IPE_SEL>, > + <&ipesys CLK_IPE_LARB19>, > + <&ipesys CLK_IPE_LARB20>, > + <&ipesys CLK_IPE_SMI_SUBCOM>, > + <&ipesys CLK_IPE_GALS>; > + clock-names = "ipe", "ipe-0", "ipe-1", "ipe-2", > + "ipe-3"; > + mediatek,infracfg = <&infracfg>; > + #power-domain-cells = <0>; > + }; > + > + power-domain@MT8192_POWER_DOMAIN_ISP { > + reg = ; > + clocks = <&topckgen CLK_TOP_IMG1_SEL>, > + <&imgsys CLK_IMG_LARB9>, > + <&imgsys CLK_IMG_GALS>; > + clock-names = "isp", "isp-0", "isp-1"; > + mediatek,infracfg = <&infracfg>; > + #power-domain-cells = <0>; > + }; > + > + power-domain@MT8192_POWER_DOMAIN_ISP2 { > + reg = ; > + clocks = <&topckgen CLK_TOP_IMG2_SEL>, > + <&imgsys2 CLK_IMG2_LARB11>, > + <&imgsys2 CLK_IMG2_GALS>; > + clock-names = "isp2", "isp2-0", "isp2-1"; > + mediatek,infracfg = <&infracfg>; > + #power-domain-cells = <0>; > + }; > + > + power-domain@MT8192_POWER_DOMAIN_MDP { > + reg = ; > + clocks = <&topckgen CLK_TOP_MDP_SEL>, > + <&mdpsys CLK_MDP_SMI0>; > + clock-names = "mdp", "mdp-0"; > + mediatek,infracfg = <&infracfg>; > + #power-domain-cells = <0>; > + }; > + > + power-domain@MT8192_POWER_DOMAIN_VENC { > + reg = ; > + clocks = <&topckgen CLK_TOP_VENC_SEL>, > + <&vencsys CLK_VENC_SET1_VENC>; > + clock-names = "venc", "venc-0"; > + mediatek,infracfg = <&infracfg>; > + #power-domain-cells = <0>; > + }; > + > + power-domain@MT8192_POWER_DOMAIN_VDEC { > + reg = ; > + clocks = <&topckgen CLK_TOP_VDEC_SEL>, > + <&vdecsys_soc CLK_VDEC_SOC_VDEC>, > + <&vdecsys_soc CLK_VDEC_SOC_LAT>, > + <&vdecsys_soc CLK_VDEC_SOC_LARB1>; > + clock-names = "vdec", "vdec-0", "vdec-1", "vdec-2"; > + mediatek,infracfg = <&infracfg>; > + #address-cells = <1>; > + #size-cells = <0>; > + #power-domain-cells = <1>; > + > + power-domain@MT8192_POWER_DOMAIN_VDEC2 { > + reg = ; > + clocks = <&vdecsys CLK_VDEC_VDEC>, > + <&vdecsys CLK_VDEC_LAT>, > + <&vdecsys CLK_VDEC_LARB1>; > + clock-names = "vdec2-0", "vdec2-1", > + "vdec2-2"; > + #power-domain-cells = <0>; > + }; > + }; > + > + power-domain@MT8192_POWER_DOMAIN_CAM { > + reg = ; > + clocks = <&topckgen CLK_TOP_CAM_SEL>, > + <&camsys CLK_CAM_LARB13>, > + <&camsys CLK_CAM_LARB14>, > + <&camsys CLK_CAM_CCU_GALS>, > + <&camsys CLK_CAM_CAM2MM_GALS>; > + clock-names = "cam", "cam-0", "cam-1", "cam-2", > + "cam-3"; > + mediatek,infracfg = <&infracfg>; > + #address-cells = <1>; > + #size-cells = <0>; > + #power-domain-cells = <1>; > + > + power-domain@MT8192_POWER_DOMAIN_CAM_RAWA { > + reg = ; > + clocks = <&camsys_rawa CLK_CAM_RAWA_LARBX>; > + clock-names = "cam_rawa-0"; > + #power-domain-cells = <0>; > + }; > + > + power-domain@MT8192_POWER_DOMAIN_CAM_RAWB { > + reg = ; > + clocks = <&camsys_rawb CLK_CAM_RAWB_LARBX>; > + clock-names = "cam_rawb-0"; > + #power-domain-cells = <0>; > + }; > + > + power-domain@MT8192_POWER_DOMAIN_CAM_RAWC { > + reg = ; > + clocks = <&camsys_rawc CLK_CAM_RAWC_LARBX>; > + clock-names = "cam_rawc-0"; > + #power-domain-cells = <0>; > + }; > + }; > + }; > + }; > + }; > + > apmixedsys: syscon@1000c000 { > compatible = "mediatek,mt8192-apmixedsys", "syscon"; > reg = <0 0x1000c000 0 0x1000>;