serial: imx: Add DMA buffer configuration via DT
authorFabien Lahoudere <fabien.lahoudere@collabora.com>
Fri, 30 Apr 2021 17:50:37 +0000 (19:50 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 4 Jun 2021 13:11:16 +0000 (15:11 +0200)
commitdb0a196bd8ad1d6bb4b1a9e54f54c09f8dc2cc25
treef5bcfce7bcaa5837de636f0e7ba7f45f9e707990
parent910cc9537302caddc9777cf3ae2f5582730380c9
serial: imx: Add DMA buffer configuration via DT

In order to optimize serial communication (performance/throughput VS
latency), we may need to tweak DMA period number and size. This adds
DT properties to configure those values before initialising DMA.
The defaults will stay the same as before.

[update documentation and commit message, rebase to current master,
switch back to DT instead of sysfs]

Signed-off-by: Fabien Lahoudere <fabien.lahoudere@collabora.com>
Signed-off-by: Sebastian Reichel <sebastian.reichel@collabora.com>
Link: https://lore.kernel.org/r/20210430175038.103226-2-sebastian.reichel@collabora.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Documentation/devicetree/bindings/serial/fsl-imx-uart.yaml
drivers/tty/serial/imx.c