All of lore.kernel.org
 help / color / mirror / Atom feed
* [[RESEND]PATCHv6 1/2] dt-bindings: i2c: Add Altera I2C Controller
@ 2017-09-11 21:17 ` thor.thayer
  0 siblings, 0 replies; 15+ messages in thread
From: thor.thayer @ 2017-09-11 21:17 UTC (permalink / raw)
  To: wsa, robh+dt, mark.rutland, thor.thayer, andy.shevchenko
  Cc: davem, gregkh, mchehab, linux-i2c, devicetree, linux-kernel,
	linux-arm-kernel

From: Thor Thayer <thor.thayer@linux.intel.com>

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>
---
v2  Change the subject to identify dt-bindings
    Add synthesizable logic to description.
    Change compatible string to "altr,softip-i2c"
    Make description of clock phandle singular since 1 clock.
    Remove altr, from fifo-size
    Specify fifo-size is in bytes.
v3  Add version to compatible string "altr,softip-i2c-v1.0"
    Add for use in FPGA in description.
v4  No Change - Add Acked-by
v5-6  No Change
---
 .../devicetree/bindings/i2c/i2c-altera.txt         | 39 ++++++++++++++++++++++
 1 file changed, 39 insertions(+)
 create mode 100644 Documentation/devicetree/bindings/i2c/i2c-altera.txt

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 @@
+* Altera I2C Controller
+* This is Altera's synthesizable logic block I2C Controller for use
+* in Altera's FPGAs.
+
+Required properties :
+ - compatible : should be "altr,softip-i2c-v1.0"
+ - reg        : Offset and length of the register set for the device
+ - interrupts : <IRQ> where IRQ is the interrupt number.
+ - clocks     : phandle to input clock.
+ - #address-cells = <1>;
+ - #size-cells = <0>;
+
+Recommended properties :
+ - clock-frequency : desired I2C bus clock frequency in Hz.
+
+Optional properties :
+ - fifo-size : Size of the RX and TX FIFOs in bytes.
+ - Child nodes conforming to i2c bus binding
+
+Example :
+
+	i2c@100080000 {
+		compatible = "altr,softip-i2c-v1.0";
+		reg = <0x00000001 0x00080000 0x00000040>;
+		interrupt-parent = <&intc>;
+		interrupts = <0 43 4>;
+		clocks = <&clk_0>;
+		clock-frequency = <100000>;
+		#address-cells = <1>;
+		#size-cells = <0>;
+		fifo-size = <4>;
+
+		eeprom@51 {
+			compatible = "atmel,24c32";
+			reg = <0x51>;
+			pagesize = <32>;
+		};
+	};
+
-- 
2.7.4

^ permalink raw reply related	[flat|nested] 15+ messages in thread

end of thread, other threads:[~2017-09-18 20:04 UTC | newest]

Thread overview: 15+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2017-09-11 21:17 [[RESEND]PATCHv6 1/2] dt-bindings: i2c: Add Altera I2C Controller thor.thayer
2017-09-11 21:17 ` thor.thayer at linux.intel.com
2017-09-11 21:17 ` thor.thayer
2017-09-11 21:17 ` [[RESEND]PATCHv6 2/2] i2c: altera: Add Altera I2C Controller driver thor.thayer
2017-09-11 21:17   ` thor.thayer at linux.intel.com
2017-09-11 21:17   ` thor.thayer-VuQAYsv1563Yd54FQh9/CA
2017-09-13 20:50   ` Wolfram Sang
2017-09-13 20:50     ` Wolfram Sang
2017-09-18 20:04     ` Thor Thayer
2017-09-18 20:04       ` Thor Thayer
2017-09-13 21:28   ` Wolfram Sang
2017-09-13 21:28     ` Wolfram Sang
2017-09-13 20:50 ` [[RESEND]PATCHv6 1/2] dt-bindings: i2c: Add Altera I2C Controller Wolfram Sang
2017-09-13 20:50   ` Wolfram Sang
2017-09-13 20:50   ` Wolfram Sang

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.