diff options
Diffstat (limited to 'static/freebsd/man4/cp2112.4 3.html')
| -rw-r--r-- | static/freebsd/man4/cp2112.4 3.html | 68 |
1 files changed, 68 insertions, 0 deletions
diff --git a/static/freebsd/man4/cp2112.4 3.html b/static/freebsd/man4/cp2112.4 3.html new file mode 100644 index 00000000..50b2f3b0 --- /dev/null +++ b/static/freebsd/man4/cp2112.4 3.html @@ -0,0 +1,68 @@ +<table class="head"> + <tr> + <td class="head-ltitle">CP2112(4)</td> + <td class="head-vol">Device Drivers Manual</td> + <td class="head-rtitle">CP2112(4)</td> + </tr> +</table> +<div class="manual-text"> +<section class="Sh"> +<h1 class="Sh" id="NAME"><a class="permalink" href="#NAME">NAME</a></h1> +<p class="Pp"><code class="Nm">cp2112</code> — <span class="Nd">driver + for a USB GPIO and I2C peripheral device</span></p> +</section> +<section class="Sh"> +<h1 class="Sh" id="SYNOPSIS"><a class="permalink" href="#SYNOPSIS">SYNOPSIS</a></h1> +<p class="Pp">To compile this driver into the kernel, place the following lines + in your kernel configuration file:</p> +<div class="Bd Pp Bd-indent"><code class="Cd">device cp2112</code> +<br/> +<code class="Cd">device usb</code> +<br/> +<code class="Cd">device gpio</code> +<br/> +<code class="Cd">device iicbus</code></div> +<p class="Pp">Alternatively, to load the driver as a module at boot time, place + the following line in <a class="Xr">loader.conf(5)</a>:</p> +<div class="Bd Pp Bd-indent Li"> +<pre>cp2112_load="YES"</pre> +</div> +</section> +<section class="Sh"> +<h1 class="Sh" id="DESCRIPTION"><a class="permalink" href="#DESCRIPTION">DESCRIPTION</a></h1> +<p class="Pp">The <code class="Nm">cp2112</code> driver provides support for + Silicon Labs CP2112 device. The device has 8 general purpose I/O pins and an + I2C controller that supports a subset of the I2C protocol.</p> +<p class="Pp">All pins support both input and output modes. An output pin can be + configured either for open-drain or push-pull operation. Pins 0, 1 and 7 + support special functions: I2C transmit indication, I2C receive indication + and clock output respectively. At the moment the + <code class="Nm">cp2112</code> driver does not provide a way to enable and + configure the special functions.</p> +<p class="Pp">The I2C controller supports read transactions with up to 512 bytes + of data, write transactions with up to 61 bytes of data and a write followed + by the repeated start followed by a read transactions where the write can be + up to 16 bytes and the read can be up to 512 bytes. Zero length transfers + are not supported. The <code class="Nm">cp2112</code> driver creates a + <a class="Xr">gpio(4)</a> and <a class="Xr">iicbus(4)</a> child buses to + expose the respective functions.</p> +</section> +<section class="Sh"> +<h1 class="Sh" id="SEE_ALSO"><a class="permalink" href="#SEE_ALSO">SEE + ALSO</a></h1> +<p class="Pp"><a class="Xr">gpio(4)</a>, <a class="Xr">iicbus(4)</a>, + <a class="Xr">usb(4)</a></p> +</section> +<section class="Sh"> +<h1 class="Sh" id="HISTORY"><a class="permalink" href="#HISTORY">HISTORY</a></h1> +<p class="Pp">The <code class="Nm">cp2112</code> driver and this manual page was + written by <span class="An">Andriy Gapon</span> + <<a class="Mt" href="mailto:avg@FreeBSD.org">avg@FreeBSD.org</a>>.</p> +</section> +</div> +<table class="foot"> + <tr> + <td class="foot-date">August 12, 2020</td> + <td class="foot-os">FreeBSD 15.0</td> + </tr> +</table> |
