cnss-wlan.txt 4.1 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677
  1. * Qualcomm Technologies, Inc. ConNectivity SubSystem Platform Driver
  2. This platform driver adds support for the CNSS subsystem used for PCIe
  3. based Wi-Fi devices. It also adds support to integrate PCIe WLAN module
  4. to subsystem restart framework. Apart from that, it also manages the
  5. 3.3V voltage regulator, WLAN Enable GPIO signal and PCIe link dynamically
  6. with support for suspend and resume by retaining the PCI config space
  7. states when PCIe link is shutdown. The main purpose of this device tree
  8. entry below is to invoke the CNSS platform driver and provide handle to
  9. the WLAN enable GPIO, 3.3V fixed voltage regulator resources. It also
  10. provides the reserved RAM dump memory location and size.
  11. Required properties:
  12. - compatible: "qcom,cnss" for QCA6174 device
  13. "qcom,cnss-qca6290" for QCA6290 device
  14. - wlan-en-gpio: WLAN_EN GPIO signal specified by the chip specifications
  15. - vdd-wlan-supply: phandle to the regulator device tree node
  16. - pinctrl-names: Names corresponding to the numbered pinctrl states
  17. - pinctrl-<n>: Pinctrl states as described in
  18. bindings/pinctrl/pinctrl-bindings.txt
  19. - qcom,wlan-rc-num: PCIe root complex number which WLAN chip is attached to
  20. Optional properties:
  21. - qcom,notify-modem-status: Boolean property to decide whether modem
  22. notification should be enabled or not in this
  23. platform
  24. - wlan-soc-swreg-supply: phandle to the external 1.15V regulator for QCA6174
  25. - wlan-ant-switch-supply: phandle to the 2.7V regulator for the antenna
  26. switch of QCA6174
  27. - qcom,wlan-uart-access: Boolean property to decide whether QCA6174
  28. has exclusive access to UART.
  29. - vdd-wlan-io-supply: phandle to the 1.8V IO regulator for QCA6174
  30. - vdd-wlan-xtal-supply: phandle to the 1.8V XTAL regulator for QCA6174
  31. - vdd-wlan-xtal-aon-supply: phandle to the LDO-4 regulator. This is needed
  32. on platforms where XTAL regulator depends on
  33. always on regulator in VDDmin.
  34. - vdd-wlan-core-supply: phandle to the 1.3V CORE regulator for QCA6174
  35. - vdd-wlan-sp2t-supply: phandle to the 2.7V SP2T regulator for QCA6174
  36. - qcom,smmu-s1-enable: Boolean property to decide whether to enable SMMU
  37. S1 stage or not
  38. - qcom,wlan-smmu-iova-address: I/O virtual address range as <start length>
  39. format to be used for allocations associated
  40. between WLAN/PCIe and SMMU
  41. - qcom,wlan-ramdump-dynamic: To enable CNSS RAMDUMP collection
  42. by providing the size of CNSS DUMP
  43. - reg: Memory regions defined as starting address and size
  44. - reg-names: Names of the memory regions defined in reg entry
  45. - wlan-bootstrap-gpio: WLAN_BOOTSTRAP GPIO signal specified by QCA6174
  46. which should be drived depending on platforms
  47. - qcom,is-dual-wifi-enabled: Boolean property to control wlan enable(wlan-en)
  48. gpio on dual-wifi platforms.
  49. - vdd-wlan-en-supply: WLAN_EN fixed regulator specified by QCA6174
  50. specifications.
  51. - qcom,wlan-en-vreg-support: Boolean property to decide the whether the
  52. WLAN_EN pin is a gpio or fixed regulator.
  53. - qcom,mhi: phandle to indicate the device which needs MHI support.
  54. - qcom,cap-tsf-gpio: WLAN_TSF_CAPTURED GPIO signal specified by the chip
  55. specifications, should be drived depending on products
  56. Example:
  57. qcom,cnss@0d400000 {
  58. compatible = "qcom,cnss";
  59. reg = <0x0d400000 0x200000>;
  60. reg-names = "ramdump";
  61. qcom,wlan-ramdump-dynamic = <0x200000>;
  62. wlan-en-gpio = <&msmgpio 82 0>;
  63. vdd-wlan-supply = <&wlan_vreg>;
  64. qcom,notify-modem-status;
  65. wlan-soc-swreg-supply = <&pma8084_l27>;
  66. pinctrl-names = "default";
  67. pinctrl-0 = <&cnss_default>;
  68. qcom,wlan-rc-num = <0>;
  69. qcom,wlan-smmu-iova-address = <0 0x10000000>;
  70. qcom,mhi = <&mhi_wlan>;
  71. qcom,cap-tsf-gpio = <&tlmm 126 1>;
  72. };