devicetree: document Ingenic SoC UART binding
authorPaul Burton <paul.burton@imgtec.com>
Sun, 24 May 2015 15:11:43 +0000 (16:11 +0100)
committerRalf Baechle <ralf@linux-mips.org>
Sun, 21 Jun 2015 19:53:23 +0000 (21:53 +0200)
Add binding documentation for the UARTs found in Ingenic SoCs.

Signed-off-by: Paul Burton <paul.burton@imgtec.com>
Acked-by: Rob Herring <robh@kernel.org>
Cc: Ian Campbell <ijc+devicetree@hellion.org.uk>
Cc: Kumar Gala <galak@codeaurora.org>
Cc: Lars-Peter Clausen <lars@metafoo.de>
Cc: Mark Rutland <mark.rutland@arm.com>
Cc: Pawel Moll <pawel.moll@arm.com>
Cc: devicetree@vger.kernel.org
Cc: linux-mips@linux-mips.org
Cc: linux-kernel@vger.kernel.org
Patchwork: https://patchwork.linux-mips.org/patch/10161/
Signed-off-by: Ralf Baechle <ralf@linux-mips.org>
Documentation/devicetree/bindings/serial/ingenic,uart.txt [new file with mode: 0644]

diff --git a/Documentation/devicetree/bindings/serial/ingenic,uart.txt b/Documentation/devicetree/bindings/serial/ingenic,uart.txt
new file mode 100644 (file)
index 0000000..c2d3b3a
--- /dev/null
@@ -0,0 +1,22 @@
+* Ingenic SoC UART
+
+Required properties:
+- compatible : "ingenic,jz4740-uart" or "ingenic,jz4780-uart"
+- reg : offset and length of the register set for the device.
+- interrupts : should contain uart interrupt.
+- clocks : phandles to the module & baud clocks.
+- clock-names: tuple listing input clock names.
+       Required elements: "baud", "module"
+
+Example:
+
+uart0: serial@10030000 {
+       compatible = "ingenic,jz4740-uart";
+       reg = <0x10030000 0x100>;
+
+       interrupt-parent = <&intc>;
+       interrupts = <9>;
+
+       clocks = <&ext>, <&cgu JZ4740_CLK_UART0>;
+       clock-names = "baud", "module";
+};