linuxppc-dev.lists.ozlabs.org archive mirror
 help / color / mirror / Atom feed
* Device tree configuration for I2C eeprom
@ 2008-09-18 19:44 Ayman El-Khashab
  2008-09-18 22:13 ` Sebastian Siewior
  0 siblings, 1 reply; 15+ messages in thread
From: Ayman El-Khashab @ 2008-09-18 19:44 UTC (permalink / raw)
  To: Linuxppc-embedded

I am eluded by how exactly to configure the device tree for my external
I2C eeprom AND once that happens, how do I use the eeprom driver for
linux to read/write the device.

I am using the newest kernel 2.6.27-rc6 since it has apparently the best
support for the 28C128 EEPROM devices.  My design is based on the
canyonlands PPC460EX board.
=20
The RTC in the device tree shows up as expected in the
/proc/device-tree, but I am not sure what the configuration of the
eeprom should look like. =20

Here is a snippet from the dts file, and I assume I need something like
what I've added:
=20
                        IIC0: i2c@ef600700 {
                                compatible =3D "ibm,iic-460ex", =
"ibm,iic";
                                reg =3D <ef600700 14>;
                                interrupt-parent =3D <&UIC0>;
                                interrupts =3D <2 4>;
                                #address-cells =3D <1>;
                                #size-cells =3D <0>;
                                rtc@68 {
                                        compatible =3D "stm,m41t80";
                                        reg =3D <68>;
                                };
                                eeprom@50 {
                                        compatible =3D "?????";
 						    something
                                        something;
                                };
   =20
Once I do all that, how does one use the eeprom driver to read and write
this part?

Thanks

^ permalink raw reply	[flat|nested] 15+ messages in thread

end of thread, other threads:[~2008-11-04 21:00 UTC | newest]

Thread overview: 15+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-09-18 19:44 Device tree configuration for I2C eeprom Ayman El-Khashab
2008-09-18 22:13 ` Sebastian Siewior
2008-09-18 22:21   ` Jon Smirl
2008-09-19  5:04     ` Grant Likely
2008-09-19  7:12       ` Sebastian Siewior
2008-09-19  7:44         ` Grant Likely
2008-09-19  8:12           ` Sebastian Siewior
2008-11-04 16:28         ` Grant Likely
2008-11-04 16:29           ` Grant Likely
2008-11-04 17:17             ` Sebastian Andrzej Siewior
2008-11-04 16:07       ` Ayman El-Khashab
2008-11-04 16:45         ` Felix Radensky
2008-11-04 19:52           ` Ayman El-Khashab
2008-11-04 20:04             ` Felix Radensky
2008-11-04 21:00               ` Ayman El-Khashab

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).