]> git.kernelconcepts.de Git - karo-tx-linux.git/commitdiff
ARM: dts: r8a7790: Add INTC-SYS clock to device tree
authorGeert Uytterhoeven <geert+renesas@glider.be>
Mon, 6 Mar 2017 16:58:07 +0000 (17:58 +0100)
committerSimon Horman <horms+renesas@verge.net.au>
Fri, 10 Mar 2017 09:20:02 +0000 (10:20 +0100)
Link the ARM GIC to the INTC-SYS module clock, and add it to the "always
on" PM Domain, so it can be power managed using that clock.

Note that currently the GIC-400 driver doesn't support module clocks nor
Runtime PM, so this must be handled as a critical clock.

Signed-off-by: Geert Uytterhoeven <geert+renesas@glider.be>
Signed-off-by: Simon Horman <horms+renesas@verge.net.au>
arch/arm/boot/dts/r8a7790.dtsi
include/dt-bindings/clock/r8a7790-clock.h

index 495c583054a8ef65c53f7fdd15848826f08970e6..534525665bb3a92202765237851a9a8c46d5ee2f 100644 (file)
                        <0 0xf1004000 0 0x2000>,
                        <0 0xf1006000 0 0x2000>;
                interrupts = <GIC_PPI 9 (GIC_CPU_MASK_SIMPLE(4) | IRQ_TYPE_LEVEL_HIGH)>;
+               clocks = <&mstp4_clks R8A7790_CLK_INTC_SYS>;
+               clock-names = "clk";
+               power-domains = <&sysc R8A7790_PD_ALWAYS_ON>;
        };
 
        gpio0: gpio@e6050000 {
                mstp4_clks: mstp4_clks@e6150140 {
                        compatible = "renesas,r8a7790-mstp-clocks", "renesas,cpg-mstp-clocks";
                        reg = <0 0xe6150140 0 4>, <0 0xe615004c 0 4>;
-                       clocks = <&cp_clk>;
+                       clocks = <&cp_clk>, <&zs_clk>;
                        #clock-cells = <1>;
-                       clock-indices = <R8A7790_CLK_IRQC>;
-                       clock-output-names = "irqc";
+                       clock-indices = <R8A7790_CLK_IRQC R8A7790_CLK_INTC_SYS>;
+                       clock-output-names = "irqc", "intc-sys";
                };
                mstp5_clks: mstp5_clks@e6150144 {
                        compatible = "renesas,r8a7790-mstp-clocks", "renesas,cpg-mstp-clocks";
index fa5e8da809f2e802f3d440dca3d23f1ecb666e82..20641fa68e731ec0a49f3c44b24a8629fca30dd8 100644 (file)
@@ -82,6 +82,7 @@
 
 /* MSTP4 */
 #define R8A7790_CLK_IRQC               7
+#define R8A7790_CLK_INTC_SYS           8
 
 /* MSTP5 */
 #define R8A7790_CLK_AUDIO_DMAC1                1