]> Gentwo Git Trees - linux/.git/commitdiff
ARM: shmobile: r8a7779 dtsi: Add CPG/MSTP Clock Domain
authorGeert Uytterhoeven <geert+renesas@glider.be>
Tue, 4 Aug 2015 12:28:09 +0000 (14:28 +0200)
committerSimon Horman <horms+renesas@verge.net.au>
Wed, 12 Aug 2015 02:15:26 +0000 (11:15 +0900)
Add an appropriate "#power-domain-cells" property to the cpg_clocks
device node, to create the CPG/MSTP Clock Domain.

Add "power-domains" properties to all device nodes for devices that are
part of the CPG/MSTP Clock Domain and can be power-managed through an
MSTP clock.  This applies to most on-SoC devices, which have a
one-to-one mapping from SoC device to DT device node.

Signed-off-by: Geert Uytterhoeven <geert+renesas@glider.be>
Reviewed-by: Ulf Hansson <ulf.hansson@linaro.org>
Signed-off-by: Simon Horman <horms+renesas@verge.net.au>
arch/arm/boot/dts/r8a7779.dtsi

index a2b5430d32575f995ab97c46e615240e18b4bdcb..6afa909865b52b71c970087e90dc77860ea177e6 100644 (file)
@@ -173,6 +173,7 @@ i2c0: i2c@ffc70000 {
                reg = <0xffc70000 0x1000>;
                interrupts = <0 79 IRQ_TYPE_LEVEL_HIGH>;
                clocks = <&mstp0_clks R8A7779_CLK_I2C0>;
+               power-domains = <&cpg_clocks>;
                status = "disabled";
        };
 
@@ -183,6 +184,7 @@ i2c1: i2c@ffc71000 {
                reg = <0xffc71000 0x1000>;
                interrupts = <0 82 IRQ_TYPE_LEVEL_HIGH>;
                clocks = <&mstp0_clks R8A7779_CLK_I2C1>;
+               power-domains = <&cpg_clocks>;
                status = "disabled";
        };
 
@@ -193,6 +195,7 @@ i2c2: i2c@ffc72000 {
                reg = <0xffc72000 0x1000>;
                interrupts = <0 80 IRQ_TYPE_LEVEL_HIGH>;
                clocks = <&mstp0_clks R8A7779_CLK_I2C2>;
+               power-domains = <&cpg_clocks>;
                status = "disabled";
        };
 
@@ -203,6 +206,7 @@ i2c3: i2c@ffc73000 {
                reg = <0xffc73000 0x1000>;
                interrupts = <0 81 IRQ_TYPE_LEVEL_HIGH>;
                clocks = <&mstp0_clks R8A7779_CLK_I2C3>;
+               power-domains = <&cpg_clocks>;
                status = "disabled";
        };
 
@@ -212,6 +216,7 @@ scif0: serial@ffe40000 {
                interrupts = <0 88 IRQ_TYPE_LEVEL_HIGH>;
                clocks = <&mstp0_clks R8A7779_CLK_SCIF0>;
                clock-names = "sci_ick";
+               power-domains = <&cpg_clocks>;
                status = "disabled";
        };
 
@@ -221,6 +226,7 @@ scif1: serial@ffe41000 {
                interrupts = <0 89 IRQ_TYPE_LEVEL_HIGH>;
                clocks = <&mstp0_clks R8A7779_CLK_SCIF1>;
                clock-names = "sci_ick";
+               power-domains = <&cpg_clocks>;
                status = "disabled";
        };
 
@@ -230,6 +236,7 @@ scif2: serial@ffe42000 {
                interrupts = <0 90 IRQ_TYPE_LEVEL_HIGH>;
                clocks = <&mstp0_clks R8A7779_CLK_SCIF2>;
                clock-names = "sci_ick";
+               power-domains = <&cpg_clocks>;
                status = "disabled";
        };
 
@@ -239,6 +246,7 @@ scif3: serial@ffe43000 {
                interrupts = <0 91 IRQ_TYPE_LEVEL_HIGH>;
                clocks = <&mstp0_clks R8A7779_CLK_SCIF3>;
                clock-names = "sci_ick";
+               power-domains = <&cpg_clocks>;
                status = "disabled";
        };
 
@@ -248,6 +256,7 @@ scif4: serial@ffe44000 {
                interrupts = <0 92 IRQ_TYPE_LEVEL_HIGH>;
                clocks = <&mstp0_clks R8A7779_CLK_SCIF4>;
                clock-names = "sci_ick";
+               power-domains = <&cpg_clocks>;
                status = "disabled";
        };
 
@@ -257,6 +266,7 @@ scif5: serial@ffe45000 {
                interrupts = <0 93 IRQ_TYPE_LEVEL_HIGH>;
                clocks = <&mstp0_clks R8A7779_CLK_SCIF5>;
                clock-names = "sci_ick";
+               power-domains = <&cpg_clocks>;
                status = "disabled";
        };
 
@@ -278,6 +288,7 @@ tmu0: timer@ffd80000 {
                             <0 34 IRQ_TYPE_LEVEL_HIGH>;
                clocks = <&mstp0_clks R8A7779_CLK_TMU0>;
                clock-names = "fck";
+               power-domains = <&cpg_clocks>;
 
                #renesas,channels = <3>;
 
@@ -292,6 +303,7 @@ tmu1: timer@ffd81000 {
                             <0 38 IRQ_TYPE_LEVEL_HIGH>;
                clocks = <&mstp0_clks R8A7779_CLK_TMU1>;
                clock-names = "fck";
+               power-domains = <&cpg_clocks>;
 
                #renesas,channels = <3>;
 
@@ -306,6 +318,7 @@ tmu2: timer@ffd82000 {
                             <0 42 IRQ_TYPE_LEVEL_HIGH>;
                clocks = <&mstp0_clks R8A7779_CLK_TMU2>;
                clock-names = "fck";
+               power-domains = <&cpg_clocks>;
 
                #renesas,channels = <3>;
 
@@ -317,6 +330,7 @@ sata: sata@fc600000 {
                reg = <0xfc600000 0x2000>;
                interrupts = <0 100 IRQ_TYPE_LEVEL_HIGH>;
                clocks = <&mstp1_clks R8A7779_CLK_SATA>;
+               power-domains = <&cpg_clocks>;
        };
 
        sdhi0: sd@ffe4c000 {
@@ -324,6 +338,7 @@ sdhi0: sd@ffe4c000 {
                reg = <0xffe4c000 0x100>;
                interrupts = <0 104 IRQ_TYPE_LEVEL_HIGH>;
                clocks = <&mstp3_clks R8A7779_CLK_SDHI0>;
+               power-domains = <&cpg_clocks>;
                status = "disabled";
        };
 
@@ -332,6 +347,7 @@ sdhi1: sd@ffe4d000 {
                reg = <0xffe4d000 0x100>;
                interrupts = <0 105 IRQ_TYPE_LEVEL_HIGH>;
                clocks = <&mstp3_clks R8A7779_CLK_SDHI1>;
+               power-domains = <&cpg_clocks>;
                status = "disabled";
        };
 
@@ -340,6 +356,7 @@ sdhi2: sd@ffe4e000 {
                reg = <0xffe4e000 0x100>;
                interrupts = <0 107 IRQ_TYPE_LEVEL_HIGH>;
                clocks = <&mstp3_clks R8A7779_CLK_SDHI2>;
+               power-domains = <&cpg_clocks>;
                status = "disabled";
        };
 
@@ -348,6 +365,7 @@ sdhi3: sd@ffe4f000 {
                reg = <0xffe4f000 0x100>;
                interrupts = <0 106 IRQ_TYPE_LEVEL_HIGH>;
                clocks = <&mstp3_clks R8A7779_CLK_SDHI3>;
+               power-domains = <&cpg_clocks>;
                status = "disabled";
        };
 
@@ -358,6 +376,7 @@ hspi0: spi@fffc7000 {
                #address-cells = <1>;
                #size-cells = <0>;
                clocks = <&mstp0_clks R8A7779_CLK_HSPI>;
+               power-domains = <&cpg_clocks>;
                status = "disabled";
        };
 
@@ -368,6 +387,7 @@ hspi1: spi@fffc8000 {
                #address-cells = <1>;
                #size-cells = <0>;
                clocks = <&mstp0_clks R8A7779_CLK_HSPI>;
+               power-domains = <&cpg_clocks>;
                status = "disabled";
        };
 
@@ -378,6 +398,7 @@ hspi2: spi@fffc6000 {
                #address-cells = <1>;
                #size-cells = <0>;
                clocks = <&mstp0_clks R8A7779_CLK_HSPI>;
+               power-domains = <&cpg_clocks>;
                status = "disabled";
        };
 
@@ -386,6 +407,7 @@ du: display@fff80000 {
                reg = <0 0xfff80000 0 0x40000>;
                interrupts = <0 31 IRQ_TYPE_LEVEL_HIGH>;
                clocks = <&mstp1_clks R8A7779_CLK_DU>;
+               power-domains = <&cpg_clocks>;
                status = "disabled";
 
                ports {
@@ -427,6 +449,7 @@ cpg_clocks: clocks@ffc80000 {
                        #clock-cells = <1>;
                        clock-output-names = "plla", "z", "zs", "s",
                                             "s1", "p", "b", "out";
+                       #power-domain-cells = <0>;
                };
 
                /* Fixed factor clocks */