All of lore.kernel.org
 help / color / mirror / Atom feed
From: Marek Szyprowski <m.szyprowski@samsung.com>
To: linux-arm-kernel@lists.infradead.org, linux-samsung-soc@vger.kernel.org
Cc: Marek Szyprowski <m.szyprowski@samsung.com>,
	Kukjin Kim <kgene@kernel.org>,
	Tobias Jakobi <Liquid.Acid@gmx.net>,
	Daniel Drake <drake@endlessm.com>,
	Andrzej Hajda <a.hajda@samsung.com>,
	Inki Dae <inki.dae@samsung.com>,
	Tomasz Figa <tomasz.figa@gmail.com>,
	kyungmin.park@samsung.com,
	Pankaj Dubey <pankaj.dubey@samsung.com>,
	Amit Daniel Kachhap <amit.daniel@samsung.com>,
	Geert Uytterhoeven <geert@linux-m68k.org>,
	Ulf Hansson <ulf.hansson@linaro.org>,
	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	[thread overview]
Message-ID: <1421243091-10778-2-git-send-email-m.szyprowski@samsung.com> (raw)
In-Reply-To: <1421243091-10778-1-git-send-email-m.szyprowski@samsung.com>

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 <m.szyprowski@samsung.com>
---
 .../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:
-- 
1.9.2

WARNING: multiple messages have this Message-ID (diff)
From: m.szyprowski@samsung.com (Marek Szyprowski)
To: linux-arm-kernel@lists.infradead.org
Subject: [PATCH v3 1/7] PM / Domains: Add a note about power domain subdomains
Date: Wed, 14 Jan 2015 14:44:45 +0100	[thread overview]
Message-ID: <1421243091-10778-2-git-send-email-m.szyprowski@samsung.com> (raw)
In-Reply-To: <1421243091-10778-1-git-send-email-m.szyprowski@samsung.com>

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 <m.szyprowski@samsung.com>
---
 .../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 at 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 at 12340000 {
+		compatible = "foo,power-controller";
+		reg = <0x12340000 0x1000>;
+		#power-domain-cells = <1>;
+	};
+
+	child: power-controller at 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:
-- 
1.9.2

  reply	other threads:[~2015-01-14 13:44 UTC|newest]

Thread overview: 30+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2015-01-14 13:44 [PATCH v3 0/7] Enable HDMI support on Exynos platforms Marek Szyprowski
2015-01-14 13:44 ` Marek Szyprowski
2015-01-14 13:44 ` Marek Szyprowski [this message]
2015-01-14 13:44   ` [PATCH v3 1/7] PM / Domains: Add a note about power domain subdomains Marek Szyprowski
2015-01-14 13:55   ` Geert Uytterhoeven
2015-01-14 13:55     ` Geert Uytterhoeven
2015-01-14 14:12   ` [PATCH v3 1/7 RESEND] " Marek Szyprowski
2015-01-14 14:12     ` Marek Szyprowski
2015-01-14 14:19     ` Geert Uytterhoeven
2015-01-14 14:19       ` Geert Uytterhoeven
2015-01-14 15:09     ` Ulf Hansson
2015-01-14 15:09       ` Ulf Hansson
2015-01-14 13:44 ` [PATCH v3 2/7] ARM: Exynos: add support for sub-power domains Marek Szyprowski
2015-01-14 13:44   ` Marek Szyprowski
2015-01-15  9:52   ` Marek Szyprowski
2015-01-15  9:52     ` Marek Szyprowski
2015-01-16 12:47   ` Ulf Hansson
2015-01-16 12:47     ` Ulf Hansson
2015-01-14 13:44 ` [PATCH v3 3/7] ARM: dts: exynos4: add hdmi related nodes Marek Szyprowski
2015-01-14 13:44   ` Marek Szyprowski
2015-01-14 13:44 ` [PATCH v3 4/7] ARM: dts: exynos4: add dependency between TV and LCD0 power domains Marek Szyprowski
2015-01-14 13:44   ` Marek Szyprowski
2015-01-14 13:44 ` [PATCH v3 5/7] ARM: dts: exynos4412-odroid: enable hdmi support Marek Szyprowski
2015-01-14 13:44   ` Marek Szyprowski
2015-01-14 13:44 ` [PATCH v3 6/7] ARM: dts: exynos4210-universal_c210: " Marek Szyprowski
2015-01-14 13:44   ` Marek Szyprowski
2015-01-14 13:44 ` [PATCH v3 7/7] ARM: dts: exynos5250: add display power domain Marek Szyprowski
2015-01-14 13:44   ` Marek Szyprowski
2015-01-19 17:26   ` Javier Martinez Canillas
2015-01-19 17:26     ` Javier Martinez Canillas

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1421243091-10778-2-git-send-email-m.szyprowski@samsung.com \
    --to=m.szyprowski@samsung.com \
    --cc=Liquid.Acid@gmx.net \
    --cc=a.hajda@samsung.com \
    --cc=amit.daniel@samsung.com \
    --cc=devicetree@vger.kernel.org \
    --cc=drake@endlessm.com \
    --cc=geert@linux-m68k.org \
    --cc=inki.dae@samsung.com \
    --cc=kgene@kernel.org \
    --cc=kyungmin.park@samsung.com \
    --cc=linux-arm-kernel@lists.infradead.org \
    --cc=linux-samsung-soc@vger.kernel.org \
    --cc=pankaj.dubey@samsung.com \
    --cc=tomasz.figa@gmail.com \
    --cc=ulf.hansson@linaro.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.