RE: [PATCH] ARM: dts: r8a77470: Add PMU device node

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hello Geert,

Thank you for the patch!

> From: Geert Uytterhoeven <geert+renesas@xxxxxxxxx>
> 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 <geert+renesas@xxxxxxxxx>

Tested-by: Fabrizio Castro <fabrizio.castro@xxxxxxxxxxxxxx>
Reviewed-by: Fabrizio Castro <fabrizio.castro@xxxxxxxxxxxxxx>

> ---
> 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





[Index of Archives]     [Linux Samsung SOC]     [Linux Wireless]     [Linux Kernel]     [ATH6KL]     [Linux Bluetooth]     [Linux Netdev]     [Kernel Newbies]     [IDE]     [Security]     [Git]     [Netfilter]     [Bugtraq]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Linux ATA RAID]     [Samba]     [Device Mapper]

  Powered by Linux