diff options
author | Thor Thayer <thor.thayer@linux.intel.com> | 2017-09-11 17:17:19 -0400 |
---|---|---|
committer | Wolfram Sang <wsa@the-dreams.de> | 2017-09-13 17:37:16 -0400 |
commit | 8f73681616a447fa08bf3538f56420657decf7b9 (patch) | |
tree | d4338368ea79612dff42a846f181a5b57454fb73 | |
parent | 46c1e79fee417f151547aa46fae04ab06cb666f4 (diff) |
dt-bindings: i2c: Add Altera I2C Controller
Add the documentation to support the Altera synthesizable
logic I2C Controller in FPGA.
Signed-off-by: Thor Thayer <thor.thayer@linux.intel.com>
Acked-by: Rob Herring <robh@kernel.org>
Signed-off-by: Wolfram Sang <wsa@the-dreams.de>
-rw-r--r-- | Documentation/devicetree/bindings/i2c/i2c-altera.txt | 39 |
1 files changed, 39 insertions, 0 deletions
diff --git a/Documentation/devicetree/bindings/i2c/i2c-altera.txt b/Documentation/devicetree/bindings/i2c/i2c-altera.txt new file mode 100644 index 000000000000..767664f448ec --- /dev/null +++ b/Documentation/devicetree/bindings/i2c/i2c-altera.txt | |||
@@ -0,0 +1,39 @@ | |||
1 | * Altera I2C Controller | ||
2 | * This is Altera's synthesizable logic block I2C Controller for use | ||
3 | * in Altera's FPGAs. | ||
4 | |||
5 | Required properties : | ||
6 | - compatible : should be "altr,softip-i2c-v1.0" | ||
7 | - reg : Offset and length of the register set for the device | ||
8 | - interrupts : <IRQ> where IRQ is the interrupt number. | ||
9 | - clocks : phandle to input clock. | ||
10 | - #address-cells = <1>; | ||
11 | - #size-cells = <0>; | ||
12 | |||
13 | Recommended properties : | ||
14 | - clock-frequency : desired I2C bus clock frequency in Hz. | ||
15 | |||
16 | Optional properties : | ||
17 | - fifo-size : Size of the RX and TX FIFOs in bytes. | ||
18 | - Child nodes conforming to i2c bus binding | ||
19 | |||
20 | Example : | ||
21 | |||
22 | i2c@100080000 { | ||
23 | compatible = "altr,softip-i2c-v1.0"; | ||
24 | reg = <0x00000001 0x00080000 0x00000040>; | ||
25 | interrupt-parent = <&intc>; | ||
26 | interrupts = <0 43 4>; | ||
27 | clocks = <&clk_0>; | ||
28 | clock-frequency = <100000>; | ||
29 | #address-cells = <1>; | ||
30 | #size-cells = <0>; | ||
31 | fifo-size = <4>; | ||
32 | |||
33 | eeprom@51 { | ||
34 | compatible = "atmel,24c32"; | ||
35 | reg = <0x51>; | ||
36 | pagesize = <32>; | ||
37 | }; | ||
38 | }; | ||
39 | |||