summaryrefslogtreecommitdiff
path: root/Documentation/devicetree/bindings/serial/fsl-imx-uart.txt
diff options
context:
space:
mode:
authorNandor Han <nandor.han@ge.com>2017-06-28 12:15:14 +0200
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2017-06-29 17:08:01 +0200
commita3015affdf76ef279fbbb3710a220bab7e9ea04b (patch)
treee3a3478c72e67d050299fc770f90d9506eac5595 /Documentation/devicetree/bindings/serial/fsl-imx-uart.txt
parent6376cd39ea0b9a56c3ddfb8c794b7322a7029b63 (diff)
serial: imx-serial - move DMA buffer configuration to DT
The size of the DMA buffer can affect the delta time between data being produced and data being consumed. Basically the DMA system will move data to tty buffer when a) DMA buffer is full b) serial line is idle. The situation is visible when producer generates data continuously and there is no possibility for idle line. At this point the DMA buffer is directly affecting the delta time. The patch will add the possibility to configure the DMA buffers in DT, which case by case can be configured separately for every driver instance. The DT configuration is optional and in case missing the driver will use the 4096 buffer with 4 periods (as before), therefore no clients are impacted by this change. Signed-off-by: Nandor Han <nandor.han@ge.com> Signed-off-by: Romain Perier <romain.perier@collabora.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'Documentation/devicetree/bindings/serial/fsl-imx-uart.txt')
-rw-r--r--Documentation/devicetree/bindings/serial/fsl-imx-uart.txt2
1 files changed, 2 insertions, 0 deletions
diff --git a/Documentation/devicetree/bindings/serial/fsl-imx-uart.txt b/Documentation/devicetree/bindings/serial/fsl-imx-uart.txt
index 574c3a2c77d5..e6b572409cf5 100644
--- a/Documentation/devicetree/bindings/serial/fsl-imx-uart.txt
+++ b/Documentation/devicetree/bindings/serial/fsl-imx-uart.txt
@@ -9,6 +9,7 @@ Optional properties:
- fsl,irda-mode : Indicate the uart supports irda mode
- fsl,dte-mode : Indicate the uart works in DTE mode. The uart works
in DCE mode by default.
+- fsl,dma-size : Indicate the size of the DMA buffer and its periods
Please check Documentation/devicetree/bindings/serial/serial.txt
for the complete list of generic properties.
@@ -28,4 +29,5 @@ uart1: serial@73fbc000 {
interrupts = <31>;
uart-has-rtscts;
fsl,dte-mode;
+ fsl,dma-size = <1024 4>;
};