Thread (12 messages) 12 messages, 5 authors, 2008-11-04

RE: Device tree configuration for I2C eeprom

From: Ayman El-Khashab <hidden>
Date: 2008-11-04 21:00:03

Possibly related (same subject, not in this thread)

Hello Felix,

Thanks, below is what I finally did that works ...

Felix Radensky <mailto:felix@embedded-sol.com> said on Tuesday, November
04, 2008 2:04 PM:
quoted
=20
The first entry in the table matches "compatible" property in device
tree, the second one - i2c driver name, and the third one - i2c
device name in the driver id table (see at24_ids[] in at24.c). So in
your case it should look like this:
=20
{"atmel,at24c128",  "at24",   "24c128"}
{"spd,at24c02",       "at24",   "spd"}
Then I modified my device tree to read, per an example I found
elsewhere.  The combination
of these two changes made everything work.  Again, thanks!

                                at24@50 {
                                        compatible =3D "at,24c128";
                                        reg =3D <0x50>;
                                };
                                spd@51 {
                                        compatible =3D "spd,24c02";
                                        reg =3D <0x51>;
                                };
                                at24@52 {
                                        compatible =3D "at,24c128";
                                        reg =3D <0x52>;
                                };
                                at24@53 {
                                        compatible =3D "at,24c128";
                                        reg =3D <0x53>;
                                };
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help