linux-kernel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH V2 1/3] dt-bindings: gpio: Documentation for Hi6220 gpio driver
@ 2015-11-05  3:02 Zhong Kaihua
  2015-11-05  3:02 ` [PATCH V2 2/3] arm64: dts: Add Hi6220 gpio configuration nodes Zhong Kaihua
  2015-11-05  3:02 ` [PATCH V2 3/3] arm64: dts: add Hi6220 pinctrl " Zhong Kaihua
  0 siblings, 2 replies; 4+ messages in thread
From: Zhong Kaihua @ 2015-11-05  3:02 UTC (permalink / raw)
  To: robh+dt, pawel.moll, mark.rutland, ijc+devicetree, galak,
	catalin.marinas, will.deacon, xuyiping, xuwei5, bintian.wang,
	haojian.zhuang, devicetree, linux-arm-kernel, linux-kernel,
	puck.chen
  Cc: w.f, dan.zhao, suzhuangluan, zhongkaihua, kong.kongxinwei

dt-bindings: gpio: Documentation for Hi6220 gpio driver

Signed-off-by: Kaihua Zhong <zhongkaihua@huawei.com>
Signed-off-by: Xinwei Kong <kong.kongxinwei@hisilicon.com>

Acked-by: Rob Herring <robh@kernel.org>
---
 .../devicetree/bindings/gpio/gpio-hi6220.txt       | 23 ++++++++++++++++++++++
 1 file changed, 23 insertions(+)
 create mode 100644 Documentation/devicetree/bindings/gpio/gpio-hi6220.txt

diff --git a/Documentation/devicetree/bindings/gpio/gpio-hi6220.txt b/Documentation/devicetree/bindings/gpio/gpio-hi6220.txt
new file mode 100644
index 0000000..a9cbf21
--- /dev/null
+++ b/Documentation/devicetree/bindings/gpio/gpio-hi6220.txt
@@ -0,0 +1,23 @@
+Hisilicon Hi6220 GPIO controller bindings
+
+Required properties:
+	- compatible: "arm,pl061","arm,primecell"
+	- gpio-controller: Marks the device node as a GPIO controller.
+	- #gpio-cells: Should be 2. See gpio.txt in this directory for a
+		 description of	the cells format.
+	- interrupt-controller: Mark the device node as an interrupt controller
+
+Example:
+
+	gpio0: gpio@f8011000 {
+		compatible = "arm,pl061", "arm,primecell";
+		reg = <0x0 0xf8011000 0x0 0x1000>;
+		interrupts = <0	52 0x4>;
+		gpio-controller;
+		#gpio-cells = <2>;
+		interrupt-controller;
+		#interrupt-cells = <2>;
+		clocks = <&ao_ctrl 2>;
+		clock-names = "apb_pclk";
+		status = "ok";
+	};
-- 
1.9.1


^ permalink raw reply related	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2015-12-10 20:48 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2015-11-05  3:02 [PATCH V2 1/3] dt-bindings: gpio: Documentation for Hi6220 gpio driver Zhong Kaihua
2015-11-05  3:02 ` [PATCH V2 2/3] arm64: dts: Add Hi6220 gpio configuration nodes Zhong Kaihua
2015-12-10 20:48   ` Rob Herring
2015-11-05  3:02 ` [PATCH V2 3/3] arm64: dts: add Hi6220 pinctrl " Zhong Kaihua

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).