ARM: dts: sun8i: R40: Add PMU node
authorAndre Przywara <andre.przywara@arm.com>
Thu, 2 Jan 2020 01:26:56 +0000 (01:26 +0000)
committerMaxime Ripard <maxime@cerno.tech>
Fri, 3 Jan 2020 09:39:27 +0000 (10:39 +0100)
commit396c95e8b1385e3dac16d46227f570598b31f0f7
treee19159052df6bf0f1d8944462e4f27b77fe7d95b
parent7569ac447569b663ff1fc31484162e540fa000ab
ARM: dts: sun8i: R40: Add PMU node

The ARM Cortex-A7 cores used in the Allwinner R40 SoC have their usual
Performance Monitoring Unit (PMU), which allows perf to use hardware
events.
The SoC integrator just needs to connect each per-core interrupt line
to the GIC. The R40 manual does not really mention those IRQ lines, but
experimentation in U-Boot shows that interrupts 152-155 are connected to
the four cores (similar to the A20).

Tested on a Bananapi M2 Berry, with perf and taskset to confirm the
association between cores and interrupts.

Signed-off-by: Andre Przywara <andre.przywara@arm.com>
Signed-off-by: Maxime Ripard <maxime@cerno.tech>
arch/arm/boot/dts/sun8i-r40.dtsi