From: Tomer Maimon <tmaimon77@gmail.com>
To: openbmc@lists.ozlabs.org
Cc: Joel Stanley <joel@jms.id.au>, Tomer Maimon <tmaimon77@gmail.com>
Subject: [PATCH linux dev-4.13 v2 1/2] dt-binding: serial: document NPCM UART DT bindings
Date: Tue, 23 Jan 2018 17:16:39 +0200 [thread overview]
Message-ID: <1516720600-2040-2-git-send-email-tmaimon77@gmail.com> (raw)
In-Reply-To: <1516720600-2040-1-git-send-email-tmaimon77@gmail.com>
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
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
--
2.14.1
next prev parent reply other threads:[~2018-01-23 15:16 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2018-01-23 15:16 [PATCH linux dev-4.13 v2 0/2] serial: add NPCM UART driver Tomer Maimon
2018-01-23 15:16 ` Tomer Maimon [this message]
2018-01-23 15:16 ` [PATCH linux dev-4.13 v2 2/2] serial: npcm: " Tomer Maimon
2018-02-02 2:51 ` Joel Stanley
2018-02-04 19:54 ` Tomer Maimon
2018-02-05 6:19 ` Joel Stanley
[not found] ` <CAP6Zq1gMb5VjLpFBCWoiYkRjSKdpqa9mZMiU5qUadBtaUvPicw@mail.gmail.com>
2018-02-05 9:07 ` Tomer Maimon
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=1516720600-2040-2-git-send-email-tmaimon77@gmail.com \
--to=tmaimon77@gmail.com \
--cc=joel@jms.id.au \
--cc=openbmc@lists.ozlabs.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.