From patchwork Tue Feb 27 15:16:10 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Stefan Agner X-Patchwork-Id: 10245669 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork.web.codeaurora.org (Postfix) with ESMTP id C4AC660384 for ; Tue, 27 Feb 2018 15:16:49 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id B6EAE28960 for ; Tue, 27 Feb 2018 15:16:49 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id ABD0D2896B; Tue, 27 Feb 2018 15:16:49 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-1.9 required=2.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID autolearn=ham version=3.3.1 Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.wl.linuxfoundation.org (Postfix) with ESMTPS id B218B28960 for ; Tue, 27 Feb 2018 15:16:48 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20170209; h=Sender: Content-Transfer-Encoding:Content-Type:MIME-Version:Cc:List-Subscribe: List-Help:List-Post:List-Archive:List-Unsubscribe:List-Id:Message-Id:Date: Subject:To:From:Reply-To:Content-ID:Content-Description:Resent-Date: Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:In-Reply-To: References:List-Owner; bh=Ts5fHehUo1uii+7NvP76fCs1jw59XDJfZ0oN/iZ9svU=; b=L9E R2PLUBMgKjTH0fIXUiml1rHgGIhWM/a6LsD6dRqZuc08PeBmJdfYJQOBRFqORb9UaQPIScgA2p/kF cUa7xO63vxWKiR0ccYs8r49ZpCbWVIQ0IAwWgF5wRKUJZnzO1rLwx/GHBF5Fn74p2d6o6N9Wm/VGw TjR3Lp1iaepBBkO+PSrizDDkb18+PFgrL5o8dBEqEoNsJWwZ2ZbEvKbJMGxz+JEQ14BWQUcxl1QJz DyXQTig6UyfBxrFjCDimWMITx9jB0IiUAvCfAOmfXEL9TadjfS94joIUxF17CxoxwcdTkIXLtQWAZ ktIhAyrOucsNZDQSlQfX2Y7PfozMx/Q==; Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.89 #1 (Red Hat Linux)) id 1eqgzg-0000y3-4M; Tue, 27 Feb 2018 15:16:40 +0000 Received: from mail.kmu-office.ch ([2a02:418:6a02::a2]) by bombadil.infradead.org with esmtps (Exim 4.89 #1 (Red Hat Linux)) id 1eqgzc-0000wx-Br for linux-arm-kernel@lists.infradead.org; Tue, 27 Feb 2018 15:16:38 +0000 Received: from trochilidae.toradex.int (unknown [IPv6:2001:1620:c6e:10::3]) by mail.kmu-office.ch (Postfix) with ESMTPSA id A40BA5C015D; Tue, 27 Feb 2018 16:08:28 +0100 (CET) From: Stefan Agner To: shawnguo@kernel.org, kernel@pengutronix.de Subject: [PATCH] ARM: dts: imx7: add CPU PMU support Date: Tue, 27 Feb 2018 16:16:10 +0100 Message-Id: <20180227151610.21887-1-stefan@agner.ch> X-Mailer: git-send-email 2.16.2 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=agner.ch; s=dkim; t=1519744108; bh=bTkazXfMG29EvuQwN4Cd/QqzVGmXS4j4bO8tYIgY39c=; h=From:To:Cc:Subject:Date:Message-Id; b=DErqvW85jWs8lC2W/a0aQnODbyt527WBw7d2UO/HTMWNMGotlo0Oy1IfL/qkZXuB7xyn5lMc0QxK9DURFzXberZaUspgr+gXYcFW79A0lwzzlIvuudJv++Ki2htPVjgRvqThOoJLJqpwRnamyq4Jn6IO9SjvfkYxybYiUrsGGcc= X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20180227_071636_564884_A0AF0090 X-CRM114-Status: GOOD ( 13.06 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: fabio.estevam@nxp.com, devicetree@vger.kernel.org, Stefan Agner , linux-arm-kernel@lists.infradead.org MIME-Version: 1.0 Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+patchwork-linux-arm=patchwork.kernel.org@lists.infradead.org X-Virus-Scanned: ClamAV using ClamSMTP 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 Reviewed-by: Fabio Estevam --- 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 = ; + interrupt-affinity = <&cpu0>; + }; replicator { /*