ASoC: rt5677: Add gpio-controller DTS documentation
authorAnatol Pomozov <anatol.pomozov@gmail.com>
Wed, 24 Sep 2014 18:31:58 +0000 (11:31 -0700)
committerMark Brown <broonie@kernel.org>
Thu, 25 Sep 2014 13:06:36 +0000 (14:06 +0100)
Signed-off-by: Anatol Pomozov <anatol.pomozov@gmail.com>
Signed-off-by: Mark Brown <broonie@kernel.org>
Documentation/devicetree/bindings/sound/rt5677.txt

index 98509fb7481bf1553cca8b1ca05e016192963d32..bd28df604b7b9d59c805cb1457f70ab4f10b61ef 100644 (file)
@@ -10,6 +10,11 @@ Required properties:
 
 - interrupts : The CODEC's interrupt output.
 
+- gpio-controller : Indicates this device is a GPIO controller.
+
+- #gpio-cells : Should be two. The first cell is the pin number and the
+  second cell is used to specify optional parameters (currently unused).
+
 Optional properties:
 
 - realtek,pow-ldo2-gpio : The GPIO that controls the CODEC's POW_LDO2 pin.
@@ -36,6 +41,10 @@ rt5677 {
        reg = <0x2c>;
        interrupt-parent = <&gpio>;
        interrupts = <TEGRA_GPIO(W, 3) GPIO_ACTIVE_HIGH>;
+
+       gpio-controller;
+       #gpio-cells = <2>;
+
        realtek,pow-ldo2-gpio =
                <&gpio TEGRA_GPIO(V, 3) GPIO_ACTIVE_HIGH>;
 };