xref: /linux/Documentation/devicetree/bindings/net/wireless/qcom,ath11k.yaml (revision 3a2c4d55e32ad65efebdb6de44eef3bfa08bb49d)
1# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
2# Copyright (c) 2018-2019 The Linux Foundation. All rights reserved.
3%YAML 1.2
4---
5$id: http://devicetree.org/schemas/net/wireless/qcom,ath11k.yaml#
6$schema: http://devicetree.org/meta-schemas/core.yaml#
7
8title: Qualcomm Technologies ath11k wireless devices
9
10maintainers:
11  - Jeff Johnson <jjohnson@kernel.org>
12
13description: |
14  These are dt entries for Qualcomm Technologies, Inc. IEEE 802.11ax
15  devices, for example like AHB based IPQ8074.
16
17properties:
18  compatible:
19    enum:
20      - qcom,ipq8074-wifi
21      - qcom,ipq6018-wifi
22      - qcom,wcn6750-wifi
23      - qcom,ipq5018-wifi
24
25  reg:
26    maxItems: 1
27
28  interrupts:
29    minItems: 32
30    maxItems: 52
31
32  interrupt-names:
33    maxItems: 52
34
35  qcom,rproc:
36    $ref: /schemas/types.yaml#/definitions/phandle
37    description:
38      DT entry of q6v5-wcss remoteproc driver.
39      Phandle to a node that can contain the following properties
40        * compatible
41        * reg
42        * reg-names
43
44  qcom,calibration-variant:
45    $ref: /schemas/types.yaml#/definitions/string
46    description:
47      string to uniquely identify variant of the calibration data in the
48      board-2.bin for designs with colliding bus and device specific ids
49
50  qcom,ath11k-calibration-variant:
51    $ref: /schemas/types.yaml#/definitions/string
52    deprecated: true
53    description:
54      string to uniquely identify variant of the calibration data in the
55      board-2.bin for designs with colliding bus and device specific ids
56
57  memory-region:
58    minItems: 1
59    maxItems: 2
60    description:
61      phandle to a node describing reserved memory (System RAM memory)
62      used by ath11k firmware (see bindings/reserved-memory/reserved-memory.txt)
63
64  iommus:
65    minItems: 1
66    maxItems: 2
67
68  ieee80211-freq-limit: true
69
70  wifi-firmware:
71    type: object
72    description: |
73      WCN6750 wifi node can contain one optional firmware subnode.
74      Firmware subnode is needed when the platform does not have Trustzone.
75    required:
76      - iommus
77
78  qcom,smem-states:
79    $ref: /schemas/types.yaml#/definitions/phandle-array
80    description: State bits used by the AP to signal the WLAN Q6.
81    items:
82      - description: Signal bits used to enable/disable low power mode
83          on WCN6750 in the case of WoW (Wake on Wireless).
84        items:
85          - description: Phandle to the Shared Memory Point 2 Point device
86              handling the communication with a remote processor
87          - description: Single bit index to toggle in the value sent to
88              the remote processor
89            maximum: 32
90
91  qcom,smem-state-names:
92    description: The names of the state bits used for SMP2P output.
93    items:
94      - const: wlan-smp2p-out
95
96required:
97  - compatible
98  - reg
99  - interrupts
100  - qcom,rproc
101
102additionalProperties: false
103
104allOf:
105  - $ref: ieee80211.yaml#
106  - if:
107      properties:
108        compatible:
109          contains:
110            enum:
111              - qcom,ipq8074-wifi
112              - qcom,ipq6018-wifi
113    then:
114      properties:
115        interrupts:
116          items:
117            - description: misc-pulse1 interrupt events
118            - description: misc-latch interrupt events
119            - description: sw exception interrupt events
120            - description: watchdog interrupt events
121            - description: interrupt event for ring CE0
122            - description: interrupt event for ring CE1
123            - description: interrupt event for ring CE2
124            - description: interrupt event for ring CE3
125            - description: interrupt event for ring CE4
126            - description: interrupt event for ring CE5
127            - description: interrupt event for ring CE6
128            - description: interrupt event for ring CE7
129            - description: interrupt event for ring CE8
130            - description: interrupt event for ring CE9
131            - description: interrupt event for ring CE10
132            - description: interrupt event for ring CE11
133            - description: interrupt event for ring host2wbm-desc-feed
134            - description: interrupt event for ring host2reo-re-injection
135            - description: interrupt event for ring host2reo-command
136            - description: interrupt event for ring host2rxdma-monitor-ring3
137            - description: interrupt event for ring host2rxdma-monitor-ring2
138            - description: interrupt event for ring host2rxdma-monitor-ring1
139            - description: interrupt event for ring reo2ost-exception
140            - description: interrupt event for ring wbm2host-rx-release
141            - description: interrupt event for ring reo2host-status
142            - description: interrupt event for ring reo2host-destination-ring4
143            - description: interrupt event for ring reo2host-destination-ring3
144            - description: interrupt event for ring reo2host-destination-ring2
145            - description: interrupt event for ring reo2host-destination-ring1
146            - description: interrupt event for ring rxdma2host-monitor-destination-mac3
147            - description: interrupt event for ring rxdma2host-monitor-destination-mac2
148            - description: interrupt event for ring rxdma2host-monitor-destination-mac1
149            - description: interrupt event for ring ppdu-end-interrupts-mac3
150            - description: interrupt event for ring ppdu-end-interrupts-mac2
151            - description: interrupt event for ring ppdu-end-interrupts-mac1
152            - description: interrupt event for ring rxdma2host-monitor-status-ring-mac3
153            - description: interrupt event for ring rxdma2host-monitor-status-ring-mac2
154            - description: interrupt event for ring rxdma2host-monitor-status-ring-mac1
155            - description: interrupt event for ring host2rxdma-host-buf-ring-mac3
156            - description: interrupt event for ring host2rxdma-host-buf-ring-mac2
157            - description: interrupt event for ring host2rxdma-host-buf-ring-mac1
158            - description: interrupt event for ring rxdma2host-destination-ring-mac3
159            - description: interrupt event for ring rxdma2host-destination-ring-mac2
160            - description: interrupt event for ring rxdma2host-destination-ring-mac1
161            - description: interrupt event for ring host2tcl-input-ring4
162            - description: interrupt event for ring host2tcl-input-ring3
163            - description: interrupt event for ring host2tcl-input-ring2
164            - description: interrupt event for ring host2tcl-input-ring1
165            - description: interrupt event for ring wbm2host-tx-completions-ring3
166            - description: interrupt event for ring wbm2host-tx-completions-ring2
167            - description: interrupt event for ring wbm2host-tx-completions-ring1
168            - description: interrupt event for ring tcl2host-status-ring
169        interrupt-names:
170          items:
171            - const: misc-pulse1
172            - const: misc-latch
173            - const: sw-exception
174            - const: watchdog
175            - const: ce0
176            - const: ce1
177            - const: ce2
178            - const: ce3
179            - const: ce4
180            - const: ce5
181            - const: ce6
182            - const: ce7
183            - const: ce8
184            - const: ce9
185            - const: ce10
186            - const: ce11
187            - const: host2wbm-desc-feed
188            - const: host2reo-re-injection
189            - const: host2reo-command
190            - const: host2rxdma-monitor-ring3
191            - const: host2rxdma-monitor-ring2
192            - const: host2rxdma-monitor-ring1
193            - const: reo2ost-exception
194            - const: wbm2host-rx-release
195            - const: reo2host-status
196            - const: reo2host-destination-ring4
197            - const: reo2host-destination-ring3
198            - const: reo2host-destination-ring2
199            - const: reo2host-destination-ring1
200            - const: rxdma2host-monitor-destination-mac3
201            - const: rxdma2host-monitor-destination-mac2
202            - const: rxdma2host-monitor-destination-mac1
203            - const: ppdu-end-interrupts-mac3
204            - const: ppdu-end-interrupts-mac2
205            - const: ppdu-end-interrupts-mac1
206            - const: rxdma2host-monitor-status-ring-mac3
207            - const: rxdma2host-monitor-status-ring-mac2
208            - const: rxdma2host-monitor-status-ring-mac1
209            - const: host2rxdma-host-buf-ring-mac3
210            - const: host2rxdma-host-buf-ring-mac2
211            - const: host2rxdma-host-buf-ring-mac1
212            - const: rxdma2host-destination-ring-mac3
213            - const: rxdma2host-destination-ring-mac2
214            - const: rxdma2host-destination-ring-mac1
215            - const: host2tcl-input-ring4
216            - const: host2tcl-input-ring3
217            - const: host2tcl-input-ring2
218            - const: host2tcl-input-ring1
219            - const: wbm2host-tx-completions-ring3
220            - const: wbm2host-tx-completions-ring2
221            - const: wbm2host-tx-completions-ring1
222            - const: tcl2host-status-ring
223      required:
224        - interrupt-names
225
226  - if:
227      properties:
228        compatible:
229          contains:
230            enum:
231              - qcom,wcn6750-wifi
232    then:
233      properties:
234        interrupts:
235          items:
236            - description: interrupt event for ring CE1
237            - description: interrupt event for ring CE2
238            - description: interrupt event for ring CE3
239            - description: interrupt event for ring CE4
240            - description: interrupt event for ring CE5
241            - description: interrupt event for ring CE6
242            - description: interrupt event for ring CE7
243            - description: interrupt event for ring CE8
244            - description: interrupt event for ring CE9
245            - description: interrupt event for ring CE10
246            - description: interrupt event for ring DP1
247            - description: interrupt event for ring DP2
248            - description: interrupt event for ring DP3
249            - description: interrupt event for ring DP4
250            - description: interrupt event for ring DP5
251            - description: interrupt event for ring DP6
252            - description: interrupt event for ring DP7
253            - description: interrupt event for ring DP8
254            - description: interrupt event for ring DP9
255            - description: interrupt event for ring DP10
256            - description: interrupt event for ring DP11
257            - description: interrupt event for ring DP12
258            - description: interrupt event for ring DP13
259            - description: interrupt event for ring DP14
260            - description: interrupt event for ring DP15
261            - description: interrupt event for ring DP16
262            - description: interrupt event for ring DP17
263            - description: interrupt event for ring DP18
264            - description: interrupt event for ring DP19
265            - description: interrupt event for ring DP20
266            - description: interrupt event for ring DP21
267            - description: interrupt event for ring DP22
268
269examples:
270  - |
271    wifi0: wifi@c000000 {
272        compatible = "qcom,ipq8074-wifi";
273        reg = <0xc000000 0x2000000>;
274        interrupts = <0 320 1>,
275                     <0 319 1>,
276                     <0 318 1>,
277                     <0 317 1>,
278                     <0 316 1>,
279                     <0 315 1>,
280                     <0 314 1>,
281                     <0 311 1>,
282                     <0 310 1>,
283                     <0 411 1>,
284                     <0 410 1>,
285                     <0 40 1>,
286                     <0 39 1>,
287                     <0 302 1>,
288                     <0 301 1>,
289                     <0 37 1>,
290                     <0 36 1>,
291                     <0 296 1>,
292                     <0 295 1>,
293                     <0 294 1>,
294                     <0 293 1>,
295                     <0 292 1>,
296                     <0 291 1>,
297                     <0 290 1>,
298                     <0 289 1>,
299                     <0 288 1>,
300                     <0 239 1>,
301                     <0 236 1>,
302                     <0 235 1>,
303                     <0 234 1>,
304                     <0 233 1>,
305                     <0 232 1>,
306                     <0 231 1>,
307                     <0 230 1>,
308                     <0 229 1>,
309                     <0 228 1>,
310                     <0 224 1>,
311                     <0 223 1>,
312                     <0 203 1>,
313                     <0 183 1>,
314                     <0 180 1>,
315                     <0 179 1>,
316                     <0 178 1>,
317                     <0 177 1>,
318                     <0 176 1>,
319                     <0 163 1>,
320                     <0 162 1>,
321                     <0 160 1>,
322                     <0 159 1>,
323                     <0 158 1>,
324                     <0 157 1>,
325                     <0 156 1>;
326        interrupt-names = "misc-pulse1",
327                          "misc-latch",
328                          "sw-exception",
329                          "watchdog",
330                          "ce0",
331                          "ce1",
332                          "ce2",
333                          "ce3",
334                          "ce4",
335                          "ce5",
336                          "ce6",
337                          "ce7",
338                          "ce8",
339                          "ce9",
340                          "ce10",
341                          "ce11",
342                          "host2wbm-desc-feed",
343                          "host2reo-re-injection",
344                          "host2reo-command",
345                          "host2rxdma-monitor-ring3",
346                          "host2rxdma-monitor-ring2",
347                          "host2rxdma-monitor-ring1",
348                          "reo2ost-exception",
349                          "wbm2host-rx-release",
350                          "reo2host-status",
351                          "reo2host-destination-ring4",
352                          "reo2host-destination-ring3",
353                          "reo2host-destination-ring2",
354                          "reo2host-destination-ring1",
355                          "rxdma2host-monitor-destination-mac3",
356                          "rxdma2host-monitor-destination-mac2",
357                          "rxdma2host-monitor-destination-mac1",
358                          "ppdu-end-interrupts-mac3",
359                          "ppdu-end-interrupts-mac2",
360                          "ppdu-end-interrupts-mac1",
361                          "rxdma2host-monitor-status-ring-mac3",
362                          "rxdma2host-monitor-status-ring-mac2",
363                          "rxdma2host-monitor-status-ring-mac1",
364                          "host2rxdma-host-buf-ring-mac3",
365                          "host2rxdma-host-buf-ring-mac2",
366                          "host2rxdma-host-buf-ring-mac1",
367                          "rxdma2host-destination-ring-mac3",
368                          "rxdma2host-destination-ring-mac2",
369                          "rxdma2host-destination-ring-mac1",
370                          "host2tcl-input-ring4",
371                          "host2tcl-input-ring3",
372                          "host2tcl-input-ring2",
373                          "host2tcl-input-ring1",
374                          "wbm2host-tx-completions-ring3",
375                          "wbm2host-tx-completions-ring2",
376                          "wbm2host-tx-completions-ring1",
377                          "tcl2host-status-ring";
378        qcom,rproc = <&q6v5_wcss>;
379    };
380
381  - |
382
383    reserved-memory {
384        #address-cells = <2>;
385        #size-cells = <2>;
386
387        qcn9074_0: wifi@51100000 {
388            no-map;
389            reg = <0x0 0x51100000 0x0 0x03500000>;
390        };
391    };
392
393    pci {
394        pcie0 {
395            #size-cells = <2>;
396            #address-cells = <3>;
397
398            wifi_0: wifi@0 {
399                reg = <0 0 0 0 0>;
400                memory-region = <&qcn9074_0>;
401            };
402        };
403    };
404
405  - |
406    #include <dt-bindings/interrupt-controller/arm-gic.h>
407
408    reserved-memory {
409        #address-cells = <2>;
410        #size-cells = <2>;
411
412        wlan_ce_mem: memory@4cd000 {
413            no-map;
414            reg = <0x0 0x004cd000 0x0 0x1000>;
415        };
416
417        wlan_fw_mem: memory@80c00000 {
418            no-map;
419            reg = <0x0 0x80c00000 0x0 0xc00000>;
420        };
421    };
422
423    wifi: wifi@17a10040 {
424        compatible = "qcom,wcn6750-wifi";
425        reg = <0x17a10040 0x0>;
426        iommus = <&apps_smmu 0x1c00 0x1>;
427        interrupts = <GIC_SPI 768 IRQ_TYPE_EDGE_RISING>,
428                     <GIC_SPI 769 IRQ_TYPE_EDGE_RISING>,
429                     <GIC_SPI 770 IRQ_TYPE_EDGE_RISING>,
430                     <GIC_SPI 771 IRQ_TYPE_EDGE_RISING>,
431                     <GIC_SPI 772 IRQ_TYPE_EDGE_RISING>,
432                     <GIC_SPI 773 IRQ_TYPE_EDGE_RISING>,
433                     <GIC_SPI 774 IRQ_TYPE_EDGE_RISING>,
434                     <GIC_SPI 775 IRQ_TYPE_EDGE_RISING>,
435                     <GIC_SPI 776 IRQ_TYPE_EDGE_RISING>,
436                     <GIC_SPI 777 IRQ_TYPE_EDGE_RISING>,
437                     <GIC_SPI 778 IRQ_TYPE_EDGE_RISING>,
438                     <GIC_SPI 779 IRQ_TYPE_EDGE_RISING>,
439                     <GIC_SPI 780 IRQ_TYPE_EDGE_RISING>,
440                     <GIC_SPI 781 IRQ_TYPE_EDGE_RISING>,
441                     <GIC_SPI 782 IRQ_TYPE_EDGE_RISING>,
442                     <GIC_SPI 783 IRQ_TYPE_EDGE_RISING>,
443                     <GIC_SPI 784 IRQ_TYPE_EDGE_RISING>,
444                     <GIC_SPI 785 IRQ_TYPE_EDGE_RISING>,
445                     <GIC_SPI 786 IRQ_TYPE_EDGE_RISING>,
446                     <GIC_SPI 787 IRQ_TYPE_EDGE_RISING>,
447                     <GIC_SPI 788 IRQ_TYPE_EDGE_RISING>,
448                     <GIC_SPI 789 IRQ_TYPE_EDGE_RISING>,
449                     <GIC_SPI 790 IRQ_TYPE_EDGE_RISING>,
450                     <GIC_SPI 791 IRQ_TYPE_EDGE_RISING>,
451                     <GIC_SPI 792 IRQ_TYPE_EDGE_RISING>,
452                     <GIC_SPI 793 IRQ_TYPE_EDGE_RISING>,
453                     <GIC_SPI 794 IRQ_TYPE_EDGE_RISING>,
454                     <GIC_SPI 795 IRQ_TYPE_EDGE_RISING>,
455                     <GIC_SPI 796 IRQ_TYPE_EDGE_RISING>,
456                     <GIC_SPI 797 IRQ_TYPE_EDGE_RISING>,
457                     <GIC_SPI 798 IRQ_TYPE_EDGE_RISING>,
458                     <GIC_SPI 799 IRQ_TYPE_EDGE_RISING>;
459        qcom,rproc = <&remoteproc_wpss>;
460        memory-region = <&wlan_fw_mem>, <&wlan_ce_mem>;
461        qcom,smem-states = <&wlan_smp2p_out 0>;
462        qcom,smem-state-names = "wlan-smp2p-out";
463        wifi-firmware {
464            iommus = <&apps_smmu 0x1c02 0x1>;
465        };
466    };
467