All of lore.kernel.org
 help / color / mirror / Atom feed
From: patryk.mungai-ndungu.kx@renesas.com (Patryk Mungai)
To: cip-dev@lists.cip-project.org
Subject: [cip-dev] [PATCH 1/2] ARM: dts: r8a7745: Add PMU device node
Date: Mon, 15 Oct 2018 11:23:27 +0100	[thread overview]
Message-ID: <1539599008-8382-2-git-send-email-patryk.mungai-ndungu.kx@renesas.com> (raw)
In-Reply-To: <1539599008-8382-1-git-send-email-patryk.mungai-ndungu.kx@renesas.com>

From: Geert Uytterhoeven <geert+renesas@glider.be>

Commit 9562a6b1d0f6a287f5dda16a4538526c59408927 upstream.

Enable support for the ARM Performance Monitor Units in the Cortex-A7
CPU cores on RZ/G1E 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>
Signed-off-by: Simon Horman <horms+renesas@verge.net.au>

[Backport to CIP]
Signed-off-by: Patryk Mungai <patryk.mungai-ndungu.kx@renesas.com>
Reviewed-by: Chris Paterson <Chris.Paterson2@renesas.com>
---
 arch/arm/boot/dts/r8a7745.dtsi | 7 +++++++
 1 file changed, 7 insertions(+)

diff --git a/arch/arm/boot/dts/r8a7745.dtsi b/arch/arm/boot/dts/r8a7745.dtsi
index 69b383c..54b556b 100644
--- a/arch/arm/boot/dts/r8a7745.dtsi
+++ b/arch/arm/boot/dts/r8a7745.dtsi
@@ -93,6 +93,13 @@
 		};
 	};
 
+	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>;
+	};
+
 	soc {
 		compatible = "simple-bus";
 		interrupt-parent = <&gic>;
-- 
2.7.4

  reply	other threads:[~2018-10-15 10:23 UTC|newest]

Thread overview: 11+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2018-10-15 10:23 [cip-dev] [PATCH 0/2] Add PMU support to iwg2[02]m Patryk Mungai
2018-10-15 10:23 ` Patryk Mungai [this message]
2018-10-21  7:49   ` [cip-dev] [PATCH 1/2] ARM: dts: r8a7745: Add PMU device node SZ Lin (林上智)
2018-10-21  8:05     ` 岩松信洋
2018-10-21 16:40       ` Chris Paterson
2018-10-22  6:53         ` SZ Lin (林上智)
2018-10-22 15:42           ` Patryk Mungai Ndungu
2018-10-23 13:23             ` 岩松信洋
2018-10-15 10:23 ` [cip-dev] [PATCH 2/2] ARM: dts: r8a7743: " Patryk Mungai
2018-10-21  7:50   ` SZ Lin (林上智)
2018-10-23 14:30 [cip-dev] [PATCH 0/2] Add PMU support to iwg2[02]m Patryk Mungai
2018-10-23 14:30 ` [cip-dev] [PATCH 1/2] ARM: dts: r8a7745: Add PMU device node Patryk Mungai

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1539599008-8382-2-git-send-email-patryk.mungai-ndungu.kx@renesas.com \
    --to=patryk.mungai-ndungu.kx@renesas.com \
    --cc=cip-dev@lists.cip-project.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.