Linux kernel mirror (for testing)
git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel
os
linux
1Device tree configuration for Renesas IIC (sh_mobile) driver
2
3Required properties:
4- compatible :
5 - "renesas,iic-r8a73a4" (R-Mobile APE6)
6 - "renesas,iic-r8a7740" (R-Mobile A1)
7 - "renesas,iic-r8a7743" (RZ/G1M)
8 - "renesas,iic-r8a7744" (RZ/G1N)
9 - "renesas,iic-r8a7745" (RZ/G1E)
10 - "renesas,iic-r8a774a1" (RZ/G2M)
11 - "renesas,iic-r8a774c0" (RZ/G2E)
12 - "renesas,iic-r8a7790" (R-Car H2)
13 - "renesas,iic-r8a7791" (R-Car M2-W)
14 - "renesas,iic-r8a7792" (R-Car V2H)
15 - "renesas,iic-r8a7793" (R-Car M2-N)
16 - "renesas,iic-r8a7794" (R-Car E2)
17 - "renesas,iic-r8a7795" (R-Car H3)
18 - "renesas,iic-r8a7796" (R-Car M3-W)
19 - "renesas,iic-r8a77965" (R-Car M3-N)
20 - "renesas,iic-r8a77990" (R-Car E3)
21 - "renesas,iic-sh73a0" (SH-Mobile AG5)
22 - "renesas,rcar-gen2-iic" (generic R-Car Gen2 or RZ/G1
23 compatible device)
24 - "renesas,rcar-gen3-iic" (generic R-Car Gen3 or RZ/G2
25 compatible device)
26 - "renesas,rmobile-iic" (generic device)
27
28 When compatible with a generic R-Car version, nodes
29 must list the SoC-specific version corresponding to
30 the platform first followed by the generic R-Car
31 version.
32
33 When compatible with "renesas,rmobile-iic" it should
34 be the last compatibility string listed.
35
36 The r8a77990 (R-Car E3) and r8a774c0 (RZ/G2E)
37 controllers are not considered compatible with
38 "renesas,rcar-gen3-iic" or "renesas,rmobile-iic"
39 due to the absence of automatic transmission registers.
40
41- reg : address start and address range size of device
42- interrupts : interrupt of device
43- clocks : clock for device
44- #address-cells : should be <1>
45- #size-cells : should be <0>
46
47Optional properties:
48- clock-frequency : frequency of bus clock in Hz. Default 100kHz if unset.
49- dmas : Must contain a list of two references to DMA
50 specifiers, one for transmission, and one for
51 reception.
52- dma-names : Must contain a list of two DMA names, "tx" and "rx".
53
54
55Pinctrl properties might be needed, too. See there.
56
57Example:
58
59 iic0: i2c@e6500000 {
60 compatible = "renesas,iic-r8a7790", "renesas,rcar-gen2-iic",
61 "renesas,rmobile-iic";
62 reg = <0 0xe6500000 0 0x425>;
63 interrupts = <0 174 IRQ_TYPE_LEVEL_HIGH>;
64 clocks = <&mstp3_clks R8A7790_CLK_IIC0>;
65 clock-frequency = <400000>;
66 #address-cells = <1>;
67 #size-cells = <0>;
68 };