1c66ec88fSEmmanuel Vadot# SPDX-License-Identifier: GPL-2.0 2c66ec88fSEmmanuel Vadot%YAML 1.2 3c66ec88fSEmmanuel Vadot--- 4c66ec88fSEmmanuel Vadot$id: http://devicetree.org/schemas/arm/pmu.yaml# 5c66ec88fSEmmanuel Vadot$schema: http://devicetree.org/meta-schemas/core.yaml# 6c66ec88fSEmmanuel Vadot 7c66ec88fSEmmanuel Vadottitle: ARM Performance Monitor Units 8c66ec88fSEmmanuel Vadot 9c66ec88fSEmmanuel Vadotmaintainers: 10c66ec88fSEmmanuel Vadot - Mark Rutland <mark.rutland@arm.com> 11c66ec88fSEmmanuel Vadot - Will Deacon <will.deacon@arm.com> 12c66ec88fSEmmanuel Vadot 13c66ec88fSEmmanuel Vadotdescription: |+ 14c66ec88fSEmmanuel Vadot ARM cores often have a PMU for counting cpu and cache events like cache misses 15c66ec88fSEmmanuel Vadot and hits. The interface to the PMU is part of the ARM ARM. The ARM PMU 16c66ec88fSEmmanuel Vadot representation in the device tree should be done as under:- 17c66ec88fSEmmanuel Vadot 18c66ec88fSEmmanuel Vadotproperties: 19c66ec88fSEmmanuel Vadot compatible: 20c66ec88fSEmmanuel Vadot items: 21c66ec88fSEmmanuel Vadot - enum: 22c66ec88fSEmmanuel Vadot - apm,potenza-pmu 23fac71e4eSEmmanuel Vadot - apple,avalanche-pmu 24fac71e4eSEmmanuel Vadot - apple,blizzard-pmu 25c9ccf3a3SEmmanuel Vadot - apple,firestorm-pmu 26c9ccf3a3SEmmanuel Vadot - apple,icestorm-pmu 27c66ec88fSEmmanuel Vadot - arm,armv8-pmuv3 # Only for s/w models 28c66ec88fSEmmanuel Vadot - arm,arm1136-pmu 29c66ec88fSEmmanuel Vadot - arm,arm1176-pmu 30c66ec88fSEmmanuel Vadot - arm,arm11mpcore-pmu 31c66ec88fSEmmanuel Vadot - arm,cortex-a5-pmu 32c66ec88fSEmmanuel Vadot - arm,cortex-a7-pmu 33c66ec88fSEmmanuel Vadot - arm,cortex-a8-pmu 34c66ec88fSEmmanuel Vadot - arm,cortex-a9-pmu 35c66ec88fSEmmanuel Vadot - arm,cortex-a12-pmu 36c66ec88fSEmmanuel Vadot - arm,cortex-a15-pmu 37c66ec88fSEmmanuel Vadot - arm,cortex-a17-pmu 38c66ec88fSEmmanuel Vadot - arm,cortex-a32-pmu 39c66ec88fSEmmanuel Vadot - arm,cortex-a34-pmu 40c66ec88fSEmmanuel Vadot - arm,cortex-a35-pmu 41c66ec88fSEmmanuel Vadot - arm,cortex-a53-pmu 42c66ec88fSEmmanuel Vadot - arm,cortex-a55-pmu 43c66ec88fSEmmanuel Vadot - arm,cortex-a57-pmu 44c66ec88fSEmmanuel Vadot - arm,cortex-a65-pmu 45c66ec88fSEmmanuel Vadot - arm,cortex-a72-pmu 46c66ec88fSEmmanuel Vadot - arm,cortex-a73-pmu 47c66ec88fSEmmanuel Vadot - arm,cortex-a75-pmu 48c66ec88fSEmmanuel Vadot - arm,cortex-a76-pmu 49c66ec88fSEmmanuel Vadot - arm,cortex-a77-pmu 505def4c47SEmmanuel Vadot - arm,cortex-a78-pmu 51e67e8565SEmmanuel Vadot - arm,cortex-a510-pmu 52aa1a8ff2SEmmanuel Vadot - arm,cortex-a520-pmu 53e67e8565SEmmanuel Vadot - arm,cortex-a710-pmu 54aa1a8ff2SEmmanuel Vadot - arm,cortex-a715-pmu 55aa1a8ff2SEmmanuel Vadot - arm,cortex-a720-pmu 56*0e8011faSEmmanuel Vadot - arm,cortex-a725-pmu 57e67e8565SEmmanuel Vadot - arm,cortex-x1-pmu 58e67e8565SEmmanuel Vadot - arm,cortex-x2-pmu 59aa1a8ff2SEmmanuel Vadot - arm,cortex-x3-pmu 60aa1a8ff2SEmmanuel Vadot - arm,cortex-x4-pmu 61*0e8011faSEmmanuel Vadot - arm,cortex-x925-pmu 62c66ec88fSEmmanuel Vadot - arm,neoverse-e1-pmu 63c66ec88fSEmmanuel Vadot - arm,neoverse-n1-pmu 64e67e8565SEmmanuel Vadot - arm,neoverse-n2-pmu 65*0e8011faSEmmanuel Vadot - arm,neoverse-n3-pmu 66e67e8565SEmmanuel Vadot - arm,neoverse-v1-pmu 67*0e8011faSEmmanuel Vadot - arm,neoverse-v2-pmu 68*0e8011faSEmmanuel Vadot - arm,neoverse-v3-pmu 69*0e8011faSEmmanuel Vadot - arm,neoverse-v3ae-pmu 70c66ec88fSEmmanuel Vadot - brcm,vulcan-pmu 71c66ec88fSEmmanuel Vadot - cavium,thunder-pmu 72e67e8565SEmmanuel Vadot - nvidia,denver-pmu 73e67e8565SEmmanuel Vadot - nvidia,carmel-pmu 74c66ec88fSEmmanuel Vadot - qcom,krait-pmu 75c66ec88fSEmmanuel Vadot - qcom,scorpion-pmu 76c66ec88fSEmmanuel Vadot - qcom,scorpion-mp-pmu 77c66ec88fSEmmanuel Vadot 78c66ec88fSEmmanuel Vadot interrupts: 79c66ec88fSEmmanuel Vadot # Don't know how many CPUs, so no constraints to specify 80c66ec88fSEmmanuel Vadot description: 1 per-cpu interrupt (PPI) or 1 interrupt per core. 81c66ec88fSEmmanuel Vadot 82c66ec88fSEmmanuel Vadot interrupt-affinity: 83c66ec88fSEmmanuel Vadot $ref: /schemas/types.yaml#/definitions/phandle-array 84c9ccf3a3SEmmanuel Vadot items: 85c9ccf3a3SEmmanuel Vadot maxItems: 1 86c66ec88fSEmmanuel Vadot description: 87c66ec88fSEmmanuel Vadot When using SPIs, specifies a list of phandles to CPU 88c66ec88fSEmmanuel Vadot nodes corresponding directly to the affinity of 89c66ec88fSEmmanuel Vadot the SPIs listed in the interrupts property. 90c66ec88fSEmmanuel Vadot 91c66ec88fSEmmanuel Vadot When using a PPI, specifies a list of phandles to CPU 92c66ec88fSEmmanuel Vadot nodes corresponding to the set of CPUs which have 93c66ec88fSEmmanuel Vadot a PMU of this type signalling the PPI listed in the 94c66ec88fSEmmanuel Vadot interrupts property, unless this is already specified 95c66ec88fSEmmanuel Vadot by the PPI interrupt specifier itself (in which case 96c66ec88fSEmmanuel Vadot the interrupt-affinity property shouldn't be present). 97c66ec88fSEmmanuel Vadot 98c66ec88fSEmmanuel Vadot This property should be present when there is more than 99c66ec88fSEmmanuel Vadot a single SPI. 100c66ec88fSEmmanuel Vadot 101c66ec88fSEmmanuel Vadot qcom,no-pc-write: 102c66ec88fSEmmanuel Vadot type: boolean 103c66ec88fSEmmanuel Vadot description: 104c66ec88fSEmmanuel Vadot Indicates that this PMU doesn't support the 0xc and 0xd events. 105c66ec88fSEmmanuel Vadot 106c66ec88fSEmmanuel Vadot secure-reg-access: 107c66ec88fSEmmanuel Vadot type: boolean 108c66ec88fSEmmanuel Vadot description: 109c66ec88fSEmmanuel Vadot Indicates that the ARMv7 Secure Debug Enable Register 110c66ec88fSEmmanuel Vadot (SDER) is accessible. This will cause the driver to do 111c66ec88fSEmmanuel Vadot any setup required that is only possible in ARMv7 secure 112c66ec88fSEmmanuel Vadot state. If not present the ARMv7 SDER will not be touched, 113c66ec88fSEmmanuel Vadot which means the PMU may fail to operate unless external 114c66ec88fSEmmanuel Vadot code (bootloader or security monitor) has performed the 115c66ec88fSEmmanuel Vadot appropriate initialisation. Note that this property is 116c66ec88fSEmmanuel Vadot not valid for non-ARMv7 CPUs or ARMv7 CPUs booting Linux 117c66ec88fSEmmanuel Vadot in Non-secure state. 118c66ec88fSEmmanuel Vadot 119c66ec88fSEmmanuel Vadotrequired: 120c66ec88fSEmmanuel Vadot - compatible 121c66ec88fSEmmanuel Vadot 1226be33864SEmmanuel VadotadditionalProperties: false 1236be33864SEmmanuel Vadot 124c66ec88fSEmmanuel Vadot... 125