0178-dmaengine-qcom_adm-Add-device-tree-binding.patch 2.3 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576
  1. From 331294fa5c703536e27b79e9c112d162393f725a Mon Sep 17 00:00:00 2001
  2. From: Andy Gross <[email protected]>
  3. Date: Thu, 26 Jun 2014 13:55:10 -0500
  4. Subject: [PATCH 178/182] dmaengine: qcom_adm: Add device tree binding
  5. Add device tree binding support for the QCOM ADM DMA driver.
  6. Signed-off-by: Andy Gross <[email protected]>
  7. ---
  8. Documentation/devicetree/bindings/dma/qcom_adm.txt | 60 ++++++++++++++++++++
  9. 1 file changed, 60 insertions(+)
  10. create mode 100644 Documentation/devicetree/bindings/dma/qcom_adm.txt
  11. --- /dev/null
  12. +++ b/Documentation/devicetree/bindings/dma/qcom_adm.txt
  13. @@ -0,0 +1,60 @@
  14. +QCOM ADM DMA Controller
  15. +
  16. +Required properties:
  17. +- compatible: must contain "qcom,adm" for IPQ/APQ8064 and MSM8960
  18. +- reg: Address range for DMA registers
  19. +- interrupts: Should contain one interrupt shared by all channels
  20. +- #dma-cells: must be <2>. First cell denotes the channel number. Second cell
  21. + denotes CRCI (client rate control interface) flow control assignment.
  22. +- clocks: Should contain the core clock and interface clock.
  23. +- clock-names: Must contain "core" for the core clock and "iface" for the
  24. + interface clock.
  25. +- resets: Must contain an entry for each entry in reset names.
  26. +- reset-names: Must include the following entries:
  27. + - clk
  28. + - c0
  29. + - c1
  30. + - c2
  31. +- qcom,ee: indicates the security domain identifier used in the secure world.
  32. +
  33. +Example:
  34. + adm_dma: dma@18300000 {
  35. + compatible = "qcom,adm";
  36. + reg = <0x18300000 0x100000>;
  37. + interrupts = <0 170 0>;
  38. + #dma-cells = <2>;
  39. +
  40. + clocks = <&gcc ADM0_CLK>, <&gcc ADM0_PBUS_CLK>;
  41. + clock-names = "core", "iface";
  42. +
  43. + resets = <&gcc ADM0_RESET>,
  44. + <&gcc ADM0_C0_RESET>,
  45. + <&gcc ADM0_C1_RESET>,
  46. + <&gcc ADM0_C2_RESET>;
  47. + reset-names = "clk", "c0", "c1", "c2";
  48. + qcom,ee = <0>;
  49. + };
  50. +
  51. +DMA clients must use the format descripted in the dma.txt file, using a three
  52. +cell specifier for each channel.
  53. +
  54. +Each dmas request consists of 3 cells:
  55. + 1. phandle pointing to the DMA controller
  56. + 2. channel number
  57. + 3. CRCI assignment, if applicable. If no CRCI flow control is required, use 0.
  58. +
  59. +Example:
  60. +
  61. + spi4: spi@1a280000 {
  62. + status = "ok";
  63. + spi-max-frequency = <50000000>;
  64. +
  65. + pinctrl-0 = <&spi_pins>;
  66. + pinctrl-names = "default";
  67. +
  68. + cs-gpios = <&qcom_pinmux 20 0>;
  69. +
  70. + dmas = <&adm_dma 6 9>,
  71. + <&adm_dma 5 10>;
  72. + dma-names = "rx", "tx";
  73. + };