Hello Geert,

Thank you for the patch!

> From: Geert Uytterhoeven <[email protected]>
> Sent: 19 August 2019 13:45
> Subject: [PATCH] ARM: dts: r8a77470: Add PMU device node
> 
> Enable support for the ARM Performance Monitor Units in the Cortex-A7
> CPU cores on RZ/G1C by adding a device node for the PMU.
> 
> New Linux output:
> 
>     hw perfevents: enabled with armv7_cortex_a7 PMU driver, 5 counters 
> available
> 
> Signed-off-by: Geert Uytterhoeven <[email protected]>

Tested-by: Fabrizio Castro <[email protected]>
Reviewed-by: Fabrizio Castro <[email protected]>

> ---
> Untested on actual hardware.  I even made up the kernel output ;-)

Good guess!

> 
>  arch/arm/boot/dts/r8a77470.dtsi | 7 +++++++
>  1 file changed, 7 insertions(+)
> 
> diff --git a/arch/arm/boot/dts/r8a77470.dtsi b/arch/arm/boot/dts/r8a77470.dtsi
> index 56cb10b42ed940dd..51806c7f486a3681 100644
> --- a/arch/arm/boot/dts/r8a77470.dtsi
> +++ b/arch/arm/boot/dts/r8a77470.dtsi
> @@ -63,6 +63,13 @@
>               clock-frequency = <0>;
>       };
> 
> +     pmu {
> +             compatible = "arm,cortex-a7-pmu";
> +             interrupts-extended = <&gic GIC_SPI 82 IRQ_TYPE_LEVEL_HIGH>,
> +                                   <&gic GIC_SPI 83 IRQ_TYPE_LEVEL_HIGH>;
> +             interrupt-affinity = <&cpu0>, <&cpu1>;
> +     };
> +
>       /* External SCIF clock */
>       scif_clk: scif {
>               compatible = "fixed-clock";
> --
> 2.17.1

Reply via email to