From: Helmut Klein <hgkr.klein@gmail.com>
To: robh+dt@kernel.org, mark.rutland@arm.com
Cc: Helmut Klein <hgkr.klein@gmail.com>,
devicetree@vger.kernel.org, linux-amlogic@lists.infradead.org,
linux-arm-kernel@lists.infradead.org,
linux-kernel@vger.kernel.org
Subject: [PATCH v3 2/4] dt-binding: meson_uart: add documentation for the UARTs of amlogic
Date: Fri, 31 Mar 2017 18:54:35 +0200 [thread overview]
Message-ID: <20170331165437.26227-3-hgkr.klein@gmail.com> (raw)
In-Reply-To: <20170331165437.26227-1-hgkr.klein@gmail.com>
Add the documentation for the device tree binding of meson_uart
Signed-off-by: Helmut Klein <hgkr.klein@gmail.com>
---
.../bindings/serial/amlogic,meson_uart.txt | 30 ++++++++++++++++++++++
1 file changed, 30 insertions(+)
create mode 100644 Documentation/devicetree/bindings/serial/amlogic,meson_uart.txt
diff --git a/Documentation/devicetree/bindings/serial/amlogic,meson_uart.txt b/Documentation/devicetree/bindings/serial/amlogic,meson_uart.txt
new file mode 100644
index 000000000000..8250a191c2fc
--- /dev/null
+++ b/Documentation/devicetree/bindings/serial/amlogic,meson_uart.txt
@@ -0,0 +1,30 @@
+* Amlogic Meson UART, used in multiple SoCs (e.g. S905, s905X, ...)
+
+Required properties:
+- compatible : "amlogic,meson-uart"
+- reg : offset and length of the register set for the device.
+- interrupts : device interrupt
+- clocks : a list of phandle + clock-specifier pairs, one for each
+ entry in clock names.
+- clocks-names : contains:
+ * "xtal" for the baud rate clock
+ * "core" for the core clock of none AO UARTs (optional)
+
+e.g.
+uart_A: serial@84c0 {
+ compatible = "amlogic,meson-uart";
+ reg = <0x0 0x84c0 0x0 0x14>;
+ pinctrl-0 = <&uart_a_pins &uart_a_cts_rts_pins>;
+ interrupts = <GIC_SPI 26 IRQ_TYPE_EDGE_RISING>;
+ clocks = <&xtal>, <&clkc CLKID_UART0>;
+ clock-names = "xtal", "core";
+ status = "ok";
+};
+
+Note: Each port should have an alias correctly numbered in "aliases" node.
+
+e.g.
+aliases {
+ serial0 = &uart_AO;
+ serial1 = &uart_A;
+};
--
2.11.0
next prev parent reply other threads:[~2017-03-31 16:54 UTC|newest]
Thread overview: 13+ messages / expand[flat|nested] mbox.gz Atom feed top
2017-03-31 16:54 [PATCH v3 0/4] tty/serial: meson_uart: add support for core clock handling Helmut Klein
2017-03-31 16:54 ` [PATCH v3 1/4] dt-bindings: clock: gxbb: expose UART clocks Helmut Klein
2017-04-04 8:40 ` Michael Turquette
2017-05-23 9:17 ` Neil Armstrong
2017-03-31 16:54 ` Helmut Klein [this message]
2017-04-03 16:52 ` [PATCH v3 2/4] dt-binding: meson_uart: add documentation for the UARTs of amlogic Rob Herring
2017-05-05 21:43 ` Martin Blumenstingl
2017-03-31 16:54 ` [PATCH v3 3/4] tty/serial: meson_uart: add the core clock handling to the driver Helmut Klein
2017-04-03 14:57 ` Jerome Brunet
2017-04-03 15:31 ` Kevin Hilman
2017-03-31 16:54 ` [PATCH v3 4/4] ARM64: dts: meson-gx: add core clock support for uart_A, uart_B and uart_C Helmut Klein
2017-04-03 15:44 ` [PATCH v3 0/4] tty/serial: meson_uart: add support for core clock handling Kevin Hilman
2017-05-23 8:37 ` Neil Armstrong
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=20170331165437.26227-3-hgkr.klein@gmail.com \
--to=hgkr.klein@gmail.com \
--cc=devicetree@vger.kernel.org \
--cc=linux-amlogic@lists.infradead.org \
--cc=linux-arm-kernel@lists.infradead.org \
--cc=linux-kernel@vger.kernel.org \
--cc=mark.rutland@arm.com \
--cc=robh+dt@kernel.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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).