summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMarkus Heidelberg <m.heidelberg@cab.de>2025-08-15 11:58:36 +0200
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2025-11-13 15:37:49 -0500
commit2706516c999c1d065217265f189fac773b57a37c (patch)
tree2c5533b9c5d0cd196675d532e996aa9c301b6721
parentcdf7022a5d3cfaf7716c467490bb62c4cd026620 (diff)
downloadlinux-2706516c999c1d065217265f189fac773b57a37c.tar.gz
linux-2706516c999c1d065217265f189fac773b57a37c.tar.bz2
linux-2706516c999c1d065217265f189fac773b57a37c.zip
dt-bindings: eeprom: at25: use "size" for FRAMs without device ID
commit 534c702c3c234665ca2fe426a9fbb12281e55d55 upstream. Not all FRAM chips have a device ID and implement the corresponding read command. Thus the memory size, which is contained in the device ID, cannot be detected and has to be set manually as it is done for EEPROMs. Link: https://lore.kernel.org/all/20250401133148.38330-1-m.heidelberg@cab.de/ Signed-off-by: Markus Heidelberg <m.heidelberg@cab.de> Reviewed-by: Rob Herring (Arm) <robh@kernel.org> Link: https://lore.kernel.org/r/20250815095839.4219-2-m.heidelberg@cab.de Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
-rw-r--r--Documentation/devicetree/bindings/eeprom/at25.yaml8
1 files changed, 8 insertions, 0 deletions
diff --git a/Documentation/devicetree/bindings/eeprom/at25.yaml b/Documentation/devicetree/bindings/eeprom/at25.yaml
index c31e5e719525..00e0f07b44f8 100644
--- a/Documentation/devicetree/bindings/eeprom/at25.yaml
+++ b/Documentation/devicetree/bindings/eeprom/at25.yaml
@@ -56,6 +56,7 @@ properties:
$ref: /schemas/types.yaml#/definitions/uint32
description:
Total eeprom size in bytes.
+ Also used for FRAMs without device ID where the size cannot be detected.
address-width:
$ref: /schemas/types.yaml#/definitions/uint32
@@ -146,4 +147,11 @@ examples:
reg = <1>;
spi-max-frequency = <40000000>;
};
+
+ fram@2 {
+ compatible = "cypress,fm25", "atmel,at25";
+ reg = <2>;
+ spi-max-frequency = <20000000>;
+ size = <2048>;
+ };
};