ARM: dts: imx7: add CPU PMU support
authorStefan Agner <stefan@agner.ch>
Tue, 27 Feb 2018 15:16:10 +0000 (16:16 +0100)
committerShawn Guo <shawnguo@kernel.org>
Wed, 28 Feb 2018 03:15:12 +0000 (11:15 +0800)
Enable support for ARM Performance Monitoring Units available
on the Cortex-A7 CPU. There is only a single interrupt for the
PMU in both variants of the family, i.MX 7Solo and 7Dual.

Tested with perf on a i.MX 7Dual:
  hw perfevents: enabled with armv7_cortex_a7 PMU driver, 5 counters available

Signed-off-by: Stefan Agner <stefan@agner.ch>
Reviewed-by: Fabio Estevam <fabio.estevam@nxp.com>
Signed-off-by: Shawn Guo <shawnguo@kernel.org>
arch/arm/boot/dts/imx7s.dtsi

index ec6292c..6401b08 100644 (file)
                #phy-cells = <0>;
        };
 
+       pmu {
+               compatible = "arm,cortex-a7-pmu";
+               interrupt-parent = <&gpc>;
+               interrupts = <GIC_SPI 92 IRQ_TYPE_LEVEL_HIGH>;
+               interrupt-affinity = <&cpu0>;
+       };
 
        replicator {
                /*