2019-06-06 19:34:41

by Luis de Oliveira

[permalink] [raw]
Subject: [PATCH V2 2/2] dt-bindings: Document the DesignWare IP reset bindings

This adds documentation of device tree bindings for the
DesignWare IP reset controller.

Signed-off-by: Gustavo Pimentel <[email protected]>
Signed-off-by: Luis Oliveira <[email protected]>
---
Changelog
- Add active low configuration example
- Fix compatible string in the active high example

.../devicetree/bindings/reset/snps,dw-reset.txt | 30 ++++++++++++++++++++++
1 file changed, 30 insertions(+)
create mode 100644 Documentation/devicetree/bindings/reset/snps,dw-reset.txt

diff --git a/Documentation/devicetree/bindings/reset/snps,dw-reset.txt b/Documentation/devicetree/bindings/reset/snps,dw-reset.txt
new file mode 100644
index 0000000..85f3301
--- /dev/null
+++ b/Documentation/devicetree/bindings/reset/snps,dw-reset.txt
@@ -0,0 +1,30 @@
+Synopsys DesignWare Reset controller
+=======================================
+
+Please also refer to reset.txt in this directory for common reset
+controller binding usage.
+
+Required properties:
+
+- compatible: should be one of the following.
+ "snps,dw-high-reset" - for active high configuration
+ "snps,dw-low-reset" - for active low configuration
+
+- reg: physical base address of the controller and length of memory mapped
+ region.
+
+- #reset-cells: must be 1.
+
+example:
+
+ dw_rst_1: reset-controller@0000 {
+ compatible = "snps,dw-high-reset";
+ reg = <0x0000 0x4>;
+ #reset-cells = <1>;
+ };
+
+ dw_rst_2: reset-controller@1000 {i
+ compatible = "snps,dw-low-reset";
+ reg = <0x1000 0x8>;
+ #reset-cells = <1>;
+ };
--
2.7.4


2019-07-09 01:52:56

by Rob Herring (Arm)

[permalink] [raw]
Subject: Re: [PATCH V2 2/2] dt-bindings: Document the DesignWare IP reset bindings

On Thu, Jun 06, 2019 at 05:36:28PM +0200, Luis Oliveira wrote:
> This adds documentation of device tree bindings for the
> DesignWare IP reset controller.
>
> Signed-off-by: Gustavo Pimentel <[email protected]>
> Signed-off-by: Luis Oliveira <[email protected]>
> ---
> Changelog
> - Add active low configuration example
> - Fix compatible string in the active high example
>
> .../devicetree/bindings/reset/snps,dw-reset.txt | 30 ++++++++++++++++++++++
> 1 file changed, 30 insertions(+)
> create mode 100644 Documentation/devicetree/bindings/reset/snps,dw-reset.txt
>
> diff --git a/Documentation/devicetree/bindings/reset/snps,dw-reset.txt b/Documentation/devicetree/bindings/reset/snps,dw-reset.txt
> new file mode 100644
> index 0000000..85f3301
> --- /dev/null
> +++ b/Documentation/devicetree/bindings/reset/snps,dw-reset.txt
> @@ -0,0 +1,30 @@
> +Synopsys DesignWare Reset controller
> +=======================================
> +
> +Please also refer to reset.txt in this directory for common reset
> +controller binding usage.
> +
> +Required properties:
> +
> +- compatible: should be one of the following.
> + "snps,dw-high-reset" - for active high configuration
> + "snps,dw-low-reset" - for active low configuration

This is really a standalone block?

Are there versions of IP?

> +
> +- reg: physical base address of the controller and length of memory mapped
> + region.
> +
> +- #reset-cells: must be 1.
> +
> +example:
> +
> + dw_rst_1: reset-controller@0000 {
> + compatible = "snps,dw-high-reset";
> + reg = <0x0000 0x4>;
> + #reset-cells = <1>;
> + };
> +
> + dw_rst_2: reset-controller@1000 {i
> + compatible = "snps,dw-low-reset";
> + reg = <0x1000 0x8>;
> + #reset-cells = <1>;
> + };
> --
> 2.7.4
>

2019-07-09 10:33:59

by Luis de Oliveira

[permalink] [raw]
Subject: RE: [PATCH V2 2/2] dt-bindings: Document the DesignWare IP reset bindings

Hi Rob,

Thank you for the comments,

From: Rob Herring <[email protected]>
Date: Tue, Jul 09, 2019 at 02:52:20

