GNU Linux-libre 4.9.337-gnu1
[releases.git] / Documentation / devicetree / bindings / eeprom / eeprom.txt
1 EEPROMs (I2C)
2
3 Required properties:
4
5   - compatible : should be "<manufacturer>,<type>", like these:
6
7         "atmel,24c00", "atmel,24c01", "atmel,24c02", "atmel,24c04",
8         "atmel,24c08", "atmel,24c16", "atmel,24c32", "atmel,24c64",
9         "atmel,24c128", "atmel,24c256", "atmel,24c512", "atmel,24c1024",
10         "atmel,24c2048"
11
12         "catalyst,24c32"
13
14         "ramtron,24c64"
15
16         "renesas,r1ex24002"
17
18          If there is no specific driver for <manufacturer>, a generic
19          driver based on <type> is selected. Possible types are:
20          "24c00", "24c01", "24c02", "24c04", "24c08", "24c16", "24c32", "24c64",
21          "24c128", "24c256", "24c512", "24c1024", "24c2048", "spd"
22
23   - reg : the I2C address of the EEPROM
24
25 Optional properties:
26
27   - pagesize : the length of the pagesize for writing. Please consult the
28                manual of your device, that value varies a lot. A wrong value
29                may result in data loss! If not specified, a safety value of
30                '1' is used which will be very slow.
31
32   - read-only: this parameterless property disables writes to the eeprom
33
34 Example:
35
36 eeprom@52 {
37         compatible = "atmel,24c32";
38         reg = <0x52>;
39         pagesize = <32>;
40 };