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: |
Lad Prabhakar | 3151485 | 2020-05-15 16:08:41 +0100 | [diff] [blame] | 5 | "renesas,i2c-r8a7742" if the device is a part of a R8A7742 SoC. |
Biju Das | 4523656 | 2017-08-08 12:20:31 +0100 | [diff] [blame] | 6 | "renesas,i2c-r8a7743" if the device is a part of a R8A7743 SoC. |
Biju Das | 8bca708 | 2018-09-21 18:36:59 +0100 | [diff] [blame] | 7 | "renesas,i2c-r8a7744" if the device is a part of a R8A7744 SoC. |
Biju Das | 4523656 | 2017-08-08 12:20:31 +0100 | [diff] [blame] | 8 | "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] | 9 | "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] | 10 | "renesas,i2c-r8a774a1" if the device is a part of a R8A774A1 SoC. |
Biju Das | b803376 | 2019-10-04 08:59:58 +0100 | [diff] [blame] | 11 | "renesas,i2c-r8a774b1" if the device is a part of a R8A774B1 SoC. |
Fabrizio Castro | 1ccf198 | 2018-12-13 20:19:02 +0000 | [diff] [blame] | 12 | "renesas,i2c-r8a774c0" if the device is a part of a R8A774C0 SoC. |
Lad Prabhakar | 471fb8c | 2020-07-15 12:09:01 +0100 | [diff] [blame] | 13 | "renesas,i2c-r8a774e1" if the device is a part of a R8A774E1 SoC. |
Simon Horman | ad4a8dc | 2016-12-06 17:01:28 +0100 | [diff] [blame] | 14 | "renesas,i2c-r8a7778" if the device is a part of a R8A7778 SoC. |
| 15 | "renesas,i2c-r8a7779" if the device is a part of a R8A7779 SoC. |
| 16 | "renesas,i2c-r8a7790" if the device is a part of a R8A7790 SoC. |
| 17 | "renesas,i2c-r8a7791" if the device is a part of a R8A7791 SoC. |
| 18 | "renesas,i2c-r8a7792" if the device is a part of a R8A7792 SoC. |
| 19 | "renesas,i2c-r8a7793" if the device is a part of a R8A7793 SoC. |
| 20 | "renesas,i2c-r8a7794" if the device is a part of a R8A7794 SoC. |
| 21 | "renesas,i2c-r8a7795" if the device is a part of a R8A7795 SoC. |
Geert Uytterhoeven | 8b183f5 | 2019-12-05 14:39:56 +0100 | [diff] [blame] | 22 | "renesas,i2c-r8a7796" if the device is a part of a R8A77960 SoC. |
| 23 | "renesas,i2c-r8a77961" if the device is a part of a R8A77961 SoC. |
Wolfram Sang | 9d952aa | 2018-03-20 22:53:20 +0100 | [diff] [blame] | 24 | "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] | 25 | "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] | 26 | "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] | 27 | "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] | 28 | "renesas,i2c-r8a77995" if the device is a part of a R8A77995 SoC. |
Wolfram Sang | 8627537 | 2020-12-23 18:25:00 +0100 | [diff] [blame] | 29 | "renesas,i2c-r8a779a0" if the device is a part of a R8A779A0 SoC. |
Simon Horman | ad4a8dc | 2016-12-06 17:01:28 +0100 | [diff] [blame] | 30 | "renesas,rcar-gen1-i2c" for a generic R-Car Gen1 compatible device. |
Biju Das | 4523656 | 2017-08-08 12:20:31 +0100 | [diff] [blame] | 31 | "renesas,rcar-gen2-i2c" for a generic R-Car Gen2 or RZ/G1 compatible |
| 32 | device. |
Fabrizio Castro | 0857f50 | 2018-08-14 13:32:55 +0100 | [diff] [blame] | 33 | "renesas,rcar-gen3-i2c" for a generic R-Car Gen3 or RZ/G2 compatible |
| 34 | device. |
Simon Horman | ad4a8dc | 2016-12-06 17:01:28 +0100 | [diff] [blame] | 35 | "renesas,i2c-rcar" (deprecated) |
| 36 | |
| 37 | When compatible with the generic version, nodes must list the |
| 38 | SoC-specific version corresponding to the platform first followed |
| 39 | by the generic version. |
| 40 | |
Guennadi Liakhovetski | 7679c0e | 2013-09-12 14:36:46 +0200 | [diff] [blame] | 41 | - reg: physical base address of the controller and length of memory mapped |
| 42 | region. |
| 43 | - interrupts: interrupt specifier. |
| 44 | |
| 45 | Optional properties: |
| 46 | - 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] | 47 | property indicates the default frequency 100 kHz. |
Wolfram Sang | e893645 | 2014-02-20 09:03:20 +0100 | [diff] [blame] | 48 | - clocks: clock specifier. |
Niklas Söderlund | 73e8b05 | 2016-05-14 14:17:08 +0200 | [diff] [blame] | 49 | - dmas: Must contain a list of two references to DMA specifiers, one for |
| 50 | transmission, and one for reception. |
| 51 | - 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] | 52 | |
Wolfram Sang | ca68ead | 2015-12-08 10:37:49 +0100 | [diff] [blame] | 53 | - i2c-scl-falling-time-ns: see i2c.txt |
| 54 | - i2c-scl-internal-delay-ns: see i2c.txt |
| 55 | - i2c-scl-rising-time-ns: see i2c.txt |
| 56 | |
Guennadi Liakhovetski | 7679c0e | 2013-09-12 14:36:46 +0200 | [diff] [blame] | 57 | Examples : |
| 58 | |
Wolfram Sang | e893645 | 2014-02-20 09:03:20 +0100 | [diff] [blame] | 59 | i2c0: i2c@e6508000 { |
| 60 | #address-cells = <1>; |
| 61 | #size-cells = <0>; |
Simon Horman | ad4a8dc | 2016-12-06 17:01:28 +0100 | [diff] [blame] | 62 | compatible = "renesas,i2c-r8a7791", "renesas,rcar-gen2-i2c"; |
Wolfram Sang | e893645 | 2014-02-20 09:03:20 +0100 | [diff] [blame] | 63 | reg = <0 0xe6508000 0 0x40>; |
| 64 | interrupts = <0 287 IRQ_TYPE_LEVEL_HIGH>; |
| 65 | clocks = <&mstp9_clks R8A7791_CLK_I2C0>; |
| 66 | clock-frequency = <400000>; |
Guennadi Liakhovetski | 7679c0e | 2013-09-12 14:36:46 +0200 | [diff] [blame] | 67 | }; |