Yuanyuan Liu | 607051c | 2016-11-28 17:04:13 -0800 | [diff] [blame] | 1 | * Qualcomm Technologies Inc Q6 Integrated connectivity Platform Driver |
| 2 | |
| 3 | This platform driver adds support for the Integrated WLAN that runs |
| 4 | on Q6 based platforms. WLAN FW on these architecture runs on Q6. This |
| 5 | platform driver communicates with WLAN FW over QMI, WLAN on/off messages |
| 6 | to FW are communicated thru this interface. This driver also listens to |
| 7 | WLAN PD restart notifications. |
| 8 | |
| 9 | Required properties: |
| 10 | - compatible: "qcom,icnss" |
| 11 | - reg: Memory regions defined as starting address and size |
| 12 | - reg-names: Names of the memory regions defined in reg entry |
| 13 | - interrupts: Copy engine interrupt table |
| 14 | - qcom,wlan-msa-memory: MSA memory size |
Yuanyuan Liu | 6893976 | 2017-04-04 16:43:03 -0700 | [diff] [blame] | 15 | - clocks: List of clock phandles |
| 16 | - clock-names: List of clock names corresponding to the "clocks" property |
Yuanyuan Liu | 607051c | 2016-11-28 17:04:13 -0800 | [diff] [blame] | 17 | - iommus: SMMUs and corresponding Stream IDs needed by WLAN |
| 18 | - qcom,wlan-smmu-iova-address: I/O virtual address range as <start length> |
| 19 | format to be used for allocations associated between WLAN and SMMU |
Yuanyuan Liu | 607051c | 2016-11-28 17:04:13 -0800 | [diff] [blame] | 20 | |
| 21 | Optional properties: |
Yuanyuan Liu | 6893976 | 2017-04-04 16:43:03 -0700 | [diff] [blame] | 22 | - <supply-name>-supply: phandle to the regulator device tree node |
| 23 | optional "supply-name" is "vdd-0.8-cx-mx". |
| 24 | - qcom,<supply>-config: Specifies voltage levels for supply. Should be |
| 25 | specified in pairs (min, max), units uV. There can |
| 26 | be optional load in uA and Regulator settle delay in |
| 27 | uS. |
Yuanyuan Liu | 607051c | 2016-11-28 17:04:13 -0800 | [diff] [blame] | 28 | - qcom,icnss-vadc: VADC handle for vph_pwr read APIs. |
| 29 | - qcom,icnss-adc_tm: VADC handle for vph_pwr notification APIs. |
Yuanyuan Liu | 6893976 | 2017-04-04 16:43:03 -0700 | [diff] [blame] | 30 | - qcom,smmu-s1-bypass: Boolean context flag to set SMMU to S1 bypass |
Hardik Kantilal Patel | 420482e | 2017-05-05 16:57:48 +0530 | [diff] [blame] | 31 | - qcom,wlan-msa-fixed-region: phandle, specifier pairs to children of /reserved-memory |
Sameer Thalappil | 3c2c7bf | 2017-12-15 15:00:29 -0800 | [diff] [blame] | 32 | - qcom,gpio-force-fatal-error: SMP2P bit triggered by WLAN FW to force error fatal. |
Yuanyuan Liu | 607051c | 2016-11-28 17:04:13 -0800 | [diff] [blame] | 33 | |
| 34 | Example: |
| 35 | |
| 36 | qcom,icnss@0a000000 { |
| 37 | compatible = "qcom,icnss"; |
| 38 | reg = <0x0a000000 0x1000000>; |
| 39 | reg-names = "membase"; |
Yuanyuan Liu | 6893976 | 2017-04-04 16:43:03 -0700 | [diff] [blame] | 40 | clocks = <&clock_gcc clk_aggre2_noc_clk>; |
| 41 | clock-names = "smmu_aggre2_noc_clk"; |
Yuanyuan Liu | 607051c | 2016-11-28 17:04:13 -0800 | [diff] [blame] | 42 | iommus = <&anoc2_smmu 0x1900>, |
| 43 | <&anoc2_smmu 0x1901>; |
| 44 | qcom,wlan-smmu-iova-address = <0 0x10000000>; |
| 45 | interrupts = |
| 46 | <0 130 0 /* CE0 */ >, |
| 47 | <0 131 0 /* CE1 */ >, |
| 48 | <0 132 0 /* CE2 */ >, |
| 49 | <0 133 0 /* CE3 */ >, |
| 50 | <0 134 0 /* CE4 */ >, |
| 51 | <0 135 0 /* CE5 */ >, |
| 52 | <0 136 0 /* CE6 */ >, |
| 53 | <0 137 0 /* CE7 */ >, |
| 54 | <0 138 0 /* CE8 */ >, |
| 55 | <0 139 0 /* CE9 */ >, |
| 56 | <0 140 0 /* CE10 */ >, |
| 57 | <0 141 0 /* CE11 */ >; |
| 58 | qcom,wlan-msa-memory = <0x200000>; |
Hardik Kantilal Patel | 420482e | 2017-05-05 16:57:48 +0530 | [diff] [blame] | 59 | qcom,wlan-msa-fixed-region = <&wlan_msa_mem>; |
Yuanyuan Liu | 6893976 | 2017-04-04 16:43:03 -0700 | [diff] [blame] | 60 | qcom,smmu-s1-bypass; |
| 61 | vdd-0.8-cx-mx-supply = <&pm8998_l5>; |
| 62 | qcom,vdd-0.8-cx-mx-config = <800000 800000 2400 1000>; |
Sameer Thalappil | 3c2c7bf | 2017-12-15 15:00:29 -0800 | [diff] [blame] | 63 | qcom,gpio-forced-fatal-error = <&smp2pgpio_wlan_1_in 0 0>; |
Yuanyuan Liu | 607051c | 2016-11-28 17:04:13 -0800 | [diff] [blame] | 64 | }; |