ARM: dts: Add DISP1 power domain for exynos5420
authorJavier Martinez Canillas <javier.martinez@collabora.co.uk>
Sat, 24 Jan 2015 04:25:35 +0000 (13:25 +0900)
committerKukjin Kim <kgene@kernel.org>
Wed, 28 Jan 2015 23:52:23 +0000 (08:52 +0900)
The DISP1 power domain on Exynos5420 SoC includes the FIMD1, MIXER
and HDMI modules. Add a device node for this power domain and mark
these modules as consumer of the DISP1 power domain.

When a power domain is powered on and off, the input clocks of the
devices attached to it are reparented. So a reference to the input
and parent clocks of the devices are needed to manage that.

Signed-off-by: Javier Martinez Canillas <javier.martinez@collabora.co.uk>
Signed-off-by: Kukjin Kim <kgene@kernel.org>
arch/arm/boot/dts/exynos5420.dtsi

index 03ef2481c64053683f003f91b917a1f0ac290f65..a0a3b282920872f891429446ea762d0548893c68 100644 (file)
                #power-domain-cells = <0>;
        };
 
+       disp_pd: power-domain@100440C0 {
+               compatible = "samsung,exynos4210-pd";
+               reg = <0x100440C0 0x20>;
+               #power-domain-cells = <0>;
+               clocks = <&clock CLK_FIN_PLL>, <&clock CLK_MOUT_SW_ACLK200>,
+                        <&clock CLK_MOUT_USER_ACLK200_DISP1>,
+                        <&clock CLK_MOUT_SW_ACLK300>,
+                        <&clock CLK_MOUT_USER_ACLK300_DISP1>,
+                        <&clock CLK_MOUT_SW_ACLK400>,
+                        <&clock CLK_MOUT_USER_ACLK400_DISP1>;
+               clock-names = "oscclk", "pclk0", "clk0",
+                             "pclk1", "clk1", "pclk2", "clk2";
+       };
+
        pinctrl_0: pinctrl@13400000 {
                compatible = "samsung,exynos5420-pinctrl";
                reg = <0x13400000 0x1000>;
        fimd: fimd@14400000 {
                clocks = <&clock CLK_SCLK_FIMD1>, <&clock CLK_FIMD1>;
                clock-names = "sclk_fimd", "fimd";
+               power-domains = <&disp_pd>;
        };
 
        adc: adc@12D10000 {
                phy = <&hdmiphy>;
                samsung,syscon-phandle = <&pmu_system_controller>;
                status = "disabled";
+               power-domains = <&disp_pd>;
        };
 
        hdmiphy: hdmiphy@145D0000 {
                interrupts = <0 94 0>;
                clocks = <&clock CLK_MIXER>, <&clock CLK_SCLK_HDMI>;
                clock-names = "mixer", "sclk_hdmi";
+               power-domains = <&disp_pd>;
        };
 
        gsc_0: video-scaler@13e00000 {