^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 1) * NDS32 Performance Monitor Units
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 2)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 3) NDS32 core have a PMU for counting cpu and cache events like cache misses.
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 4) The NDS32 PMU representation in the device tree should be done as under:
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 5)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 6) Required properties:
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 7)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 8) - compatible :
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 9) "andestech,nds32v3-pmu"
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 10)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 11) - interrupts : The interrupt number for NDS32 PMU is 13.
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 12)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 13) Example:
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 14) pmu{
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 15) compatible = "andestech,nds32v3-pmu";
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 16) interrupts = <13>;
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 17) }