From: Caesar Wang Date: Thu, 30 Jun 2016 10:47:02 +0000 (+0800) Subject: FROMLIST: arm64: dts: rockchip: support the pmu node for rk3399 X-Git-Tag: firefly_0821_release~2057 X-Git-Url: http://demsky.eecs.uci.edu/git/?a=commitdiff_plain;h=33ecc89934348d801527cc4feb351aed1745ccd9;p=firefly-linux-kernel-4.4.55.git FROMLIST: arm64: dts: rockchip: support the pmu node for rk3399 This patch add 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 https://patchwork.kernel.org/patch/9209369/ Signed-off-by: Caesar Wang Cc: Heiko Stuebner Cc: Marc Zyngier CC: linux-arm-kernel@lists.infradead.org Acked-by: Mark Rutland (Remove the original dts PMU) Change-Id: I7e06c479bff7a431b0dc03309df08a640060bafd Signed-off-by: Caesar Wang (am https://patchwork.kernel.org/patch/9215663/) --- diff --git a/arch/arm64/boot/dts/rockchip/rk3399.dtsi b/arch/arm64/boot/dts/rockchip/rk3399.dtsi index 7ee53786ce00..59f41e21796e 100644 --- a/arch/arm64/boot/dts/rockchip/rk3399.dtsi +++ b/arch/arm64/boot/dts/rockchip/rk3399.dtsi @@ -260,9 +260,14 @@ ; }; - arm-pmu { - compatible = "arm,armv8-pmuv3"; - interrupts = ; + pmu_a53 { + compatible = "arm,cortex-a53-pmu"; + interrupts = ; + }; + + pmu_a72 { + compatible = "arm,cortex-a72-pmu"; + interrupts = ; }; xin24m: xin24m { @@ -488,6 +493,16 @@ msi-controller; reg = <0x0 0xfee20000 0x0 0x20000>; }; + + ppi-partitions { + part0: interrupt-partition-0 { + affinity = <&cpu_l0 &cpu_l1 &cpu_l2 &cpu_l3>; + }; + + part1: interrupt-partition-1 { + affinity = <&cpu_b0 &cpu_b1>; + }; + }; }; saradc: saradc@ff100000 {