[PATCH linux dev-4.13 v2 1/2] dt-binding: serial: document NPCM UART DT bindings
Tomer Maimon
tmaimon77 at gmail.com
Wed Jan 24 02:16:39 AEDT 2018
Added device tree binding documentation for Nuvoton NPCM UART.
Signed-off-by: Tomer Maimon <tmaimon77 at 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
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 at 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
--
2.14.1
More information about the openbmc
mailing list