aboutsummaryrefslogtreecommitdiffstats
path: root/Documentation/devicetree/bindings/i2c
diff options
context:
space:
mode:
authorLinus Torvalds <torvalds@linux-foundation.org>2013-07-04 17:02:09 -0400
committerLinus Torvalds <torvalds@linux-foundation.org>2013-07-04 17:02:09 -0400
commit98f486f18d16e2214728d101ed8b6a12dce75539 (patch)
tree987e2fcbd6089a94a00e489cd62fec1b8b10cd02 /Documentation/devicetree/bindings/i2c
parent84cbd7222b2b00dcddef3103203986b3d59c836a (diff)
parent97191d734f6ac028e5e6dcd574378c1544a16c0b (diff)
Merge branch 'i2c/for-next' of git://git.kernel.org/pub/scm/linux/kernel/git/wsa/linux
Pull i2c updates from Wolfram Sang: - new drivers: Kontron PLD, Wondermedia VT - mv64xxx driver gained sun4i support and a bigger cleanup - duplicate driver 'intel-mid' removed - added generic device tree binding for sda holding time (and designware driver already uses it) - we tried to allow driver probing with only device tree and no i2c ids, but I had to revert it because of side effects. Needs some rethinking. - driver bugfixes, cleanups... * 'i2c/for-next' of git://git.kernel.org/pub/scm/linux/kernel/git/wsa/linux: (34 commits) i2c-designware: use div_u64 to fix link i2c: Kontron PLD i2c bus driver i2c: iop3xxx: fix build failure after waitqueue changes i2c-designware: make SDA hold time configurable i2c: mv64xxx: Set bus frequency to 100kHz if clock-frequency is not provided i2c: imx: allow autoloading on dt ids i2c: mv64xxx: Fix transfer error code i2c: i801: SMBus patch for Intel Coleto Creek DeviceIDs i2c: omap: correct usage of the interrupt enable register i2c-pxa: prepare clock before use Revert "i2c: core: make it possible to match a pure device tree driver" i2c: nomadik: allocate adapter number dynamically i2c: nomadik: support elder Nomadiks i2c: mv64xxx: Add Allwinner sun4i compatible i2c: mv64xxx: make the registers offset configurable i2c: mv64xxx: Add macros to access parts of registers i2c: vt8500: Add support for I2C bus on Wondermedia SoCs i2c: designware: fix race between subsequent xfers i2c: bfin-twi: Read and write the FIFO in loop i2c: core: make it possible to match a pure device tree driver ...
Diffstat (limited to 'Documentation/devicetree/bindings/i2c')
-rw-r--r--Documentation/devicetree/bindings/i2c/i2c-designware.txt15
-rw-r--r--Documentation/devicetree/bindings/i2c/i2c-mv64xxx.txt6
-rw-r--r--Documentation/devicetree/bindings/i2c/i2c-vt8500.txt24
3 files changed, 44 insertions, 1 deletions
diff --git a/Documentation/devicetree/bindings/i2c/i2c-designware.txt b/Documentation/devicetree/bindings/i2c/i2c-designware.txt
index e42a2ee233e6..7fd7fa25e9b0 100644
--- a/Documentation/devicetree/bindings/i2c/i2c-designware.txt
+++ b/Documentation/devicetree/bindings/i2c/i2c-designware.txt
@@ -10,6 +10,10 @@ Recommended properties :
10 10
11 - clock-frequency : desired I2C bus clock frequency in Hz. 11 - clock-frequency : desired I2C bus clock frequency in Hz.
12 12
13Optional properties :
14 - i2c-sda-hold-time-ns : should contain the SDA hold time in nanoseconds.
15 This option is only supported in hardware blocks version 1.11a or newer.
16
13Example : 17Example :
14 18
15 i2c@f0000 { 19 i2c@f0000 {
@@ -20,3 +24,14 @@ Example :
20 interrupts = <11>; 24 interrupts = <11>;
21 clock-frequency = <400000>; 25 clock-frequency = <400000>;
22 }; 26 };
27
28 i2c@1120000 {
29 #address-cells = <1>;
30 #size-cells = <0>;
31 compatible = "snps,designware-i2c";
32 reg = <0x1120000 0x1000>;
33 interrupt-parent = <&ictl>;
34 interrupts = <12 1>;
35 clock-frequency = <400000>;
36 i2c-sda-hold-time-ns = <300>;
37 };
diff --git a/Documentation/devicetree/bindings/i2c/i2c-mv64xxx.txt b/Documentation/devicetree/bindings/i2c/i2c-mv64xxx.txt
index f46d928aa73d..a1ee681942cc 100644
--- a/Documentation/devicetree/bindings/i2c/i2c-mv64xxx.txt
+++ b/Documentation/devicetree/bindings/i2c/i2c-mv64xxx.txt
@@ -6,7 +6,11 @@ Required properties :
6 - reg : Offset and length of the register set for the device 6 - reg : Offset and length of the register set for the device
7 - compatible : Should be "marvell,mv64xxx-i2c" 7 - compatible : Should be "marvell,mv64xxx-i2c"
8 - interrupts : The interrupt number 8 - interrupts : The interrupt number
9 - clock-frequency : Desired I2C bus clock frequency in Hz. 9
10Optional properties :
11
12 - clock-frequency : Desired I2C bus clock frequency in Hz. If not set the
13default frequency is 100kHz
10 14
11Examples: 15Examples:
12 16
diff --git a/Documentation/devicetree/bindings/i2c/i2c-vt8500.txt b/Documentation/devicetree/bindings/i2c/i2c-vt8500.txt
new file mode 100644
index 000000000000..94a425eaa6c7
--- /dev/null
+++ b/Documentation/devicetree/bindings/i2c/i2c-vt8500.txt
@@ -0,0 +1,24 @@
1* Wondermedia I2C Controller
2
3Required properties :
4
5 - compatible : should be "wm,wm8505-i2c"
6 - reg : Offset and length of the register set for the device
7 - interrupts : <IRQ> where IRQ is the interrupt number
8 - clocks : phandle to the I2C clock source
9
10Optional properties :
11
12 - clock-frequency : desired I2C bus clock frequency in Hz.
13 Valid values are 100000 and 400000.
14 Default to 100000 if not specified, or invalid value.
15
16Example :
17
18 i2c_0: i2c@d8280000 {
19 compatible = "wm,wm8505-i2c";
20 reg = <0xd8280000 0x1000>;
21 interrupts = <19>;
22 clocks = <&clki2c0>;
23 clock-frequency = <400000>;
24 };