* [PATCH 1/2] dt-bindings: at24: add ST M24C64-D Additional Write lockable page
@ 2023-10-13 6:30 Alexander Stein
2023-10-13 6:30 ` [PATCH 2/2] eeprom: at24: add ST M24C64-D Additional Write lockable page support Alexander Stein
` (3 more replies)
0 siblings, 4 replies; 7+ messages in thread
From: Alexander Stein @ 2023-10-13 6:30 UTC (permalink / raw)
To: Bartosz Golaszewski, Rob Herring, Krzysztof Kozlowski,
Conor Dooley, Arnd Bergmann, Greg Kroah-Hartman, linux-i2c
Cc: Alexander Stein, devicetree, Marek Vasut
The ST M24C64-D behaves as a regular M24C64, except for the -D variant
which uses up another I2C address for Additional Write lockable page.
This page is 32 Bytes long and can contain additional data. Document
compatible string for it, so users can describe that page in DT. Note
that users still have to describe the main M24C64 area separately as
that is on separate I2C address from this page.
Signed-off-by: Alexander Stein <alexander.stein@ew.tq-group.com>
---
This is a copy & paste of [1] for ST M24C64-D. I reused the same pattern and
also used Marek's commit message.
[1] https://lore.kernel.org/all/20231010190926.57674-1-marex@denx.de/#t
Documentation/devicetree/bindings/eeprom/at24.yaml | 2 ++
1 file changed, 2 insertions(+)
diff --git a/Documentation/devicetree/bindings/eeprom/at24.yaml b/Documentation/devicetree/bindings/eeprom/at24.yaml
index 7be127e9b2507..6385b05a1e62f 100644
--- a/Documentation/devicetree/bindings/eeprom/at24.yaml
+++ b/Documentation/devicetree/bindings/eeprom/at24.yaml
@@ -73,6 +73,8 @@ properties:
pattern: cs32$
- items:
pattern: c64$
+ - items:
+ pattern: c64d-wl$
- items:
pattern: cs64$
- items:
--
2.34.1
^ permalink raw reply related [flat|nested] 7+ messages in thread
* [PATCH 2/2] eeprom: at24: add ST M24C64-D Additional Write lockable page support
2023-10-13 6:30 [PATCH 1/2] dt-bindings: at24: add ST M24C64-D Additional Write lockable page Alexander Stein
@ 2023-10-13 6:30 ` Alexander Stein
2023-10-13 11:30 ` Marek Vasut
2023-10-16 6:50 ` Bartosz Golaszewski
2023-10-13 11:35 ` [PATCH 1/2] dt-bindings: at24: add ST M24C64-D Additional Write lockable page Marek Vasut
` (2 subsequent siblings)
3 siblings, 2 replies; 7+ messages in thread
From: Alexander Stein @ 2023-10-13 6:30 UTC (permalink / raw)
To: Bartosz Golaszewski, Rob Herring, Krzysztof Kozlowski,
Conor Dooley, Arnd Bergmann, Greg Kroah-Hartman, linux-i2c
Cc: Alexander Stein, devicetree, Marek Vasut
The ST M24C64-D behaves as a regular M24C64, except for the -D variant
which uses up another I2C address for Additional Write lockable page.
This page is 32 Bytes long and can contain additional data. Add entry
for it, so users can describe that page in DT. Note that users still
have to describe the main M24C64 area separately as that is on separate
I2C address from this page.
Signed-off-by: Alexander Stein <alexander.stein@ew.tq-group.com>
---
This is a copy & paste of [1] for ST M24C64-D. I reused the same pattern and
also used Marek's commit message.
[1] https://lore.kernel.org/all/20231010190926.57674-2-marex@denx.de/
drivers/misc/eeprom/at24.c | 4 ++++
1 file changed, 4 insertions(+)
diff --git a/drivers/misc/eeprom/at24.c b/drivers/misc/eeprom/at24.c
index 616e63efc9864..f61a80597a22d 100644
--- a/drivers/misc/eeprom/at24.c
+++ b/drivers/misc/eeprom/at24.c
@@ -196,6 +196,8 @@ AT24_CHIP_DATA(at24_data_24c32d_wlp, 32, AT24_FLAG_ADDR16);
AT24_CHIP_DATA(at24_data_24cs32, 16,
AT24_FLAG_ADDR16 | AT24_FLAG_SERIAL | AT24_FLAG_READONLY);
AT24_CHIP_DATA(at24_data_24c64, 65536 / 8, AT24_FLAG_ADDR16);
+/* M24C64-D Additional Write lockable page (M24C64-D order codes) */
+AT24_CHIP_DATA(at24_data_24c64d_wlp, 32, AT24_FLAG_ADDR16);
AT24_CHIP_DATA(at24_data_24cs64, 16,
AT24_FLAG_ADDR16 | AT24_FLAG_SERIAL | AT24_FLAG_READONLY);
AT24_CHIP_DATA(at24_data_24c128, 131072 / 8, AT24_FLAG_ADDR16);
@@ -227,6 +229,7 @@ static const struct i2c_device_id at24_ids[] = {
{ "24c32d-wl", (kernel_ulong_t)&at24_data_24c32d_wlp },
{ "24cs32", (kernel_ulong_t)&at24_data_24cs32 },
{ "24c64", (kernel_ulong_t)&at24_data_24c64 },
+ { "24c64-wl", (kernel_ulong_t)&at24_data_24c64d_wlp },
{ "24cs64", (kernel_ulong_t)&at24_data_24cs64 },
{ "24c128", (kernel_ulong_t)&at24_data_24c128 },
{ "24c256", (kernel_ulong_t)&at24_data_24c256 },
@@ -258,6 +261,7 @@ static const struct of_device_id at24_of_match[] = {
{ .compatible = "atmel,24c32d-wl", .data = &at24_data_24c32d_wlp },
{ .compatible = "atmel,24cs32", .data = &at24_data_24cs32 },
{ .compatible = "atmel,24c64", .data = &at24_data_24c64 },
+ { .compatible = "atmel,24c64d-wl", .data = &at24_data_24c64d_wlp },
{ .compatible = "atmel,24cs64", .data = &at24_data_24cs64 },
{ .compatible = "atmel,24c128", .data = &at24_data_24c128 },
{ .compatible = "atmel,24c256", .data = &at24_data_24c256 },
--
2.34.1
^ permalink raw reply related [flat|nested] 7+ messages in thread
* Re: [PATCH 2/2] eeprom: at24: add ST M24C64-D Additional Write lockable page support
2023-10-13 6:30 ` [PATCH 2/2] eeprom: at24: add ST M24C64-D Additional Write lockable page support Alexander Stein
@ 2023-10-13 11:30 ` Marek Vasut
2023-10-16 6:50 ` Bartosz Golaszewski
1 sibling, 0 replies; 7+ messages in thread
From: Marek Vasut @ 2023-10-13 11:30 UTC (permalink / raw)
To: Alexander Stein, Bartosz Golaszewski, Rob Herring,
Krzysztof Kozlowski, Conor Dooley, Arnd Bergmann,
Greg Kroah-Hartman, linux-i2c
Cc: devicetree
On 10/13/23 08:30, Alexander Stein wrote:
> The ST M24C64-D behaves as a regular M24C64, except for the -D variant
> which uses up another I2C address for Additional Write lockable page.
> This page is 32 Bytes long and can contain additional data. Add entry
> for it, so users can describe that page in DT. Note that users still
> have to describe the main M24C64 area separately as that is on separate
> I2C address from this page.
>
> Signed-off-by: Alexander Stein <alexander.stein@ew.tq-group.com>
Reviewed-by: Marek Vasut <marex@denx.de>
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: [PATCH 1/2] dt-bindings: at24: add ST M24C64-D Additional Write lockable page
2023-10-13 6:30 [PATCH 1/2] dt-bindings: at24: add ST M24C64-D Additional Write lockable page Alexander Stein
2023-10-13 6:30 ` [PATCH 2/2] eeprom: at24: add ST M24C64-D Additional Write lockable page support Alexander Stein
@ 2023-10-13 11:35 ` Marek Vasut
2023-10-13 15:02 ` Conor Dooley
2023-10-16 6:49 ` Bartosz Golaszewski
3 siblings, 0 replies; 7+ messages in thread
From: Marek Vasut @ 2023-10-13 11:35 UTC (permalink / raw)
To: Alexander Stein, Bartosz Golaszewski, Rob Herring,
Krzysztof Kozlowski, Conor Dooley, Arnd Bergmann,
Greg Kroah-Hartman, linux-i2c
Cc: devicetree
On 10/13/23 08:30, Alexander Stein wrote:
> The ST M24C64-D behaves as a regular M24C64, except for the -D variant
> which uses up another I2C address for Additional Write lockable page.
> This page is 32 Bytes long and can contain additional data. Document
> compatible string for it, so users can describe that page in DT. Note
> that users still have to describe the main M24C64 area separately as
> that is on separate I2C address from this page.
>
> Signed-off-by: Alexander Stein <alexander.stein@ew.tq-group.com>
> ---
> This is a copy & paste of [1] for ST M24C64-D. I reused the same pattern and
> also used Marek's commit message.
It took me a while to realize this was s@32@64@ in the whole patch
except for the 32 Byte page size (which is the same size in C32 and
C64), verbatim.
Reviewed-by: Marek Vasut <marex@denx.de>
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: [PATCH 1/2] dt-bindings: at24: add ST M24C64-D Additional Write lockable page
2023-10-13 6:30 [PATCH 1/2] dt-bindings: at24: add ST M24C64-D Additional Write lockable page Alexander Stein
2023-10-13 6:30 ` [PATCH 2/2] eeprom: at24: add ST M24C64-D Additional Write lockable page support Alexander Stein
2023-10-13 11:35 ` [PATCH 1/2] dt-bindings: at24: add ST M24C64-D Additional Write lockable page Marek Vasut
@ 2023-10-13 15:02 ` Conor Dooley
2023-10-16 6:49 ` Bartosz Golaszewski
3 siblings, 0 replies; 7+ messages in thread
From: Conor Dooley @ 2023-10-13 15:02 UTC (permalink / raw)
To: Alexander Stein
Cc: Bartosz Golaszewski, Rob Herring, Krzysztof Kozlowski,
Conor Dooley, Arnd Bergmann, Greg Kroah-Hartman, linux-i2c,
devicetree, Marek Vasut
[-- Attachment #1: Type: text/plain, Size: 1535 bytes --]
On Fri, Oct 13, 2023 at 08:30:07AM +0200, Alexander Stein wrote:
> The ST M24C64-D behaves as a regular M24C64, except for the -D variant
> which uses up another I2C address for Additional Write lockable page.
> This page is 32 Bytes long and can contain additional data. Document
> compatible string for it, so users can describe that page in DT. Note
> that users still have to describe the main M24C64 area separately as
> that is on separate I2C address from this page.
>
> Signed-off-by: Alexander Stein <alexander.stein@ew.tq-group.com>
Acked-by: Conor Dooley <conor.dooley@microchip.com>
Thanks,
Conor.
> ---
> This is a copy & paste of [1] for ST M24C64-D. I reused the same pattern and
> also used Marek's commit message.
>
> [1] https://lore.kernel.org/all/20231010190926.57674-1-marex@denx.de/#t
>
> Documentation/devicetree/bindings/eeprom/at24.yaml | 2 ++
> 1 file changed, 2 insertions(+)
>
> diff --git a/Documentation/devicetree/bindings/eeprom/at24.yaml b/Documentation/devicetree/bindings/eeprom/at24.yaml
> index 7be127e9b2507..6385b05a1e62f 100644
> --- a/Documentation/devicetree/bindings/eeprom/at24.yaml
> +++ b/Documentation/devicetree/bindings/eeprom/at24.yaml
> @@ -73,6 +73,8 @@ properties:
> pattern: cs32$
> - items:
> pattern: c64$
> + - items:
> + pattern: c64d-wl$
> - items:
> pattern: cs64$
> - items:
> --
> 2.34.1
>
[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 228 bytes --]
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: [PATCH 1/2] dt-bindings: at24: add ST M24C64-D Additional Write lockable page
2023-10-13 6:30 [PATCH 1/2] dt-bindings: at24: add ST M24C64-D Additional Write lockable page Alexander Stein
` (2 preceding siblings ...)
2023-10-13 15:02 ` Conor Dooley
@ 2023-10-16 6:49 ` Bartosz Golaszewski
3 siblings, 0 replies; 7+ messages in thread
From: Bartosz Golaszewski @ 2023-10-16 6:49 UTC (permalink / raw)
To: Alexander Stein
Cc: Rob Herring, Krzysztof Kozlowski, Conor Dooley, Arnd Bergmann,
Greg Kroah-Hartman, linux-i2c, devicetree, Marek Vasut
On Fri, Oct 13, 2023 at 8:30 AM Alexander Stein
<alexander.stein@ew.tq-group.com> wrote:
>
> The ST M24C64-D behaves as a regular M24C64, except for the -D variant
> which uses up another I2C address for Additional Write lockable page.
> This page is 32 Bytes long and can contain additional data. Document
> compatible string for it, so users can describe that page in DT. Note
> that users still have to describe the main M24C64 area separately as
> that is on separate I2C address from this page.
>
> Signed-off-by: Alexander Stein <alexander.stein@ew.tq-group.com>
> ---
> This is a copy & paste of [1] for ST M24C64-D. I reused the same pattern and
> also used Marek's commit message.
>
> [1] https://lore.kernel.org/all/20231010190926.57674-1-marex@denx.de/#t
>
> Documentation/devicetree/bindings/eeprom/at24.yaml | 2 ++
> 1 file changed, 2 insertions(+)
>
> diff --git a/Documentation/devicetree/bindings/eeprom/at24.yaml b/Documentation/devicetree/bindings/eeprom/at24.yaml
> index 7be127e9b2507..6385b05a1e62f 100644
> --- a/Documentation/devicetree/bindings/eeprom/at24.yaml
> +++ b/Documentation/devicetree/bindings/eeprom/at24.yaml
> @@ -73,6 +73,8 @@ properties:
> pattern: cs32$
> - items:
> pattern: c64$
> + - items:
> + pattern: c64d-wl$
> - items:
> pattern: cs64$
> - items:
> --
> 2.34.1
>
Applied, thanks!
Bart
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: [PATCH 2/2] eeprom: at24: add ST M24C64-D Additional Write lockable page support
2023-10-13 6:30 ` [PATCH 2/2] eeprom: at24: add ST M24C64-D Additional Write lockable page support Alexander Stein
2023-10-13 11:30 ` Marek Vasut
@ 2023-10-16 6:50 ` Bartosz Golaszewski
1 sibling, 0 replies; 7+ messages in thread
From: Bartosz Golaszewski @ 2023-10-16 6:50 UTC (permalink / raw)
To: Alexander Stein
Cc: Rob Herring, Krzysztof Kozlowski, Conor Dooley, Arnd Bergmann,
Greg Kroah-Hartman, linux-i2c, devicetree, Marek Vasut
On Fri, Oct 13, 2023 at 8:30 AM Alexander Stein
<alexander.stein@ew.tq-group.com> wrote:
>
> The ST M24C64-D behaves as a regular M24C64, except for the -D variant
> which uses up another I2C address for Additional Write lockable page.
> This page is 32 Bytes long and can contain additional data. Add entry
> for it, so users can describe that page in DT. Note that users still
> have to describe the main M24C64 area separately as that is on separate
> I2C address from this page.
>
> Signed-off-by: Alexander Stein <alexander.stein@ew.tq-group.com>
> ---
> This is a copy & paste of [1] for ST M24C64-D. I reused the same pattern and
> also used Marek's commit message.
>
> [1] https://lore.kernel.org/all/20231010190926.57674-2-marex@denx.de/
>
> drivers/misc/eeprom/at24.c | 4 ++++
> 1 file changed, 4 insertions(+)
>
> diff --git a/drivers/misc/eeprom/at24.c b/drivers/misc/eeprom/at24.c
> index 616e63efc9864..f61a80597a22d 100644
> --- a/drivers/misc/eeprom/at24.c
> +++ b/drivers/misc/eeprom/at24.c
> @@ -196,6 +196,8 @@ AT24_CHIP_DATA(at24_data_24c32d_wlp, 32, AT24_FLAG_ADDR16);
> AT24_CHIP_DATA(at24_data_24cs32, 16,
> AT24_FLAG_ADDR16 | AT24_FLAG_SERIAL | AT24_FLAG_READONLY);
> AT24_CHIP_DATA(at24_data_24c64, 65536 / 8, AT24_FLAG_ADDR16);
> +/* M24C64-D Additional Write lockable page (M24C64-D order codes) */
> +AT24_CHIP_DATA(at24_data_24c64d_wlp, 32, AT24_FLAG_ADDR16);
> AT24_CHIP_DATA(at24_data_24cs64, 16,
> AT24_FLAG_ADDR16 | AT24_FLAG_SERIAL | AT24_FLAG_READONLY);
> AT24_CHIP_DATA(at24_data_24c128, 131072 / 8, AT24_FLAG_ADDR16);
> @@ -227,6 +229,7 @@ static const struct i2c_device_id at24_ids[] = {
> { "24c32d-wl", (kernel_ulong_t)&at24_data_24c32d_wlp },
> { "24cs32", (kernel_ulong_t)&at24_data_24cs32 },
> { "24c64", (kernel_ulong_t)&at24_data_24c64 },
> + { "24c64-wl", (kernel_ulong_t)&at24_data_24c64d_wlp },
> { "24cs64", (kernel_ulong_t)&at24_data_24cs64 },
> { "24c128", (kernel_ulong_t)&at24_data_24c128 },
> { "24c256", (kernel_ulong_t)&at24_data_24c256 },
> @@ -258,6 +261,7 @@ static const struct of_device_id at24_of_match[] = {
> { .compatible = "atmel,24c32d-wl", .data = &at24_data_24c32d_wlp },
> { .compatible = "atmel,24cs32", .data = &at24_data_24cs32 },
> { .compatible = "atmel,24c64", .data = &at24_data_24c64 },
> + { .compatible = "atmel,24c64d-wl", .data = &at24_data_24c64d_wlp },
> { .compatible = "atmel,24cs64", .data = &at24_data_24cs64 },
> { .compatible = "atmel,24c128", .data = &at24_data_24c128 },
> { .compatible = "atmel,24c256", .data = &at24_data_24c256 },
> --
> 2.34.1
>
Applied, thanks!
Bart
^ permalink raw reply [flat|nested] 7+ messages in thread
end of thread, other threads:[~2023-10-16 6:50 UTC | newest]
Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2023-10-13 6:30 [PATCH 1/2] dt-bindings: at24: add ST M24C64-D Additional Write lockable page Alexander Stein
2023-10-13 6:30 ` [PATCH 2/2] eeprom: at24: add ST M24C64-D Additional Write lockable page support Alexander Stein
2023-10-13 11:30 ` Marek Vasut
2023-10-16 6:50 ` Bartosz Golaszewski
2023-10-13 11:35 ` [PATCH 1/2] dt-bindings: at24: add ST M24C64-D Additional Write lockable page Marek Vasut
2023-10-13 15:02 ` Conor Dooley
2023-10-16 6:49 ` Bartosz Golaszewski
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).