]> git.ipfire.org Git - thirdparty/kernel/linux.git/commitdiff
arm: dts: mt7623: add a performance counter unit device node
authorRyder Lee <ryder.lee@mediatek.com>
Wed, 5 Sep 2018 10:22:17 +0000 (18:22 +0800)
committerMatthias Brugger <matthias.bgg@gmail.com>
Tue, 25 Sep 2018 15:44:33 +0000 (17:44 +0200)
Add ARM PMU device node to enable hardware perf events.

Signed-off-by: Ryder Lee <ryder.lee@mediatek.com>
Signed-off-by: Matthias Brugger <matthias.bgg@gmail.com>
arch/arm/boot/dts/mt7623.dtsi

index 1cdc346a05e8be4deca54a1a20631f7312d91b57..8c43bd0715a9071987677573923d7a7d5c5bea90 100644 (file)
                };
        };
 
+       pmu {
+               compatible = "arm,cortex-a7-pmu";
+               interrupts = <GIC_SPI 4 IRQ_TYPE_LEVEL_LOW>,
+                            <GIC_SPI 5 IRQ_TYPE_LEVEL_LOW>,
+                            <GIC_SPI 6 IRQ_TYPE_LEVEL_LOW>,
+                            <GIC_SPI 7 IRQ_TYPE_LEVEL_LOW>;
+               interrupt-affinity = <&cpu0>, <&cpu1>, <&cpu2>, <&cpu3>;
+       };
+
        system_clk: dummy13m {
                compatible = "fixed-clock";
                clock-frequency = <13000000>;