Merge tag 'dt' of git://git.kernel.org/pub/scm/linux/kernel/git/arm/arm-soc
[profile/ivi/kernel-adaptation-intel-automotive.git] / Documentation / devicetree / bindings / i2c / mrvl-i2c.txt
1 * I2C
2
3 Required properties :
4
5  - reg : Offset and length of the register set for the device
6  - compatible : should be "mrvl,mmp-twsi" where CHIP is the name of a
7    compatible processor, e.g. pxa168, pxa910, mmp2, mmp3.
8    For the pxa2xx/pxa3xx, an additional node "mrvl,pxa-i2c" is required
9    as shown in the example below.
10
11 Recommended properties :
12
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.
20  - mrvl,i2c-polling : Disable interrupt of i2c controller. Polling
21    status register of i2c controller instead.
22  - mrvl,i2c-fast-mode : Enable fast mode of i2c controller.
23
24 Examples:
25         twsi1: i2c@d4011000 {
26                 compatible = "mrvl,mmp-twsi", "mrvl,pxa-i2c";
27                 reg = <0xd4011000 0x1000>;
28                 interrupts = <7>;
29                 mrvl,i2c-fast-mode;
30         };
31         
32         twsi2: i2c@d4025000 {
33                 compatible = "mrvl,mmp-twsi", "mrvl,pxa-i2c";
34                 reg = <0xd4025000 0x1000>;
35                 interrupts = <58>;
36         };
37