ARM: dts: r8a77470: Add PMU device node
authorGeert Uytterhoeven <geert+renesas@glider.be>
Mon, 7 May 2018 09:16:48 +0000 (11:16 +0200)
committerGeert Uytterhoeven <geert+renesas@glider.be>
Wed, 21 Aug 2019 08:28:57 +0000 (10:28 +0200)
Enable support for the ARM Performance Monitor Units in the Cortex-A7
CPU cores on RZ/G1C by adding a device node for the PMU.

New Linux output:

    hw perfevents: enabled with armv7_cortex_a7 PMU driver, 5 counters available

Signed-off-by: Geert Uytterhoeven <geert+renesas@glider.be>
Tested-by: Fabrizio Castro <fabrizio.castro@bp.renesas.com>
Reviewed-by: Fabrizio Castro <fabrizio.castro@bp.renesas.com>
arch/arm/boot/dts/r8a77470.dtsi

index 56cb10b42ed940dd42b9413cb58dc2c493e4941e..51806c7f486a3681c17f3cea5fd13f93982891a3 100644 (file)
                clock-frequency = <0>;
        };
 
+       pmu {
+               compatible = "arm,cortex-a7-pmu";
+               interrupts-extended = <&gic GIC_SPI 82 IRQ_TYPE_LEVEL_HIGH>,
+                                     <&gic GIC_SPI 83 IRQ_TYPE_LEVEL_HIGH>;
+               interrupt-affinity = <&cpu0>, <&cpu1>;
+       };
+
        /* External SCIF clock */
        scif_clk: scif {
                compatible = "fixed-clock";