1 # SPDX-License-Identifier: GPL-2.0-only
2 # Copyright 2019 BayLibre SAS
5 $id: "http://devicetree.org/schemas/eeprom/at24.yaml#"
6 $schema: "http://devicetree.org/meta-schemas/core.yaml#"
8 title: I2C EEPROMs compatible with Atmel's AT24
11 - Bartosz Golaszewski <bgolaszewski@baylibre.com>
17 pattern: "^atmel,(24(c|cs|mac)[0-9]+|spd)$"
23 pattern: "^eeprom@[0-9a-f]{1,2}$"
25 # There are multiple known vendors who manufacture EEPROM chips compatible
26 # with Atmel's AT24. The compatible string requires either a single item
27 # if the memory comes from Atmel (in which case the vendor part must be
28 # 'atmel') or two items with the same 'model' part where the vendor part of
29 # the first one is the actual manufacturer and the second item is the
30 # corresponding 'atmel,<model>' from Atmel.
36 - pattern: "^(atmel|catalyst|microchip|nxp|ramtron|renesas|rohm|st),(24(c|cs|lc|mac)[0-9]+|spd)$"
37 - pattern: "^atmel,(24(c|cs|mac)[0-9]+|spd)$"
95 # These are special cases that don't conform to the above pattern.
96 # Each requires a standard at24 model as fallback.
101 - const: renesas,r1ex24002
104 - const: renesas,r1ex24016
107 - const: giantec,gt24c32a
110 - const: renesas,r1ex24128
111 - const: atmel,24c128
113 - const: rohm,br24g01
116 - const: rohm,br24t01
120 description: Descriptive name of the EEPROM.
127 The length of the pagesize for writing. Please consult the
128 manual of your device, that value varies a lot. A wrong value
129 may result in data loss! If not specified, a safety value of
130 '1' is used which will be very slow.
131 $ref: /schemas/types.yaml#/definitions/uint32
132 enum: [1, 8, 16, 32, 64, 128, 256]
136 $ref: /schemas/types.yaml#/definitions/flag
138 Disables writes to the eeprom.
141 $ref: /schemas/types.yaml#/definitions/uint32
143 Total eeprom size in bytes.
146 $ref: /schemas/types.yaml#/definitions/flag
148 Indicates that the multi-address eeprom does not automatically roll
149 over reads to the next slave address. Please consult the manual of
156 Number of address bits.
157 $ref: /schemas/types.yaml#/definitions/uint32
163 Total number of i2c slave addresses this device takes.
164 $ref: /schemas/types.yaml#/definitions/uint32
171 phandle of the regulator that provides the supply voltage.
177 additionalProperties: false
182 #address-cells = <1>;
186 compatible = "microchip,24c32", "atmel,24c32";
189 wp-gpios = <&gpio1 3 0>;