]> git.kernelconcepts.de Git - karo-tx-linux.git/commitdiff
ARM: ux500: Supply UART's DMA configuration via Device Tree
authorLee Jones <lee.jones@linaro.org>
Fri, 3 May 2013 14:31:49 +0000 (15:31 +0100)
committerLinus Walleij <linus.walleij@linaro.org>
Mon, 27 May 2013 12:07:12 +0000 (14:07 +0200)
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.jones@linaro.org>
Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
arch/arm/boot/dts/dbx5x0.dtsi

index 162c1fbfde4abbdbb87b8b4347aee593cd64c902..b95745bd84606d33abb316785c3e89c693be5a1a 100644 (file)
                        compatible = "arm,pl011", "arm,primecell";
                        reg = <0x80120000 0x1000>;
                        interrupts = <0 11 0x4>;
+
+                       dmas = <&dma 13 0 0x2>, /* Logical - DevToMem */
+                              <&dma 13 0 0x0>; /* Logical - MemToDev */
+                       dma-names = "rx", "tx";
+
                        status = "disabled";
                };
+
                uart@80121000 {
                        compatible = "arm,pl011", "arm,primecell";
                        reg = <0x80121000 0x1000>;
                        interrupts = <0 19 0x4>;
+
+                       dmas = <&dma 12 0 0x2>, /* Logical - DevToMem */
+                              <&dma 12 0 0x0>; /* Logical - MemToDev */
+                       dma-names = "rx", "tx";
+
                        status = "disabled";
                };
+
                uart@80007000 {
                        compatible = "arm,pl011", "arm,primecell";
                        reg = <0x80007000 0x1000>;
                        interrupts = <0 26 0x4>;
+
+                       dmas = <&dma 11 0 0x2>, /* Logical - DevToMem */
+                              <&dma 11 0 0x0>; /* Logical - MemToDev */
+                       dma-names = "rx", "tx";
+
                        status = "disabled";
                };