1.\"	$OpenBSD: gdiumiic.4,v 1.2 2013/07/16 16:05:49 schwarze Exp $
2.\"
3.\" Copyright (c) 2006 Alexander Yurchenko <grange@openbsd.org>
4.\"
5.\" Permission to use, copy, modify, and distribute this software for any
6.\" purpose with or without fee is hereby granted, provided that the above
7.\" copyright notice and this permission notice appear in all copies.
8.\"
9.\" THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES
10.\" WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF
11.\" MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR
12.\" ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES
13.\" WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN
14.\" ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF
15.\" OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
16.\"
17.Dd $Mdocdate: July 16 2013 $
18.Dt GDIUMIIC 4 loongson
19.Os
20.Sh NAME
21.Nm gdiumiic
22.Nd Gdium specific GPIO I2C controller
23.Sh SYNOPSIS
24.Cd "gdiumiic0 at gpio0 offset 6 mask 0x81"
25.Cd "gdiumiic0 at gpio0 offset 46 mask 0x03"
26.Cd "iic0 at gdiumiic0"
27.Sh DESCRIPTION
28The
29.Nm
30driver allows bit-banging an I2C bus as a master using two GPIO pins.
31The first pin is used as a serial clock (SCL) signal and the second as
32a serial data (SDA).
33Both GPIO pins must be able to drive an output and the SDA pin must be
34also able to read an input.
35.Pp
36The
37.Nm
38driver is derived from the
39.Nm gpioiic
40driver, using a different pin ordering, and knowledge of the Gdium I2C bus
41configuration.
42.Sh SEE ALSO
43.Xr gpio 4 ,
44.Xr gpioiic 4 ,
45.Xr iic 4 ,
46.Xr intro 4
47.Sh AUTHORS
48.An -nosplit
49The original
50.Nm gpioiic
51driver was written by
52.An Alexander Yurchenko Aq Mt grange@openbsd.org .
53