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

dt-bindings: eeprom: at25: use "size" for FRAMs without device ID

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>

authored by

Markus Heidelberg and committed by
Greg Kroah-Hartman
534c702c b009c1db

+8
+8
Documentation/devicetree/bindings/eeprom/at25.yaml
··· 56 56 $ref: /schemas/types.yaml#/definitions/uint32 57 57 description: 58 58 Total eeprom size in bytes. 59 + Also used for FRAMs without device ID where the size cannot be detected. 59 60 60 61 address-width: 61 62 $ref: /schemas/types.yaml#/definitions/uint32 ··· 146 145 compatible = "cypress,fm25", "atmel,at25"; 147 146 reg = <1>; 148 147 spi-max-frequency = <40000000>; 148 + }; 149 + 150 + fram@2 { 151 + compatible = "cypress,fm25", "atmel,at25"; 152 + reg = <2>; 153 + spi-max-frequency = <20000000>; 154 + size = <2048>; 149 155 }; 150 156 };