From patchwork Mon Aug 24 16:12:14 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Geert Uytterhoeven X-Patchwork-Id: 7065451 X-Patchwork-Delegate: horms@verge.net.au Return-Path: X-Original-To: patchwork-linux-sh@patchwork.kernel.org Delivered-To: patchwork-parsemail@patchwork2.web.kernel.org Received: from mail.kernel.org (mail.kernel.org [198.145.29.136]) by patchwork2.web.kernel.org (Postfix) with ESMTP id 7AB73C05AD for ; Mon, 24 Aug 2015 16:12:21 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id 9A9C320785 for ; Mon, 24 Aug 2015 16:12:20 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id A2BB720786 for ; Mon, 24 Aug 2015 16:12:19 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753180AbbHXQMR (ORCPT ); Mon, 24 Aug 2015 12:12:17 -0400 Received: from andre.telenet-ops.be ([195.130.132.53]:50296 "EHLO andre.telenet-ops.be" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751273AbbHXQMQ (ORCPT ); Mon, 24 Aug 2015 12:12:16 -0400 Received: from ayla.of.borg ([84.193.93.87]) by andre.telenet-ops.be with bizsmtp id 8gCF1r0061t5w8s01gCFyz; Mon, 24 Aug 2015 18:12:15 +0200 Received: from ramsan.of.borg ([192.168.97.29] helo=ramsan) by ayla.of.borg with esmtp (Exim 4.82) (envelope-from ) id 1ZTuM2-0002PT-Mr; Mon, 24 Aug 2015 18:12:14 +0200 Received: from geert by ramsan with local (Exim 4.82) (envelope-from ) id 1ZTuM4-0002aY-UQ; Mon, 24 Aug 2015 18:12:16 +0200 From: Geert Uytterhoeven To: Kuninori Morimoto Cc: linux-sh@vger.kernel.org, Geert Uytterhoeven Subject: [PATCH 2/3] arm64: renesas: r8a7795 dtsi: Add CPG/MSTP Clock Domain Date: Mon, 24 Aug 2015 18:12:14 +0200 Message-Id: <1440432735-9906-3-git-send-email-geert+renesas@glider.be> X-Mailer: git-send-email 1.9.1 In-Reply-To: <1440432735-9906-1-git-send-email-geert+renesas@glider.be> References: <1440432735-9906-1-git-send-email-geert+renesas@glider.be> Sender: linux-sh-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-sh@vger.kernel.org X-Spam-Status: No, score=-8.3 required=5.0 tests=BAYES_00, RCVD_IN_DNSWL_HI, RP_MATCHES_RCVD, UNPARSEABLE_RELAY autolearn=ham version=3.3.1 X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on mail.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP Add an appropriate "#power-domain-cells" property to the cpg_clocks device node, to create the CPG/MSTP Clock Domain. Add "power-domains" properties to all device nodes for devices that are part of the CPG/MSTP Clock Domain and can be power-managed through an MSTP clock. This applies to most on-SoC devices, which have a one-to-one mapping from SoC device to DT device node. Signed-off-by: Geert Uytterhoeven --- v2: - Add "power-domains" properties to recently-added EHCI and OHCI device nodes. - Note that usb2_phy*-nodes are skipped! --- arch/arm64/boot/dts/renesas/r8a7795.dtsi | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/arch/arm64/boot/dts/renesas/r8a7795.dtsi b/arch/arm64/boot/dts/renesas/r8a7795.dtsi index 46e68c040cc925dd..1c71c8c8a42a9a24 100644 --- a/arch/arm64/boot/dts/renesas/r8a7795.dtsi +++ b/arch/arm64/boot/dts/renesas/r8a7795.dtsi @@ -91,6 +91,7 @@ clocks = <&extal_clk>; clock-output-names = "main", "pll0", "pll1","pll2", "pll3", "pll4"; + #power-domain-cells = <0>; mstp3_clks: mstp3_clks@e615013c { compatible = "renesas,r8a7795-mstp-clocks", @@ -129,6 +130,7 @@ interrupts = ; clocks = <&mstp3_clks R8A7795_CLK_SCIF2>; clock-names = "sci_ick"; + power-domains = <&cpg_clocks>; }; usb2_phy0: usb-phy@ee080200 { @@ -167,6 +169,7 @@ reg = <0 0xee080100 0 0xff>; interrupts = ; clocks = <&mstp7_clks R8A7795_CLK_EHCI0>; + power-domains = <&cpg_clocks>; phys = <&usb2_phy0>; phy-names = "usb"; status = "disabled"; @@ -177,6 +180,7 @@ reg = <0 0xee0a0100 0 0xff>; interrupts = ; clocks = <&mstp7_clks R8A7795_CLK_EHCI1>; + power-domains = <&cpg_clocks>; phys = <&usb2_phy1>; phy-names = "usb"; status = "disabled"; @@ -187,6 +191,7 @@ reg = <0 0xee0c0100 0 0xff>; interrupts = ; clocks = <&mstp7_clks R8A7795_CLK_EHCI2>; + power-domains = <&cpg_clocks>; phys = <&usb2_phy2>; phy-names = "usb"; status = "disabled"; @@ -197,6 +202,7 @@ reg = <0 0xee080000 0 0xff>; interrupts = ; clocks = <&mstp7_clks R8A7795_CLK_EHCI0>; + power-domains = <&cpg_clocks>; phys = <&usb2_phy0>; phy-names = "usb"; status = "disabled"; @@ -207,6 +213,7 @@ reg = <0 0xee0a0000 0 0xff>; interrupts = ; clocks = <&mstp7_clks R8A7795_CLK_EHCI1>; + power-domains = <&cpg_clocks>; phys = <&usb2_phy1>; phy-names = "usb"; status = "disabled"; @@ -217,6 +224,7 @@ reg = <0 0xee0c0000 0 0xff>; interrupts = ; clocks = <&mstp7_clks R8A7795_CLK_EHCI2>; + power-domains = <&cpg_clocks>; phys = <&usb2_phy2>; phy-names = "usb"; status = "disabled";