1 From d1447a6815913823ef5e75d70efc6f08f288ee40 Mon Sep 17 00:00:00 2001
2 From: Xudong Chen <xudong.chen@mediatek.com>
3 Date: Wed, 6 May 2015 16:37:05 +0800
4 Subject: [PATCH 29/76] dt-bindings: Add I2C bindings for mt65xx/mt81xx.
6 Add devicetree bindings for Mediatek Soc I2C driver.
8 Signed-off-by: Xudong Chen <xudong.chen@mediatek.com>
9 Signed-off-by: Eddie Huang <eddie.huang@mediatek.com>
11 .../devicetree/bindings/i2c/i2c-mt6577.txt | 41 ++++++++++++++++++++
12 1 file changed, 41 insertions(+)
13 create mode 100644 Documentation/devicetree/bindings/i2c/i2c-mt6577.txt
16 +++ b/Documentation/devicetree/bindings/i2c/i2c-mt6577.txt
18 +* Mediatek's I2C controller
20 +The Mediatek's I2C controller is used to interface with I2C devices.
23 + - compatible: value should be either of the following.
24 + (a) "mediatek,mt6577-i2c", for i2c compatible with mt6577 i2c.
25 + (b) "mediatek,mt6589-i2c", for i2c compatible with mt6589 i2c.
26 + (c) "mediatek,mt8127-i2c", for i2c compatible with mt8127 i2c.
27 + (d) "mediatek,mt8135-i2c", for i2c compatible with mt8135 i2c.
28 + (e) "mediatek,mt8173-i2c", for i2c compatible with mt8173 i2c.
29 + - reg: physical base address of the controller and dma base, length of memory
31 + - interrupts: interrupt number to the cpu.
32 + - clock-div: the fixed value for frequency divider of clock source in i2c
33 + module. Each IC may be different.
34 + - clocks: clock name from clock manager
35 + - clock-names: Must include "main" and "dma", if enable have-pmic need include
39 + - clock-frequency: Frequency in Hz of the bus when transfer, the default value
41 + - mediatek,have-pmic: platform can control i2c form special pmic side.
42 + Only mt6589 and mt8135 support this feature.
43 + - mediatek,use-push-pull: IO config use push-pull mode.
47 + i2c0: i2c@1100d000 {
48 + compatible = "mediatek,mt6577-i2c";
49 + reg = <0x1100d000 0x70>,
51 + interrupts = <GIC_SPI 44 IRQ_TYPE_LEVEL_LOW>;
52 + clock-frequency = <400000>;
55 + clocks = <&i2c0_ck>, <&ap_dma_ck>;
56 + clock-names = "main", "dma";