Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

ARM: dts: r8a7793: Add INTC-SYS clock to device tree

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>

authored by

Geert Uytterhoeven and committed by
Simon Horman
2f25c2d1 d2b10f99

+11 -5
+8 -3
arch/arm/boot/dts/r8a7793.dtsi
··· 108 108 <0 0xf1004000 0 0x2000>, 109 109 <0 0xf1006000 0 0x2000>; 110 110 interrupts = <GIC_PPI 9 (GIC_CPU_MASK_SIMPLE(2) | IRQ_TYPE_LEVEL_HIGH)>; 111 + clocks = <&mstp4_clks R8A7793_CLK_INTC_SYS>; 112 + clock-names = "clk"; 113 + power-domains = <&sysc R8A7793_PD_ALWAYS_ON>; 111 114 }; 112 115 113 116 gpio0: gpio@e6050000 { ··· 1181 1178 mstp4_clks: mstp4_clks@e6150140 { 1182 1179 compatible = "renesas,r8a7793-mstp-clocks", "renesas,cpg-mstp-clocks"; 1183 1180 reg = <0 0xe6150140 0 4>, <0 0xe615004c 0 4>; 1184 - clocks = <&cp_clk>; 1181 + clocks = <&cp_clk>, <&zs_clk>; 1185 1182 #clock-cells = <1>; 1186 - clock-indices = <R8A7793_CLK_IRQC>; 1187 - clock-output-names = "irqc"; 1183 + clock-indices = < 1184 + R8A7793_CLK_IRQC R8A7793_CLK_INTC_SYS 1185 + >; 1186 + clock-output-names = "irqc", "intc-sys"; 1188 1187 }; 1189 1188 mstp5_clks: mstp5_clks@e6150144 { 1190 1189 compatible = "renesas,r8a7793-mstp-clocks", "renesas,cpg-mstp-clocks";
+3 -2
include/dt-bindings/clock/r8a7793-clock.h
··· 77 77 78 78 /* MSTP4 */ 79 79 #define R8A7793_CLK_IRQC 7 80 + #define R8A7793_CLK_INTC_SYS 8 80 81 81 82 /* MSTP5 */ 82 - #define R8A7793_CLK_AUDIO_DMAC1 1 83 - #define R8A7793_CLK_AUDIO_DMAC0 2 83 + #define R8A7793_CLK_AUDIO_DMAC1 1 84 + #define R8A7793_CLK_AUDIO_DMAC0 2 84 85 #define R8A7793_CLK_ADSP_MOD 6 85 86 #define R8A7793_CLK_THERMAL 22 86 87 #define R8A7793_CLK_PWM 23