gpio: tc3589x: implement open drain/source callback
authorLinus Walleij <linus.walleij@linaro.org>
Tue, 5 Apr 2016 13:11:11 +0000 (15:11 +0200)
committerLinus Walleij <linus.walleij@linaro.org>
Tue, 5 Apr 2016 15:02:34 +0000 (17:02 +0200)
commit8b866b0682c5de249afed3f7cb23c8421bc735b0
tree98da781dfde46a0485a2e9fd7da9797b2a89021e
parentcee1b40d96f1b49e9a1b38e2d57d37a2c20ced31
gpio: tc3589x: implement open drain/source callback

This makes use of the new .set_single_ended() callback to
set the GPIO line as open drain/open source using hardware.
The TC3589x can do this by either disabling the N-MOS
transistor (open drain) or the P-MOS transistor (open source)
of the output driver stage, in the first case making the signal
drive actively low and high impedance as "high" and in the second
case actively high and high impedance, which is as close to native
open drain support as we come.

Cc: Michael Hennerich <michael.hennerich@analog.com>
Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
drivers/gpio/gpio-tc3589x.c
This page took 0.027717 seconds and 5 git commands to generate.