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