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


Groups > linux.kernel > #1609560

[PATCH 2/3] doc,dts - add XRA1403 DTS binding documentation

From Nandor Han <nandor.han@ge.com>
Newsgroups linux.kernel
Subject [PATCH 2/3] doc,dts - add XRA1403 DTS binding documentation
Date 2017-03-27 10:10 +0200
Message-ID <tpxSW-4Xx-25@gated-at.bofh.it> (permalink)
References <tpx6y-4iG-5@gated-at.bofh.it>
Organization linux.* mail to news gateway

Show all headers | View raw


Add the XRA1403 DTS binding documentation.

Signed-off-by: Nandor Han <nandor.han@ge.com>
---
 .../devicetree/bindings/gpio/gpio-xra1403.txt      | 37 ++++++++++++++++++++++
 1 file changed, 37 insertions(+)
 create mode 100644 Documentation/devicetree/bindings/gpio/gpio-xra1403.txt

diff --git a/Documentation/devicetree/bindings/gpio/gpio-xra1403.txt b/Documentation/devicetree/bindings/gpio/gpio-xra1403.txt
new file mode 100644
index 0000000..ccf5337
--- /dev/null
+++ b/Documentation/devicetree/bindings/gpio/gpio-xra1403.txt
@@ -0,0 +1,37 @@
+GPIO Driver for XRA1403 16-BIT GPIO Expander With Reset Input from EXAR
+
+The XRA1403 is an 16-bit GPIO expander with an SPI interface. Features available:
+	- Individually programmable inputs:
+		- Internal pull-up resistors
+		- Polarity inversion
+		- Individual interrupt enable
+		- Rising edge and/or Falling edge interrupt
+		- Input filter
+	- Individually programmable outputs
+		- Output Level Control
+		- Output Three-State Control
+
+Properties
+----------
+Check documentation for SPI and GPIO controllers regarding properties needed to configure the node.
+
+	- compatible = "exar,xra1403".
+	- reg = SPI id of the device.
+	- gpio-controller: mark the node as gpio.
+
+Optional properties:
+-------------------
+	- reset-gpios: in case available used to control the device reset line.
+
+Example
+--------
+
+	gpioxra0: gpio@2 {
+		compatible = "exar,xra1403";
+		reg = <2>;
+		gpio-controller;
+		#gpio-cells = <2>;
+		reset-gpios = <&gpio3 6 GPIO_ACTIVE_LOW>;
+		spi-max-frequency = <1000000>;
+		status = "okay";
+	};
-- 
2.10.1

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


Thread

[PATCH 0/3] XRA1403,gpio - add XRA1403 gpio expander driver Nandor Han <nandor.han@ge.com> - 2017-03-27 09:50 +0200
  [PATCH 2/3] doc,dts - add XRA1403 DTS binding documentation Nandor Han <nandor.han@ge.com> - 2017-03-27 10:10 +0200
    Re: [PATCH 2/3] doc,dts - add XRA1403 DTS binding documentation Linus Walleij <linus.walleij@linaro.org> - 2017-03-29 04:10 +0200
    Re: [PATCH 2/3] doc,dts - add XRA1403 DTS binding documentation Rob Herring <robh@kernel.org> - 2017-03-31 21:00 +0200
  Re: [PATCH 0/3] XRA1403,gpio - add XRA1403 gpio expander driver Linus Walleij <linus.walleij@linaro.org> - 2017-03-29 04:00 +0200
    [PATCH 0/3] XRA1403,gpio - add XRA1403 gpio expander driver "Han, Nandor (GE Healthcare)" <nandor.han@ge.com> - 2017-04-05 15:00 +0200

csiph-web