Commit 08320610 authored by Lanqing Liu's avatar Lanqing Liu Committed by Greg Kroah-Hartman

dt-bindings: serial: sprd: Add dma properties to support DMA mode

This patch adds dmas and dma-names properties for the UART DMA mode.
Signed-off-by: default avatarLanqing Liu <lanqing.liu@unisoc.com>
Signed-off-by: default avatarBaolin Wang <baolin.wang@linaro.org>
Reviewed-by: default avatarRob Herring <robh@kernel.org>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent 4007098f
...@@ -15,12 +15,18 @@ Required properties: ...@@ -15,12 +15,18 @@ Required properties:
UART clock and source clock are optional properties, but enable clock UART clock and source clock are optional properties, but enable clock
is required. is required.
Optional properties:
- dma-names: Should contain "rx" for receive and "tx" for transmit channels.
- dmas: A list of dma specifiers, one for each entry in dma-names.
Example: Example:
uart0: serial@0 { uart0: serial@0 {
compatible = "sprd,sc9860-uart", compatible = "sprd,sc9860-uart",
"sprd,sc9836-uart"; "sprd,sc9836-uart";
reg = <0x0 0x100>; reg = <0x0 0x100>;
interrupts = <GIC_SPI 2 IRQ_TYPE_LEVEL_HIGH>; interrupts = <GIC_SPI 2 IRQ_TYPE_LEVEL_HIGH>;
dma-names = "rx", "tx";
dmas = <&ap_dma 19>, <&ap_dma 20>;
clock-names = "enable", "uart", "source"; clock-names = "enable", "uart", "source";
clocks = <&clk_ap_apb_gates 9>, <&clk_uart0>, <&ext_26m>; clocks = <&clk_ap_apb_gates 9>, <&clk_uart0>, <&ext_26m>;
}; };
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment