devicetree.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Luis Oliveira <Luis.Oliveira@synopsys.com>
To: p.zabel@pengutronix.de, robh+dt@kernel.org, mark.rutland@arm.com,
	linux-kernel@vger.kernel.org, devicetree@vger.kernel.org
Cc: Joao.Pinto@synopsys.com,
	Luis Oliveira <Luis.Oliveira@synopsys.com>,
	Gustavo Pimentel <Gustavo.Pimentel@synopsys.com>
Subject: [PATCH V2 2/2] dt-bindings: Document the DesignWare IP reset bindings
Date: Thu,  6 Jun 2019 17:36:28 +0200	[thread overview]
Message-ID: <1559835388-2578-3-git-send-email-luis.oliveira@synopsys.com> (raw)
In-Reply-To: <1559835388-2578-1-git-send-email-luis.oliveira@synopsys.com>

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

Signed-off-by: Gustavo Pimentel <gustavo.pimentel@synopsys.com>
Signed-off-by: Luis Oliveira <luis.oliveira@synopsys.com>
---
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

  parent reply	other threads:[~2019-06-06 15:36 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2019-06-06 15:36 [PATCH V2 0/2] Add DesignWare IP support to simple reset Luis Oliveira
2019-06-06 15:36 ` [PATCH V2 1/2] reset: " Luis Oliveira
2019-06-06 15:36 ` Luis Oliveira [this message]
2019-07-09  1:52   ` [PATCH V2 2/2] dt-bindings: Document the DesignWare IP reset bindings Rob Herring
2019-07-09 10:33     ` Luis de Oliveira
2019-07-09 13:23       ` Rob Herring

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1559835388-2578-3-git-send-email-luis.oliveira@synopsys.com \
    --to=luis.oliveira@synopsys.com \
    --cc=Gustavo.Pimentel@synopsys.com \
    --cc=Joao.Pinto@synopsys.com \
    --cc=devicetree@vger.kernel.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=mark.rutland@arm.com \
    --cc=p.zabel@pengutronix.de \
    --cc=robh+dt@kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).