eeprom: at25: fram: Detect and support inside-out chip variants
authorAlexander Sverdlin <alexander.sverdlin@siemens.com>
Wed, 2 Jul 2025 22:29:26 +0000 (00:29 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 16 Jul 2025 12:17:57 +0000 (14:17 +0200)
commitcf4d2ce1eded8de0a678f5e473322eef84adb5e8
tree6a8721db3a32cee9a6a990c39cb420ca490762b9
parent239df3e4b4752524e7c0fb3417c218d8063654b4
eeprom: at25: fram: Detect and support inside-out chip variants

Infineon seems to be confused with the order ID bytes should be presented
by the FRAM chips and to be on the safe side they offer chips which are
either JEDEC conform or the full opposite of the latter.

Examples of the chips which present ID bytes in the reversed order are:
CY15B102QN
CY15B204QSN

Let's support them nevertheless. Except reversing the ID bytes, they also
have quite different density encoding even across EXCELON(tm) family.

The patch has been tested with the above two chips.

Signed-off-by: Alexander Sverdlin <alexander.sverdlin@siemens.com>
Link: https://lore.kernel.org/r/20250702222927.864875-1-alexander.sverdlin@siemens.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/misc/eeprom/at25.c