eeprom: add driver for ST M24LR series RFID/NFC EEPROM chips

adds support for STMicroelectronics M24LRxx devices, which expose
two separate I2C addresses: one for system control and one for EEPROM
access. The driver implements both a sysfs-based interface for control
registers (e.g. UID, password authentication) and an nvmem provider
for EEPROM access.

Signed-off-by: Abd-Alrhman Masalkhi <abd.masalkhi@gmail.com>
Link: https://lore.kernel.org/r/20250717063934.5083-3-abd.masalkhi@gmail.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
This commit is contained in:
Abd-Alrhman Masalkhi
2025-08-19 12:51:22 +02:00
committed by Greg Kroah-Hartman
parent 46b4ddd2c4
commit cd5c5e0231
3 changed files with 625 additions and 0 deletions
+18
View File
@@ -120,4 +120,22 @@ config EEPROM_EE1004
This driver can also be built as a module. If so, the module
will be called ee1004.
config EEPROM_M24LR
tristate "STMicroelectronics M24LR RFID/NFC EEPROM support"
depends on I2C && SYSFS
select REGMAP_I2C
select NVMEM
select NVMEM_SYSFS
help
This enables support for STMicroelectronics M24LR RFID/NFC EEPROM
chips. These dual-interface devices expose two I2C addresses:
one for EEPROM memory access and another for control and system
configuration (e.g. UID, password handling).
This driver provides a sysfs interface for control functions and
integrates with the nvmem subsystem for EEPROM access.
To compile this driver as a module, choose M here: the
module will be called m24lr.
endmenu
+1
View File
@@ -7,3 +7,4 @@ obj-$(CONFIG_EEPROM_93XX46) += eeprom_93xx46.o
obj-$(CONFIG_EEPROM_DIGSY_MTC_CFG) += digsy_mtc_eeprom.o
obj-$(CONFIG_EEPROM_IDT_89HPESX) += idt_89hpesx.o
obj-$(CONFIG_EEPROM_EE1004) += ee1004.o
obj-$(CONFIG_EEPROM_M24LR) += m24lr.o
File diff suppressed because it is too large Load Diff