Skip to content

Commit

Permalink
dt-bindings: serial: sprd: Add dma properties to support DMA mode
Browse files Browse the repository at this point in the history
This patch adds dmas and dma-names properties for the UART DMA mode.

Signed-off-by: Lanqing Liu <lanqing.liu@unisoc.com>
Signed-off-by: Baolin Wang <baolin.wang@linaro.org>
Reviewed-by: Rob Herring <robh@kernel.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
  • Loading branch information
Lanqing Liu authored and Greg Kroah-Hartman committed Mar 27, 2019
1 parent 4007098 commit 0832061
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions Documentation/devicetree/bindings/serial/sprd-uart.txt
Original file line number Diff line number Diff line change
Expand Up @@ -15,12 +15,18 @@ Required properties:
UART clock and source clock are optional properties, but enable clock
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:
uart0: serial@0 {
compatible = "sprd,sc9860-uart",
"sprd,sc9836-uart";
reg = <0x0 0x100>;
interrupts = <GIC_SPI 2 IRQ_TYPE_LEVEL_HIGH>;
dma-names = "rx", "tx";
dmas = <&ap_dma 19>, <&ap_dma 20>;
clock-names = "enable", "uart", "source";
clocks = <&clk_ap_apb_gates 9>, <&clk_uart0>, <&ext_26m>;
};

0 comments on commit 0832061

Please sign in to comment.