pinctrl: armada-37xx: swap polarity on LED group
authorPatrick Williams <alpawi@amazon.com>
Tue, 1 Oct 2019 15:51:38 +0000 (10:51 -0500)
committerLinus Walleij <linus.walleij@linaro.org>
Wed, 9 Oct 2019 08:00:58 +0000 (10:00 +0200)
commitb835d6953009dc350d61402a854b5a7178d8c615
tree3a49378fb502ea0f0f567b7848f377706851e8d4
parent2fd215b8fdbe4d3a609adbe3a323696393cb1e53
pinctrl: armada-37xx: swap polarity on LED group

The configuration registers for the LED group have inverted
polarity, which puts the GPIO into open-drain state when used in
GPIO mode.  Switch to '0' for GPIO and '1' for LED modes.

Fixes: 87466ccd9401 ("pinctrl: armada-37xx: Add pin controller support for Armada 37xx")
Signed-off-by: Patrick Williams <alpawi@amazon.com>
Cc: <stable@vger.kernel.org>
Link: https://lore.kernel.org/r/20191001155154.99710-1-alpawi@amazon.com
Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
drivers/pinctrl/mvebu/pinctrl-armada-37xx.c