How to add an i2c component to the existing device tree?
Dung_Nguyen at Dell.com
Dung_Nguyen at Dell.com
Thu Nov 1 07:01:53 EST 2012
Hi,
I'm currently using the hardware that is designed based on the AMCC Sequoia Evaluation board. I use the device tree file sequoia.dts to start with. We have added some i2c buses based on Xilinx i2c core beside the PPC i2c bus 0 and 1. I want to add a new i2c component to the existing device tree, but don't know where to start. Please me know if you have done. Here is part of the sequoia.dts for PPC i2c bus 0 and 1 that I'm currently using:
IIC0: i2c at ef600700 {
#address-cells = <1>;
#size-cells = <0>;
compatible = "ibm,iic-440epx", "ibm,iic";
reg = <0xef600700 0x00000014>;
interrupt-parent = <&UIC0>;
interrupts = <0x2 0x4>;
};
IIC1: i2c at ef600800 {
#address-cells = <1>;
#size-cells = <0>;
compatible = "ibm,iic-440epx", "ibm,iic";
reg = <0xef600800 0x00000014>;
interrupt-parent = <&UIC0>;
interrupts = <0x7 0x4>;
fast-mode = <1>;
};
I want to add something like this but it does not seem to work for me:
XILINX: xilinx at 1a0000000 {
compatible = "ibm,iic";
interrupt-parent = <&XILINX>;
interrupts = <0x0 0x1 0x2 0x3 0x4 0x5>;
#interrupt-cells = <1>;
#address-cells = <0>;
interrupt-map =</*IRQ 67*/ 0x5 &UIC2 0x3 0x8
/*IRQ 50*/ 0x1 &UIC1 0x12 0x8
/*IRQ 65*/ 0x2 &UIC2 0x1 0x8
/*IRQ 62*/ 0x3 &UIC1 0x1e 0x8
/*IRQ 62*/ 0x3 &UIC1 0x1e 0x8
/*IRQ 67*/ 0x5 &UIC2 0x3 0x8>;
interrupt-map-mask = <0xffffffff>;
planar at 1a0001600 {
compatible = "ibm,iic";
interrupt-parent = <&UIC2>;
#address-cells = <1>;
#size-cells = <0>;
interrupts = <0x5 0x8>;
rtc at 68 {
compatible = "nxp,pcf8523";
reg = <0x68>;
};
};
Thanks,
-Dung
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.ozlabs.org/pipermail/linuxppc-dev/attachments/20121031/07ebc844/attachment.html>
More information about the Linuxppc-dev
mailing list