Skip to content

Commit ce1a788

Browse files
Yao YuanWolfram Sang
authored andcommitted
i2c: imx: add DMA support for freescale i2c driver
Add dma support for i2c. This function depend on DMA driver. You can turn on it by write both the dmas and dma-name properties in dts node. DMA is optional, even DMA request unsuccessfully, i2c can also work well. Signed-off-by: Yuan Yao <[email protected]> Signed-off-by: Wolfram Sang <[email protected]>
1 parent 2fbed51 commit ce1a788

File tree

2 files changed

+344
-2
lines changed

2 files changed

+344
-2
lines changed

Documentation/devicetree/bindings/i2c/i2c-imx.txt

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,8 @@ Required properties:
1111
Optional properties:
1212
- clock-frequency : Constains desired I2C/HS-I2C bus clock frequency in Hz.
1313
The absence of the propoerty indicates the default frequency 100 kHz.
14+
- dmas: A list of two dma specifiers, one for each entry in dma-names.
15+
- dma-names: should contain "tx" and "rx".
1416

1517
Examples:
1618

@@ -26,3 +28,12 @@ i2c@70038000 { /* HS-I2C on i.MX51 */
2628
interrupts = <64>;
2729
clock-frequency = <400000>;
2830
};
31+
32+
i2c0: i2c@40066000 { /* i2c0 on vf610 */
33+
compatible = "fsl,vf610-i2c";
34+
reg = <0x40066000 0x1000>;
35+
interrupts =<0 71 0x04>;
36+
dmas = <&edma0 0 50>,
37+
<&edma0 0 51>;
38+
dma-names = "rx","tx";
39+
};

0 commit comments

Comments
 (0)