Commit | Line | Data |
---|---|---|
6145197b BC |
1 | I2C for OMAP platforms |
2 | ||
3 | Required properties : | |
4c624840 TL |
4 | - compatible : Must be "ti,omap2420-i2c", "ti,omap2430-i2c", "ti,omap3-i2c" |
5 | or "ti,omap4-i2c" | |
6145197b BC |
6 | - ti,hwmods : Must be "i2c<n>", n being the instance number (1-based) |
7 | - #address-cells = <1>; | |
8 | - #size-cells = <0>; | |
9 | ||
10 | Recommended properties : | |
11 | - clock-frequency : Desired I2C bus clock frequency in Hz. Otherwise | |
12 | the default 100 kHz frequency will be used. | |
13 | ||
14 | Optional properties: | |
15 | - Child nodes conforming to i2c bus binding | |
16 | ||
17 | Note: Current implementation will fetch base address, irq and dma | |
18 | from omap hwmod data base during device registration. | |
19 | Future plan is to migrate hwmod data base contents into device tree | |
20 | blob so that, all the required data will be used from device tree dts | |
21 | file. | |
22 | ||
23 | Examples : | |
24 | ||
25 | i2c1: i2c@0 { | |
26 | compatible = "ti,omap3-i2c"; | |
27 | #address-cells = <1>; | |
28 | #size-cells = <0>; | |
29 | ti,hwmods = "i2c1"; | |
30 | clock-frequency = <400000>; | |
31 | }; |