xref: /freebsd/sys/contrib/device-tree/Bindings/perf/nds32v3-pmu.txt (revision c66ec88fed842fbaad62c30d510644ceb7bd2d71)
1*c66ec88fSEmmanuel Vadot* NDS32 Performance Monitor Units
2*c66ec88fSEmmanuel Vadot
3*c66ec88fSEmmanuel VadotNDS32 core have a PMU for counting cpu and cache events like cache misses.
4*c66ec88fSEmmanuel VadotThe NDS32 PMU representation in the device tree should be done as under:
5*c66ec88fSEmmanuel Vadot
6*c66ec88fSEmmanuel VadotRequired properties:
7*c66ec88fSEmmanuel Vadot
8*c66ec88fSEmmanuel Vadot- compatible :
9*c66ec88fSEmmanuel Vadot	"andestech,nds32v3-pmu"
10*c66ec88fSEmmanuel Vadot
11*c66ec88fSEmmanuel Vadot- interrupts : The interrupt number for NDS32 PMU is 13.
12*c66ec88fSEmmanuel Vadot
13*c66ec88fSEmmanuel VadotExample:
14*c66ec88fSEmmanuel Vadotpmu{
15*c66ec88fSEmmanuel Vadot	compatible = "andestech,nds32v3-pmu";
16*c66ec88fSEmmanuel Vadot	interrupts = <13>;
17*c66ec88fSEmmanuel Vadot}
18