sps.txt 1.3 KB

123456789101112131415161718192021222324252627282930313233343536
  1. SPS (Smart Peripheral Switch) may be used as a DMA engine to move data
  2. in either the Peripheral-to-Peripheral (a.k.a. BAM-to-BAM) mode or the
  3. Peripheral-to-Memory (a.k.a. BAM-System) mode. SPS includes BAM (Bus
  4. Access Module) hardware block, BAM DMA peripheral, and pipe memory.
  5. Required property:
  6. - compatible: should be "qcom,msm_sps" or "qcom,msm_sps_4k"
  7. Optional properties:
  8. - reg: offset and size for the memory mapping, including maps for
  9. BAM DMA BAM, BAM DMA peripheral, pipe memory and reserved memory.
  10. - reg-names: indicates various resources passed to driver (via reg
  11. property) by name. "reg-names" examples are "bam_mem", "core_mem"
  12. , "pipe_mem" and "res_mem".
  13. - interrupts: IRQ line
  14. - qcom,device-type: specify the device configuration of BAM DMA and
  15. pipe memory. Can be one of
  16. 1 - With BAM DMA and without pipe memory
  17. 2 - With BAM DMA and with pipe memory
  18. 3 - Without BAM DMA and without pipe memory
  19. - qcom,pipe-attr-ee: BAM pipes are attributed to a specific EE, with
  20. which we can know the pipes belong to apps side and can have the
  21. error interrupts at the pipe level.
  22. Example:
  23. qcom,sps@f9980000 {
  24. compatible = "qcom,msm_sps";
  25. reg = <0xf9984000 0x15000>,
  26. <0xf9999000 0xb000>,
  27. <0xfe803000 0x4800>;
  28. interrupts = <0 94 0>;
  29. qcom,device-type = <2>;
  30. qcom,pipe-attr-ee;
  31. };