1 * Freescale Smart Direct Memory Access (SDMA) Controller for i.MX
4 - compatible : Should be one of
6 "fsl,imx31-sdma", "fsl,imx31-to1-sdma", "fsl,imx31-to2-sdma"
7 "fsl,imx35-sdma", "fsl,imx35-to1-sdma", "fsl,imx35-to2-sdma"
16 The -to variants should be preferred since they allow to determine the
17 correct ROM script addresses needed for the driver to work without additional
19 - reg : Should contain SDMA registers location and length
20 - interrupts : Should contain SDMA interrupt
21 - #dma-cells : Must be <3>.
22 The first cell specifies the DMA request/event ID. See details below
23 about the second and third cell.
24 - fsl,sdma-ram-script-name : Should contain the full path of SDMA RAM
27 The second cell of dma phandle specifies the peripheral type of DMA transfer.
28 The full ID of peripheral types can be found below.
44 12 External peripheral
45 13 Memory Stick Host Controller
46 14 Shared Memory Stick Host Controller
54 22 SSI Dual FIFO (needs firmware ver >= 2)
58 The third cell specifies the transfer priority as below.
61 -------------------------
68 - gpr : The phandle to the General Purpose Register (GPR) node.
69 - fsl,sdma-event-remap : Register bits of sdma event remap, the format is
71 reg is the GPR register offset.
72 shift is the bit position inside the GPR register.
73 val is the value of the bit (0 or 1).
78 compatible = "fsl,imx51-sdma", "fsl,imx35-sdma";
79 reg = <0x83fb0000 0x4000>;
82 fsl,sdma-ram-script-name = "sdma-imx51.bin";
85 DMA clients connected to the i.MX SDMA controller must use the format
86 described in the dma.txt file.
91 compatible = "fsl,imx51-ssi", "fsl,imx21-ssi";
92 reg = <0x70014000 0x4000>;
95 dmas = <&sdma 24 1 0>,
97 dma-names = "rx", "tx";
98 fsl,fifo-depth = <15>;
101 Using the fsl,sdma-event-remap property:
103 If we want to use SDMA on the SAI1 port on a MX6SX:
107 /* SDMA events remap for SAI1_RX and SAI1_TX */
108 fsl,sdma-event-remap = <0 15 1>, <0 16 1>;
111 The fsl,sdma-event-remap property in this case has two values:
112 - <0 15 1> means that the offset is 0, so GPR0 is the register of the
113 SDMA remap. Bit 15 of GPR0 selects between UART4_RX and SAI1_RX.
114 Setting bit 15 to 1 selects SAI1_RX.
115 - <0 16 1> means that the offset is 0, so GPR0 is the register of the
116 SDMA remap. Bit 16 of GPR0 selects between UART4_TX and SAI1_TX.
117 Setting bit 16 to 1 selects SAI1_TX.