Merge tag 'audit-pr-20190507' of git://git.kernel.org/pub/scm/linux/kernel/git/pcmoor...
[sfrench/cifs-2.6.git] / Documentation / devicetree / bindings / i2c / i2c-mt65xx.txt
1 * MediaTek's I2C controller
2
3 The MediaTek's I2C controller is used to interface with I2C devices.
4
5 Required properties:
6   - compatible: value should be either of the following.
7       "mediatek,mt2701-i2c", "mediatek,mt6577-i2c": for MediaTek MT2701
8       "mediatek,mt2712-i2c": for MediaTek MT2712
9       "mediatek,mt6577-i2c": for MediaTek MT6577
10       "mediatek,mt6589-i2c": for MediaTek MT6589
11       "mediatek,mt7622-i2c": for MediaTek MT7622
12       "mediatek,mt7623-i2c", "mediatek,mt6577-i2c": for MediaTek MT7623
13       "mediatek,mt7629-i2c", "mediatek,mt2712-i2c": for MediaTek MT7629
14       "mediatek,mt8173-i2c": for MediaTek MT8173
15   - reg: physical base address of the controller and dma base, length of memory
16     mapped region.
17   - interrupts: interrupt number to the cpu.
18   - clock-div: the fixed value for frequency divider of clock source in i2c
19     module. Each IC may be different.
20   - clocks: clock name from clock manager
21   - clock-names: Must include "main" and "dma", if enable have-pmic need include
22     "pmic" extra.
23
24 Optional properties:
25   - clock-frequency: Frequency in Hz of the bus when transfer, the default value
26     is 100000.
27   - mediatek,have-pmic: platform can control i2c form special pmic side.
28     Only mt6589 and mt8135 support this feature.
29   - mediatek,use-push-pull: IO config use push-pull mode.
30
31 Example:
32
33         i2c0: i2c@1100d000 {
34                         compatible = "mediatek,mt6577-i2c";
35                         reg = <0x1100d000 0x70>,
36                               <0x11000300 0x80>;
37                         interrupts = <GIC_SPI 44 IRQ_TYPE_LEVEL_LOW>;
38                         clock-frequency = <400000>;
39                         mediatek,have-pmic;
40                         clock-div = <16>;
41                         clocks = <&i2c0_ck>, <&ap_dma_ck>;
42                         clock-names = "main", "dma";
43         };
44