aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorNickhu <nickhu@andestech.com>2018-10-25 10:24:17 +0800
committerGreentime Hu <greentime@andestech.com>2018-11-06 18:01:40 +0800
commitcf26edd840dc65b122a0f5e22d2d81ad05eccb2d (patch)
tree38cb926ee14686900c038f08a4103a4b5498b5e9
parentnds32: Add perf call-graph support. (diff)
downloadlinux-dev-cf26edd840dc65b122a0f5e22d2d81ad05eccb2d.tar.xz
linux-dev-cf26edd840dc65b122a0f5e22d2d81ad05eccb2d.zip
nds32: Add document for NDS32 PMU.
The document for how to add NDS32 PMU in devicetree. Signed-off-by: Nickhu <nickhu@andestech.com> Reviewed-by: Rob Herring <robh@kernel.org> Acked-by: Greentime Hu <greentime@andestech.com> Signed-off-by: Greentime Hu <greentime@andestech.com>
-rw-r--r--Documentation/devicetree/bindings/perf/nds32v3-pmu.txt17
1 files changed, 17 insertions, 0 deletions
diff --git a/Documentation/devicetree/bindings/perf/nds32v3-pmu.txt b/Documentation/devicetree/bindings/perf/nds32v3-pmu.txt
new file mode 100644
index 000000000000..1bd15785b4ae
--- /dev/null
+++ b/Documentation/devicetree/bindings/perf/nds32v3-pmu.txt
@@ -0,0 +1,17 @@
+* NDS32 Performance Monitor Units
+
+NDS32 core have a PMU for counting cpu and cache events like cache misses.
+The NDS32 PMU representation in the device tree should be done as under:
+
+Required properties:
+
+- compatible :
+ "andestech,nds32v3-pmu"
+
+- interrupts : The interrupt number for NDS32 PMU is 13.
+
+Example:
+pmu{
+ compatible = "andestech,nds32v3-pmu";
+ interrupts = <13>;
+}