Re: [PATCH v3 4/4] nds32: Add document for NDS32 PMU.

2018-10-24 Thread Nick Hu
Hi Rob,

On Thu, Oct 25, 2018 at 02:32:48AM +0800, Rob Herring wrote:
> On Wed, Oct 24, 2018 at 11:32:40AM +0800, Nickhu wrote:
> > The document for how to add NDS32 PMU
> > in devicetree.
> > 
> > Signed-off-by: Nickhu 
> > ---
> >  Documentation/devicetree/bindings/nds32/pmu.txt | 17 +
> >  1 file changed, 17 insertions(+)
> >  create mode 100644 Documentation/devicetree/bindings/nds32/pmu.txt
> 
> Can you move to bindings/perf/ with other similar h/w. With that,
> 
> Reviewed-by: Rob Herring 

Sure, thanks!
Nick


Re: [PATCH v3 4/4] nds32: Add document for NDS32 PMU.

2018-10-24 Thread Nick Hu
Hi Rob,

On Thu, Oct 25, 2018 at 02:32:48AM +0800, Rob Herring wrote:
> On Wed, Oct 24, 2018 at 11:32:40AM +0800, Nickhu wrote:
> > The document for how to add NDS32 PMU
> > in devicetree.
> > 
> > Signed-off-by: Nickhu 
> > ---
> >  Documentation/devicetree/bindings/nds32/pmu.txt | 17 +
> >  1 file changed, 17 insertions(+)
> >  create mode 100644 Documentation/devicetree/bindings/nds32/pmu.txt
> 
> Can you move to bindings/perf/ with other similar h/w. With that,
> 
> Reviewed-by: Rob Herring 

Sure, thanks!
Nick


Re: [PATCH v3 4/4] nds32: Add document for NDS32 PMU.

2018-10-24 Thread Rob Herring
On Wed, Oct 24, 2018 at 11:32:40AM +0800, Nickhu wrote:
> The document for how to add NDS32 PMU
> in devicetree.
> 
> Signed-off-by: Nickhu 
> ---
>  Documentation/devicetree/bindings/nds32/pmu.txt | 17 +
>  1 file changed, 17 insertions(+)
>  create mode 100644 Documentation/devicetree/bindings/nds32/pmu.txt

Can you move to bindings/perf/ with other similar h/w. With that,

Reviewed-by: Rob Herring 


Re: [PATCH v3 4/4] nds32: Add document for NDS32 PMU.

2018-10-24 Thread Rob Herring
On Wed, Oct 24, 2018 at 11:32:40AM +0800, Nickhu wrote:
> The document for how to add NDS32 PMU
> in devicetree.
> 
> Signed-off-by: Nickhu 
> ---
>  Documentation/devicetree/bindings/nds32/pmu.txt | 17 +
>  1 file changed, 17 insertions(+)
>  create mode 100644 Documentation/devicetree/bindings/nds32/pmu.txt

Can you move to bindings/perf/ with other similar h/w. With that,

Reviewed-by: Rob Herring 


[PATCH v3 4/4] nds32: Add document for NDS32 PMU.

2018-10-23 Thread Nickhu
The document for how to add NDS32 PMU
in devicetree.

Signed-off-by: Nickhu 
---
 Documentation/devicetree/bindings/nds32/pmu.txt | 17 +
 1 file changed, 17 insertions(+)
 create mode 100644 Documentation/devicetree/bindings/nds32/pmu.txt

diff --git a/Documentation/devicetree/bindings/nds32/pmu.txt 
b/Documentation/devicetree/bindings/nds32/pmu.txt
new file mode 100644
index ..1bd15785b4ae
--- /dev/null
+++ b/Documentation/devicetree/bindings/nds32/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>;
+}
-- 
2.17.0



[PATCH v3 4/4] nds32: Add document for NDS32 PMU.

2018-10-23 Thread Nickhu
The document for how to add NDS32 PMU
in devicetree.

Signed-off-by: Nickhu 
---
 Documentation/devicetree/bindings/nds32/pmu.txt | 17 +
 1 file changed, 17 insertions(+)
 create mode 100644 Documentation/devicetree/bindings/nds32/pmu.txt

diff --git a/Documentation/devicetree/bindings/nds32/pmu.txt 
b/Documentation/devicetree/bindings/nds32/pmu.txt
new file mode 100644
index ..1bd15785b4ae
--- /dev/null
+++ b/Documentation/devicetree/bindings/nds32/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>;
+}
-- 
2.17.0