diff options
author | Jan Kundrát <jan.kundrat@cesnet.cz> | 2017-12-22 23:29:44 +0300 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2018-01-09 21:36:51 +0300 |
commit | e397824bf0953344000101dc8994e92a98add0fe (patch) | |
tree | 325fa58249fc09ab3ee5cc1b8456801f65c2ce39 /drivers/tty/n_tracesink.c | |
parent | 7d09995dcb0577b4a56aad7f2bb56f28604e8f1a (diff) | |
download | linux-e397824bf0953344000101dc8994e92a98add0fe.tar.xz |
gpio: serial: max310x: Support open-drain configuration for GPIOs
The push-pull vs. open-drain are the only supported output modes. The
inputs are always unconditionally equipped with weak pull-downs. That's
the only mode, so there's probably no point in exporting that. I wonder
if it's worthwhile to provide a custom dbg_show method to indicate the
current status of the outputs, though.
This patch and [1] for i2c-gpio together make it possible to bit-bang an
I2C bus over GPIOs of an UART which is connected via SPI :). Yes, this
is crazy, but it's fast enough (while on a 26Mhz SPI HW bus with a
dual-core 1.6GHz CPU) to drive an I2C bus at 200kHz, according to my
scope.
[1] https://patchwork.ozlabs.org/patch/852591/
Signed-off-by: Jan Kundrát <jan.kundrat@cesnet.cz>
Reviewed-by: Linus Walleij <linus.walleij@linaro.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/tty/n_tracesink.c')
0 files changed, 0 insertions, 0 deletions