Received: by 2002:a05:6a10:9848:0:0:0:0 with SMTP id x8csp126059pxf; Tue, 6 Apr 2021 17:04:09 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwnjTs/5e8+5Q0zjFDKsWL//3gD9NlxscKsDX23+3TkmVKvelbIHrcvQZPIq4AMSHYxC+k2 X-Received: by 2002:aa7:d2cc:: with SMTP id k12mr721253edr.374.1617753849164; Tue, 06 Apr 2021 17:04:09 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1617753849; cv=none; d=google.com; s=arc-20160816; b=ji0y27wb/wxukzSZTJPoIvLkjO7wEP72gC98deGRGSnhGM0BhYQl0CGptJhFS9/CJ2 CmUdfBKhlGphvRCPk/xu205onzvAho6sWsbRDsi0f+x6vZHjfs31n4xoYMmIkIqP1BUJ v6oE+zlEt6aL9ESVKc1XhCz+s1qEJe+5rLdKGjDZC6Ovy5vT5HfmNWvr+n2TydrAfK7J 4iBB1//mDj7HgUcugJ9ogZYkwOxnyJGoxAU1YNfWQX9GuMwuhHtT/nrJ9hOfSv26f9Ru S1OtXAGIlLoxLeO9nE1TiM+5pRgwT+O92KuvqOLHfwHxwa29yCen7RrWnZWYHNvfB5Bq DU3w== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:content-language :in-reply-to:mime-version:user-agent:date:message-id:from:references :cc:to:subject:dkim-signature; bh=uAfHURTLSwkVlAhOdumUV/peFHBBPWxoa4MMAdiyslg=; b=Jb1h7flHZ4M7l7lTwKKC9adoem6mK/vuKL3Y6M9yijs2Sl+SPM8nBP4JHZV7dROTqR pvOuu4J1V2JVfOXKHNnmCyVPsN9uUVYE+/S0JbhidefUzSLazfePp7qv5aKxPe7KxK20 QhS2zWLuoTW8QJV0+Dve1pU9PFEgROxv4W14vRDw+/Aice5DxVOedoL4olwz8tpnv3LD 3No0yzD5OmvK/juwyDrbJd6hviocpTCA2mlzqh5fjlEOkd5KX1y4P5MUjUR98s26Cyci /zgR5VoPPza4d33ko+CazgZkClqvxNUE/Un+qTUhQfgzIo6CE3e8rasOEzgjP7+zZDi7 arZw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=WaZTnSHw; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 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 vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id v3si17760862edr.497.2021.04.06.17.03.23; Tue, 06 Apr 2021 17:04:09 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=WaZTnSHw; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 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 S245306AbhDFLAP (ORCPT + 99 others); Tue, 6 Apr 2021 07:00:15 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:53402 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S245299AbhDFLAL (ORCPT ); Tue, 6 Apr 2021 07:00:11 -0400 Received: from mail-pl1-x62c.google.com (mail-pl1-x62c.google.com [IPv6:2607:f8b0:4864:20::62c]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id C3F9BC06174A; Tue, 6 Apr 2021 04:00:02 -0700 (PDT) Received: by mail-pl1-x62c.google.com with SMTP id g10so7269440plt.8; Tue, 06 Apr 2021 04:00:02 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=subject:to:cc:references:from:message-id:date:user-agent :mime-version:in-reply-to:content-language:content-transfer-encoding; bh=uAfHURTLSwkVlAhOdumUV/peFHBBPWxoa4MMAdiyslg=; b=WaZTnSHwiOhUV40kXOg1zlC6O1HgGEvjnzGK6Mk3vdlneD7+ZwALwOWfVjoBZ+J/cl sfAXoEcYofIJsEQAUqK66xm0qTSpBd9tjJabOhJo21NwaI8SfPvKaFDFtYblLk9r6Fmk GzohY/tcvY2K6/f7/GOeKkSn/f20zYhM10/NUwO92bPhBlNDZbCsExt8HTHip/mx3KAZ n6OM30M6mFH72tUcXXLHBSyF2w9jFvj3PnWr7P6AksR5tEyfErtToQWqUQGbzb81MUJw mo/kSXVtdNDzHHEc/XkGkrTnOQS5dOYpDfvksOpv5vFfjcJDJ+jw0oDKpLT9W2qxaUt/ QtBQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:subject:to:cc:references:from:message-id:date :user-agent:mime-version:in-reply-to:content-language :content-transfer-encoding; bh=uAfHURTLSwkVlAhOdumUV/peFHBBPWxoa4MMAdiyslg=; b=X8ZeLDAY5N93owfeK0xqu6HdBggUYnuwlchAuLVQpD6TqHIoJ0qloK1qbJE7YJtbu7 YsOWYjwfXX3Ze8s4AziKSnJ6L/LGEgXZCYK5KeKvoce9b810+7XczcIDQGlOKvcVvvg/ /HzD/Qn5QqEmzmfNDHZiDqC6Ed5oCmRnle/WTuuATBpDViu0ERq7CFCHKLGGHdp8Z15D /N1D8GIBefXAc6MjZUUEHNqdZt4rJBRgqkktU8XjB5dl6OmFu/5XczqhKiTginLXfqUd TzqkrkR+PqxlBYWMUe1AD2MnxiO9+y7HTBr38HttVS5LAQo4jV6oXIOzzzZk2bkOLelr 5fSw== X-Gm-Message-State: AOAM531FNB7vNHnw9T6gx8P97IQJhlHb8BAZfj8gQwyCYPssJ+uV/nD3 Vvau2T2Z1Nn6t2CAi5ALmL6SCcu8DiZkmQ== X-Received: by 2002:a17:902:aa8a:b029:e6:64bd:e29d with SMTP id d10-20020a170902aa8ab02900e664bde29dmr28523527plr.24.1617706802339; Tue, 06 Apr 2021 04:00:02 -0700 (PDT) Received: from ziggy.stardust ([213.195.126.134]) by smtp.gmail.com with ESMTPSA id v8sm18128204pfm.128.2021.04.06.03.59.57 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Tue, 06 Apr 2021 04:00:01 -0700 (PDT) Subject: Re: [PATCH] arm64: dts: mediatek: mt8167: add power domains To: Fabien Parent , Rob Herring Cc: mkorpershoek@baylibre.com, devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-mediatek@lists.infradead.org, linux-kernel@vger.kernel.org References: <20210405172836.2038526-1-fparent@baylibre.com> From: Matthias Brugger Message-ID: <7e8532e1-710c-3239-4384-cbb10348c4b4@gmail.com> Date: Tue, 6 Apr 2021 12:59:55 +0200 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:78.0) Gecko/20100101 Thunderbird/78.8.1 MIME-Version: 1.0 In-Reply-To: <20210405172836.2038526-1-fparent@baylibre.com> Content-Type: text/plain; charset=utf-8 Content-Language: en-US Content-Transfer-Encoding: 7bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 05/04/2021 19:28, Fabien Parent wrote: > Add support for the MT8167 power domains. > > Signed-off-by: Fabien Parent Applied to v5.12-next/dts64-2 Thanks > --- > arch/arm64/boot/dts/mediatek/mt8167.dtsi | 68 ++++++++++++++++++++++++ > 1 file changed, 68 insertions(+) > > diff --git a/arch/arm64/boot/dts/mediatek/mt8167.dtsi b/arch/arm64/boot/dts/mediatek/mt8167.dtsi > index 1c5639ead622..156fbdad01fb 100644 > --- a/arch/arm64/boot/dts/mediatek/mt8167.dtsi > +++ b/arch/arm64/boot/dts/mediatek/mt8167.dtsi > @@ -7,6 +7,7 @@ > > #include > #include > +#include > > #include "mt8167-pinfunc.h" > > @@ -34,6 +35,73 @@ apmixedsys: apmixedsys@10018000 { > #clock-cells = <1>; > }; > > + scpsys: syscon@10006000 { > + compatible = "syscon", "simple-mfd"; > + reg = <0 0x10006000 0 0x1000>; > + #power-domain-cells = <1>; > + > + spm: power-controller { > + compatible = "mediatek,mt8167-power-controller"; > + #address-cells = <1>; > + #size-cells = <0>; > + #power-domain-cells = <1>; > + > + /* power domains of the SoC */ > + power-domain@MT8167_POWER_DOMAIN_MM { > + reg = ; > + clocks = <&topckgen CLK_TOP_SMI_MM>; > + clock-names = "mm"; > + #power-domain-cells = <0>; > + mediatek,infracfg = <&infracfg>; > + }; > + > + power-domain@MT8167_POWER_DOMAIN_VDEC { > + reg = ; > + clocks = <&topckgen CLK_TOP_SMI_MM>, > + <&topckgen CLK_TOP_RG_VDEC>; > + clock-names = "mm", "vdec"; > + #power-domain-cells = <0>; > + }; > + > + power-domain@MT8167_POWER_DOMAIN_ISP { > + reg = ; > + clocks = <&topckgen CLK_TOP_SMI_MM>; > + clock-names = "mm"; > + #power-domain-cells = <0>; > + }; > + > + power-domain@MT8167_POWER_DOMAIN_MFG_ASYNC { > + reg = ; > + clocks = <&topckgen CLK_TOP_RG_AXI_MFG>, > + <&topckgen CLK_TOP_RG_SLOW_MFG>; > + clock-names = "axi_mfg", "mfg"; > + #address-cells = <1>; > + #size-cells = <0>; > + #power-domain-cells = <1>; > + mediatek,infracfg = <&infracfg>; > + > + power-domain@MT8167_POWER_DOMAIN_MFG_2D { > + reg = ; > + #address-cells = <1>; > + #size-cells = <0>; > + #power-domain-cells = <1>; > + > + power-domain@MT8167_POWER_DOMAIN_MFG { > + reg = ; > + #power-domain-cells = <0>; > + mediatek,infracfg = <&infracfg>; > + }; > + }; > + }; > + > + power-domain@MT8167_POWER_DOMAIN_CONN { > + reg = ; > + #power-domain-cells = <0>; > + mediatek,infracfg = <&infracfg>; > + }; > + }; > + }; > + > imgsys: syscon@15000000 { > compatible = "mediatek,mt8167-imgsys", "syscon"; > reg = <0 0x15000000 0 0x1000>; >