From patchwork Tue Jan 20 12:16:51 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Marek Szyprowski X-Patchwork-Id: 5668521 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 A6CC39F406 for ; Tue, 20 Jan 2015 12:17:12 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id C170F203AC for ; Tue, 20 Jan 2015 12:17:11 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id 95CDE203B5 for ; Tue, 20 Jan 2015 12:17:10 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753949AbbATMRJ (ORCPT ); Tue, 20 Jan 2015 07:17:09 -0500 Received: from mailout2.w1.samsung.com ([210.118.77.12]:40504 "EHLO mailout2.w1.samsung.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753045AbbATMRI (ORCPT ); Tue, 20 Jan 2015 07:17:08 -0500 Received: from eucpsbgm1.samsung.com (unknown [203.254.199.244]) by mailout2.w1.samsung.com (Oracle Communications Messaging Server 7u4-24.01(7.0.4.24.0) 64bit (built Nov 17 2011)) with ESMTP id <0NIH00EZT6B9BL60@mailout2.w1.samsung.com> for linux-samsung-soc@vger.kernel.org; Tue, 20 Jan 2015 12:21:09 +0000 (GMT) X-AuditID: cbfec7f4-b7f126d000001e9a-cf-54be474104e6 Received: from eusync3.samsung.com ( [203.254.199.213]) by eucpsbgm1.samsung.com (EUCPMTA) with SMTP id A8.4A.07834.1474EB45; Tue, 20 Jan 2015 12:17:05 +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 <0NIH00J4064B2380@eusync3.samsung.com>; Tue, 20 Jan 2015 12:17:05 +0000 (GMT) From: Marek Szyprowski To: linux-arm-kernel@lists.infradead.org, linux-samsung-soc@vger.kernel.org Cc: dri-devel@lists.freedesktop.org, Marek Szyprowski , Kukjin Kim , Tobias Jakobi , Daniel Drake , Andrzej Hajda , Inki Dae , Tomasz Figa , Javier Martinez Canillas , jy0922.shim@samsung.com, kyungmin.park@samsung.com, Pankaj Dubey , Amit Daniel Kachhap , Geert Uytterhoeven , Ulf Hansson Subject: [PATCH v4 1/9] PM / Domains: Add a note about power domain subdomains Date: Tue, 20 Jan 2015 13:16:51 +0100 Message-id: <1421756219-21037-2-git-send-email-m.szyprowski@samsung.com> X-Mailer: git-send-email 1.9.2 In-reply-to: <1421756219-21037-1-git-send-email-m.szyprowski@samsung.com> References: <1421756219-21037-1-git-send-email-m.szyprowski@samsung.com> X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFjrILMWRmVeSWpSXmKPExsVy+t/xq7qO7vtCDKZ+1re4te4cq0XD1RCL R/MfM1tc+fqezeLZrb1MFpPuT2CxOPq7wOLFvYssFv2PXzNbnG16w26x6fE1VosZ5/cxWXT9 /MlmsfbIXXaLRVu/sFus2vWH0eL42nAHQY+/z6+zeCz6nuWxc9Zddo/Fm/azeWxa1cnmcefa HjaPQ4c7GD3udx9n8ti8pN6jb8sqRo/Pm+QCuKO4bFJSczLLUov07RK4MnYcOcdUcEmoorVp FnsD4yr+LkZODgkBE4m/y9tYIGwxiQv31rN1MXJxCAksZZRYMuk0I4TTxySx8NU2NpAqNgFD ia63XUA2B4eIgLfE8muKIDXMAmdZJBZ2z2MGqREW8JO4sfcqK4jNIqAqsfTHVDCbV8BD4ump R0wQ2+Qk/r9cAWZzCnhKNP+bATZfCKjm1IMutgmMvAsYGVYxiqaWJhcUJ6XnGuoVJ+YWl+al 6yXn525ihAT7lx2Mi49ZHWIU4GBU4uHVyNkTIsSaWFZcmXuIUYKDWUmE96z5vhAh3pTEyqrU ovz4otKc1OJDjEwcnFINjN2HV1y9ohd06W7LrP1rFGNfaQm5+2Yvi3Oo2zk7wphxxesdM3XL WBw9zU0jbLRcrnlyvjqvetPeO3IZl9/6fZGyK3Q3vK47+T7puf4FPu/Tkv8jODqzXrK3vN4h UXJO0vN9/PJdC4UOvYxapFLLvMHaqu3j9fnPG/2f9W+q1JjwtYfRefeaOUosxRmJhlrMRcWJ ALW9FSlUAgAA 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 Acked-by: Geert Uytterhoeven Reviewed-by: Ulf Hansson --- .../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 98c16672ab5f..0f8ed3710c66 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 another power domain (or have + other hardware specific dependencies). For representing such dependency + a standard PM domain consumer binding is used. When provided, all domains + created by the given provider should be subdomains of the domain + specified by this binding. More details about power domain specifier are + available in 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 define two power controllers: 'parent' and 'child'. +Domains created by the 'child' power controller are subdomains of '0' power +domain provided by the 'parent' power controller. + ==PM domain consumers== Required properties: