xref: /freebsd/sys/contrib/device-tree/Bindings/i2c/renesas,i2c.txt (revision 5def4c47d4bd90b209b9b4a4ba9faec15846d8fd)
1c66ec88fSEmmanuel VadotI2C for R-Car platforms
2c66ec88fSEmmanuel Vadot
3c66ec88fSEmmanuel VadotRequired properties:
4c66ec88fSEmmanuel Vadot- compatible:
5c66ec88fSEmmanuel Vadot	"renesas,i2c-r8a7742" if the device is a part of a R8A7742 SoC.
6c66ec88fSEmmanuel Vadot	"renesas,i2c-r8a7743" if the device is a part of a R8A7743 SoC.
7c66ec88fSEmmanuel Vadot	"renesas,i2c-r8a7744" if the device is a part of a R8A7744 SoC.
8c66ec88fSEmmanuel Vadot	"renesas,i2c-r8a7745" if the device is a part of a R8A7745 SoC.
9c66ec88fSEmmanuel Vadot	"renesas,i2c-r8a77470" if the device is a part of a R8A77470 SoC.
10c66ec88fSEmmanuel Vadot	"renesas,i2c-r8a774a1" if the device is a part of a R8A774A1 SoC.
11c66ec88fSEmmanuel Vadot	"renesas,i2c-r8a774b1" if the device is a part of a R8A774B1 SoC.
12c66ec88fSEmmanuel Vadot	"renesas,i2c-r8a774c0" if the device is a part of a R8A774C0 SoC.
13c66ec88fSEmmanuel Vadot	"renesas,i2c-r8a774e1" if the device is a part of a R8A774E1 SoC.
14c66ec88fSEmmanuel Vadot	"renesas,i2c-r8a7778" if the device is a part of a R8A7778 SoC.
15c66ec88fSEmmanuel Vadot	"renesas,i2c-r8a7779" if the device is a part of a R8A7779 SoC.
16c66ec88fSEmmanuel Vadot	"renesas,i2c-r8a7790" if the device is a part of a R8A7790 SoC.
17c66ec88fSEmmanuel Vadot	"renesas,i2c-r8a7791" if the device is a part of a R8A7791 SoC.
18c66ec88fSEmmanuel Vadot	"renesas,i2c-r8a7792" if the device is a part of a R8A7792 SoC.
19c66ec88fSEmmanuel Vadot	"renesas,i2c-r8a7793" if the device is a part of a R8A7793 SoC.
20c66ec88fSEmmanuel Vadot	"renesas,i2c-r8a7794" if the device is a part of a R8A7794 SoC.
21c66ec88fSEmmanuel Vadot	"renesas,i2c-r8a7795" if the device is a part of a R8A7795 SoC.
22c66ec88fSEmmanuel Vadot	"renesas,i2c-r8a7796" if the device is a part of a R8A77960 SoC.
23c66ec88fSEmmanuel Vadot	"renesas,i2c-r8a77961" if the device is a part of a R8A77961 SoC.
24c66ec88fSEmmanuel Vadot	"renesas,i2c-r8a77965" if the device is a part of a R8A77965 SoC.
25c66ec88fSEmmanuel Vadot	"renesas,i2c-r8a77970" if the device is a part of a R8A77970 SoC.
26c66ec88fSEmmanuel Vadot	"renesas,i2c-r8a77980" if the device is a part of a R8A77980 SoC.
27c66ec88fSEmmanuel Vadot	"renesas,i2c-r8a77990" if the device is a part of a R8A77990 SoC.
28c66ec88fSEmmanuel Vadot	"renesas,i2c-r8a77995" if the device is a part of a R8A77995 SoC.
29*5def4c47SEmmanuel Vadot	"renesas,i2c-r8a779a0" if the device is a part of a R8A779A0 SoC.
30c66ec88fSEmmanuel Vadot	"renesas,rcar-gen1-i2c" for a generic R-Car Gen1 compatible device.
31c66ec88fSEmmanuel Vadot	"renesas,rcar-gen2-i2c" for a generic R-Car Gen2 or RZ/G1 compatible
32c66ec88fSEmmanuel Vadot				device.
33c66ec88fSEmmanuel Vadot	"renesas,rcar-gen3-i2c" for a generic R-Car Gen3 or RZ/G2 compatible
34c66ec88fSEmmanuel Vadot				device.
35c66ec88fSEmmanuel Vadot	"renesas,i2c-rcar" (deprecated)
36c66ec88fSEmmanuel Vadot
37c66ec88fSEmmanuel Vadot	When compatible with the generic version, nodes must list the
38c66ec88fSEmmanuel Vadot	SoC-specific version corresponding to the platform first followed
39c66ec88fSEmmanuel Vadot	by the generic version.
40c66ec88fSEmmanuel Vadot
41c66ec88fSEmmanuel Vadot- reg: physical base address of the controller and length of memory mapped
42c66ec88fSEmmanuel Vadot  region.
43c66ec88fSEmmanuel Vadot- interrupts: interrupt specifier.
44c66ec88fSEmmanuel Vadot
45c66ec88fSEmmanuel VadotOptional properties:
46c66ec88fSEmmanuel Vadot- clock-frequency: desired I2C bus clock frequency in Hz. The absence of this
47c66ec88fSEmmanuel Vadot  property indicates the default frequency 100 kHz.
48c66ec88fSEmmanuel Vadot- clocks: clock specifier.
49c66ec88fSEmmanuel Vadot- dmas: Must contain a list of two references to DMA specifiers, one for
50c66ec88fSEmmanuel Vadot  transmission, and one for reception.
51c66ec88fSEmmanuel Vadot- dma-names: Must contain a list of two DMA names, "tx" and "rx".
52c66ec88fSEmmanuel Vadot
53c66ec88fSEmmanuel Vadot- i2c-scl-falling-time-ns: see i2c.txt
54c66ec88fSEmmanuel Vadot- i2c-scl-internal-delay-ns: see i2c.txt
55c66ec88fSEmmanuel Vadot- i2c-scl-rising-time-ns: see i2c.txt
56c66ec88fSEmmanuel Vadot
57c66ec88fSEmmanuel VadotExamples :
58c66ec88fSEmmanuel Vadot
59c66ec88fSEmmanuel Vadoti2c0: i2c@e6508000 {
60c66ec88fSEmmanuel Vadot	#address-cells = <1>;
61c66ec88fSEmmanuel Vadot	#size-cells = <0>;
62c66ec88fSEmmanuel Vadot	compatible = "renesas,i2c-r8a7791", "renesas,rcar-gen2-i2c";
63c66ec88fSEmmanuel Vadot	reg = <0 0xe6508000 0 0x40>;
64c66ec88fSEmmanuel Vadot	interrupts = <0 287 IRQ_TYPE_LEVEL_HIGH>;
65c66ec88fSEmmanuel Vadot	clocks = <&mstp9_clks R8A7791_CLK_I2C0>;
66c66ec88fSEmmanuel Vadot	clock-frequency = <400000>;
67c66ec88fSEmmanuel Vadot};
68