From: Krzysztof Kozlowski <krzk@kernel.org>
To: Abd-Alrhman Masalkhi <abd.masalkhi@gmail.com>,
linux-kernel@vger.kernel.org, devicetree@vger.kernel.org
Cc: arnd@arndb.de, gregkh@linuxfoundation.org, robh@kernel.org,
krzk+dt@kernel.org, conor+dt@kernel.org
Subject: Re: [PATCH v3 1/3] dt-bindings: eeprom: Add ST M24LR support
Date: Fri, 6 Jun 2025 15:10:36 +0200 [thread overview]
Message-ID: <8ac3c2da-2824-44fe-942c-fceb8b6f5332@kernel.org> (raw)
In-Reply-To: <20250606120631.3140054-2-abd.masalkhi@gmail.com>
On 06/06/2025 14:06, Abd-Alrhman Masalkhi wrote:
> 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>
> ---
> Changes in v3:
> - Dropped reference to the i2c-mux binding.
> - Added reference to the nvmem binding to reflect EEPROM usage.
> - Updated 'reg' property to represent the device using two I2C addresses.
> - Fixed DT schema errors and yamllint warnings.
> - Removed the unused 'pagesize' property.
> ---
> .../devicetree/bindings/misc/st,m24lr.yaml | 54 +++++++++++++++++++
How did you implement this feedback:
"That's not a misc device, but eeprom. Place it in appropriate directory."
?
There is no such device as a misc device.
> 1 file changed, 54 insertions(+)
> create mode 100644 Documentation/devicetree/bindings/misc/st,m24lr.yaml
>
> diff --git a/Documentation/devicetree/bindings/misc/st,m24lr.yaml b/Documentation/devicetree/bindings/misc/st,m24lr.yaml
> new file mode 100644
> index 000000000000..775d218381b7
> --- /dev/null
> +++ b/Documentation/devicetree/bindings/misc/st,m24lr.yaml
> @@ -0,0 +1,54 @@
> +# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
> +%YAML 1.2
> +---
> +$id: http://devicetree.org/schemas/misc/st,m24lr.yaml#
> +$schema: http://devicetree.org/meta-schemas/core.yaml#
> +
> +title: STMicroelectronics M24LR NFC/RFID EEPROM
> +
> +maintainers:
> + - Abd-Alrhman Masalkhi <abd.masalkhi@gmail.com>
> +
> +description:
> + STMicroelectronics M24LR series are dual-interface (RF + I2C)
> + EEPROM chips. These devices support I2C-based access to both
> + memory and a system area that controls authentication and configuration.
> + They expose two I2C addresses, one for the system parameter sector and
> + one for the EEPROM.
> +
> +allOf:
> + - $ref: /schemas/nvmem/nvmem.yaml#
> +
> +properties:
> + compatible:
> + enum:
> + - st,m24lr04e-r
> + - st,m24lr16e-r
> + - st,m24lr64e-r
> +
> + reg:
> + description:
> + Two I2C address, the primary for control registers, the secondary
> + for EEPROM access.
> + minItems: 2
> + maxItems: 2
Replace this all with items and description:
items:
- description: foo
- description: bar
> +
> +required:
> + - compatible
> + - reg
> +
> +unevaluatedProperties: false
> +
> +examples:
> + - |
> + i2c {
> + #address-cells = <1>;
> + #size-cells = <0>;
> +
> + eeprom@57 {
> + compatible = "st,m24lr04e-r";
> + reg = <0x57>, /* primary-device */
> + <0x53>; /* secondary-device */
Where is the rest of at24 properties? Not relevant? Not correct? I had
impression this is fully at24 compatible.
Best regards,
Krzysztof
next prev parent reply other threads:[~2025-06-06 13:10 UTC|newest]
Thread overview: 17+ messages / expand[flat|nested] mbox.gz Atom feed top
2025-06-06 12:06 [PATCH v3 0/3] Add support for STMicroelectronics M24LR EEPROM/NFC chips Abd-Alrhman Masalkhi
2025-06-06 12:06 ` [PATCH v3 1/3] dt-bindings: eeprom: Add ST M24LR support Abd-Alrhman Masalkhi
2025-06-06 13:10 ` Krzysztof Kozlowski [this message]
2025-06-06 15:06 ` Abd-Alrhman Masalkhi
2025-06-06 12:06 ` [PATCH v3 2/3] misc: add driver for ST M24LR series RFID/NFC EEPROM chips Abd-Alrhman Masalkhi
2025-06-06 12:19 ` Greg KH
2025-06-06 13:38 ` Abd-Alrhman Masalkhi
2025-06-06 12:25 ` Greg KH
2025-06-06 14:24 ` Abd-Alrhman Masalkhi
2025-06-06 15:58 ` Greg KH
2025-06-07 11:33 ` kernel test robot
2025-06-06 12:06 ` [PATCH v3 3/3] ABI: sysfs: add documentation for ST M24LR EEPROM and control interface Abd-Alrhman Masalkhi
2025-06-06 12:28 ` Greg KH
2025-06-06 14:46 ` Abd-Alrhman Masalkhi
2025-06-06 16:02 ` Greg KH
2025-06-07 9:18 ` [PATCH v3 1/3] dt-bindings: eeprom: Add ST M24LR support Abd-Alrhman Masalkhi
2025-06-07 9:25 ` [PATCH v3 3/3] ABI: sysfs: add documentation for ST M24LR EEPROM and control interface Abd-Alrhman Masalkhi
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=8ac3c2da-2824-44fe-942c-fceb8b6f5332@kernel.org \
--to=krzk@kernel.org \
--cc=abd.masalkhi@gmail.com \
--cc=arnd@arndb.de \
--cc=conor+dt@kernel.org \
--cc=devicetree@vger.kernel.org \
--cc=gregkh@linuxfoundation.org \
--cc=krzk+dt@kernel.org \
--cc=linux-kernel@vger.kernel.org \
--cc=robh@kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).