From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S934262AbcIESR3 (ORCPT ); Mon, 5 Sep 2016 14:17:29 -0400 Received: from mail-pf0-f195.google.com ([209.85.192.195]:34930 "EHLO mail-pf0-f195.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S934084AbcIESRZ (ORCPT ); Mon, 5 Sep 2016 14:17:25 -0400 From: Caesar Wang To: Heiko Stuebner Cc: linux-rockchip@lists.infradead.org, Douglas Anderson , sonnyrao@chromium.org, linux-arm-kernel@lists.infradead.org, Caesar Wang , Marc Zyngier , devicetree@vger.kernel.org, David Wu , Elaine Zhang , Brian Norris , linux-kernel@vger.kernel.org, Shawn Lin , Will Deacon , Jianqun Xu , Mark Rutland , Rob Herring , Catalin Marinas , Xing Zheng Subject: [PATCH v3 2/2] arm64: dts: rockchip: support the pmu node for rk3399 Date: Tue, 6 Sep 2016 02:17:15 +0800 Message-Id: <1473099435-28198-3-git-send-email-wxt@rock-chips.com> X-Mailer: git-send-email 1.9.1 In-Reply-To: <1473099435-28198-1-git-send-email-wxt@rock-chips.com> References: <1473099435-28198-1-git-send-email-wxt@rock-chips.com> Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org This patch adds to enable the ARM Performance Monitor Units for rk3399. ARM cores often have a PMU for counting cpu and cache events like cache misses and hits. Also, as the Marc posted the patches [0] to support Partitioning per-cpu interrupts. Let's add this patch to match it on rk3399 SoCs. [0]: https://lkml.org/lkml/2016/4/11/182 Signed-off-by: Caesar Wang Acked-by: Mark Rutland Cc: Heiko Stuebner Cc: Marc Zyngier CC: linux-arm-kernel@lists.infradead.org --- Changes in v3: - updated on next kernel(20160905). - add the Mark's ACK for PATCH[2/2]. Changes in v2: - AS Mark comments on https://patchwork.kernel.org/patch/9209369/ remove the interrupt-affinity property, we need depend on Marc' perf code on https://patchwork.kernel.org/patch/9209369/. arch/arm64/boot/dts/rockchip/rk3399.dtsi | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) diff --git a/arch/arm64/boot/dts/rockchip/rk3399.dtsi b/arch/arm64/boot/dts/rockchip/rk3399.dtsi index e9e22fe..4e65f3b 100644 --- a/arch/arm64/boot/dts/rockchip/rk3399.dtsi +++ b/arch/arm64/boot/dts/rockchip/rk3399.dtsi @@ -166,6 +166,16 @@ ; }; + pmu_a53 { + compatible = "arm,cortex-a53-pmu"; + interrupts = ; + }; + + pmu_a72 { + compatible = "arm,cortex-a72-pmu"; + interrupts = ; + }; + xin24m: xin24m { compatible = "fixed-clock"; clock-frequency = <24000000>; @@ -354,6 +364,16 @@ status = "disabled"; }; + ppi-partitions { + part0: interrupt-partition-0 { + affinity = <&cpu_l0 &cpu_l1 &cpu_l2 &cpu_l3>; + }; + + part1: interrupt-partition-1 { + affinity = <&cpu_b0 &cpu_b1>; + }; + }; + i2c1: i2c@ff110000 { compatible = "rockchip,rk3399-i2c"; reg = <0x0 0xff110000 0x0 0x1000>; -- 1.9.1