Commit c4f2fc00 authored by Marian Mihailescu's avatar Marian Mihailescu Committed by Krzysztof Kozlowski

ARM: dts: exynos: Add CPU perf counters to Exynos54xx boards

Enable support for ARM Performance Monitoring Units available in Cortex-A7
and Cortex-A15 CPU cores for Exynos54xx SoCs (5410, 5420 and 5422/5800).

The PMUs interrupts are defined in the common exynos54xx.dtsi device tree,
but the PMUs are enabled and have their interrupt CPU affinity defined
next to each SoC's cpus node.

Tested with perf on Odroid XU4 (Exynos5422):
armv7_cortex_a7 PMU driver: 5 counters available
armv7_cortex_a15 PMU driver: 7 counters available
Suggested-by: default avatarMarek Szyprowski <m.szyprowski@samsung.com>
Signed-off-by: default avatarMarian Mihailescu <mihailescu2m@gmail.com>
Signed-off-by: default avatarWilly Wolff <willy.mh.wolff@gmail.com>
[mszyprow: reordered nodes according to krzk request, fixed typos]
Signed-off-by: default avatarMarek Szyprowski <m.szyprowski@samsung.com>
Signed-off-by: default avatarKrzysztof Kozlowski <krzk@kernel.org>
parent cdd745c8
...@@ -264,6 +264,11 @@ cpu3_thermal: cpu3-thermal { ...@@ -264,6 +264,11 @@ cpu3_thermal: cpu3-thermal {
}; };
}; };
&arm_a15_pmu {
interrupt-affinity = <&cpu0>, <&cpu1>, <&cpu2>, <&cpu3>;
status = "okay";
};
&i2c_0 { &i2c_0 {
clocks = <&clock CLK_I2C0>; clocks = <&clock CLK_I2C0>;
clock-names = "i2c"; clock-names = "i2c";
......
...@@ -132,3 +132,13 @@ cpu7: cpu@103 { ...@@ -132,3 +132,13 @@ cpu7: cpu@103 {
}; };
}; };
}; };
&arm_a7_pmu {
interrupt-affinity = <&cpu4>, <&cpu5>, <&cpu6>, <&cpu7>;
status = "okay";
};
&arm_a15_pmu {
interrupt-affinity = <&cpu0>, <&cpu1>, <&cpu2>, <&cpu3>;
status = "okay";
};
...@@ -131,3 +131,13 @@ cpu7: cpu@3 { ...@@ -131,3 +131,13 @@ cpu7: cpu@3 {
}; };
}; };
}; };
&arm_a7_pmu {
interrupt-affinity = <&cpu0>, <&cpu1>, <&cpu2>, <&cpu3>;
status = "okay";
};
&arm_a15_pmu {
interrupt-affinity = <&cpu4>, <&cpu5>, <&cpu6>, <&cpu7>;
status = "okay";
};
...@@ -29,6 +29,26 @@ aliases { ...@@ -29,6 +29,26 @@ aliases {
}; };
soc: soc { soc: soc {
arm_a7_pmu: arm-a7-pmu {
compatible = "arm,cortex-a7-pmu";
interrupt-parent = <&gic>;
interrupts = <GIC_SPI 160 IRQ_TYPE_LEVEL_HIGH>,
<GIC_SPI 161 IRQ_TYPE_LEVEL_HIGH>,
<GIC_SPI 162 IRQ_TYPE_LEVEL_HIGH>,
<GIC_SPI 163 IRQ_TYPE_LEVEL_HIGH>;
status = "disabled";
};
arm_a15_pmu: arm-a15-pmu {
compatible = "arm,cortex-a15-pmu";
interrupt-parent = <&combiner>;
interrupts = <1 2>,
<7 0>,
<16 6>,
<19 2>;
status = "disabled";
};
sysram@2020000 { sysram@2020000 {
compatible = "mmio-sram"; compatible = "mmio-sram";
reg = <0x02020000 0x54000>; reg = <0x02020000 0x54000>;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment