···2233Required properties :4455- - device_type : Should be "i2c"65 - reg : Offset and length of the register set for the device66+ - compatible : should be "fsl,CHIP-i2c" where CHIP is the name of a77+ compatible processor, e.g. mpc8313, mpc8543, mpc8544, mpc5121,88+ mpc5200 or mpc5200b. For the mpc5121, an additional node99+ "fsl,mpc5121-i2c-ctrl" is required as shown in the example below.710811Recommended properties :9121010- - compatible : compatibility list with 2 entries, the first should1111- be "fsl,CHIP-i2c" where CHIP is the name of a compatible processor,1212- e.g. mpc8313, mpc8543, mpc8544, mpc5200 or mpc5200b. The second one1313- should be "fsl-i2c".1413 - interrupts : <a b> where a is the interrupt number and b is a1514 field that represents an encoding of the sense and level1615 information for the interrupt. This should be encoded based on···23242425Examples :25262727+ /* MPC5121 based board */2828+ i2c@1740 {2929+ #address-cells = <1>;3030+ #size-cells = <0>;3131+ compatible = "fsl,mpc5121-i2c", "fsl-i2c";3232+ reg = <0x1740 0x20>;3333+ interrupts = <11 0x8>;3434+ interrupt-parent = <&ipic>;3535+ clock-frequency = <100000>;3636+ };3737+3838+ i2ccontrol@1760 {3939+ compatible = "fsl,mpc5121-i2c-ctrl";4040+ reg = <0x1760 0x8>;4141+ };4242+4343+ /* MPC5200B based board */2644 i2c@3d00 {2745 #address-cells = <1>;2846 #size-cells = <0>;2947 compatible = "fsl,mpc5200b-i2c","fsl,mpc5200-i2c","fsl-i2c";3030- cell-index = <0>;3148 reg = <0x3d00 0x40>;3249 interrupts = <2 15 0>;3350 interrupt-parent = <&mpc5200_pic>;3451 fsl,preserve-clocking;3552 };36535454+ /* MPC8544 base board */3755 i2c@3100 {3856 #address-cells = <1>;3957 #size-cells = <0>;4040- cell-index = <1>;4158 compatible = "fsl,mpc8544-i2c", "fsl-i2c";4259 reg = <0x3100 0x100>;4360 interrupts = <43 2>;4461 interrupt-parent = <&mpic>;4562 clock-frequency = <400000>;4663 };4747-
+3-4
drivers/i2c/busses/Kconfig
···419419 instead.420420421421config I2C_MPC422422- tristate "MPC107/824x/85xx/52xx/86xx"422422+ tristate "MPC107/824x/85xx/512x/52xx/83xx/86xx"423423 depends on PPC32424424 help425425 If you say yes to this option, support will be included for the426426- built-in I2C interface on the MPC107/Tsi107/MPC8240/MPC8245 and427427- MPC85xx/MPC8641 family processors. The driver may also work on 52xx428428- family processors, though interrupts are known not to work.426426+ built-in I2C interface on the MPC107, Tsi107, MPC512x, MPC52xx,427427+ MPC8240, MPC8245, MPC83xx, MPC85xx and MPC8641 family processors.429428430429 This driver can also be built as a module. If so, the module431430 will be called i2c-mpc.