> On Thu, Jun 06, 2019 at 05:36:28PM +0200, Luis Oliveira wrote:
> > This adds documentation of device tree bindings for the
> > DesignWare IP reset controller.
> >
> > Signed-off-by: Gustavo Pimentel <[email protected]>
> > Signed-off-by: Luis Oliveira <[email protected]>
> > ---
> > Changelog
> > - Add active low configuration example
> > - Fix compatible string in the active high example
> >
> > .../devicetree/bindings/reset/snps,dw-reset.txt | 30 ++++++++++++++++++++++
> > 1 file changed, 30 insertions(+)
> > create mode 100644 Documentation/devicetree/bindings/reset/snps,dw-reset.txt
> >
> > diff --git a/Documentation/devicetree/bindings/reset/snps,dw-reset.txt b/Documentation/devicetree/bindings/reset/snps,dw-reset.txt
> > new file mode 100644
> > index 0000000..85f3301
> > --- /dev/null
> > +++ b/Documentation/devicetree/bindings/reset/snps,dw-reset.txt
> > @@ -0,0 +1,30 @@
> > +Synopsys DesignWare Reset controller
> > +=======================================
> > +
> > +Please also refer to reset.txt in this directory for common reset
> > +controller binding usage.
> > +
> > +Required properties:
> > +
> > +- compatible: should be one of the following.
> > + "snps,dw-high-reset" - for active high configuration
> > + "snps,dw-low-reset" - for active low configuration
>
> This is really a standalone block?
>
> Are there versions of IP?
>

We use this block because is is very simple. The Verilog is autogenerated
after an simple input configuration (APB config, reset pin number, active
high/low, etc) so it does not need versioning.
We use it in almost all our testchips and prototyping, and it is a
standalone block.

> > +
> > +- reg: physical base address of the controller and length of memory mapped
> > + region.
> > +
> > +- #reset-cells: must be 1.
> > +
> > +example:
> > +
> > + dw_rst_1: reset-controller@0000 {
> > + compatible = "snps,dw-high-reset";
> > + reg = <0x0000 0x4>;
> > + #reset-cells = <1>;
> > + };
> > +
> > + dw_rst_2: reset-controller@1000 {i
> > + compatible = "snps,dw-low-reset";
> > + reg = <0x1000 0x8>;
> > + #reset-cells = <1>;
> > + };
> > --
> > 2.7.4
> >

Thank you Rob,

Luis

2019-07-09 13:25:46

by Rob Herring (Arm)

[permalink] [raw]
Subject: Re: [PATCH V2 2/2] dt-bindings: Document the DesignWare IP reset bindings

On Tue, Jul 9, 2019 at 4:33 AM Luis de Oliveira
<[email protected]> wrote:
>
> Hi Rob,
>
> Thank you for the comments,
>
> From: Rob Herring <[email protected]>
> Date: Tue, Jul 09, 2019 at 02:52:20
>
> > On Thu, Jun 06, 2019 at 05:36:28PM +0200, Luis Oliveira wrote:
> > > This adds documentation of device tree bindings for the
> > > DesignWare IP reset controller.
> > >
> > > Signed-off-by: Gustavo Pimentel <[email protected]>
> > > Signed-off-by: Luis Oliveira <[email protected]>
> > > ---
> > > Changelog
> > > - Add active low configuration example
> > > - Fix compatible string in the active high example
> > >
> > > .../devicetree/bindings/reset/snps,dw-reset.txt | 30 ++++++++++++++++++++++
> > > 1 file changed, 30 insertions(+)
> > > create mode 100644 Documentation/devicetree/bindings/reset/snps,dw-reset.txt
> > >
> > > diff --git a/Documentation/devicetree/bindings/reset/snps,dw-reset.txt b/Documentation/devicetree/bindings/reset/snps,dw-reset.txt
> > > new file mode 100644
> > > index 0000000..85f3301
> > > --- /dev/null
> > > +++ b/Documentation/devicetree/bindings/reset/snps,dw-reset.txt
> > > @@ -0,0 +1,30 @@
> > > +Synopsys DesignWare Reset controller
> > > +=======================================
> > > +
> > > +Please also refer to reset.txt in this directory for common reset
> > > +controller binding usage.
> > > +
> > > +Required properties:
> > > +
> > > +- compatible: should be one of the following.
> > > + "snps,dw-high-reset" - for active high configuration
> > > + "snps,dw-low-reset" - for active low configuration
> >
> > This is really a standalone block?
> >
> > Are there versions of IP?
> >
>
> We use this block because is is very simple. The Verilog is autogenerated
> after an simple input configuration (APB config, reset pin number, active
> high/low, etc) so it does not need versioning.
> We use it in almost all our testchips and prototyping, and it is a
> standalone block.

Okay.

Reviewed-by: Rob Herring <[email protected]>