Merge branch 'for-3.17' of git://git.kernel.org/pub/scm/linux/kernel/git/tj/libata
[cascardo/linux.git] / Documentation / devicetree / bindings / i2c / i2c-rk3x.txt
1 * Rockchip RK3xxx I2C controller
2
3 This driver interfaces with the native I2C controller present in Rockchip
4 RK3xxx SoCs.
5
6 Required properties :
7
8  - reg : Offset and length of the register set for the device
9  - compatible : should be "rockchip,rk3066-i2c", "rockchip,rk3188-i2c" or
10                 "rockchip,rk3288-i2c".
11  - interrupts : interrupt number
12  - clocks : parent clock
13
14 Required on RK3066, RK3188 :
15
16  - rockchip,grf : the phandle of the syscon node for the general register
17                   file (GRF)
18  - on those SoCs an alias with the correct I2C bus ID (bit offset in the GRF)
19    is also required.
20
21 Optional properties :
22
23  - clock-frequency : SCL frequency to use (in Hz). If omitted, 100kHz is used.
24
25 Example:
26
27 aliases {
28         i2c0 = &i2c0;
29 }
30
31 i2c0: i2c@2002d000 {
32         compatible = "rockchip,rk3188-i2c";
33         reg = <0x2002d000 0x1000>;
34         interrupts = <GIC_SPI 40 IRQ_TYPE_LEVEL_HIGH>;
35         #address-cells = <1>;
36         #size-cells = <0>;
37
38         rockchip,grf = <&grf>;
39
40         clock-names = "i2c";
41         clocks = <&cru PCLK_I2C0>;
42 };