From: Marek Szyprowski <m.szyprowski@samsung.com>
To: linux-arm-kernel@lists.infradead.org, linux-samsung-soc@vger.kernel.org
Cc: 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, Ulf Hansson <ulf.hansson@linaro.org>,
Geert Uytterhoeven <geert@linux-m68k.org>,
Amit Daniel Kachhap <amit.daniel@samsung.com>
Subject: Re: [PATCH v3 2/7] ARM: Exynos: add support for sub-power domains
Date: Thu, 15 Jan 2015 10:52:59 +0100 [thread overview]
Message-ID: <54B78DFB.9010305@samsung.com> (raw)
In-Reply-To: <1421243091-10778-3-git-send-email-m.szyprowski@samsung.com>
Hello All,
I'm sorry for missing some CC: in this patch, when I posted v3 to
mailing list.
It looks that CC: lines got lost after git am + git format-patch.
Ulf, could you also ack this patch, so Kukjin can finally merge the whole
series to Samsung kernel tree?
On 2015-01-14 14:44, Marek Szyprowski wrote:
> This patch adds support for making one power domain a sub-domain of
> other domain. This is useful for modeling power dependences for devices
> like TV Mixer or Camera ISP, which needs to have more than one power
> domain enabled to be operational.
>
> Based on previous work by Amit Daniel Kachhap <amit.daniel@samsung.com>.
>
> Signed-off-by: Marek Szyprowski <m.szyprowski@samsung.com>
> ---
> .../bindings/arm/exynos/power_domain.txt | 2 ++
> arch/arm/mach-exynos/pm_domains.c | 28 ++++++++++++++++++++++
> 2 files changed, 30 insertions(+)
>
> diff --git a/Documentation/devicetree/bindings/arm/exynos/power_domain.txt b/Documentation/devicetree/bindings/arm/exynos/power_domain.txt
> index f4445e5..1e09703 100644
> --- a/Documentation/devicetree/bindings/arm/exynos/power_domain.txt
> +++ b/Documentation/devicetree/bindings/arm/exynos/power_domain.txt
> @@ -22,6 +22,8 @@ Optional Properties:
> - pclkN, clkN: Pairs of parent of input clock and input clock to the
> devices in this power domain. Maximum of 4 pairs (N = 0 to 3)
> are supported currently.
> +- power-domains: phandle pointing to the parent power domain, for more details
> + see Documentation/devicetree/bindings/power/power_domain.txt
>
> Node of a device using power domains must have a power-domains property
> defined with a phandle to respective power domain.
> diff --git a/arch/arm/mach-exynos/pm_domains.c b/arch/arm/mach-exynos/pm_domains.c
> index 20f2671..37266a8 100644
> --- a/arch/arm/mach-exynos/pm_domains.c
> +++ b/arch/arm/mach-exynos/pm_domains.c
> @@ -161,6 +161,34 @@ no_clk:
> of_genpd_add_provider_simple(np, &pd->pd);
> }
>
> + /* Assign the child power domains to their parents */
> + for_each_compatible_node(np, NULL, "samsung,exynos4210-pd") {
> + struct generic_pm_domain *child_domain, *parent_domain;
> + struct of_phandle_args args;
> +
> + args.np = np;
> + args.args_count = 0;
> + child_domain = of_genpd_get_from_provider(&args);
> + if (!child_domain)
> + continue;
> +
> + if (of_parse_phandle_with_args(np, "power-domains",
> + "#power-domain-cells", 0, &args) != 0)
> + continue;
> +
> + parent_domain = of_genpd_get_from_provider(&args);
> + if (!parent_domain)
> + continue;
> +
> + if (pm_genpd_add_subdomain(parent_domain, child_domain))
> + pr_warn("%s failed to add subdomain: %s\n",
> + parent_domain->name, child_domain->name);
> + else
> + pr_info("%s has as child subdomain: %s.\n",
> + parent_domain->name, child_domain->name);
> + of_node_put(np);
> + }
> +
> return 0;
> }
> arch_initcall(exynos4_pm_init_power_domain);
Best regards
--
Marek Szyprowski, PhD
Samsung R&D Institute Poland
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 2/7] ARM: Exynos: add support for sub-power domains
Date: Thu, 15 Jan 2015 10:52:59 +0100 [thread overview]
Message-ID: <54B78DFB.9010305@samsung.com> (raw)
In-Reply-To: <1421243091-10778-3-git-send-email-m.szyprowski@samsung.com>
Hello All,
I'm sorry for missing some CC: in this patch, when I posted v3 to
mailing list.
It looks that CC: lines got lost after git am + git format-patch.
Ulf, could you also ack this patch, so Kukjin can finally merge the whole
series to Samsung kernel tree?
On 2015-01-14 14:44, Marek Szyprowski wrote:
> This patch adds support for making one power domain a sub-domain of
> other domain. This is useful for modeling power dependences for devices
> like TV Mixer or Camera ISP, which needs to have more than one power
> domain enabled to be operational.
>
> Based on previous work by Amit Daniel Kachhap <amit.daniel@samsung.com>.
>
> Signed-off-by: Marek Szyprowski <m.szyprowski@samsung.com>
> ---
> .../bindings/arm/exynos/power_domain.txt | 2 ++
> arch/arm/mach-exynos/pm_domains.c | 28 ++++++++++++++++++++++
> 2 files changed, 30 insertions(+)
>
> diff --git a/Documentation/devicetree/bindings/arm/exynos/power_domain.txt b/Documentation/devicetree/bindings/arm/exynos/power_domain.txt
> index f4445e5..1e09703 100644
> --- a/Documentation/devicetree/bindings/arm/exynos/power_domain.txt
> +++ b/Documentation/devicetree/bindings/arm/exynos/power_domain.txt
> @@ -22,6 +22,8 @@ Optional Properties:
> - pclkN, clkN: Pairs of parent of input clock and input clock to the
> devices in this power domain. Maximum of 4 pairs (N = 0 to 3)
> are supported currently.
> +- power-domains: phandle pointing to the parent power domain, for more details
> + see Documentation/devicetree/bindings/power/power_domain.txt
>
> Node of a device using power domains must have a power-domains property
> defined with a phandle to respective power domain.
> diff --git a/arch/arm/mach-exynos/pm_domains.c b/arch/arm/mach-exynos/pm_domains.c
> index 20f2671..37266a8 100644
> --- a/arch/arm/mach-exynos/pm_domains.c
> +++ b/arch/arm/mach-exynos/pm_domains.c
> @@ -161,6 +161,34 @@ no_clk:
> of_genpd_add_provider_simple(np, &pd->pd);
> }
>
> + /* Assign the child power domains to their parents */
> + for_each_compatible_node(np, NULL, "samsung,exynos4210-pd") {
> + struct generic_pm_domain *child_domain, *parent_domain;
> + struct of_phandle_args args;
> +
> + args.np = np;
> + args.args_count = 0;
> + child_domain = of_genpd_get_from_provider(&args);
> + if (!child_domain)
> + continue;
> +
> + if (of_parse_phandle_with_args(np, "power-domains",
> + "#power-domain-cells", 0, &args) != 0)
> + continue;
> +
> + parent_domain = of_genpd_get_from_provider(&args);
> + if (!parent_domain)
> + continue;
> +
> + if (pm_genpd_add_subdomain(parent_domain, child_domain))
> + pr_warn("%s failed to add subdomain: %s\n",
> + parent_domain->name, child_domain->name);
> + else
> + pr_info("%s has as child subdomain: %s.\n",
> + parent_domain->name, child_domain->name);
> + of_node_put(np);
> + }
> +
> return 0;
> }
> arch_initcall(exynos4_pm_init_power_domain);
Best regards
--
Marek Szyprowski, PhD
Samsung R&D Institute Poland
next prev parent reply other threads:[~2015-01-15 9:53 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 ` [PATCH v3 1/7] PM / Domains: Add a note about power domain subdomains Marek Szyprowski
2015-01-14 13:44 ` 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 [this message]
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=54B78DFB.9010305@samsung.com \
--to=m.szyprowski@samsung.com \
--cc=Liquid.Acid@gmx.net \
--cc=a.hajda@samsung.com \
--cc=amit.daniel@samsung.com \
--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=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.