Skip to content

Commit 2706516

Browse files
marcowsgregkh
authored andcommitted
dt-bindings: eeprom: at25: use "size" for FRAMs without device ID
commit 534c702 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/[email protected]/ Signed-off-by: Markus Heidelberg <[email protected]> Reviewed-by: Rob Herring (Arm) <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Greg Kroah-Hartman <[email protected]>
1 parent cdf7022 commit 2706516

File tree

1 file changed

+8
-0
lines changed
  • Documentation/devicetree/bindings/eeprom

1 file changed

+8
-0
lines changed

Documentation/devicetree/bindings/eeprom/at25.yaml

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -56,6 +56,7 @@ properties:
5656
$ref: /schemas/types.yaml#/definitions/uint32
5757
description:
5858
Total eeprom size in bytes.
59+
Also used for FRAMs without device ID where the size cannot be detected.
5960

6061
address-width:
6162
$ref: /schemas/types.yaml#/definitions/uint32
@@ -146,4 +147,11 @@ examples:
146147
reg = <1>;
147148
spi-max-frequency = <40000000>;
148149
};
150+
151+
fram@2 {
152+
compatible = "cypress,fm25", "atmel,at25";
153+
reg = <2>;
154+
spi-max-frequency = <20000000>;
155+
size = <2048>;
156+
};
149157
};

0 commit comments

Comments
 (0)