Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

dt-bindings: eeprom: Add ST M24LR support

Add support for STMicroelectronics M24LR RFID/NFC EEPROM chips.
These devices use two I2C addresses: the primary address provides
access to control and system parameter registers, while the
secondary address is used for EEPROM access.

Signed-off-by: Abd-Alrhman Masalkhi <abd.masalkhi@gmail.com>
Reviewed-by: Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org>
Link: https://lore.kernel.org/r/20250717063934.5083-2-abd.masalkhi@gmail.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>

authored by

Abd-Alrhman Masalkhi and committed by
Greg Kroah-Hartman
46b4ddd2 c585a4ad

+52
+52
Documentation/devicetree/bindings/eeprom/st,m24lr.yaml
··· 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 + 7 + title: STMicroelectronics M24LR NFC/RFID EEPROM 8 + 9 + maintainers: 10 + - Abd-Alrhman Masalkhi <abd.masalkhi@gmail.com> 11 + 12 + description: 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 + 19 + allOf: 20 + - $ref: /schemas/nvmem/nvmem.yaml# 21 + 22 + properties: 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 + 34 + required: 35 + - compatible 36 + - reg 37 + 38 + unevaluatedProperties: false 39 + 40 + examples: 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 + ...