ARM/arm64: dts: renesas: Link ARM GIC to clock and clock domain
Subsystems (2)
Geert Uytterhoeven
maintainercover ARM/arm64: dts: renesas: Link ARM GIC to clock and clock domain
Hi Simon, Magnus,
This patch series improves the topology description in DT of the ARM GIC on Renesas SoCs using the CPG/MSSR bindings (R-Car Gen3 and RZ/G). It links the GIC to its module clock, and adds it to the SYSC "always on" PM Domain.
Note that currently the GIC-400 driver doesn't support module clocks nor Runtime PM, so this must be handled as a critical clock.
As the CPG/MSSR driver, unlike the legacy MSTP driver, is already aware of critical clocks, this series can be applied right now.
Thanks!
Geert Uytterhoeven (4):
ARM: dts: r8a7743: Link ARM GIC to clock and clock domain
ARM: dts: r8a7745: Link ARM GIC to clock and clock domain
arm64: dts: r8a7795: Link ARM GIC to clock and clock domain
arm64: dts: r8a7796: Link ARM GIC to clock and clock domain
arch/arm/boot/dts/r8a7743.dtsi | 3 +++ arch/arm/boot/dts/r8a7745.dtsi | 3 +++ arch/arm64/boot/dts/renesas/r8a7795.dtsi | 3 +++ arch/arm64/boot/dts/renesas/r8a7796.dtsi | 3 +++ 4 files changed, 12 insertions(+)
Signature · 12 lines
1.9.1
Gr{oetje,eeting}s,
Geert
--
Geert Uytterhoeven -- There's lots of Linux beyond ia32 -- geert at linux-m68k.org
In personal conversations with technical people, I call myself a hacker. But
when I'm talking to journalists I just say "programmer" or something like that.
-- Linus TorvaldsGeert Uytterhoeven
maintainerPATCH 1/4 ARM: dts: r8a7743: Link ARM GIC to clock and clock domain
Link the ARM GIC to the INTC-SYS module clock, and add it to the SYSC "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.
--- arch/arm/boot/dts/r8a7743.dtsi | 3 +++ 1 file changed, 3 insertions(+)
arch/arm/boot/dts/r8a7743.dtsi +3 -0
@@ -60,6 +60,9 @@ <0 0xf1006000 0 0x2000>; interrupts = <GIC_PPI 9 (GIC_CPU_MASK_SIMPLE(2) | IRQ_TYPE_LEVEL_HIGH)>; + clocks = <&cpg CPG_MOD 408>; + clock-names = "clk"; + power-domains = <&sysc R8A7743_PD_ALWAYS_ON>; }; irqc: interrupt-controller at e61c0000 {
Signature · 1 line
1.9.1
Geert Uytterhoeven
maintainerPATCH 2/4 ARM: dts: r8a7745: Link ARM GIC to clock and clock domain
In reply to Geert UytterhoevenLink the ARM GIC to the INTC-SYS module clock, and add it to the SYSC "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.
--- arch/arm/boot/dts/r8a7745.dtsi | 3 +++ 1 file changed, 3 insertions(+)
arch/arm/boot/dts/r8a7745.dtsi +3 -0
@@ -60,6 +60,9 @@ <0 0xf1006000 0 0x2000>; interrupts = <GIC_PPI 9 (GIC_CPU_MASK_SIMPLE(2) | IRQ_TYPE_LEVEL_HIGH)>; + clocks = <&cpg CPG_MOD 408>; + clock-names = "clk"; + power-domains = <&sysc R8A7745_PD_ALWAYS_ON>; }; irqc: interrupt-controller at e61c0000 {
Signature · 1 line
1.9.1
Geert Uytterhoeven
maintainerPATCH 3/4 arm64: dts: r8a7795: Link ARM GIC to clock and clock domain
In reply to Geert UytterhoevenLink the ARM GIC to the INTC-AP module clock, and add it to the SYSC "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.
--- arch/arm64/boot/dts/renesas/r8a7795.dtsi | 3 +++ 1 file changed, 3 insertions(+)
arch/arm64/boot/dts/renesas/r8a7795.dtsi +3 -0
@@ -166,6 +166,9 @@ <0x0 0xf1060000 0 0x20000>; interrupts = <GIC_PPI 9 (GIC_CPU_MASK_SIMPLE(4) | IRQ_TYPE_LEVEL_HIGH)>; + clocks = <&cpg CPG_MOD 408>; + clock-names = "clk"; + power-domains = <&sysc R8A7795_PD_ALWAYS_ON>; }; wdt0: watchdog at e6020000 {
Signature · 1 line
1.9.1
PATCH 3/4 arm64: dts: r8a7795: Link ARM GIC to clock and clock domain
Hi Geert,
Quoted 20 lines
Subject: [PATCH 3/4] arm64: dts: r8a7795: Link ARM GIC to clock and clock domain
Link the ARM GIC to the INTC-AP module clock, and add it to the SYSC "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 <[email protected]>--- arch/arm64/boot/dts/renesas/r8a7795.dtsi | 3 +++ 1 file changed, 3 insertions(+)arch/arm64/boot/dts/renesas/r8a7795.dtsi +0
-0
arch/arm64/boot/dts/renesas/r8a7795.dtsi line 171
Quoted 6 lines
arch/arm64/boot/dts/renesas/r8a7795.dtsi +2
-0@@ -166,6 +166,9 @@ <0x0 0xf1060000 0 0x20000>; interrupts = <GIC_PPI 9 (GIC_CPU_MASK_SIMPLE(4) | IRQ_TYPE_LEVEL_HIGH)>; + clocks = <&cpg CPG_MOD 408>; + clock-names = "clk";
Should the module clock be named "fck"?
Thanks,
Ramesh
PATCH 3/4 arm64: dts: r8a7795: Link ARM GIC to clock and clock domain
Hi Ramesh,
Quoted 11 lines · Ramesh Shanmugasundaram
arch/arm64/boot/dts/renesas/r8a7795.dtsi line 171
Quoted 9 lines
arch/arm64/boot/dts/renesas/r8a7795.dtsi +2
-0@@ -166,6 +166,9 @@ <0x0 0xf1060000 0 0x20000>; interrupts = <GIC_PPI 9 (GIC_CPU_MASK_SIMPLE(4) | IRQ_TYPE_LEVEL_HIGH)>; + clocks = <&cpg CPG_MOD 408>; + clock-names = "clk";Should the module clock be named "fck"?
Not according to Documentation/devicetree/bindings/interrupt-controller/arm,gic.txt.
P.S. If you use "git blame", you may think I'm cheating, but naming was
ased on the actual Technical Reference Manuals ;-)
Gr{oetje,eeting}s,
Geert
--
Geert Uytterhoeven -- There's lots of Linux beyond ia32 -- geert at linux-m68k.org
In personal conversations with technical people, I call myself a hacker. But when I'm talking to journalists I just say "programmer" or something like that.
-- Linus Torvalds
Geert Uytterhoeven
maintainerPATCH 4/4 arm64: dts: r8a7796: Link ARM GIC to clock and clock domain
In reply to Geert UytterhoevenLink the ARM GIC to the INTC-AP module clock, and add it to the SYSC "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.
--- arch/arm64/boot/dts/renesas/r8a7796.dtsi | 3 +++ 1 file changed, 3 insertions(+)
arch/arm64/boot/dts/renesas/r8a7796.dtsi +3 -0
@@ -101,6 +101,9 @@ <0x0 0xf1060000 0 0x20000>; interrupts = <GIC_PPI 9 (GIC_CPU_MASK_SIMPLE(1) | IRQ_TYPE_LEVEL_HIGH)>; + clocks = <&cpg CPG_MOD 408>; + clock-names = "clk"; + power-domains = <&sysc R8A7796_PD_ALWAYS_ON>; }; timer {
Signature · 1 line
1.9.1
cover ARM/arm64: dts: renesas: Link ARM GIC to clock and clock domain
In reply to Geert UytterhoevenQuoted 11 lines · Geert Uytterhoeven
Hi Simon, Magnus,
This patch series improves the topology description in DT of the ARM GIC on Renesas SoCs using the CPG/MSSR bindings (R-Car Gen3 and RZ/G). It links the GIC to its module clock, and adds it to the SYSC "always on" PM Domain.
Note that currently the GIC-400 driver doesn't support module clocks nor Runtime PM, so this must be handled as a critical clock.
As the CPG/MSSR driver, unlike the legacy MSTP driver, is already aware of critical clocks, this series can be applied right now.
Hi Geert,
does the note above imply that "[PATCH 0/2] clk: renesas: Use CLK_IS_CRITICAL to handle critical clocks" is a dependency of this series?
cover ARM/arm64: dts: renesas: Link ARM GIC to clock and clock domain
Hi Simon,
Quoted 6 lines · Simon Horman
Quoted 5 lines · Geert Uytterhoeven
This patch series improves the topology description in DT of the ARM GIC on Renesas SoCs using the CPG/MSSR bindings (R-Car Gen3 and RZ/G). It links the GIC to its module clock, and adds it to the SYSC "always on" PM Domain.
Quoted 7 lines
Quoted 4 lines
Note that currently the GIC-400 driver doesn't support module clocks nor Runtime PM, so this must be handled as a critical clock.
As the CPG/MSSR driver, unlike the legacy MSTP driver, is already aware of critical clocks, this series can be applied right now.does the note above imply that "[PATCH 0/2] clk: renesas: Use
CLK_IS_CRITICALto handle critical clocks" is a dependency of this series?
No, the note says (using different wording) that there is no such dependency.
Gr{oetje,eeting}s,
Geert
--
Geert Uytterhoeven -- There's lots of Linux beyond ia32 -- geert at linux-m68k.org
In personal conversations with technical people, I call myself a hacker. But when I'm talking to journalists I just say "programmer" or something like that.
-- Linus Torvalds
cover ARM/arm64: dts: renesas: Link ARM GIC to clock and clock domain
Quoted 14 lines · Geert Uytterhoeven
Hi Simon,
Quoted 11 lines · Simon Horman
Quoted 9 lines · Geert Uytterhoeven
This patch series improves the topology description in DT of the ARM GIC on Renesas SoCs using the CPG/MSSR bindings (R-Car Gen3 and RZ/G). It links the GIC to its module clock, and adds it to the SYSC "always on" PM Domain.
Note that currently the GIC-400 driver doesn't support module clocks nor Runtime PM, so this must be handled as a critical clock.
As the CPG/MSSR driver, unlike the legacy MSTP driver, is already aware of critical clocks, this series can be applied right now.
Quoted 4 lines
Quoted 2 lines
does the note above imply that "[PATCH 0/2] clk: renesas: Use
CLK_IS_CRITICALto handle critical clocks" is a dependency of this series?No, the note says (using different wording) that there is no such dependency.
Thanks, I see that now.
I have queued up these changes.