generic/4.4: remove ISSI SI25CD512 SPI flash support patch
[openwrt/svn-archive/archive.git] / target / linux / mediatek / patches / 0029-dt-bindings-Add-I2C-bindings-for-mt65xx-mt81xx.patch
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.
5
6 Add devicetree bindings for Mediatek Soc I2C driver.
7
8 Signed-off-by: Xudong Chen <xudong.chen@mediatek.com>
9 Signed-off-by: Eddie Huang <eddie.huang@mediatek.com>
10 ---
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
14
15 --- /dev/null
16 +++ b/Documentation/devicetree/bindings/i2c/i2c-mt6577.txt
17 @@ -0,0 +1,41 @@
18 +* Mediatek's I2C controller
19 +
20 +The Mediatek's I2C controller is used to interface with I2C devices.
21 +
22 +Required properties:
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
30 + mapped region.
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
36 + "pmic" extra.
37 +
38 +Optional properties:
39 + - clock-frequency: Frequency in Hz of the bus when transfer, the default value
40 + is 100000.
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.
44 +
45 +Example:
46 +
47 + i2c0: i2c@1100d000 {
48 + compatible = "mediatek,mt6577-i2c";
49 + reg = <0x1100d000 0x70>,
50 + <0x11000300 0x80>;
51 + interrupts = <GIC_SPI 44 IRQ_TYPE_LEVEL_LOW>;
52 + clock-frequency = <400000>;
53 + mediatek,have-pmic;
54 + clock-div = <16>;
55 + clocks = <&i2c0_ck>, <&ap_dma_ck>;
56 + clock-names = "main", "dma";
57 + };
58 +