at24: add support for 24c2048
Subsystems (2)
v2 cover at24: add support for 24c2048
There are some changes in the driver that prevent a direct cherry-pick to older kernels, including requiring only one line addition in the backport while the upstream commit requires three.
Backport applies and builds against 4.9/4.14 (but not 4.4). Confirmed working with 4.14.
For 4.19/4.20 please cherry-pick the upstream commits instead.
Adrian Bunk (2):
dt-bindings: eeprom: at24: add "atmel,24c2048" compatible string
eeprom: at24: add support for 24c2048
Documentation/devicetree/bindings/eeprom/eeprom.txt | 5 +++-- drivers/misc/eeprom/Kconfig | 2 +- drivers/misc/eeprom/at24.c | 1 + 3 files changed, 5 insertions(+), 3 deletions(-)
Signature · 1 line
2.11.0
PATCH v2 1/2 dt-bindings: eeprom: at24: add "atmel,24c2048" compatible string
commit 6c0c5dc33ff42af49243e94842d0ebdb153189ea upstream.
Add new compatible to the device tree bindings.
--- Documentation/devicetree/bindings/eeprom/eeprom.txt | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-)
Documentation/devicetree/bindings/eeprom/eeprom.txt +3 -2
@@ -6,7 +6,8 @@ Required properties: "atmel,24c00", "atmel,24c01", "atmel,24c02", "atmel,24c04", "atmel,24c08", "atmel,24c16", "atmel,24c32", "atmel,24c64", - "atmel,24c128", "atmel,24c256", "atmel,24c512", "atmel,24c1024" + "atmel,24c128", "atmel,24c256", "atmel,24c512", "atmel,24c1024", + "atmel,24c2048" "catalyst,24c32"
@@ -23,7 +24,7 @@ Required properties: device with <type> and manufacturer "atmel" should be used. Possible types are: "24c00", "24c01", "24c02", "24c04", "24c08", "24c16", "24c32", "24c64", - "24c128", "24c256", "24c512", "24c1024", "spd" + "24c128", "24c256", "24c512", "24c1024", "24c2048", "spd" - reg : the I2C address of the EEPROM
Signature · 1 line
2.11.0
PATCH v2 2/2 eeprom: at24: add support for 24c2048
In reply to Adrian Bunkcommit 37cf28d3b5bca1b532a0b6aac722e7f2788a9294 upstream.
Works with ST M24M02.
--- drivers/misc/eeprom/Kconfig | 2 +- drivers/misc/eeprom/at24.c | 1 + 2 files changed, 2 insertions(+), 1 deletion(-)
drivers/misc/eeprom/Kconfig +1 -1
@@ -12,7 +12,7 @@ config EEPROM_AT24 ones like at24c64, 24lc02 or fm24c04: 24c00, 24c01, 24c02, spd (readonly 24c02), 24c04, 24c08, - 24c16, 24c32, 24c64, 24c128, 24c256, 24c512, 24c1024 + 24c16, 24c32, 24c64, 24c128, 24c256, 24c512, 24c1024, 24c2048 Unless you like data loss puzzles, always be sure that any chip you configure as a 24c32 (32 kbit) or larger is NOT really a
drivers/misc/eeprom/at24.c +1 -0
@@ -170,6 +170,7 @@ static const struct i2c_device_id at24_ids[] = { { "24c256", AT24_DEVICE_MAGIC(262144 / 8, AT24_FLAG_ADDR16) }, { "24c512", AT24_DEVICE_MAGIC(524288 / 8, AT24_FLAG_ADDR16) }, { "24c1024", AT24_DEVICE_MAGIC(1048576 / 8, AT24_FLAG_ADDR16) }, + { "24c2048", AT24_DEVICE_MAGIC(2097152 / 8, AT24_FLAG_ADDR16) }, { "at24", 0 }, { /* END OF LIST */ } };
Signature · 1 line
2.11.0
Quoted 9 lines · Adrian Bunk
There are some changes in the driver that prevent a direct cherry-pick to older kernels, including requiring only one line addition in the backport while the upstream commit requires three.
Backport applies and builds against 4.9/4.14 (but not 4.4). Confirmed working with 4.14.
For 4.19/4.20 please cherry-pick the upstream commits instead.
Quoted 8 lines
Adrian Bunk (2):
dt-bindings: eeprom: at24: add "atmel,24c2048" compatible string
eeprom: at24: add support for 24c2048Documentation/devicetree/bindings/eeprom/eeprom.txt | 5 +++-- drivers/misc/eeprom/Kconfig | 2 +- drivers/misc/eeprom/at24.c | 1 + 3 files changed, 5 insertions(+), 3 deletions(-)
Queued for 4.14 and 4.9, thank you.