diff mbox

[U-Boot,v2,1/2] i2c: Describe Cadence I2C devicetree bindings

Message ID 29692668b6d7b34293dae8997f9522ab102cfe2a.1460379306.git.michal.simek@xilinx.com
State Accepted
Delegated to: Heiko Schocher
Headers show

Commit Message

Michal Simek April 11, 2016, 12:55 p.m. UTC
From: Moritz Fischer <moritz.fischer@ettus.com>

Signed-off-by: Moritz Fischer <moritz.fischer@ettus.com>
Signed-off-by: Michal Simek <michal.simek@xilinx.com>
---

Changes in v2: None

 doc/device-tree-bindings/i2c/i2c-cdns.txt | 20 ++++++++++++++++++++
 1 file changed, 20 insertions(+)
 create mode 100644 doc/device-tree-bindings/i2c/i2c-cdns.txt

Comments

Heiko Schocher April 13, 2016, 5:44 a.m. UTC | #1
Hello Michal,

Am 11.04.2016 um 14:55 schrieb Michal Simek:
> From: Moritz Fischer <moritz.fischer@ettus.com>
>
> Signed-off-by: Moritz Fischer <moritz.fischer@ettus.com>
> Signed-off-by: Michal Simek <michal.simek@xilinx.com>
> ---
>
> Changes in v2: None
>
>   doc/device-tree-bindings/i2c/i2c-cdns.txt | 20 ++++++++++++++++++++
>   1 file changed, 20 insertions(+)
>   create mode 100644 doc/device-tree-bindings/i2c/i2c-cdns.txt

Reviewed-by: Heiko Schocher <hs@denx.de>

bye,
Heiko
diff mbox

Patch

diff --git a/doc/device-tree-bindings/i2c/i2c-cdns.txt b/doc/device-tree-bindings/i2c/i2c-cdns.txt
new file mode 100644
index 000000000000..202e0b762666
--- /dev/null
+++ b/doc/device-tree-bindings/i2c/i2c-cdns.txt
@@ -0,0 +1,20 @@ 
+Cadence I2C controller Device Tree Bindings
+-------------------------------------------
+
+Required properties:
+- compatible		: Should be "cdns,i2c-r1p10" or "xlnx,zynq-spi-r1p10".
+- reg			: Physical base address and size of I2C registers map.
+- interrupts		: Property with a value describing the interrupt
+			  number.
+- interrupt-parent	: Must be core interrupt controller
+- clocks		: Clock phandles (see clock bindings for details).
+
+Example:
+	i2c0: i2c@e0004000 {
+		compatible = "cdns,i2c-r1p10";
+		reg = <0xe0004000 0x1000>;
+		clocks = <&clkc 38>;
+		interrupts = <0 25 4>;
+		interrupt-parent = <&intc>;
+		status = "disabled";
+	};