diff options
-rw-r--r-- | Documentation/devicetree/bindings/i2c/i2c-rcar.txt | 14 | ||||
-rw-r--r-- | drivers/i2c/busses/i2c-rcar.c | 1 |
2 files changed, 11 insertions, 4 deletions
diff --git a/Documentation/devicetree/bindings/i2c/i2c-rcar.txt b/Documentation/devicetree/bindings/i2c/i2c-rcar.txt index 897cfcd5ce92..dd8b2dd1edeb 100644 --- a/Documentation/devicetree/bindings/i2c/i2c-rcar.txt +++ b/Documentation/devicetree/bindings/i2c/i2c-rcar.txt | |||
@@ -6,6 +6,7 @@ Required properties: | |||
6 | "renesas,i2c-r8a7778" | 6 | "renesas,i2c-r8a7778" |
7 | "renesas,i2c-r8a7779" | 7 | "renesas,i2c-r8a7779" |
8 | "renesas,i2c-r8a7790" | 8 | "renesas,i2c-r8a7790" |
9 | "renesas,i2c-r8a7791" | ||
9 | - reg: physical base address of the controller and length of memory mapped | 10 | - reg: physical base address of the controller and length of memory mapped |
10 | region. | 11 | region. |
11 | - interrupts: interrupt specifier. | 12 | - interrupts: interrupt specifier. |
@@ -13,11 +14,16 @@ Required properties: | |||
13 | Optional properties: | 14 | Optional properties: |
14 | - clock-frequency: desired I2C bus clock frequency in Hz. The absence of this | 15 | - clock-frequency: desired I2C bus clock frequency in Hz. The absence of this |
15 | propoerty indicates the default frequency 100 kHz. | 16 | propoerty indicates the default frequency 100 kHz. |
17 | - clocks: clock specifier. | ||
16 | 18 | ||
17 | Examples : | 19 | Examples : |
18 | 20 | ||
19 | i2c0: i2c@e6500000 { | 21 | i2c0: i2c@e6508000 { |
20 | compatible = "renesas,i2c-rcar-h2"; | 22 | #address-cells = <1>; |
21 | reg = <0 0xe6500000 0 0x428>; | 23 | #size-cells = <0>; |
22 | interrupts = <0 174 0x4>; | 24 | compatible = "renesas,i2c-r8a7791"; |
25 | reg = <0 0xe6508000 0 0x40>; | ||
26 | interrupts = <0 287 IRQ_TYPE_LEVEL_HIGH>; | ||
27 | clocks = <&mstp9_clks R8A7791_CLK_I2C0>; | ||
28 | clock-frequency = <400000>; | ||
23 | }; | 29 | }; |
diff --git a/drivers/i2c/busses/i2c-rcar.c b/drivers/i2c/busses/i2c-rcar.c index 0282d4d42805..cc60bc6c1b46 100644 --- a/drivers/i2c/busses/i2c-rcar.c +++ b/drivers/i2c/busses/i2c-rcar.c | |||
@@ -638,6 +638,7 @@ static const struct of_device_id rcar_i2c_dt_ids[] = { | |||
638 | { .compatible = "renesas,i2c-r8a7778", .data = (void *)I2C_RCAR_GEN1 }, | 638 | { .compatible = "renesas,i2c-r8a7778", .data = (void *)I2C_RCAR_GEN1 }, |
639 | { .compatible = "renesas,i2c-r8a7779", .data = (void *)I2C_RCAR_GEN1 }, | 639 | { .compatible = "renesas,i2c-r8a7779", .data = (void *)I2C_RCAR_GEN1 }, |
640 | { .compatible = "renesas,i2c-r8a7790", .data = (void *)I2C_RCAR_GEN2 }, | 640 | { .compatible = "renesas,i2c-r8a7790", .data = (void *)I2C_RCAR_GEN2 }, |
641 | { .compatible = "renesas,i2c-r8a7791", .data = (void *)I2C_RCAR_GEN2 }, | ||
641 | {}, | 642 | {}, |
642 | }; | 643 | }; |
643 | MODULE_DEVICE_TABLE(of, rcar_i2c_dt_ids); | 644 | MODULE_DEVICE_TABLE(of, rcar_i2c_dt_ids); |