Guennadi Liakhovetski | 7679c0e | 2013-09-12 14:36:46 +0200 | [diff] [blame] | 1 | I2C for R-Car platforms |
| 2 | |
| 3 | Required properties: |
Simon Horman | ad4a8dc | 2016-12-06 17:01:28 +0100 | [diff] [blame] | 4 | - compatible: |
Biju Das | 4523656 | 2017-08-08 12:20:31 +0100 | [diff] [blame] | 5 | "renesas,i2c-r8a7743" if the device is a part of a R8A7743 SoC. |
| 6 | "renesas,i2c-r8a7745" if the device is a part of a R8A7745 SoC. |
Fabrizio Castro | f4089fcf | 2018-09-21 18:36:58 +0100 | [diff] [blame^] | 7 | "renesas,i2c-r8a77470" if the device is a part of a R8A77470 SoC. |
Fabrizio Castro | 0857f50 | 2018-08-14 13:32:55 +0100 | [diff] [blame] | 8 | "renesas,i2c-r8a774a1" if the device is a part of a R8A774A1 SoC. |
Simon Horman | ad4a8dc | 2016-12-06 17:01:28 +0100 | [diff] [blame] | 9 | "renesas,i2c-r8a7778" if the device is a part of a R8A7778 SoC. |
| 10 | "renesas,i2c-r8a7779" if the device is a part of a R8A7779 SoC. |
| 11 | "renesas,i2c-r8a7790" if the device is a part of a R8A7790 SoC. |
| 12 | "renesas,i2c-r8a7791" if the device is a part of a R8A7791 SoC. |
| 13 | "renesas,i2c-r8a7792" if the device is a part of a R8A7792 SoC. |
| 14 | "renesas,i2c-r8a7793" if the device is a part of a R8A7793 SoC. |
| 15 | "renesas,i2c-r8a7794" if the device is a part of a R8A7794 SoC. |
| 16 | "renesas,i2c-r8a7795" if the device is a part of a R8A7795 SoC. |
| 17 | "renesas,i2c-r8a7796" if the device is a part of a R8A7796 SoC. |
Wolfram Sang | 9d952aa | 2018-03-20 22:53:20 +0100 | [diff] [blame] | 18 | "renesas,i2c-r8a77965" if the device is a part of a R8A77965 SoC. |
Sergei Shtylyov | db6b780 | 2017-10-13 15:23:55 +0300 | [diff] [blame] | 19 | "renesas,i2c-r8a77970" if the device is a part of a R8A77970 SoC. |
Sergei Shtylyov | b80646b | 2018-05-28 22:39:05 +0300 | [diff] [blame] | 20 | "renesas,i2c-r8a77980" if the device is a part of a R8A77980 SoC. |
Hiromitsu Yamasaki | ea3cfbd | 2018-07-20 12:00:24 +0200 | [diff] [blame] | 21 | "renesas,i2c-r8a77990" if the device is a part of a R8A77990 SoC. |
Ulrich Hecht | d0adf76 | 2018-01-29 16:45:47 +0100 | [diff] [blame] | 22 | "renesas,i2c-r8a77995" if the device is a part of a R8A77995 SoC. |
Simon Horman | ad4a8dc | 2016-12-06 17:01:28 +0100 | [diff] [blame] | 23 | "renesas,rcar-gen1-i2c" for a generic R-Car Gen1 compatible device. |
Biju Das | 4523656 | 2017-08-08 12:20:31 +0100 | [diff] [blame] | 24 | "renesas,rcar-gen2-i2c" for a generic R-Car Gen2 or RZ/G1 compatible |
| 25 | device. |
Fabrizio Castro | 0857f50 | 2018-08-14 13:32:55 +0100 | [diff] [blame] | 26 | "renesas,rcar-gen3-i2c" for a generic R-Car Gen3 or RZ/G2 compatible |
| 27 | device. |
Simon Horman | ad4a8dc | 2016-12-06 17:01:28 +0100 | [diff] [blame] | 28 | "renesas,i2c-rcar" (deprecated) |
| 29 | |
| 30 | When compatible with the generic version, nodes must list the |
| 31 | SoC-specific version corresponding to the platform first followed |
| 32 | by the generic version. |
| 33 | |
Guennadi Liakhovetski | 7679c0e | 2013-09-12 14:36:46 +0200 | [diff] [blame] | 34 | - reg: physical base address of the controller and length of memory mapped |
| 35 | region. |
| 36 | - interrupts: interrupt specifier. |
| 37 | |
| 38 | Optional properties: |
| 39 | - clock-frequency: desired I2C bus clock frequency in Hz. The absence of this |
Geert Uytterhoeven | ddf3dc8 | 2016-03-15 17:51:28 +0100 | [diff] [blame] | 40 | property indicates the default frequency 100 kHz. |
Wolfram Sang | e893645 | 2014-02-20 09:03:20 +0100 | [diff] [blame] | 41 | - clocks: clock specifier. |
Niklas Söderlund | 73e8b05 | 2016-05-14 14:17:08 +0200 | [diff] [blame] | 42 | - dmas: Must contain a list of two references to DMA specifiers, one for |
| 43 | transmission, and one for reception. |
| 44 | - dma-names: Must contain a list of two DMA names, "tx" and "rx". |
Guennadi Liakhovetski | 7679c0e | 2013-09-12 14:36:46 +0200 | [diff] [blame] | 45 | |
Wolfram Sang | ca68ead | 2015-12-08 10:37:49 +0100 | [diff] [blame] | 46 | - i2c-scl-falling-time-ns: see i2c.txt |
| 47 | - i2c-scl-internal-delay-ns: see i2c.txt |
| 48 | - i2c-scl-rising-time-ns: see i2c.txt |
| 49 | |
Guennadi Liakhovetski | 7679c0e | 2013-09-12 14:36:46 +0200 | [diff] [blame] | 50 | Examples : |
| 51 | |
Wolfram Sang | e893645 | 2014-02-20 09:03:20 +0100 | [diff] [blame] | 52 | i2c0: i2c@e6508000 { |
| 53 | #address-cells = <1>; |
| 54 | #size-cells = <0>; |
Simon Horman | ad4a8dc | 2016-12-06 17:01:28 +0100 | [diff] [blame] | 55 | compatible = "renesas,i2c-r8a7791", "renesas,rcar-gen2-i2c"; |
Wolfram Sang | e893645 | 2014-02-20 09:03:20 +0100 | [diff] [blame] | 56 | reg = <0 0xe6508000 0 0x40>; |
| 57 | interrupts = <0 287 IRQ_TYPE_LEVEL_HIGH>; |
| 58 | clocks = <&mstp9_clks R8A7791_CLK_I2C0>; |
| 59 | clock-frequency = <400000>; |
Guennadi Liakhovetski | 7679c0e | 2013-09-12 14:36:46 +0200 | [diff] [blame] | 60 | }; |