diff options
author | Matthieu Herrb <matthieu@cvs.openbsd.org> | 2011-10-03 20:24:52 +0000 |
---|---|---|
committer | Matthieu Herrb <matthieu@cvs.openbsd.org> | 2011-10-03 20:24:52 +0000 |
commit | 04bcf51a1f7bbc75966d47af6c1cabcf04ff401a (patch) | |
tree | a38b75a259019fe921425fbd35a71265666807dc /share/man | |
parent | 65d54d24c8660c42636983d81b47f59d2c5c1940 (diff) |
Add a 'flag' locator to gpioiic(4), and define a first flag
value to swap the SDA and SCL pins assigment during attach.
Mostly from work with mbalmer@NetBSD.
ok miod@
Diffstat (limited to 'share/man')
-rw-r--r-- | share/man/man4/gpioiic.4 | 12 |
1 files changed, 7 insertions, 5 deletions
diff --git a/share/man/man4/gpioiic.4 b/share/man/man4/gpioiic.4 index 7e9c743156a..9bbd5eb3c31 100644 --- a/share/man/man4/gpioiic.4 +++ b/share/man/man4/gpioiic.4 @@ -1,4 +1,4 @@ -.\" $OpenBSD: gpioiic.4,v 1.6 2008/11/24 15:30:21 jmc Exp $ +.\" $OpenBSD: gpioiic.4,v 1.7 2011/10/03 20:24:51 matthieu Exp $ .\" .\" Copyright (c) 2006 Alexander Yurchenko <grange@openbsd.org> .\" @@ -14,22 +14,24 @@ .\" ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF .\" OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. .\" -.Dd $Mdocdate: November 24 2008 $ +.Dd $Mdocdate: October 3 2011 $ .Dt GPIOIIC 4 .Os .Sh NAME .Nm gpioiic .Nd GPIO I2C controller .Sh SYNOPSIS -.Cd "gpioiic* at gpio? offset 0 mask 0x3" +.Cd "gpioiic* at gpio? offset 0 mask 0x3 flag 0x0" .Cd "gpioiic* at gpio?" .Cd "iic* at gpioiic?" .Sh DESCRIPTION The .Nm driver allows bit-banging an I2C bus as a master using two GPIO pins. -The first pin is used as a serial data (SDA) signal and the second as -a serial clock (SCL). +By default the first pin is used as a serial data (SDA) signal and the +second as a serial clock (SCL). +If the flag locator is set to 0x01, the order of the SDA and SCL signals +is reversed. Both GPIO pins must be able to drive an output and the SDA pin must be also able to read an input. .Pp |