| .. | .. |
|---|
| 1 | 1 | I2C for Atmel platforms |
|---|
| 2 | 2 | |
|---|
| 3 | 3 | Required properties : |
|---|
| 4 | | -- compatible : Must be "atmel,at91rm9200-i2c", "atmel,at91sam9261-i2c", |
|---|
| 5 | | - "atmel,at91sam9260-i2c", "atmel,at91sam9g20-i2c", "atmel,at91sam9g10-i2c", |
|---|
| 6 | | - "atmel,at91sam9x5-i2c", "atmel,sama5d4-i2c" or "atmel,sama5d2-i2c" |
|---|
| 4 | +- compatible : Must be one of: |
|---|
| 5 | + "atmel,at91rm9200-i2c", |
|---|
| 6 | + "atmel,at91sam9261-i2c", |
|---|
| 7 | + "atmel,at91sam9260-i2c", |
|---|
| 8 | + "atmel,at91sam9g20-i2c", |
|---|
| 9 | + "atmel,at91sam9g10-i2c", |
|---|
| 10 | + "atmel,at91sam9x5-i2c", |
|---|
| 11 | + "atmel,sama5d4-i2c", |
|---|
| 12 | + "atmel,sama5d2-i2c", |
|---|
| 13 | + "microchip,sam9x60-i2c". |
|---|
| 7 | 14 | - reg: physical base address of the controller and length of memory mapped |
|---|
| 8 | 15 | region. |
|---|
| 9 | 16 | - interrupts: interrupt number to the cpu. |
|---|
| .. | .. |
|---|
| 17 | 24 | - dma-names: should contain "tx" and "rx". |
|---|
| 18 | 25 | - atmel,fifo-size: maximum number of data the RX and TX FIFOs can store for FIFO |
|---|
| 19 | 26 | capable I2C controllers. |
|---|
| 20 | | -- i2c-sda-hold-time-ns: TWD hold time, only available for "atmel,sama5d4-i2c" |
|---|
| 21 | | - and "atmel,sama5d2-i2c". |
|---|
| 27 | +- i2c-sda-hold-time-ns: TWD hold time, only available for: |
|---|
| 28 | + "atmel,sama5d4-i2c", |
|---|
| 29 | + "atmel,sama5d2-i2c", |
|---|
| 30 | + "microchip,sam9x60-i2c". |
|---|
| 31 | +- scl-gpios: specify the gpio related to SCL pin |
|---|
| 32 | +- sda-gpios: specify the gpio related to SDA pin |
|---|
| 33 | +- pinctrl: add extra pinctrl to configure i2c pins to gpio function for i2c |
|---|
| 34 | + bus recovery, call it "gpio" state |
|---|
| 22 | 35 | - Child nodes conforming to i2c bus binding |
|---|
| 36 | + |
|---|
| 23 | 37 | |
|---|
| 24 | 38 | Examples : |
|---|
| 25 | 39 | |
|---|
| .. | .. |
|---|
| 33 | 47 | clock-frequency = <400000>; |
|---|
| 34 | 48 | |
|---|
| 35 | 49 | 24c512@50 { |
|---|
| 36 | | - compatible = "24c512"; |
|---|
| 50 | + compatible = "atmel,24c512"; |
|---|
| 37 | 51 | reg = <0x50>; |
|---|
| 38 | 52 | pagesize = <128>; |
|---|
| 39 | 53 | } |
|---|
| .. | .. |
|---|
| 55 | 69 | clocks = <&flx0>; |
|---|
| 56 | 70 | atmel,fifo-size = <16>; |
|---|
| 57 | 71 | i2c-sda-hold-time-ns = <336>; |
|---|
| 72 | + pinctrl-names = "default", "gpio"; |
|---|
| 73 | + pinctrl-0 = <&pinctrl_i2c0>; |
|---|
| 74 | + pinctrl-1 = <&pinctrl_i2c0_gpio>; |
|---|
| 75 | + sda-gpios = <&pioA 30 GPIO_ACTIVE_HIGH>; |
|---|
| 76 | + scl-gpios = <&pioA 31 (GPIO_ACTIVE_HIGH | GPIO_OPEN_DRAIN)>; |
|---|
| 58 | 77 | |
|---|
| 59 | 78 | wm8731: wm8731@1a { |
|---|
| 60 | 79 | compatible = "wm8731"; |
|---|