Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

bindings: update imx and mxs #gpio-cells

The of_get_named_gpio_flags can retrieve the second cell of
gpio-specifier as the "flags". The imx and mxs gpio driver do not
have their own .xlate callback, which means of_gpio_simple_xlate is
used and it's a 1:1 mapping between gpio controller flags and Linux
"enum of_gpio_flags".

Update imx and mxs bindings document to make it clear.

Signed-off-by: Shawn Guo <shawn.guo@linaro.org>

Shawn Guo c1cb4385 77ac32ad

+6 -4
+3 -2
Documentation/devicetree/bindings/gpio/fsl-imx-gpio.txt
··· 8 8 by low 16 pins and the second one is for high 16 pins. 9 9 - gpio-controller : Marks the device node as a gpio controller. 10 10 - #gpio-cells : Should be two. The first cell is the pin number and 11 - the second cell is used to specify optional parameters (currently 12 - unused). 11 + the second cell is used to specify the gpio polarity: 12 + 0 = active high 13 + 1 = active low 13 14 14 15 Example: 15 16
+3 -2
Documentation/devicetree/bindings/gpio/gpio-mxs.txt
··· 13 13 - interrupts : Should be the port interrupt shared by all 32 pins. 14 14 - gpio-controller : Marks the device node as a gpio controller. 15 15 - #gpio-cells : Should be two. The first cell is the pin number and 16 - the second cell is used to specify optional parameters (currently 17 - unused). 16 + the second cell is used to specify the gpio polarity: 17 + 0 = active high 18 + 1 = active low 18 19 - interrupt-controller: Marks the device node as an interrupt controller. 19 20 - #interrupt-cells : Should be 2. The first cell is the GPIO number. 20 21 The second cell bits[3:0] is used to specify trigger type and level flags: