Ludovic Desroches | 70d46a2 | 2012-09-12 08:42:14 +0200 | [diff] [blame] | 1 | I2C for Atmel platforms |
| 2 | |
| 3 | Required properties : |
| 4 | - compatible : Must be "atmel,at91rm9200-i2c", "atmel,at91sam9261-i2c", |
| 5 | "atmel,at91sam9260-i2c", "atmel,at91sam9g20-i2c", "atmel,at91sam9g10-i2c" |
| 6 | or "atmel,at91sam9x5-i2c" |
| 7 | - reg: physical base address of the controller and length of memory mapped |
| 8 | region. |
| 9 | - interrupts: interrupt number to the cpu. |
| 10 | - #address-cells = <1>; |
| 11 | - #size-cells = <0>; |
Boris BREZILLON | c21e5c7 | 2013-12-17 16:54:04 +0100 | [diff] [blame] | 12 | - clocks: phandles to input clocks. |
Ludovic Desroches | 70d46a2 | 2012-09-12 08:42:14 +0200 | [diff] [blame] | 13 | |
| 14 | Optional properties: |
Marek Roszko | 75b6c4b | 2014-03-11 00:25:38 -0400 | [diff] [blame] | 15 | - clock-frequency: Desired I2C bus frequency in Hz, otherwise defaults to 100000 |
Ludovic Desroches | 70d46a2 | 2012-09-12 08:42:14 +0200 | [diff] [blame] | 16 | - Child nodes conforming to i2c bus binding |
| 17 | |
| 18 | Examples : |
| 19 | |
| 20 | i2c0: i2c@fff84000 { |
| 21 | compatible = "atmel,at91sam9g20-i2c"; |
| 22 | reg = <0xfff84000 0x100>; |
| 23 | interrupts = <12 4 6>; |
| 24 | #address-cells = <1>; |
| 25 | #size-cells = <0>; |
Boris BREZILLON | c21e5c7 | 2013-12-17 16:54:04 +0100 | [diff] [blame] | 26 | clocks = <&twi0_clk>; |
Marek Roszko | 75b6c4b | 2014-03-11 00:25:38 -0400 | [diff] [blame] | 27 | clock-frequency = <400000>; |
Ludovic Desroches | 70d46a2 | 2012-09-12 08:42:14 +0200 | [diff] [blame] | 28 | |
| 29 | 24c512@50 { |
| 30 | compatible = "24c512"; |
| 31 | reg = <0x50>; |
| 32 | pagesize = <128>; |
| 33 | } |
| 34 | } |