| Kumar Gala | d0fc2ea | 2008-07-07 11:28:33 -0500 | [diff] [blame] | 1 | * I2C | 
|  | 2 |  | 
|  | 3 | Required properties : | 
|  | 4 |  | 
| Kumar Gala | d0fc2ea | 2008-07-07 11:28:33 -0500 | [diff] [blame] | 5 | - reg : Offset and length of the register set for the device | 
| Wolfgang Grandegger | 192505b | 2010-02-17 11:19:20 +0100 | [diff] [blame] | 6 | - compatible : should be "fsl,CHIP-i2c" where CHIP is the name of a | 
|  | 7 | compatible processor, e.g. mpc8313, mpc8543, mpc8544, mpc5121, | 
|  | 8 | mpc5200 or mpc5200b. For the mpc5121, an additional node | 
|  | 9 | "fsl,mpc5121-i2c-ctrl" is required as shown in the example below. | 
| Kumar Gala | d0fc2ea | 2008-07-07 11:28:33 -0500 | [diff] [blame] | 10 |  | 
|  | 11 | Recommended properties : | 
|  | 12 |  | 
| Kumar Gala | d0fc2ea | 2008-07-07 11:28:33 -0500 | [diff] [blame] | 13 | - interrupts : <a b> where a is the interrupt number and b is a | 
|  | 14 | field that represents an encoding of the sense and level | 
|  | 15 | information for the interrupt.  This should be encoded based on | 
|  | 16 | the information in section 2) depending on the type of interrupt | 
|  | 17 | controller you have. | 
|  | 18 | - interrupt-parent : the phandle for the interrupt controller that | 
|  | 19 | services interrupts for this device. | 
| Wolfgang Grandegger | 8d82ffd | 2009-04-07 10:20:56 +0200 | [diff] [blame] | 20 | - fsl,preserve-clocking : boolean; if defined, the clock settings | 
|  | 21 | from the bootloader are preserved (not touched). | 
|  | 22 | - clock-frequency : desired I2C bus clock frequency in Hz. | 
| Albrecht Dreß | 0c2daaaf | 2010-02-17 08:59:14 +0000 | [diff] [blame] | 23 | - fsl,timeout : I2C bus timeout in microseconds. | 
| Kumar Gala | d0fc2ea | 2008-07-07 11:28:33 -0500 | [diff] [blame] | 24 |  | 
| Wolfgang Grandegger | 8d82ffd | 2009-04-07 10:20:56 +0200 | [diff] [blame] | 25 | Examples : | 
|  | 26 |  | 
| Wolfgang Grandegger | 192505b | 2010-02-17 11:19:20 +0100 | [diff] [blame] | 27 | /* MPC5121 based board */ | 
|  | 28 | i2c@1740 { | 
|  | 29 | #address-cells = <1>; | 
|  | 30 | #size-cells = <0>; | 
|  | 31 | compatible = "fsl,mpc5121-i2c", "fsl-i2c"; | 
|  | 32 | reg = <0x1740 0x20>; | 
|  | 33 | interrupts = <11 0x8>; | 
|  | 34 | interrupt-parent = <&ipic>; | 
|  | 35 | clock-frequency = <100000>; | 
|  | 36 | }; | 
|  | 37 |  | 
|  | 38 | i2ccontrol@1760 { | 
|  | 39 | compatible = "fsl,mpc5121-i2c-ctrl"; | 
|  | 40 | reg = <0x1760 0x8>; | 
|  | 41 | }; | 
|  | 42 |  | 
|  | 43 | /* MPC5200B based board */ | 
| Wolfgang Grandegger | 8d82ffd | 2009-04-07 10:20:56 +0200 | [diff] [blame] | 44 | i2c@3d00 { | 
|  | 45 | #address-cells = <1>; | 
|  | 46 | #size-cells = <0>; | 
|  | 47 | compatible = "fsl,mpc5200b-i2c","fsl,mpc5200-i2c","fsl-i2c"; | 
| Wolfgang Grandegger | 8d82ffd | 2009-04-07 10:20:56 +0200 | [diff] [blame] | 48 | reg = <0x3d00 0x40>; | 
|  | 49 | interrupts = <2 15 0>; | 
|  | 50 | interrupt-parent = <&mpc5200_pic>; | 
|  | 51 | fsl,preserve-clocking; | 
| Kumar Gala | d0fc2ea | 2008-07-07 11:28:33 -0500 | [diff] [blame] | 52 | }; | 
| Wolfgang Grandegger | 8d82ffd | 2009-04-07 10:20:56 +0200 | [diff] [blame] | 53 |  | 
| Wolfgang Grandegger | 192505b | 2010-02-17 11:19:20 +0100 | [diff] [blame] | 54 | /* MPC8544 base board */ | 
| Wolfgang Grandegger | 8d82ffd | 2009-04-07 10:20:56 +0200 | [diff] [blame] | 55 | i2c@3100 { | 
|  | 56 | #address-cells = <1>; | 
|  | 57 | #size-cells = <0>; | 
| Wolfgang Grandegger | 8d82ffd | 2009-04-07 10:20:56 +0200 | [diff] [blame] | 58 | compatible = "fsl,mpc8544-i2c", "fsl-i2c"; | 
|  | 59 | reg = <0x3100 0x100>; | 
|  | 60 | interrupts = <43 2>; | 
|  | 61 | interrupt-parent = <&mpic>; | 
|  | 62 | clock-frequency = <400000>; | 
| Albrecht Dreß | 0c2daaaf | 2010-02-17 08:59:14 +0000 | [diff] [blame] | 63 | fsl,timeout = <10000>; | 
| Wolfgang Grandegger | 8d82ffd | 2009-04-07 10:20:56 +0200 | [diff] [blame] | 64 | }; |