summaryrefslogtreecommitdiff
path: root/static/netbsd/man4/seeprom.4 4.html
blob: 380455dfc01ca63853fe8903228be3649a3d06c6 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
<table class="head">
  <tr>
    <td class="head-ltitle">SEEPROM(4)</td>
    <td class="head-vol">Device Drivers Manual</td>
    <td class="head-rtitle">SEEPROM(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">seeprom</code> &#x2014;
    <span class="Nd">24-series I2C EEPROM driver</span></p>
</section>
<section class="Sh">
<h1 class="Sh" id="SYNOPSIS"><a class="permalink" href="#SYNOPSIS">SYNOPSIS</a></h1>
<p class="Pp"><code class="Cd">seeprom0 at iic0 addr 0x51: AT24Cxx or compatible
    EEPROM: size 256</code>
  <br/>
  <code class="Cd">seeprom16 at iic1 addr 0x57: power-supply: size
  8192</code></p>
</section>
<section class="Sh">
<h1 class="Sh" id="DESCRIPTION"><a class="permalink" href="#DESCRIPTION">DESCRIPTION</a></h1>
<p class="Pp">The <code class="Nm">seeprom</code> driver provides support for
    the ATMEL 24-series of I2C EEPROMs, and compatibles, available from a
    variety of vendors. The Philips PCF8582 is also supported, as compatible
    with the AT24C02.</p>
<p class="Pp">Access to the contents of the memory is through a character
    device.</p>
<p class="Pp">The size of the EEPROM is either read from the firmware, or can be
    set using the flags keyword in the kernel configuration. The value of the
    flag represents the EEPROM size in Kbit.</p>
<table class="Bl-column Bd-indent">
  <tr id="flags">
    <td><a class="permalink" href="#flags"><b class="Sy">flags</b></a></td>
    <td><a class="permalink" href="#EEPROM"><b class="Sy" id="EEPROM">EEPROM
      size in bytes</b></a></td>
  </tr>
  <tr id="1">
    <td><a class="permalink" href="#1"><code class="Li">1</code></a></td>
    <td>128</td>
  </tr>
  <tr id="2">
    <td><a class="permalink" href="#2"><code class="Li">2</code></a></td>
    <td>256</td>
  </tr>
  <tr id="4">
    <td><a class="permalink" href="#4"><code class="Li">4</code></a></td>
    <td>512</td>
  </tr>
  <tr id="8">
    <td><a class="permalink" href="#8"><code class="Li">8</code></a></td>
    <td>1024</td>
  </tr>
  <tr id="16">
    <td><a class="permalink" href="#16"><code class="Li">16</code></a></td>
    <td>2048</td>
  </tr>
  <tr id="32">
    <td><a class="permalink" href="#32"><code class="Li">32</code></a></td>
    <td>4096</td>
  </tr>
  <tr id="64">
    <td><a class="permalink" href="#64"><code class="Li">64</code></a></td>
    <td>8192</td>
  </tr>
  <tr id="128">
    <td><a class="permalink" href="#128"><code class="Li">128</code></a></td>
    <td>16384</td>
  </tr>
  <tr id="256">
    <td><a class="permalink" href="#256"><code class="Li">256</code></a></td>
    <td>32768</td>
  </tr>
  <tr id="512">
    <td><a class="permalink" href="#512"><code class="Li">512</code></a></td>
    <td>65536</td>
  </tr>
</table>
</section>
<section class="Sh">
<h1 class="Sh" id="EXAMPLES"><a class="permalink" href="#EXAMPLES">EXAMPLES</a></h1>
<p class="Pp">Indirect configuration:</p>
<div class="Bd Bd-indent"><code class="Li">seeprom* at iic? addr 0x51 flags
  0x2</code></div>
Direct configuration:
<div class="Bd Bd-indent"><code class="Li">seeprom* at iic? addr?</code></div>
</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">iic(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">seeprom</code> device appeared in
    <span class="Ux">NetBSD 2.0</span>.</p>
</section>
<section class="Sh">
<h1 class="Sh" id="BUGS"><a class="permalink" href="#BUGS">BUGS</a></h1>
<p class="Pp">AT24C1024 EEPROM's are not supported.</p>
<p class="Pp">Software write protection on the AT34Cxx EEPROMs is not
  supported.</p>
<p class="Pp">The <code class="Nm">seeprom</code> driver reads and writes one
    byte at a time to be compatible with all controllers.</p>
</section>
</div>
<table class="foot">
  <tr>
    <td class="foot-date">October 25, 2013</td>
    <td class="foot-os">NetBSD 10.1</td>
  </tr>
</table>