From patchwork Wed Jan 14 13:44:45 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Marek Szyprowski X-Patchwork-Id: 5631191 Return-Path: X-Original-To: patchwork-linux-samsung-soc@patchwork.kernel.org Delivered-To: patchwork-parsemail@patchwork1.web.kernel.org Received: from mail.kernel.org (mail.kernel.org [198.145.29.136]) by patchwork1.web.kernel.org (Postfix) with ESMTP id 748949F357 for ; Wed, 14 Jan 2015 13:45:13 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id 9A17420384 for ; Wed, 14 Jan 2015 13:45:12 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id 0F1512038D for ; Wed, 14 Jan 2015 13:45:07 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753121AbbANNpF (ORCPT ); Wed, 14 Jan 2015 08:45:05 -0500 Received: from mailout4.w1.samsung.com ([210.118.77.14]:16641 "EHLO mailout4.w1.samsung.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752978AbbANNpB (ORCPT ); Wed, 14 Jan 2015 08:45:01 -0500 Received: from eucpsbgm1.samsung.com (unknown [203.254.199.244]) by mailout4.w1.samsung.com (Oracle Communications Messaging Server 7u4-24.01(7.0.4.24.0) 64bit (built Nov 17 2011)) with ESMTP id <0NI600H8X6DOBS40@mailout4.w1.samsung.com>; Wed, 14 Jan 2015 13:49:00 +0000 (GMT) X-AuditID: cbfec7f4-b7f126d000001e9a-11-54b672db9091 Received: from eusync3.samsung.com ( [203.254.199.213]) by eucpsbgm1.samsung.com (EUCPMTA) with SMTP id F3.6B.07834.BD276B45; Wed, 14 Jan 2015 13:44:59 +0000 (GMT) Received: from amdc1339.digital.local ([106.116.147.30]) by eusync3.samsung.com (Oracle Communications Messaging Server 7u4-23.01 (7.0.4.23.0) 64bit (built Aug 10 2011)) with ESMTPA id <0NI6002M966RL740@eusync3.samsung.com>; Wed, 14 Jan 2015 13:44:59 +0000 (GMT) From: Marek Szyprowski To: linux-arm-kernel@lists.infradead.org, linux-samsung-soc@vger.kernel.org Cc: Marek Szyprowski , Kukjin Kim , Tobias Jakobi , Daniel Drake , Andrzej Hajda , Inki Dae , Tomasz Figa , kyungmin.park@samsung.com, Pankaj Dubey , Amit Daniel Kachhap , Geert Uytterhoeven , Ulf Hansson , devicetree@vger.kernel.org Subject: [PATCH v3 1/7] PM / Domains: Add a note about power domain subdomains Date: Wed, 14 Jan 2015 14:44:45 +0100 Message-id: <1421243091-10778-2-git-send-email-m.szyprowski@samsung.com> X-Mailer: git-send-email 1.9.2 In-reply-to: <1421243091-10778-1-git-send-email-m.szyprowski@samsung.com> References: <1421243091-10778-1-git-send-email-m.szyprowski@samsung.com> X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFlrNLMWRmVeSWpSXmKPExsVy+t/xq7q3i7aFGGy9xG5xa905VouGqyEW 848AGY/mP2a2eHZrL5PFpPsTWCz6H79mtjjb9IbdYtPja6wWM87vY7Lo+vmTzWLtkbvsFou2 fmG3WLXrD6PF8bXhDvwei75neeycdZfdY/Gm/Wwem1Z1snncubaHzePQ4Q5Gj81L6j36tqxi 9Pi8SS6AM4rLJiU1J7MstUjfLoEro2PaEeaCa4IVpxrtGhh38HUxcnJICJhIzJ00nR3CFpO4 cG89WxcjF4eQwFJGic8vJzBDOH1MErOm/2cBqWITMJToetsFVMXBISLgLbH8miJIDbPAe2aJ d4u+gdUIC/hJPNq9nx2khkVAVeLIcT2QMK+Ah8SyrytZIZbJSfx/uYIJxOYU8JSYt3UlE0i5 EFDN4oNuExh5FzAyrGIUTS1NLihOSs811CtOzC0uzUvXS87P3cQICeAvOxgXH7M6xCjAwajE wzszZluIEGtiWXFl7iFGCQ5mJRHeNDmgEG9KYmVValF+fFFpTmrxIUYmDk6pBsag+U7Cwrf3 6+isC3fZEBhm4ftj8dtoHe2Ps6Ln+t58WbzDWdIxz/TJ68wZJ/8eZlhwaNkfvz9rKnRns6+6 5PRnSgbrK2GF8oaNB5aWyl89/jB7JZOdXETFitspP3KiJ4SviJ3jbnIqx1bjOiO/pKsvj122 u0/ecUbf/xP7Lx5iMd+/ySp1zTMlluKMREMt5qLiRAAfGiBXPgIAAA== Sender: linux-samsung-soc-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-samsung-soc@vger.kernel.org X-Spam-Status: No, score=-6.9 required=5.0 tests=BAYES_00, RCVD_IN_DNSWL_HI, T_RP_MATCHES_RCVD, UNPARSEABLE_RELAY autolearn=unavailable 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 This patch adds a note on defining subdomains to generic PM domain binding documentation to let power domain providers use common approach for defining power domain hierarchy. Signed-off-by: Marek Szyprowski --- .../devicetree/bindings/power/power_domain.txt | 29 ++++++++++++++++++++++ 1 file changed, 29 insertions(+) diff --git a/Documentation/devicetree/bindings/power/power_domain.txt b/Documentation/devicetree/bindings/power/power_domain.txt index 98c1667..eeea45b 100644 --- a/Documentation/devicetree/bindings/power/power_domain.txt +++ b/Documentation/devicetree/bindings/power/power_domain.txt @@ -19,6 +19,16 @@ Required properties: providing multiple PM domains (e.g. power controllers), but can be any value as specified by device tree binding documentation of particular provider. +Optional properties: + - power-domains : A phandle and PM domain specifier as defined by bindings of + the power controller specified by phandle. + Some power domains might be powered from other power domain (or have + other hardware specific dependency). For representing such dependency + a standard PM domain consumer binging is used. When provided, all domains + created by the given provider should be a subdomain of the domain + specified by this binding. More details about power domain specifier is + available in the the next section. + Example: power: power-controller@12340000 { @@ -30,6 +40,25 @@ Example: The node above defines a power controller that is a PM domain provider and expects one cell as its phandle argument. +Example 2: + + parent: power-controller@12340000 { + compatible = "foo,power-controller"; + reg = <0x12340000 0x1000>; + #power-domain-cells = <1>; + }; + + child: power-controller@12340000 { + compatible = "foo,power-controller"; + reg = <0x12341000 0x1000>; + power-domains = <&parent 0>; + #power-domain-cells = <1>; + }; + +The nodes above defines two power controllers: 'parent' and 'child'. +Domains created by 'child' power controller are subdomains of '0' power +domain provided by 'parent' power controller. + ==PM domain consumers== Required properties: