From patchwork Thu Apr 26 10:45:21 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Sergei Shtylyov X-Patchwork-Id: 10365475 X-Patchwork-Delegate: horms@verge.net.au Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork.web.codeaurora.org (Postfix) with ESMTP id 7F296602DC for ; Thu, 26 Apr 2018 10:45:27 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 6E0152909D for ; Thu, 26 Apr 2018 10:45:27 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 62820290A8; Thu, 26 Apr 2018 10:45:27 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-7.9 required=2.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID, MAILING_LIST_MULTI, RCVD_IN_DNSWL_HI autolearn=ham version=3.3.1 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id B40EB2909D for ; Thu, 26 Apr 2018 10:45:26 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1754968AbeDZKp0 (ORCPT ); Thu, 26 Apr 2018 06:45:26 -0400 Received: from mail-lf0-f68.google.com ([209.85.215.68]:36043 "EHLO mail-lf0-f68.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1754743AbeDZKpZ (ORCPT ); Thu, 26 Apr 2018 06:45:25 -0400 Received: by mail-lf0-f68.google.com with SMTP id d20-v6so30008912lfe.3 for ; Thu, 26 Apr 2018 03:45:24 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=cogentembedded-com.20150623.gappssmtp.com; s=20150623; h=subject:from:to:cc:references:organization:message-id:date :user-agent:mime-version:in-reply-to:content-language :content-transfer-encoding; bh=pqrd53pq//0SskvST8nfO/rP/pSt8xNvdT2lqN9aTjQ=; b=QCNcZOcGKKY1FYO0plS1qYOFno9G+iUaY4Kep1pnNOYxz2mEVyoNUgEo3MOWA9TIeH JDfk8LaIPFOkfIHYJ3kBrjzBfnWY5BcgkiWWWwKlxTj9kC+jHOZwa/5sUqUGj5CiyZnT pROrCPS/w5ID7ILxQ5RpmIhEeZIhUkXPZolsQaUxZwgPneJ9MWy9ZY1dIsWN+71V3TRj 8ZRcPMEX4q5eCgYPj8FJJjJ9vwoaRQfi7J4r9o6ldxJ+7VkRev9dl+O8XJCtxAqMVb21 d0HDDB9Ba/0xospcz4Xd4et8pLGs6j4xs4RTSz8Dp5juOM67dGwi89xZ+/JQ1+SHJZm/ Jtig== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:subject:from:to:cc:references:organization :message-id:date:user-agent:mime-version:in-reply-to :content-language:content-transfer-encoding; bh=pqrd53pq//0SskvST8nfO/rP/pSt8xNvdT2lqN9aTjQ=; b=NL/OZvJw9Bi4NiorvaPabLp4WxdPZiL1ilg9wFh53lEvrBrfuOSL+cmPi8b+IbKRqS E/frxk72QiIj7GViAFJC4IoRhIt9VM+WbcYpodr9iEAP9+8XdpftQtBRvID+l92PYlAj 3r6D+PUoLvTk/AIWT1cv/FLRp3ALAOlv4VwrC+lgd3xJdKTy+/a1kqxgyfYVSNuseoBJ 1vb5rTaIqnz/KJnhYWLe/xGpZ5lsxy+j4+QTvO3gXUUxq4Olj8gZ+nxf5xTDF/SEZM8/ u2Mlmfd4YJ67snm4ChJX0M1IDv9QJmGYCxEuBIp88HV+VYwP9FqaQsK1omJJjh3efWO8 I6Uw== X-Gm-Message-State: ALQs6tCfQpF66klt/9Y1DxXEQlct/TP3hwSirtSlCSdciBFqPDj4X9aJ 3rt9lasOBjnts7Oxv47K2jm0Wg== X-Google-Smtp-Source: AIpwx4/nni+0+mXv+HErUnH3B2rxRHXCHqn6ricq/OKCZ/U0Uaf97isCc3uSiAIYadSBkkCEUjNyKQ== X-Received: by 10.46.128.16 with SMTP id j16mr23296605ljg.26.1524739523544; Thu, 26 Apr 2018 03:45:23 -0700 (PDT) Received: from wasted.cogentembedded.com ([31.173.83.225]) by smtp.gmail.com with ESMTPSA id m20-v6sm4300335lfc.23.2018.04.26.03.45.22 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Thu, 26 Apr 2018 03:45:22 -0700 (PDT) Subject: [PATCH 2/2] arm64: dts: renesas: r8a77980: use SYSC power domain macros From: Sergei Shtylyov To: Simon Horman , Rob Herring , linux-renesas-soc@vger.kernel.org, devicetree@vger.kernel.org Cc: Catalin Marinas , Will Deacon , Magnus Damm , Mark Rutland , "linux-arm-kernel@lists.infradead.org" References: Organization: Cogent Embedded Message-ID: Date: Thu, 26 Apr 2018 13:45:21 +0300 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Thunderbird/52.2.1 MIME-Version: 1.0 In-Reply-To: Content-Language: en-MW Sender: linux-renesas-soc-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-renesas-soc@vger.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP Now that the commit 7755b40d07a8 ("dt-bindings: power: add R8A77980 SYSC power domain definitions") has hit Linus' tree, we can replace the bare numbers (we had to use to avoid a cross tree dependency) with these macro definitions... Signed-off-by: Sergei Shtylyov --- arch/arm64/boot/dts/renesas/r8a77980.dtsi | 31 +++++++++++++++--------------- 1 file changed, 16 insertions(+), 15 deletions(-) Index: renesas/arch/arm64/boot/dts/renesas/r8a77980.dtsi =================================================================== --- renesas.orig/arch/arm64/boot/dts/renesas/r8a77980.dtsi +++ renesas/arch/arm64/boot/dts/renesas/r8a77980.dtsi @@ -9,6 +9,7 @@ #include #include #include +#include / { compatible = "renesas,r8a77980"; @@ -24,14 +25,14 @@ compatible = "arm,cortex-a53", "arm,armv8"; reg = <0>; clocks = <&cpg CPG_CORE R8A77980_CLK_Z2>; - power-domains = <&sysc 5>; + power-domains = <&sysc R8A77980_PD_CA53_CPU0>; next-level-cache = <&L2_CA53>; enable-method = "psci"; }; L2_CA53: cache-controller { compatible = "cache"; - power-domains = <&sysc 21>; + power-domains = <&sysc R8A77980_PD_CA53_SCU>; cache-unified; cache-level = <2>; }; @@ -110,7 +111,7 @@ dmas = <&dmac1 0x31>, <&dmac1 0x30>, <&dmac2 0x31>, <&dmac2 0x30>; dma-names = "tx", "rx", "tx", "rx"; - power-domains = <&sysc 32>; + power-domains = <&sysc R8A77980_PD_ALWAYS_ON>; resets = <&cpg 520>; status = "disabled"; }; @@ -128,7 +129,7 @@ dmas = <&dmac1 0x33>, <&dmac1 0x32>, <&dmac2 0x33>, <&dmac2 0x32>; dma-names = "tx", "rx", "tx", "rx"; - power-domains = <&sysc 32>; + power-domains = <&sysc R8A77980_PD_ALWAYS_ON>; resets = <&cpg 519>; status = "disabled"; }; @@ -146,7 +147,7 @@ dmas = <&dmac1 0x35>, <&dmac1 0x34>, <&dmac2 0x35>, <&dmac2 0x34>; dma-names = "tx", "rx", "tx", "rx"; - power-domains = <&sysc 32>; + power-domains = <&sysc R8A77980_PD_ALWAYS_ON>; resets = <&cpg 518>; status = "disabled"; }; @@ -164,7 +165,7 @@ dmas = <&dmac1 0x37>, <&dmac1 0x36>, <&dmac2 0x37>, <&dmac2 0x36>; dma-names = "tx", "rx", "tx", "rx"; - power-domains = <&sysc 32>; + power-domains = <&sysc R8A77980_PD_ALWAYS_ON>; resets = <&cpg 517>; status = "disabled"; }; @@ -206,7 +207,7 @@ "ch20", "ch21", "ch22", "ch23", "ch24"; clocks = <&cpg CPG_MOD 812>; - power-domains = <&sysc 32>; + power-domains = <&sysc R8A77980_PD_ALWAYS_ON>; resets = <&cpg 812>; phy-mode = "rgmii"; #address-cells = <1>; @@ -226,7 +227,7 @@ dmas = <&dmac1 0x51>, <&dmac1 0x50>, <&dmac2 0x51>, <&dmac2 0x50>; dma-names = "tx", "rx", "tx", "rx"; - power-domains = <&sysc 32>; + power-domains = <&sysc R8A77980_PD_ALWAYS_ON>; resets = <&cpg 207>; status = "disabled"; }; @@ -244,7 +245,7 @@ dmas = <&dmac1 0x53>, <&dmac1 0x52>, <&dmac2 0x53>, <&dmac2 0x52>; dma-names = "tx", "rx", "tx", "rx"; - power-domains = <&sysc 32>; + power-domains = <&sysc R8A77980_PD_ALWAYS_ON>; resets = <&cpg 206>; status = "disabled"; }; @@ -262,7 +263,7 @@ dmas = <&dmac1 0x57>, <&dmac1 0x56>, <&dmac2 0x57>, <&dmac2 0x56>; dma-names = "tx", "rx", "tx", "rx"; - power-domains = <&sysc 32>; + power-domains = <&sysc R8A77980_PD_ALWAYS_ON>; resets = <&cpg 204>; status = "disabled"; }; @@ -280,7 +281,7 @@ dmas = <&dmac1 0x59>, <&dmac1 0x58>, <&dmac2 0x59>, <&dmac2 0x58>; dma-names = "tx", "rx", "tx", "rx"; - power-domains = <&sysc 32>; + power-domains = <&sysc R8A77980_PD_ALWAYS_ON>; resets = <&cpg 203>; status = "disabled"; }; @@ -313,7 +314,7 @@ "ch12", "ch13", "ch14", "ch15"; clocks = <&cpg CPG_MOD 218>; clock-names = "fck"; - power-domains = <&sysc 32>; + power-domains = <&sysc R8A77980_PD_ALWAYS_ON>; resets = <&cpg 218>; #dma-cells = <1>; dma-channels = <16>; @@ -347,7 +348,7 @@ "ch12", "ch13", "ch14", "ch15"; clocks = <&cpg CPG_MOD 217>; clock-names = "fck"; - power-domains = <&sysc 32>; + power-domains = <&sysc R8A77980_PD_ALWAYS_ON>; resets = <&cpg 217>; #dma-cells = <1>; dma-channels = <16>; @@ -359,7 +360,7 @@ reg = <0 0xee140000 0 0x2000>; interrupts = ; clocks = <&cpg CPG_MOD 314>; - power-domains = <&sysc 32>; + power-domains = <&sysc R8A77980_PD_ALWAYS_ON>; resets = <&cpg 314>; max-frequency = <200000000>; status = "disabled"; @@ -378,7 +379,7 @@ IRQ_TYPE_LEVEL_HIGH)>; clocks = <&cpg CPG_MOD 408>; clock-names = "clk"; - power-domains = <&sysc 32>; + power-domains = <&sysc R8A77980_PD_ALWAYS_ON>; resets = <&cpg 408>; };