qcom,smd.txt 2.3 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485
  1. Qualcomm Shared Memory Driver (SMD) binding
  2. This binding describes the Qualcomm Shared Memory Driver, a fifo based
  3. communication channel for sending data between the various subsystems in
  4. Qualcomm platforms.
  5. - compatible:
  6. Usage: required
  7. Value type: <stringlist>
  8. Definition: must be "qcom,smd"
  9. = EDGES
  10. Each subnode of the SMD node represents a remote subsystem or a remote
  11. processor of some sort - or in SMD language an "edge". The name of the edges
  12. are not important.
  13. The edge is described by the following properties:
  14. - interrupts:
  15. Usage: required
  16. Value type: <prop-encoded-array>
  17. Definition: should specify the IRQ used by the remote processor to
  18. signal this processor about communication related updates
  19. - qcom,ipc:
  20. Usage: required
  21. Value type: <prop-encoded-array>
  22. Definition: three entries specifying the outgoing ipc bit used for
  23. signaling the remote processor:
  24. - phandle to a syscon node representing the apcs registers
  25. - u32 representing offset to the register within the syscon
  26. - u32 representing the ipc bit within the register
  27. - qcom,smd-edge:
  28. Usage: required
  29. Value type: <u32>
  30. Definition: the identifier of the remote processor in the smd channel
  31. allocation table
  32. - qcom,remote-pid:
  33. Usage: optional
  34. Value type: <u32>
  35. Definition: the identifier for the remote processor as known by the rest
  36. of the system.
  37. = SMD DEVICES
  38. In turn, subnodes of the "edges" represent devices tied to SMD channels on that
  39. "edge". The names of the devices are not important. The properties of these
  40. nodes are defined by the individual bindings for the SMD devices - but must
  41. contain the following property:
  42. - qcom,smd-channels:
  43. Usage: required
  44. Value type: <stringlist>
  45. Definition: a list of channels tied to this device, used for matching
  46. the device to channels
  47. = EXAMPLE
  48. The following example represents a smd node, with one edge representing the
  49. "rpm" subsystem. For the "rpm" subsystem we have a device tied to the
  50. "rpm_request" channel.
  51. apcs: syscon@f9011000 {
  52. compatible = "syscon";
  53. reg = <0xf9011000 0x1000>;
  54. };
  55. smd {
  56. compatible = "qcom,smd";
  57. rpm {
  58. interrupts = <0 168 1>;
  59. qcom,ipc = <&apcs 8 0>;
  60. qcom,smd-edge = <15>;
  61. rpm_requests {
  62. compatible = "qcom,rpm-msm8974";
  63. qcom,smd-channels = "rpm_requests";
  64. ...
  65. };
  66. };
  67. };