[linux,dev-4.13,v2,1/2] dt-binding: serial: document NPCM UART DT bindings

Message ID 1516720600-2040-2-git-send-email-tmaimon77@gmail.com
State New
Headers show
Series
  • serial: add NPCM UART driver
Related show

Commit Message

Tomer Maimon Jan. 23, 2018, 3:16 p.m.
Added device tree binding documentation for Nuvoton NPCM UART.

Signed-off-by: Tomer Maimon <tmaimon77@gmail.com>
---
 .../bindings/serial/nuvoton,npcm-uart.txt          | 34 ++++++++++++++++++++++
 1 file changed, 34 insertions(+)
 create mode 100644 Documentation/devicetree/bindings/serial/nuvoton,npcm-uart.txt

Patch

diff --git a/Documentation/devicetree/bindings/serial/nuvoton,npcm-uart.txt b/Documentation/devicetree/bindings/serial/nuvoton,npcm-uart.txt
new file mode 100644
index 000000000000..deb663c58002
--- /dev/null
+++ b/Documentation/devicetree/bindings/serial/nuvoton,npcm-uart.txt
@@ -0,0 +1,34 @@ 
+Nuvoton NPCM Universal Asynchronous Receiver/Transmitter (UART)
+
+Required properties:
+- compatible      : "nuvoton,npcm750-uart" for Poleg NPCM750.
+- reg             : Offset and length of the register set for the device.
+- interrupts      : Contain the UART interrupt with flags for falling edge.
+
+Required clocking property, have to be one of:
+- clocks          : phandle of UART reference clock.
+- clock-frequency : The frequency in Hz of the clock that drives the NPCM
+                    UART (usually 24000000).
+
+Optional properties:
+- reg-shift 	  : quantity to shift the register offsets by (default 2).
+- fifo-size 	  : the fifo size of the UART (default 1).
+
+Note: Each uart controller should have an alias correctly numbered
+in "aliases" node.
+
+Example:
+
+aliases {
+	serial0 = &serial0;
+};
+
+serial0: serial0@f0001000 {
+	compatible = "nuvoton,npcm750-uart";
+	reg = <0xf0001000 0x1000>;
+	clocks = <&clk NPCM7XX_CLK_UART_CORE>;
+	interrupts = <GIC_SPI 2 IRQ_TYPE_LEVEL_HIGH>;
+	reg-shift = <2>;
+	fifo-size = <14>;
+	status = "disabled";
+};
\ No newline at end of file