diff options
author | Wolfram Sang <wsa@sang-engineering.com> | 2013-12-20 13:08:50 -0500 |
---|---|---|
committer | Wolfram Sang <wsa@the-dreams.de> | 2014-01-02 09:56:52 -0500 |
commit | 310c18a414504e42dbeb96263bc81ca865c7c3e5 (patch) | |
tree | 632df5415bc4f96e8b75a7496ecbb9ee14f7054c /Documentation/devicetree/bindings/i2c | |
parent | 802eee95bde72fd0cd0f3a5b2098375a487d1eda (diff) |
i2c: riic: add driver
Tested with a r7s72100 genmai board acessing an eeprom.
Signed-off-by: Wolfram Sang <wsa@sang-engineering.com>
Signed-off-by: Wolfram Sang <wsa@the-dreams.de>
Diffstat (limited to 'Documentation/devicetree/bindings/i2c')
-rw-r--r-- | Documentation/devicetree/bindings/i2c/i2c-riic.txt | 29 |
1 files changed, 29 insertions, 0 deletions
diff --git a/Documentation/devicetree/bindings/i2c/i2c-riic.txt b/Documentation/devicetree/bindings/i2c/i2c-riic.txt new file mode 100644 index 000000000000..0bcc4716c319 --- /dev/null +++ b/Documentation/devicetree/bindings/i2c/i2c-riic.txt | |||
@@ -0,0 +1,29 @@ | |||
1 | Device tree configuration for Renesas RIIC driver | ||
2 | |||
3 | Required properties: | ||
4 | - compatible : "renesas,riic-<soctype>". "renesas,riic-rz" as fallback | ||
5 | - reg : address start and address range size of device | ||
6 | - interrupts : 8 interrupts (TEI, RI, TI, SPI, STI, NAKI, ALI, TMOI) | ||
7 | - clock-frequency : frequency of bus clock in Hz | ||
8 | - #address-cells : should be <1> | ||
9 | - #size-cells : should be <0> | ||
10 | |||
11 | Pinctrl properties might be needed, too. See there. | ||
12 | |||
13 | Example: | ||
14 | |||
15 | i2c0: i2c@fcfee000 { | ||
16 | compatible = "renesas,riic-r7s72100", "renesas,riic-rz"; | ||
17 | reg = <0xfcfee000 0x44>; | ||
18 | interrupts = <0 157 IRQ_TYPE_LEVEL_HIGH>, | ||
19 | <0 158 IRQ_TYPE_EDGE_RISING>, | ||
20 | <0 159 IRQ_TYPE_EDGE_RISING>, | ||
21 | <0 160 IRQ_TYPE_LEVEL_HIGH>, | ||
22 | <0 161 IRQ_TYPE_LEVEL_HIGH>, | ||
23 | <0 162 IRQ_TYPE_LEVEL_HIGH>, | ||
24 | <0 163 IRQ_TYPE_LEVEL_HIGH>, | ||
25 | <0 164 IRQ_TYPE_LEVEL_HIGH>; | ||
26 | clock-frequency = <100000>; | ||
27 | #address-cells = <1>; | ||
28 | #size-cells = <0>; | ||
29 | }; | ||