Uwe Kleine-König | 1b5b237 | 2014-03-25 11:48:46 +0100 | [diff] [blame] | 1 | * Energymicro efm32 i2c controller |
| 2 | |
| 3 | Required properties : |
| 4 | |
| 5 | - reg : Offset and length of the register set for the device |
Uwe Kleine-König | 3428f01 | 2014-04-01 09:42:20 +0200 | [diff] [blame] | 6 | - compatible : should be "energymicro,efm32-i2c" |
Uwe Kleine-König | 1b5b237 | 2014-03-25 11:48:46 +0100 | [diff] [blame] | 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. |
Uwe Kleine-König | 281ec36 | 2014-07-11 10:50:14 +0200 | [diff] [blame] | 13 | - energymicro,location : Decides the location of the USART I/O pins. |
Uwe Kleine-König | 1b5b237 | 2014-03-25 11:48:46 +0100 | [diff] [blame] | 14 | Allowed range : [0 .. 6] |
| 15 | |
| 16 | Example: |
| 17 | i2c0: i2c@4000a000 { |
| 18 | #address-cells = <1>; |
| 19 | #size-cells = <0>; |
Uwe Kleine-König | 3428f01 | 2014-04-01 09:42:20 +0200 | [diff] [blame] | 20 | compatible = "energymicro,efm32-i2c"; |
Uwe Kleine-König | 1b5b237 | 2014-03-25 11:48:46 +0100 | [diff] [blame] | 21 | reg = <0x4000a000 0x400>; |
| 22 | interrupts = <9>; |
| 23 | clocks = <&cmu clk_HFPERCLKI2C0>; |
| 24 | clock-frequency = <100000>; |
Uwe Kleine-König | 3428f01 | 2014-04-01 09:42:20 +0200 | [diff] [blame] | 25 | status = "ok"; |
Uwe Kleine-König | 281ec36 | 2014-07-11 10:50:14 +0200 | [diff] [blame] | 26 | energymicro,location = <3>; |
Uwe Kleine-König | 1b5b237 | 2014-03-25 11:48:46 +0100 | [diff] [blame] | 27 | |
| 28 | eeprom@50 { |
| 29 | compatible = "microchip,24c02"; |
| 30 | reg = <0x50>; |
| 31 | pagesize = <16>; |
| 32 | }; |
| 33 | }; |
| 34 | |