Skip to contentSkip to conversation

misc: i2c_eeprom: Add compatibles

PATCH New Wenyou Yang 3 participants 7 messages Jul 31, 2017 – Sep 13, 2017 Char and misc drivers

lore
Share & tools
lore
#0 lore raw

cover misc: i2c_eeprom: Add compatibles

Add the compatibles to support the I2C EEPROM 24AA02E48 and AT24MAC402 respectively.
- microchip,24aa02e48
- atmel,24mac402

Wenyou Yang (2):
misc: i2c_eeprom: Add compatible for 24AA02E48
misc: i2c_eeprom: Add compatible for AT24MAC402

 drivers/misc/i2c_eeprom.c | 2 ++
 1 file changed, 2 insertions(+)
Signature · 1 line
2.13.0
#1 lore raw

PATCH 1/2 misc: i2c_eeprom: Add compatible for 24AA02E48

Add the new compatible "microchip,24aa02e48" to accommodate 24AA02E48, the 24AA02E48 is a 2K I2C Serial EEPROM with pre-programmed globally unique, 48-bit node address, and 8-byte page size.

---

 drivers/misc/i2c_eeprom.c | 1 +
 1 file changed, 1 insertion(+)
drivers/misc/i2c_eeprom.c +1 -0
index a14e83225b..b2de3dffc6 100644
@@ -66,6 +66,7 @@ static int i2c_eeprom_std_probe(struct udevice *dev)
 
 static const struct udevice_id i2c_eeprom_std_ids[] = {
 	{ .compatible = "i2c-eeprom", .data = 0 },
+	{ .compatible = "microchip,24aa02e48", .data = 3 },
 	{ .compatible = "atmel,24c01a", .data = 3 },
 	{ .compatible = "atmel,24c02", .data = 3 },
 	{ .compatible = "atmel,24c04", .data = 4 },
Signature · 1 line
2.13.0
#2 lore raw

PATCH 1/2 misc: i2c_eeprom: Add compatible for 24AA02E48

Quoted 5 lines · Wenyou Yang

Add the new compatible "microchip,24aa02e48" to accommodate 24AA02E48, the 24AA02E48 is a 2K I2C Serial EEPROM with pre-programmed globally unique, 48-bit node address, and 8-byte page size.

Applied to u-boot/master, thanks!

Signature · 8 lines
Tom
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 819 bytes
Desc: Digital signature
URL: <http://lists.denx.de/pipermail/u-boot/attachments/20170912/aa49c7cf/attachment.sig>
#3 lore raw

PATCH 2/2 misc: i2c_eeprom: Add compatible for AT24MAC402

In reply to Wenyou Yang

Add the new compatible "atmel,24mac402" to accommodate AT24MAC402. The AT24MAC402 is a 2K Serial EEPROM and the 2-Kbit memory array is internally organized as 16 pages of 16 bytes of EEPROM each. The 48-bit EUI address in the AT24MAC402 are located in the extended memory block.

---

 drivers/misc/i2c_eeprom.c | 1 +
 1 file changed, 1 insertion(+)
drivers/misc/i2c_eeprom.c +1 -0
index b2de3dffc6..9a77c6e164 100644
@@ -72,6 +72,7 @@ static const struct udevice_id i2c_eeprom_std_ids[] = {
 	{ .compatible = "atmel,24c04", .data = 4 },
 	{ .compatible = "atmel,24c08a", .data = 4 },
 	{ .compatible = "atmel,24c16a", .data = 4 },
+	{ .compatible = "atmel,24mac402", .data = 4 },
 	{ .compatible = "atmel,24c32", .data = 5 },
 	{ .compatible = "atmel,24c64", .data = 5 },
 	{ .compatible = "atmel,24c128", .data = 6 },
Signature · 1 line
2.13.0
#4 lore raw

PATCH 2/2 misc: i2c_eeprom: Add compatible for AT24MAC402

Quoted 7 lines · Wenyou Yang

Add the new compatible "atmel,24mac402" to accommodate AT24MAC402. The AT24MAC402 is a 2K Serial EEPROM and the 2-Kbit memory array is internally organized as 16 pages of 16 bytes of EEPROM each. The 48-bit EUI address in the AT24MAC402 are located in the extended memory block.

Applied to u-boot/master, thanks!

Signature · 8 lines
Tom
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 819 bytes
Desc: Digital signature
URL: <http://lists.denx.de/pipermail/u-boot/attachments/20170912/a4bcc832/attachment.sig>
#5 lore raw

cover misc: i2c_eeprom: Add compatibles

In reply to Wenyou Yang
Quoted 6 lines · Wenyou Yang

Add the compatibles to support the I2C EEPROM 24AA02E48 and AT24MAC402 respectively.
- microchip,24aa02e48
- atmel,24mac402

Quoted 6 lines

Wenyou Yang (2):
misc: i2c_eeprom: Add compatible for 24AA02E48
misc: i2c_eeprom: Add compatible for AT24MAC402

 drivers/misc/i2c_eeprom.c | 2 ++
 1 file changed, 2 insertions(+)

How does this work in the kernel? Grepping around on what we list currently even, I see that Documentation/devicetree/bindings/eeprom/eeprom.txt lists some of the ones we have in drivers/misc/i2c_eeprom.c as an example but nothing catching on the compatible string. Does the kernel have some smart logic to match these compatibles? If so, could we mirror that? Thanks!

Signature · 8 lines
Tom
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 819 bytes
Desc: Digital signature
URL: <http://lists.denx.de/pipermail/u-boot/attachments/20170731/a8be8f53/attachment.sig>
#6 lore raw

cover misc: i2c_eeprom: Add compatibles

In reply to Wenyou Yang

Hi,

Can be accepted?

Quoted 6 lines · Wenyou Yang

Add the compatibles to support the I2C EEPROM 24AA02E48 and AT24MAC402 respectively.
- microchip,24aa02e48
- atmel,24mac402

Quoted 7 lines

Wenyou Yang (2):
misc: i2c_eeprom: Add compatible for 24AA02E48
misc: i2c_eeprom: Add compatible for AT24MAC402

  drivers/misc/i2c_eeprom.c | 2 ++
  1 file changed, 2 insertions(+)

Best Regards,
Wenyou Yang