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

Tomer Maimon tmaimon77 at gmail.com
Thu Dec 21 20:04:51 AEDT 2017


Added device tree binding documentation for Nuvoton NPCM UART.

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

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..52c44f83d274
--- /dev/null
+++ b/Documentation/devicetree/bindings/serial/nuvoton,npcm-uart.txt
@@ -0,0 +1,24 @@
+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.
+- clocks          : phandle of UART reference clock.
+
+Note: Each uart controller should have an alias correctly numbered
+in "aliases" node.
+
+Example:
+
+aliases {
+	serial0 = &serial0;
+};
+
+serial0: serial0 at f0001000 {
+	compatible = "nuvoton,npcm750-uart";
+	reg = <0xf0001000 0x1000>;
+	clocks = <&clk NPCM7XX_CLK_UART_CORE>;
+	interrupts = <GIC_SPI 2 IRQ_TYPE_LEVEL_HIGH>;
+	status = "disabled";
+};
\ No newline at end of file
-- 
2.14.1



More information about the openbmc mailing list