diff options
author | Uwe Kleine-König <u.kleine-koenig@pengutronix.de> | 2014-03-25 06:48:46 -0400 |
---|---|---|
committer | Wolfram Sang <wsa@the-dreams.de> | 2014-03-27 13:53:16 -0400 |
commit | 1b5b23718b8460b1627d3aeb4aa8ab04170e53f7 (patch) | |
tree | 632efdeae91f453961148bdae1444bdc8d1025bc /Documentation/devicetree/bindings/i2c/i2c-efm32.txt | |
parent | 0ff83d2cad1ad584bd5df639750f90bd6b09055c (diff) |
i2c: efm32: new bus driver
This was tested on a EFM32GG-DK3750 devboard that has a temperature
sensor and an eeprom on its i2c bus.
Signed-off-by: Uwe Kleine-König <u.kleine-koenig@pengutronix.de>
Signed-off-by: Wolfram Sang <wsa@the-dreams.de>
Diffstat (limited to 'Documentation/devicetree/bindings/i2c/i2c-efm32.txt')
-rw-r--r-- | Documentation/devicetree/bindings/i2c/i2c-efm32.txt | 34 |
1 files changed, 34 insertions, 0 deletions
diff --git a/Documentation/devicetree/bindings/i2c/i2c-efm32.txt b/Documentation/devicetree/bindings/i2c/i2c-efm32.txt new file mode 100644 index 000000000000..ead4dd33ab66 --- /dev/null +++ b/Documentation/devicetree/bindings/i2c/i2c-efm32.txt | |||
@@ -0,0 +1,34 @@ | |||
1 | * Energymicro efm32 i2c controller | ||
2 | |||
3 | Required properties : | ||
4 | |||
5 | - reg : Offset and length of the register set for the device | ||
6 | - compatible : should be "efm32,i2c" | ||
7 | - interrupts : the interrupt number | ||
8 | - clocks : reference to the module clock | ||
9 | |||
10 | Recommended properties : | ||
11 | |||
12 | - clock-frequency : maximal I2C bus clock frequency in Hz. | ||
13 | - efm32,location : Decides the location of the USART I/O pins. | ||
14 | Allowed range : [0 .. 6] | ||
15 | |||
16 | Example: | ||
17 | i2c0: i2c@4000a000 { | ||
18 | #address-cells = <1>; | ||
19 | #size-cells = <0>; | ||
20 | compatible = "efm32,i2c"; | ||
21 | reg = <0x4000a000 0x400>; | ||
22 | interrupts = <9>; | ||
23 | clocks = <&cmu clk_HFPERCLKI2C0>; | ||
24 | clock-frequency = <100000>; | ||
25 | status = "disabled"; | ||
26 | efm32,location = <3>; | ||
27 | |||
28 | eeprom@50 { | ||
29 | compatible = "microchip,24c02"; | ||
30 | reg = <0x50>; | ||
31 | pagesize = <16>; | ||
32 | }; | ||
33 | }; | ||
34 | |||