gpio: pca953x: Add optional reset gpio control
authorSteve Longerbeam <slongerbeam@gmail.com>
Tue, 10 Jan 2017 19:29:51 +0000 (11:29 -0800)
committerLinus Walleij <linus.walleij@linaro.org>
Wed, 11 Jan 2017 15:35:23 +0000 (16:35 +0100)
commit054ccdef8b2850be3aee8cbd49000e6d61f837b2
treedc24c25076ba21e8aa7c32ddd1e547bf610faca3
parent3d301cb938c158f2e4b23cf7c176e3816c86dfbb
gpio: pca953x: Add optional reset gpio control

Add optional reset-gpios pin control. If present, de-assert the
specified reset gpio pin to bring the chip out of reset.

v2:
- Specify that reset signal to PCA953x chip is active low, in
  binding doc.
- reorder includes in gpio-pca953x.c.
- remove dev_err() on devm_gpiod_get_optional() error return.

Cc: Alexandre Courbot <gnurou@gmail.com>
Cc: linux-gpio@vger.kernel.org
Cc: linux-kernel@vger.kernel.org
Signed-off-by: Steve Longerbeam <steve_longerbeam@mentor.com>
Reviewed-by: Andy Shevchenko <andy.shevchenko@gmail.com>
Reviewed-by: Vladimir Zapolskiy <vladimir_zapolskiy@mentor.com>
Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
Documentation/devicetree/bindings/gpio/gpio-pca953x.txt
drivers/gpio/gpio-pca953x.c