When requesting a channel, a DMA client needs to pass some pieces of
information such as; request channel, device type, channel type and
direction etc. Normally we do this in the form of platform data, but
when DT is enabled we need to pass it using the driver's bindings
instead.

Signed-off-by: Lee Jones <lee.jo...@linaro.org>
---
 arch/arm/boot/dts/dbx5x0.dtsi |   17 +++++++++++++++++
 1 file changed, 17 insertions(+)

diff --git a/arch/arm/boot/dts/dbx5x0.dtsi b/arch/arm/boot/dts/dbx5x0.dtsi
index e2fa20f..bd0fe5f 100644
--- a/arch/arm/boot/dts/dbx5x0.dtsi
+++ b/arch/arm/boot/dts/dbx5x0.dtsi
@@ -569,18 +569,35 @@
                        compatible = "arm,pl011", "arm,primecell";
                        reg = <0x80120000 0x1000>;
                        interrupts = <0 11 0x4>;
+
+                       dmas = <&dma 0 13 0x8>, /* Logical - DevToMem */
+                              <&dma 0 13 0x4>; /* Logical - MemToDev */
+                       dma-names = "rx", "tx";
+
                        status = "disabled";
                };
+
                uart@80121000 {
                        compatible = "arm,pl011", "arm,primecell";
                        reg = <0x80121000 0x1000>;
                        interrupts = <0 19 0x4>;
+
+                       dmas = <&dma 0 12 0x8>, /* Logical - DevToMem */
+                              <&dma 0 12 0x4>; /* Logical - MemToDev */
+                       dma-names = "rx", "tx";
+
                        status = "disabled";
                };
+
                uart@80007000 {
                        compatible = "arm,pl011", "arm,primecell";
                        reg = <0x80007000 0x1000>;
                        interrupts = <0 26 0x4>;
+
+                       dmas = <&dma 0 11 0x8>, /* Logical - DevToMem */
+                              <&dma 0 11 0x4>; /* Logical - MemToDev */
+                       dma-names = "rx", "tx";
+
                        status = "disabled";
                };
 
-- 
1.7.10.4

--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majord...@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/

Reply via email to