gpio: madera: Add DT bindings for GPIO on Cirrus Logic Madera codecs
authorRichard Fitzgerald <rf@opensource.wolfsonmicro.com>
Mon, 24 Apr 2017 10:23:00 +0000 (11:23 +0100)
committer강신형 <s47.kang@samsung.com>
Tue, 19 Jun 2018 06:52:31 +0000 (15:52 +0900)
The Cirrus Logic Madera codecs have a range of GPIO pins that can be
used as single-bit logic input or output. These are presented as a
standard GPIO binding.

The second cell in a GPIO binding is currently reserved for future use
as chip-specific flags.

Change-Id: Ida62b0f711418ecb803284fae9129ea7f428f5de
Signed-off-by: Richard Fitzgerald <rf@opensource.wolfsonmicro.com>
Documentation/devicetree/bindings/gpio/gpio-madera.txt [new file with mode: 0644]

diff --git a/Documentation/devicetree/bindings/gpio/gpio-madera.txt b/Documentation/devicetree/bindings/gpio/gpio-madera.txt
new file mode 100644 (file)
index 0000000..f81b01d
--- /dev/null
@@ -0,0 +1,29 @@
+Cirrus Logic Madera class audio codecs gpio driver
+
+These codecs have a set of configurable GPIO pins. The bindings here configure
+the driver that provides access to these GPIOs.
+
+See also
+- the core bindings for the parent MFD driver:
+    See Documentation/devicetree/bindings/mfd/madera.txt
+- the pinctrl bindings for these codecs
+    See Documentation/devicetree/bindings/pinctrl/cirrus,madera-pinctrl.txt
+
+Required properties:
+  - compatible : must be "cirrus,madera-gpio"
+  - gpio-controller : Indicates this device is a GPIO controller.
+  - #gpio-cells : Must be 2. The first cell is the pin number. The second cell
+    is reserved for future use and must be zero
+
+Optional properties:
+  - gpio-line-names : as described in bindings/gpio/gpio.txt
+
+Example:
+
+cs47l85@0 {
+       compatible = "cirrus,cs47l85";
+
+       gpio-controller;
+       #gpio-cells = <2>;
+};
+