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.
 
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.  

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

Thanks
_______________________________________________
Linuxppc-embedded mailing list
Linuxppc-embedded@ozlabs.org
https://ozlabs.org/mailman/listinfo/linuxppc-embedded

Reply via email to