linux-arm-kernel.lists.infradead.org archive mirror
 help / color / mirror / Atom feed
* [PATCH v2] ARM: dts: exynos5420: Add maudio power domain
@ 2015-02-09 13:57 Krzysztof Kozlowski
  2015-02-11  7:29 ` Krzysztof Kozlowski
  0 siblings, 1 reply; 2+ messages in thread
From: Krzysztof Kozlowski @ 2015-02-09 13:57 UTC (permalink / raw)
  To: linux-arm-kernel

Add maudio power domain to Exynos 5420 DTSI file so its state could be
tracked. This actually won't power down this domain because the pl330
dmaengine driver (for adma channel) uses IRQ safe runtime PM. Thus the
patch should not introduce any functional change except of visibility of
this domain to the system.

Signed-off-by: Krzysztof Kozlowski <k.kozlowski@samsung.com>
Reviewed-by: Javier Martinez Canillas <javier.martinez@collabora.co.uk>

---

Changes sinve v1:
1. Use generic power domain bindings (suggested by Javier).
2. Add Javier's reviewed-by.
---
 arch/arm/boot/dts/exynos5420.dtsi | 8 ++++++++
 1 file changed, 8 insertions(+)

diff --git a/arch/arm/boot/dts/exynos5420.dtsi b/arch/arm/boot/dts/exynos5420.dtsi
index 9dc2e9773b30..28c4a2f4b991 100644
--- a/arch/arm/boot/dts/exynos5420.dtsi
+++ b/arch/arm/boot/dts/exynos5420.dtsi
@@ -288,6 +288,12 @@
 			      "pclk1", "clk1", "pclk2", "clk2";
 	};
 
+	mau_pd: power-domain at 100440E0 {
+		compatible = "samsung,exynos4210-pd";
+		reg = <0x100440E0 0x20>;
+		#power-domain-cells = <0>;
+	};
+
 	pinctrl_0: pinctrl at 13400000 {
 		compatible = "samsung,exynos5420-pinctrl";
 		reg = <0x13400000 0x1000>;
@@ -346,6 +352,7 @@
 			#dma-cells = <1>;
 			#dma-channels = <6>;
 			#dma-requests = <16>;
+			power-domains = <&mau_pd>;
 		};
 
 		pdma0: pdma at 121A0000 {
@@ -415,6 +422,7 @@
 		pinctrl-names = "default";
 		pinctrl-0 = <&i2s0_bus>;
 		status = "disabled";
+		power-domains = <&mau_pd>;
 	};
 
 	i2s1: i2s at 12D60000 {
-- 
1.9.1

^ permalink raw reply related	[flat|nested] 2+ messages in thread

* [PATCH v2] ARM: dts: exynos5420: Add maudio power domain
  2015-02-09 13:57 [PATCH v2] ARM: dts: exynos5420: Add maudio power domain Krzysztof Kozlowski
@ 2015-02-11  7:29 ` Krzysztof Kozlowski
  0 siblings, 0 replies; 2+ messages in thread
From: Krzysztof Kozlowski @ 2015-02-11  7:29 UTC (permalink / raw)
  To: linux-arm-kernel

On pon, 2015-02-09 at 14:57 +0100, Krzysztof Kozlowski wrote:
> Add maudio power domain to Exynos 5420 DTSI file so its state could be
> tracked. This actually won't power down this domain because the pl330
> dmaengine driver (for adma channel) uses IRQ safe runtime PM. Thus the
> patch should not introduce any functional change except of visibility of
> this domain to the system.

I was wrong. There is a functional change during suspend.

The mau domain is powered off after suspending adma device (pl330 dma).
However later clk-exynos-audss receives syscore suspend notification and
tries to save mau clock registers. This results in imprecise abort
because mau power domain is turned off.

I think it is better to drop my patch.

Krzysztof

> 
> Signed-off-by: Krzysztof Kozlowski <k.kozlowski@samsung.com>
> Reviewed-by: Javier Martinez Canillas <javier.martinez@collabora.co.uk>
> 
> ---
> 
> Changes sinve v1:
> 1. Use generic power domain bindings (suggested by Javier).
> 2. Add Javier's reviewed-by.
> ---
>  arch/arm/boot/dts/exynos5420.dtsi | 8 ++++++++
>  1 file changed, 8 insertions(+)
> 
> diff --git a/arch/arm/boot/dts/exynos5420.dtsi b/arch/arm/boot/dts/exynos5420.dtsi
> index 9dc2e9773b30..28c4a2f4b991 100644
> --- a/arch/arm/boot/dts/exynos5420.dtsi
> +++ b/arch/arm/boot/dts/exynos5420.dtsi
> @@ -288,6 +288,12 @@
>  			      "pclk1", "clk1", "pclk2", "clk2";
>  	};
>  
> +	mau_pd: power-domain at 100440E0 {
> +		compatible = "samsung,exynos4210-pd";
> +		reg = <0x100440E0 0x20>;
> +		#power-domain-cells = <0>;
> +	};
> +
>  	pinctrl_0: pinctrl at 13400000 {
>  		compatible = "samsung,exynos5420-pinctrl";
>  		reg = <0x13400000 0x1000>;
> @@ -346,6 +352,7 @@
>  			#dma-cells = <1>;
>  			#dma-channels = <6>;
>  			#dma-requests = <16>;
> +			power-domains = <&mau_pd>;
>  		};
>  
>  		pdma0: pdma at 121A0000 {
> @@ -415,6 +422,7 @@
>  		pinctrl-names = "default";
>  		pinctrl-0 = <&i2s0_bus>;
>  		status = "disabled";
> +		power-domains = <&mau_pd>;
>  	};
>  
>  	i2s1: i2s at 12D60000 {

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2015-02-11  7:29 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2015-02-09 13:57 [PATCH v2] ARM: dts: exynos5420: Add maudio power domain Krzysztof Kozlowski
2015-02-11  7:29 ` Krzysztof Kozlowski

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).