Skip to content

Commit 8f73681

Browse files
tthayer-intelWolfram Sang
authored andcommitted
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>
1 parent 46c1e79 commit 8f73681

File tree

1 file changed

+39
-0
lines changed

1 file changed

+39
-0
lines changed
Lines changed: 39 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -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+

0 commit comments

Comments
 (0)