xref: /linux/Documentation/devicetree/bindings/eeprom/st,m24lr.yaml (revision 4f38da1f027ea2c9f01bb71daa7a299c191b6940)
1# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
2%YAML 1.2
3---
4$id: http://devicetree.org/schemas/eeprom/st,m24lr.yaml#
5$schema: http://devicetree.org/meta-schemas/core.yaml#
6
7title: STMicroelectronics M24LR NFC/RFID EEPROM
8
9maintainers:
10  - Abd-Alrhman Masalkhi <abd.masalkhi@gmail.com>
11
12description:
13  STMicroelectronics M24LR series are dual-interface (RF + I2C)
14  EEPROM chips. These devices support I2C-based access to both
15  memory and a system area that controls authentication and configuration.
16  They expose two I2C addresses, one for the system parameter sector and
17  one for the EEPROM.
18
19allOf:
20  - $ref: /schemas/nvmem/nvmem.yaml#
21
22properties:
23  compatible:
24    enum:
25      - st,m24lr04e-r
26      - st,m24lr16e-r
27      - st,m24lr64e-r
28
29  reg:
30    items:
31      - description: I2C address used for control/system registers
32      - description: I2C address used for EEPROM memory access
33
34required:
35  - compatible
36  - reg
37
38unevaluatedProperties: false
39
40examples:
41  - |
42    i2c {
43      #address-cells = <1>;
44      #size-cells = <0>;
45
46      eeprom@57 {
47        compatible = "st,m24lr04e-r";
48        reg = <0x57>, /* primary-device */
49              <0x53>; /* secondary-device */
50      };
51    };
52...
53