* [PATCH] ARM: dts: imx7: add CPU PMU support
@ 2018-02-27 15:16 Stefan Agner
2018-02-27 15:28 ` Fabio Estevam
2018-02-28 3:15 ` Shawn Guo
0 siblings, 2 replies; 3+ messages in thread
From: Stefan Agner @ 2018-02-27 15:16 UTC (permalink / raw)
To: shawnguo, kernel
Cc: fabio.estevam, devicetree, Stefan Agner, linux-arm-kernel
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>
---
arch/arm/boot/dts/imx7s.dtsi | 6 ++++++
1 file changed, 6 insertions(+)
diff --git a/arch/arm/boot/dts/imx7s.dtsi b/arch/arm/boot/dts/imx7s.dtsi
index 9aa2bb998552..a6d8f35c4255 100644
--- a/arch/arm/boot/dts/imx7s.dtsi
+++ b/arch/arm/boot/dts/imx7s.dtsi
@@ -130,6 +130,12 @@
#phy-cells = <0>;
};
+ pmu {
+ compatible = "arm,cortex-a7-pmu";
+ interrupt-parent = <&gpc>;
+ interrupts = <GIC_SPI 92 IRQ_TYPE_LEVEL_HIGH>;
+ interrupt-affinity = <&cpu0>;
+ };
replicator {
/*
--
2.16.2
^ permalink raw reply related [flat|nested] 3+ messages in thread
* Re: [PATCH] ARM: dts: imx7: add CPU PMU support
2018-02-27 15:16 [PATCH] ARM: dts: imx7: add CPU PMU support Stefan Agner
@ 2018-02-27 15:28 ` Fabio Estevam
2018-02-28 3:15 ` Shawn Guo
1 sibling, 0 replies; 3+ messages in thread
From: Fabio Estevam @ 2018-02-27 15:28 UTC (permalink / raw)
To: Stefan Agner
Cc: Fabio Estevam,
open list:OPEN FIRMWARE AND FLATTENED DEVICE TREE BINDINGS,
Shawn Guo,
moderated list:ARM/FREESCALE IMX / MXC ARM ARCHITECTURE,
Sascha Hauer
On Tue, Feb 27, 2018 at 12:16 PM, Stefan Agner <stefan@agner.ch> wrote:
> 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>
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: [PATCH] ARM: dts: imx7: add CPU PMU support
2018-02-27 15:16 [PATCH] ARM: dts: imx7: add CPU PMU support Stefan Agner
2018-02-27 15:28 ` Fabio Estevam
@ 2018-02-28 3:15 ` Shawn Guo
1 sibling, 0 replies; 3+ messages in thread
From: Shawn Guo @ 2018-02-28 3:15 UTC (permalink / raw)
To: Stefan Agner; +Cc: fabio.estevam, devicetree, linux-arm-kernel, kernel
On Tue, Feb 27, 2018 at 04:16:10PM +0100, Stefan Agner wrote:
> 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>
Applied, thanks.
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2018-02-28 3:15 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2018-02-27 15:16 [PATCH] ARM: dts: imx7: add CPU PMU support Stefan Agner
2018-02-27 15:28 ` Fabio Estevam
2018-02-28 3:15 ` Shawn Guo
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).