1 .\" $NetBSD: gpioiic.4,v 1.1 2009/08/09 08:20:53 mbalmer Exp $
2 .\" $OpenBSD: gpioiic.4,v 1.6 2008/11/24 15:30:21 jmc Exp $
4 .\" Copyright (c) 2006 Alexander Yurchenko <grange@openbsd.org>
6 .\" Permission to use, copy, modify, and distribute this software for any
7 .\" purpose with or without fee is hereby granted, provided that the above
8 .\" copyright notice and this permission notice appear in all copies.
10 .\" THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES
11 .\" WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF
12 .\" MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR
13 .\" ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES
14 .\" WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN
15 .\" ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF
16 .\" OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
23 .Nd GPIO I2C controller
25 .Cd "gpioiic* at gpio? offset 0 mask 0x3"
26 .Cd "gpioiic* at gpio?"
27 .Cd "iic* at gpioiic?"
31 driver allows bit-banging an I2C bus as a master using two GPIO pins.
32 The first pin is used as a serial data (SDA) signal and the second as
34 Both GPIO pins must be able to drive an output and the SDA pin must be
35 also able to read an input.
37 The pins can be specified in the kernel configuration with the
46 can also be specified when
48 is attached at runtime using the
56 locator defines one pin; the pin number is calculated as an addition of
57 the bit position and the
64 defines pin numbers 17 and 19.
72 driver first appeared in
81 .An Alexander Yurchenko Aq grange@openbsd.org
85 .An Marc Balmer Aq marc@msys.ch .
89 device can not be detached from the
91 bus at runtime due to the fact that
93 busses can not detach once attached.