sun4i-dma.txt 1.4 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546
  1. Allwinner A10 DMA Controller
  2. This driver follows the generic DMA bindings defined in dma.txt.
  3. Required properties:
  4. - compatible: Must be "allwinner,sun4i-a10-dma"
  5. - reg: Should contain the registers base address and length
  6. - interrupts: Should contain a reference to the interrupt used by this device
  7. - clocks: Should contain a reference to the parent AHB clock
  8. - #dma-cells : Should be 2, first cell denoting normal or dedicated dma,
  9. second cell holding the request line number.
  10. Example:
  11. dma: dma-controller@01c02000 {
  12. compatible = "allwinner,sun4i-a10-dma";
  13. reg = <0x01c02000 0x1000>;
  14. interrupts = <27>;
  15. clocks = <&ahb_gates 6>;
  16. #dma-cells = <2>;
  17. };
  18. Clients:
  19. DMA clients connected to the Allwinner A10 DMA controller must use the
  20. format described in the dma.txt file, using a three-cell specifier for
  21. each channel: a phandle plus two integer cells.
  22. The three cells in order are:
  23. 1. A phandle pointing to the DMA controller.
  24. 2. Whether it is using normal (0) or dedicated (1) channels
  25. 3. The port ID as specified in the datasheet
  26. Example:
  27. spi2: spi@01c17000 {
  28. compatible = "allwinner,sun4i-a10-spi";
  29. reg = <0x01c17000 0x1000>;
  30. interrupts = <0 12 4>;
  31. clocks = <&ahb_gates 22>, <&spi2_clk>;
  32. clock-names = "ahb", "mod";
  33. dmas = <&dma 1 29>, <&dma 1 28>;
  34. dma-names = "rx", "tx";
  35. status = "disabled";
  36. #address-cells = <1>;
  37. #size-cells = <0>;
  38. };