summaryrefslogtreecommitdiffstats
path: root/Documentation/devicetree/bindings/serial/sirf-uart.txt
diff options
context:
space:
mode:
authorKumar Gala <galak@codeaurora.org>2013-08-28 14:08:23 -0500
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2013-08-28 16:02:48 -0700
commit6b9c1fa25a5c2a2a2d8fa1e2f8c2cc5d6d0c4a45 (patch)
tree64cb86b49c30d4290b155a0bb3002d15116a5a8e /Documentation/devicetree/bindings/serial/sirf-uart.txt
parent3e6648c9c812f11117590ef846b205abd0224699 (diff)
downloadblackbird-obmc-linux-6b9c1fa25a5c2a2a2d8fa1e2f8c2cc5d6d0c4a45.tar.gz
blackbird-obmc-linux-6b9c1fa25a5c2a2a2d8fa1e2f8c2cc5d6d0c4a45.zip
serial: unify serial bindings into a single dir
Move all bindings in bindings/tty/serial into bindings/serial so we only have one place dir with serial/uart related bindings in it. Signed-off-by: Kumar Gala <galak@codeaurora.org> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'Documentation/devicetree/bindings/serial/sirf-uart.txt')
-rw-r--r--Documentation/devicetree/bindings/serial/sirf-uart.txt33
1 files changed, 33 insertions, 0 deletions
diff --git a/Documentation/devicetree/bindings/serial/sirf-uart.txt b/Documentation/devicetree/bindings/serial/sirf-uart.txt
new file mode 100644
index 000000000000..a2dfc6522a91
--- /dev/null
+++ b/Documentation/devicetree/bindings/serial/sirf-uart.txt
@@ -0,0 +1,33 @@
+* CSR SiRFprimaII/atlasVI Universal Synchronous Asynchronous Receiver/Transmitter *
+
+Required properties:
+- compatible : Should be "sirf,prima2-uart" or "sirf, prima2-usp-uart"
+- reg : Offset and length of the register set for the device
+- interrupts : Should contain uart interrupt
+- fifosize : Should define hardware rx/tx fifo size
+- clocks : Should contain uart clock number
+
+Optional properties:
+- sirf,uart-has-rtscts: we have hardware flow controller pins in hardware
+- rts-gpios: RTS pin for USP-based UART if sirf,uart-has-rtscts is true
+- cts-gpios: CTS pin for USP-based UART if sirf,uart-has-rtscts is true
+
+Example:
+
+uart0: uart@b0050000 {
+ cell-index = <0>;
+ compatible = "sirf,prima2-uart";
+ reg = <0xb0050000 0x1000>;
+ interrupts = <17>;
+ fifosize = <128>;
+ clocks = <&clks 13>;
+};
+
+On the board-specific dts, we can put rts-gpios and cts-gpios like
+
+usp@b0090000 {
+ compatible = "sirf,prima2-usp-uart";
+ sirf,uart-has-rtscts;
+ rts-gpios = <&gpio 15 0>;
+ cts-gpios = <&gpio 46 0>;
+};
OpenPOWER on IntegriCloud