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


Groups > linux.kernel > #1447000 > unrolled thread

[PATCH 05/12] gpio: dt-bindings: Add documentation for Aspeed GPIO controllers

Started byAndrew Jeffery <andrew@aj.id.au>
First post2016-07-20 08:20 +0200
Last post2016-07-20 21:10 +0200
Articles 2 — 2 participants

Back to article view | Back to linux.kernel

This discussion starts older than the indexed window; earlier articles aren't shown. The article labeled Started by below is the oldest one visible, not the original post.


Contents

  [PATCH 05/12] gpio: dt-bindings: Add documentation for Aspeed GPIO controllers Andrew Jeffery <andrew@aj.id.au> - 2016-07-20 08:20 +0200
    Re: [PATCH 05/12] gpio: dt-bindings: Add documentation for Aspeed  GPIO controllers Rob Herring <robh@kernel.org> - 2016-07-20 21:10 +0200

#1447000 — [PATCH 05/12] gpio: dt-bindings: Add documentation for Aspeed GPIO controllers

FromAndrew Jeffery <andrew@aj.id.au>
Date2016-07-20 08:20 +0200
Subject[PATCH 05/12] gpio: dt-bindings: Add documentation for Aspeed GPIO controllers
Message-ID<rWT1n-6cr-1@gated-at.bofh.it>
Signed-off-by: Andrew Jeffery <andrew@aj.id.au>
---
 .../devicetree/bindings/gpio/gpio-aspeed.txt       | 42 ++++++++++++++++++++++
 1 file changed, 42 insertions(+)
 create mode 100644 Documentation/devicetree/bindings/gpio/gpio-aspeed.txt

diff --git a/Documentation/devicetree/bindings/gpio/gpio-aspeed.txt b/Documentation/devicetree/bindings/gpio/gpio-aspeed.txt
new file mode 100644
index 000000000000..1954b288cd49
--- /dev/null
+++ b/Documentation/devicetree/bindings/gpio/gpio-aspeed.txt
@@ -0,0 +1,42 @@
+Aspeed GPIO controller Device Tree Bindings
+-------------------------------------------
+
+Required properties:
+- #gpio-cells 		: Should be two
+			  - First cell is the GPIO line number
+			  - Second cell is used to specify optional
+			    parameters (unused)
+
+- compatible		: Either "aspeed,ast2400-gpio" or "aspeed,ast2500-gpio"
+
+- reg			: Address and length of the register set for the device
+- gpio-controller	: Marks the device node as a GPIO controller.
+- interrupts		: Interrupt specifier (see interrupt bindings for
+			  details)
+
+Optional properties:
+- interrupt-controller	: Marks the device node as an interrupt controller.
+- interrupt-parent	: The parent interrupt controller, optional if inherited
+- #interrupt-cells 	: Should be 2.  The first cell is the GPIO number.
+			  The second cell bits[3:0] is used to specify trigger
+			  type and level flags:
+			      1 = low-to-high edge triggered.
+			      2 = high-to-low edge triggered.
+			      4 = active high level-sensitive.
+			      8 = active low level-sensitive.
+
+The gpio and interrupt properties are further described in their respective
+bindings documentation:
+
+- Documentation/devicetree/bindings/gpio/gpio.txt
+- Documentation/devicetree/bindings/interrupt-controller/interrupts.txt
+
+  Example:
+	gpio@1e780000 {
+		#gpio-cells = <2>;
+		compatible = "aspeed,ast2400-gpio"
+		gpio-controller;
+		interrupt-parent = <&intc>;
+		interrupts = <20>;
+		reg = <0x1e780000 0x1000>;
+	};
-- 
2.7.4

[toc] | [next] | [standalone]


#1447406 — Re: [PATCH 05/12] gpio: dt-bindings: Add documentation for Aspeed GPIO controllers

FromRob Herring <robh@kernel.org>
Date2016-07-20 21:10 +0200
SubjectRe: [PATCH 05/12] gpio: dt-bindings: Add documentation for Aspeed GPIO controllers
Message-ID<rX52y-5nW-19@gated-at.bofh.it>
In reply to#1447000
On Wed, Jul 20, 2016 at 03:28:26PM +0930, Andrew Jeffery wrote:
> Signed-off-by: Andrew Jeffery <andrew@aj.id.au>
> ---
>  .../devicetree/bindings/gpio/gpio-aspeed.txt       | 42 ++++++++++++++++++++++
>  1 file changed, 42 insertions(+)
>  create mode 100644 Documentation/devicetree/bindings/gpio/gpio-aspeed.txt

Acked-by: Rob Herring <robh@kernel.org>

[toc] | [prev] | [standalone]


Back to top | Article view | linux.kernel


csiph-web