aboutsummaryrefslogtreecommitdiffstats
path: root/Documentation/devicetree/bindings/pinctrl/pinctrl-st.txt
diff options
context:
space:
mode:
authorPatrice Chotard <patrice.chotard@st.com>2016-08-10 15:12:58 +0200
committerLinus Walleij <linus.walleij@linaro.org>2016-08-11 16:05:45 +0200
commit1e23437563dd3ad57e30c5d6c29995a982fd649b (patch)
tree34e40500ec9fe7fb17d7dbff5b2f0eddcf1de1b5 /Documentation/devicetree/bindings/pinctrl/pinctrl-st.txt
parentpinctrl: nomadik: use of_property_read_bool (diff)
downloadlinux-dev-1e23437563dd3ad57e30c5d6c29995a982fd649b.tar.xz
linux-dev-1e23437563dd3ad57e30c5d6c29995a982fd649b.zip
pinctrl: st: Use second parameter to gpio specifier
This patch allows to use the second parameter of gpio specifier, which is used to specify whether the gpio is active high or low. Simply remove specific of_xlate callback() and of_gpio_n_cells and use default one set by of_gpiochip_add() which allows to use second parameter gpio specifier. Signed-off-by: Maxime Coquelin <maxime.coquelin@st.com> Signed-off-by: Patrice Chotard <patrice.chotard@st.com> Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
Diffstat (limited to 'Documentation/devicetree/bindings/pinctrl/pinctrl-st.txt')
-rw-r--r--Documentation/devicetree/bindings/pinctrl/pinctrl-st.txt8
1 files changed, 6 insertions, 2 deletions
diff --git a/Documentation/devicetree/bindings/pinctrl/pinctrl-st.txt b/Documentation/devicetree/bindings/pinctrl/pinctrl-st.txt
index 26bcb18f4e60..e6cc5e8f6438 100644
--- a/Documentation/devicetree/bindings/pinctrl/pinctrl-st.txt
+++ b/Documentation/devicetree/bindings/pinctrl/pinctrl-st.txt
@@ -50,7 +50,11 @@ Optional properties:
GPIO controller/bank node.
Required properties:
- gpio-controller : Indicates this device is a GPIO controller
-- #gpio-cells : Should be one. The first cell is the pin number.
+- #gpio-cells : Must be two.
+ - First cell: specifies the pin number inside the controller
+ - Second cell: specifies whether the pin is logically inverted.
+ - 0 = active high
+ - 1 = active low
- st,bank-name : Should be a name string for this bank as specified in
datasheet.
@@ -88,7 +92,7 @@ Example:
PIO0: gpio@fe610000 {
gpio-controller;
- #gpio-cells = <1>;
+ #gpio-cells = <2>;
interrupt-controller;
#interrupt-cells = <2>;
reg = <0 0x100>;