qcom,wcnss.txt 2.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117
  1. Qualcomm WCNSS Binding
  2. This binding describes the Qualcomm WCNSS hardware. It consists of control
  3. block and a BT, WiFi and FM radio block, all using SMD as command channels.
  4. - compatible:
  5. Usage: required
  6. Value type: <string>
  7. Definition: must be: "qcom,wcnss",
  8. - qcom,smd-channel:
  9. Usage: required
  10. Value type: <string>
  11. Definition: standard SMD property specifying the SMD channel used for
  12. communication with the WiFi firmware.
  13. Should be "WCNSS_CTRL".
  14. - qcom,mmio:
  15. Usage: required
  16. Value type: <prop-encoded-array>
  17. Definition: reference to a node specifying the wcnss "ccu" and "dxe"
  18. register blocks. The node must be compatible with one of
  19. the following:
  20. "qcom,riva",
  21. "qcom,pronto"
  22. = SUBNODES
  23. The subnodes of the wcnss node are optional and describe the individual blocks in
  24. the WCNSS.
  25. == Bluetooth
  26. The following properties are defined to the bluetooth node:
  27. - compatible:
  28. Usage: required
  29. Value type: <string>
  30. Definition: must be:
  31. "qcom,wcnss-bt"
  32. == WiFi
  33. The following properties are defined to the WiFi node:
  34. - compatible:
  35. Usage: required
  36. Value type: <string>
  37. Definition: must be one of:
  38. "qcom,wcnss-wlan",
  39. - interrupts:
  40. Usage: required
  41. Value type: <prop-encoded-array>
  42. Definition: should specify the "rx" and "tx" interrupts
  43. - interrupt-names:
  44. Usage: required
  45. Value type: <stringlist>
  46. Definition: must contain "rx" and "tx"
  47. - qcom,smem-state:
  48. Usage: required
  49. Value type: <prop-encoded-array>
  50. Definition: should reference the tx-enable and tx-rings-empty SMEM states
  51. - qcom,smem-state-names:
  52. Usage: required
  53. Value type: <stringlist>
  54. Definition: must contain "tx-enable" and "tx-rings-empty"
  55. = EXAMPLE
  56. The following example represents a SMD node, with one edge representing the
  57. "pronto" subsystem, with the wcnss device and its wcn3680 BT and WiFi blocks
  58. described; as found on the 8974 platform.
  59. smd {
  60. compatible = "qcom,smd";
  61. pronto-edge {
  62. interrupts = <0 142 1>;
  63. qcom,ipc = <&apcs 8 17>;
  64. qcom,smd-edge = <6>;
  65. wcnss {
  66. compatible = "qcom,wcnss";
  67. qcom,smd-channels = "WCNSS_CTRL";
  68. #address-cells = <1>;
  69. #size-cells = <1>;
  70. qcom,mmio = <&pronto>;
  71. bt {
  72. compatible = "qcom,wcnss-bt";
  73. };
  74. wlan {
  75. compatible = "qcom,wcnss-wlan";
  76. interrupts = <0 145 0>, <0 146 0>;
  77. interrupt-names = "tx", "rx";
  78. qcom,smem-state = <&apps_smsm 10>, <&apps_smsm 9>;
  79. qcom,smem-state-names = "tx-enable", "tx-rings-empty";
  80. };
  81. };
  82. };
  83. };
  84. soc {
  85. pronto: pronto {
  86. compatible = "qcom,pronto";
  87. reg = <0xfb204000 0x2000>, <0xfb202000 0x1000>, <0xfb21b000 0x3000>;
  88. reg-names = "ccu", "dxe", "pmu";
  89. };
  90. };