xref: /freebsd/sys/contrib/device-tree/Bindings/csky/pmu.txt (revision c66ec88fed842fbaad62c30d510644ceb7bd2d71)
1*c66ec88fSEmmanuel Vadot===============================
2*c66ec88fSEmmanuel VadotC-SKY Performance Monitor Units
3*c66ec88fSEmmanuel Vadot===============================
4*c66ec88fSEmmanuel Vadot
5*c66ec88fSEmmanuel VadotC-SKY Performance Monitor is designed for ck807/ck810/ck860 SMP soc and
6*c66ec88fSEmmanuel Vadotit could count cpu's events for helping analysis performance issues.
7*c66ec88fSEmmanuel Vadot
8*c66ec88fSEmmanuel Vadot============================
9*c66ec88fSEmmanuel VadotPMU node bindings definition
10*c66ec88fSEmmanuel Vadot============================
11*c66ec88fSEmmanuel Vadot
12*c66ec88fSEmmanuel Vadot	Description: Describes PMU
13*c66ec88fSEmmanuel Vadot
14*c66ec88fSEmmanuel Vadot	PROPERTIES
15*c66ec88fSEmmanuel Vadot
16*c66ec88fSEmmanuel Vadot	- compatible
17*c66ec88fSEmmanuel Vadot		Usage: required
18*c66ec88fSEmmanuel Vadot		Value type: <string>
19*c66ec88fSEmmanuel Vadot		Definition: must be "csky,csky-pmu"
20*c66ec88fSEmmanuel Vadot	- interrupts
21*c66ec88fSEmmanuel Vadot		Usage: required
22*c66ec88fSEmmanuel Vadot		Value type: <u32 IRQ_TYPE_XXX>
23*c66ec88fSEmmanuel Vadot		Definition: must be pmu irq num defined by soc
24*c66ec88fSEmmanuel Vadot	- count-width
25*c66ec88fSEmmanuel Vadot		Usage: optional
26*c66ec88fSEmmanuel Vadot		Value type: <u32>
27*c66ec88fSEmmanuel Vadot		Definition: the width of pmu counter
28*c66ec88fSEmmanuel Vadot
29*c66ec88fSEmmanuel VadotExamples:
30*c66ec88fSEmmanuel Vadot---------
31*c66ec88fSEmmanuel Vadot#include <dt-bindings/interrupt-controller/irq.h>
32*c66ec88fSEmmanuel Vadot
33*c66ec88fSEmmanuel Vadot	pmu: performace-monitor {
34*c66ec88fSEmmanuel Vadot		compatible = "csky,csky-pmu";
35*c66ec88fSEmmanuel Vadot		interrupts = <23 IRQ_TYPE_EDGE_RISING>;
36*c66ec88fSEmmanuel Vadot		interrupt-parent = <&intc>;
37*c66ec88fSEmmanuel Vadot		count-width = <48>;
38*c66ec88fSEmmanuel Vadot        };
39