blob: 1812c848e369e2a261f42067eaf65d5e563f7f9a [file] [log] [blame]
Wolfram Sang9ed030d2010-11-17 13:00:48 +01001EEPROMs (I2C)
2
3Required properties:
4
Bartosz Golaszewski6da28ac2017-12-28 11:49:10 +01005 - compatible: Must be a "<manufacturer>,<model>" pair. The following <model>
6 values are supported (assuming "atmel" as manufacturer):
Wolfram Sangf5e12d02016-01-07 21:50:59 +01007
Bartosz Golaszewski6da28ac2017-12-28 11:49:10 +01008 "atmel,24c00",
9 "atmel,24c01",
Bartosz Golaszewskie3682042017-12-28 11:49:12 +010010 "atmel,24cs01",
Bartosz Golaszewski6da28ac2017-12-28 11:49:10 +010011 "atmel,24c02",
Bartosz Golaszewskie3682042017-12-28 11:49:12 +010012 "atmel,24cs02",
13 "atmel,24mac402",
14 "atmel,24mac602",
Bartosz Golaszewski6da28ac2017-12-28 11:49:10 +010015 "atmel,spd",
16 "atmel,24c04",
Bartosz Golaszewskie3682042017-12-28 11:49:12 +010017 "atmel,24cs04",
Bartosz Golaszewski6da28ac2017-12-28 11:49:10 +010018 "atmel,24c08",
Bartosz Golaszewskie3682042017-12-28 11:49:12 +010019 "atmel,24cs08",
Bartosz Golaszewski6da28ac2017-12-28 11:49:10 +010020 "atmel,24c16",
Bartosz Golaszewskie3682042017-12-28 11:49:12 +010021 "atmel,24cs16",
Bartosz Golaszewski6da28ac2017-12-28 11:49:10 +010022 "atmel,24c32",
Bartosz Golaszewskie3682042017-12-28 11:49:12 +010023 "atmel,24cs32",
Bartosz Golaszewski6da28ac2017-12-28 11:49:10 +010024 "atmel,24c64",
Bartosz Golaszewskie3682042017-12-28 11:49:12 +010025 "atmel,24cs64",
Bartosz Golaszewski6da28ac2017-12-28 11:49:10 +010026 "atmel,24c128",
27 "atmel,24c256",
28 "atmel,24c512",
29 "atmel,24c1024",
Wolfram Sangf5e12d02016-01-07 21:50:59 +010030
Bartosz Golaszewski6da28ac2017-12-28 11:49:10 +010031 If <manufacturer> is not "atmel", then a fallback must be used
32 with the same <model> and "atmel" as manufacturer.
Wolfram Sangf5e12d02016-01-07 21:50:59 +010033
Bartosz Golaszewski6da28ac2017-12-28 11:49:10 +010034 Example:
35 compatible = "microchip,24c128", "atmel,24c128";
David Lechnerb514aea2017-01-13 13:03:41 -060036
Bartosz Golaszewski6da28ac2017-12-28 11:49:10 +010037 Supported manufacturers are:
Wolfram Sangf5e12d02016-01-07 21:50:59 +010038
Bartosz Golaszewski6da28ac2017-12-28 11:49:10 +010039 "catalyst",
40 "microchip",
41 "ramtron",
42 "renesas",
43 "nxp",
44 "st",
Wolfram Sanga570a272016-01-07 21:51:00 +010045
Bartosz Golaszewski6da28ac2017-12-28 11:49:10 +010046 Some vendors use different model names for chips which are just
47 variants of the above. Known such exceptions are listed below:
Javier Martinez Canillas2f13f8c2017-06-15 20:54:03 +020048
Bartosz Golaszewski6da28ac2017-12-28 11:49:10 +010049 "renesas,r1ex24002" - the fallback is "atmel,24c02"
Wolfram Sang9ed030d2010-11-17 13:00:48 +010050
Bartosz Golaszewskie32a1f32017-12-28 11:49:11 +010051 - reg: The I2C address of the EEPROM.
Wolfram Sang9ed030d2010-11-17 13:00:48 +010052
53Optional properties:
54
Bartosz Golaszewskie32a1f32017-12-28 11:49:11 +010055 - pagesize: The length of the pagesize for writing. Please consult the
56 manual of your device, that value varies a lot. A wrong value
57 may result in data loss! If not specified, a safety value of
58 '1' is used which will be very slow.
Wolfram Sang9ed030d2010-11-17 13:00:48 +010059
Bartosz Golaszewskie32a1f32017-12-28 11:49:11 +010060 - read-only: This parameterless property disables writes to the eeprom.
Wolfram Sang9ed030d2010-11-17 13:00:48 +010061
Bartosz Golaszewskie32a1f32017-12-28 11:49:11 +010062 - size: Total eeprom size in bytes.
Divagar Mohandassf2f5afd2017-10-10 11:30:35 +053063
Bartosz Golaszewskie32a1f32017-12-28 11:49:11 +010064 - no-read-rollover: This parameterless property indicates that the
65 multi-address eeprom does not automatically roll over
66 reads to the next slave address. Please consult the
67 manual of your device.
Sven Van Asbroeck355dd4c2017-12-08 11:28:31 -050068
Bartosz Golaszewski3f3d8ef2017-12-19 12:09:23 +010069 - wp-gpios: GPIO to which the write-protect pin of the chip is connected.
70
Wolfram Sang9ed030d2010-11-17 13:00:48 +010071Example:
72
73eeprom@52 {
74 compatible = "atmel,24c32";
75 reg = <0x52>;
76 pagesize = <32>;
Bartosz Golaszewski3f3d8ef2017-12-19 12:09:23 +010077 wp-gpios = <&gpio1 3 0>;
Wolfram Sang9ed030d2010-11-17 13:00:48 +010078};