Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.kernel > #1651058

[PATCH 1/2] dt-bindings: reset: Add bindings for basic reset controller

From Joel Stanley <joel@jms.id.au>
Newsgroups linux.kernel
Subject [PATCH 1/2] dt-bindings: reset: Add bindings for basic reset controller
Date 2017-05-26 05:40 +0200
Message-ID <tLegx-AF-5@gated-at.bofh.it> (permalink)
References <tLegx-AF-3@gated-at.bofh.it>
Organization linux.* mail to news gateway

Show all headers | View raw


This adds the bindings documentation for a basic single-register reset
controller.

The bindings describe a single 32-bit register that contains up to 32
reset lines, each deasserted by clearing the appropriate bit in the
register.

Signed-off-by: Joel Stanley <joel@jms.id.au>
---
 .../devicetree/bindings/reset/reset-basic.txt      | 31 ++++++++++++++++++++++
 1 file changed, 31 insertions(+)
 create mode 100644 Documentation/devicetree/bindings/reset/reset-basic.txt

diff --git a/Documentation/devicetree/bindings/reset/reset-basic.txt b/Documentation/devicetree/bindings/reset/reset-basic.txt
new file mode 100644
index 000000000000..7341e04e7904
--- /dev/null
+++ b/Documentation/devicetree/bindings/reset/reset-basic.txt
@@ -0,0 +1,31 @@
+Basic single-register reset controller
+======================================
+
+This describes a generic reset controller where the reset lines are controlled
+by single bits within a 32-bit memory location. The memory location is assumed
+to be part of a syscon regmap.
+
+Reset controller required properties:
+ - compatible: should be "reset-basic"
+ - #reset-cells: must be set to 1
+ - reg: reset register location within regmap
+
+Device node required properties:
+ - resets phandle
+ - bit number, counting from zero, for the desired reset line. Max is 31.
+
+Example:
+
+syscon {
+	compatible = "syscon";
+
+	uart_rest: rest@0c {
+		compatible = "reset-basic";
+		#reset-cells = <1>;
+		reg = <0x0c>;
+	};
+}
+
+&uart {
+	resets = <&uart_rest 0x04>;
+}
-- 
2.11.0

Back to linux.kernel | Previous | NextPrevious in thread | Next in thread | Find similar | Unroll thread


Thread

[PATCH 0/2] reset: Basic reset controller Joel Stanley <joel@jms.id.au> - 2017-05-26 05:40 +0200
  [PATCH 1/2] dt-bindings: reset: Add bindings for basic reset controller Joel Stanley <joel@jms.id.au> - 2017-05-26 05:40 +0200
    Re: [PATCH 1/2] dt-bindings: reset: Add bindings for basic reset  controller Philipp Zabel <p.zabel@pengutronix.de> - 2017-05-29 11:10 +0200
      Re: [PATCH 1/2] dt-bindings: reset: Add bindings for basic reset controller Joel Stanley <joel@jms.id.au> - 2017-05-29 12:20 +0200
  [PATCH 2/2] reset: Add basic single-register reset driver Joel Stanley <joel@jms.id.au> - 2017-05-26 05:40 +0200
    Re: [PATCH 2/2] reset: Add basic single-register reset driver Andy Shevchenko <andy.shevchenko@gmail.com> - 2017-05-27 17:20 +0200
      Re: [PATCH 2/2] reset: Add basic single-register reset driver Joel Stanley <joel@jms.id.au> - 2017-05-29 12:30 +0200
        Re: [PATCH 2/2] reset: Add basic single-register reset driver Andy Shevchenko <andy.shevchenko@gmail.com> - 2017-05-29 17:50 +0200

csiph-web