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

ARM: shmobile: r8a73a4: Add IRQC clock to device tree

Link the external IRQ controllers irqc0 and irqc1 to the IRQC module
clock, so they can be power managed using that clock.

Signed-off-by: Geert Uytterhoeven <geert+renesas@glider.be>
[horms: corrected typo in changelog to refer to r8a73a4]
Signed-off-by: Simon Horman <horms+renesas@verge.net.au>

authored by

Geert Uytterhoeven and committed by
Simon Horman
1c2a7eb7 dfaac7b7

+8 -4
+7 -4
arch/arm/boot/dts/r8a73a4.dtsi
··· 163 163 <0 29 IRQ_TYPE_LEVEL_HIGH>, 164 164 <0 30 IRQ_TYPE_LEVEL_HIGH>, 165 165 <0 31 IRQ_TYPE_LEVEL_HIGH>; 166 + clocks = <&mstp4_clks R8A73A4_CLK_IRQC>; 166 167 power-domains = <&pd_c4>; 167 168 }; 168 169 ··· 198 197 <0 55 IRQ_TYPE_LEVEL_HIGH>, 199 198 <0 56 IRQ_TYPE_LEVEL_HIGH>, 200 199 <0 57 IRQ_TYPE_LEVEL_HIGH>; 200 + clocks = <&mstp4_clks R8A73A4_CLK_IRQC>; 201 201 power-domains = <&pd_c4>; 202 202 }; 203 203 ··· 726 724 mstp4_clks: mstp4_clks@e6150140 { 727 725 compatible = "renesas,r8a73a4-mstp-clocks", "renesas,cpg-mstp-clocks"; 728 726 reg = <0 0xe6150140 0 4>, <0 0xe615004c 0 4>; 729 - clocks = <&main_div2_clk>, <&cpg_clocks R8A73A4_CLK_HP>, 727 + clocks = <&main_div2_clk>, <&main_div2_clk>, 728 + <&cpg_clocks R8A73A4_CLK_HP>, 730 729 <&cpg_clocks R8A73A4_CLK_HP>; 731 730 #clock-cells = <1>; 732 731 clock-indices = < 733 - R8A73A4_CLK_IIC5 R8A73A4_CLK_IIC4 734 - R8A73A4_CLK_IIC3 732 + R8A73A4_CLK_IRQC R8A73A4_CLK_IIC5 733 + R8A73A4_CLK_IIC4 R8A73A4_CLK_IIC3 735 734 >; 736 735 clock-output-names = 737 - "iic5", "iic4", "iic3"; 736 + "irqc", "iic5", "iic4", "iic3"; 738 737 }; 739 738 mstp5_clks: mstp5_clks@e6150144 { 740 739 compatible = "renesas,r8a73a4-mstp-clocks", "renesas,cpg-mstp-clocks";
+1
include/dt-bindings/clock/r8a73a4-clock.h
··· 54 54 #define R8A73A4_CLK_IIC3 11 55 55 #define R8A73A4_CLK_IIC4 10 56 56 #define R8A73A4_CLK_IIC5 9 57 + #define R8A73A4_CLK_IRQC 7 57 58 58 59 /* MSTP5 */ 59 60 #define R8A73A4_CLK_THERMAL 22