| 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 |
|
| 8 |
title: Qualcomm Technologies ath11k wireless devices |
| 9 |
|
| 10 |
maintainers: |
| 11 |
- Jeff Johnson <[email protected]> |
| 12 |
|
| 13 |
description: | |
| 14 |
These are dt entries for Qualcomm Technologies, Inc. IEEE 802.11ax |
| 15 |
devices, for example like AHB based IPQ8074. |
| 16 |
|
| 17 |
properties: |
| 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 |
|
| 85 |
qcom,smem-state-names: |
| 86 |
description: The names of the state bits used for SMP2P output. |
| 87 |
items: |
| 88 |
- const: wlan-smp2p-out |
| 89 |
|
| 90 |
required: |
| 91 |
- compatible |
| 92 |
- reg |
| 93 |
- interrupts |
| 94 |
- qcom,rproc |
| 95 |
|
| 96 |
additionalProperties: false |
| 97 |
|
| 98 |
allOf: |
| 99 |
- $ref: ieee80211.yaml# |
| 100 |
- if: |
| 101 |
properties: |
| 102 |
compatible: |
| 103 |
contains: |
| 104 |
enum: |
| 105 |
- qcom,ipq8074-wifi |
| 106 |
- qcom,ipq6018-wifi |
| 107 |
then: |
| 108 |
properties: |
| 109 |
interrupts: |
| 110 |
items: |
| 111 |
- description: misc-pulse1 interrupt events |
| 112 |
- description: misc-latch interrupt events |
| 113 |
- description: sw exception interrupt events |
| 114 |
- description: watchdog interrupt events |
| 115 |
- description: interrupt event for ring CE0 |
| 116 |
- description: interrupt event for ring CE1 |
| 117 |
- description: interrupt event for ring CE2 |
| 118 |
- description: interrupt event for ring CE3 |
| 119 |
- description: interrupt event for ring CE4 |
| 120 |
- description: interrupt event for ring CE5 |
| 121 |
- description: interrupt event for ring CE6 |
| 122 |
- description: interrupt event for ring CE7 |
| 123 |
- description: interrupt event for ring CE8 |
| 124 |
- description: interrupt event for ring CE9 |
| 125 |
- description: interrupt event for ring CE10 |
| 126 |
- description: interrupt event for ring CE11 |
| 127 |
- description: interrupt event for ring host2wbm-desc-feed |
| 128 |
- description: interrupt event for ring host2reo-re-injection |
| 129 |
- description: interrupt event for ring host2reo-command |
| 130 |
- description: interrupt event for ring host2rxdma-monitor-ring3 |
| 131 |
- description: interrupt event for ring host2rxdma-monitor-ring2 |
| 132 |
- description: interrupt event for ring host2rxdma-monitor-ring1 |
| 133 |
- description: interrupt event for ring reo2ost-exception |
| 134 |
- description: interrupt event for ring wbm2host-rx-release |
| 135 |
- description: interrupt event for ring reo2host-status |
| 136 |
- description: interrupt event for ring reo2host-destination-ring4 |
| 137 |
- description: interrupt event for ring reo2host-destination-ring3 |
| 138 |
- description: interrupt event for ring reo2host-destination-ring2 |
| 139 |
- description: interrupt event for ring reo2host-destination-ring1 |
| 140 |
- description: interrupt event for ring rxdma2host-monitor-destination-mac3 |
| 141 |
- description: interrupt event for ring rxdma2host-monitor-destination-mac2 |
| 142 |
- description: interrupt event for ring rxdma2host-monitor-destination-mac1 |
| 143 |
- description: interrupt event for ring ppdu-end-interrupts-mac3 |
| 144 |
- description: interrupt event for ring ppdu-end-interrupts-mac2 |
| 145 |
- description: interrupt event for ring ppdu-end-interrupts-mac1 |
| 146 |
- description: interrupt event for ring rxdma2host-monitor-status-ring-mac3 |
| 147 |
- description: interrupt event for ring rxdma2host-monitor-status-ring-mac2 |
| 148 |
- description: interrupt event for ring rxdma2host-monitor-status-ring-mac1 |
| 149 |
- description: interrupt event for ring host2rxdma-host-buf-ring-mac3 |
| 150 |
- description: interrupt event for ring host2rxdma-host-buf-ring-mac2 |
| 151 |
- description: interrupt event for ring host2rxdma-host-buf-ring-mac1 |
| 152 |
- description: interrupt event for ring rxdma2host-destination-ring-mac3 |
| 153 |
- description: interrupt event for ring rxdma2host-destination-ring-mac2 |
| 154 |
- description: interrupt event for ring rxdma2host-destination-ring-mac1 |
| 155 |
- description: interrupt event for ring host2tcl-input-ring4 |
| 156 |
- description: interrupt event for ring host2tcl-input-ring3 |
| 157 |
- description: interrupt event for ring host2tcl-input-ring2 |
| 158 |
- description: interrupt event for ring host2tcl-input-ring1 |
| 159 |
- description: interrupt event for ring wbm2host-tx-completions-ring3 |
| 160 |
- description: interrupt event for ring wbm2host-tx-completions-ring2 |
| 161 |
- description: interrupt event for ring wbm2host-tx-completions-ring1 |
| 162 |
- description: interrupt event for ring tcl2host-status-ring |
| 163 |
interrupt-names: |
| 164 |
items: |
| 165 |
- const: misc-pulse1 |
| 166 |
- const: misc-latch |
| 167 |
- const: sw-exception |
| 168 |
- const: watchdog |
| 169 |
- const: ce0 |
| 170 |
- const: ce1 |
| 171 |
- const: ce2 |
| 172 |
- const: ce3 |
| 173 |
- const: ce4 |
| 174 |
- const: ce5 |
| 175 |
- const: ce6 |
| 176 |
- const: ce7 |
| 177 |
- const: ce8 |
| 178 |
- const: ce9 |
| 179 |
- const: ce10 |
| 180 |
- const: ce11 |
| 181 |
- const: host2wbm-desc-feed |
| 182 |
- const: host2reo-re-injection |
| 183 |
- const: host2reo-command |
| 184 |
- const: host2rxdma-monitor-ring3 |
| 185 |
- const: host2rxdma-monitor-ring2 |
| 186 |
- const: host2rxdma-monitor-ring1 |
| 187 |
- const: reo2ost-exception |
| 188 |
- const: wbm2host-rx-release |
| 189 |
- const: reo2host-status |
| 190 |
- const: reo2host-destination-ring4 |
| 191 |
- const: reo2host-destination-ring3 |
| 192 |
- const: reo2host-destination-ring2 |
| 193 |
- const: reo2host-destination-ring1 |
| 194 |
- const: rxdma2host-monitor-destination-mac3 |
| 195 |
- const: rxdma2host-monitor-destination-mac2 |
| 196 |
- const: rxdma2host-monitor-destination-mac1 |
| 197 |
- const: ppdu-end-interrupts-mac3 |
| 198 |
- const: ppdu-end-interrupts-mac2 |
| 199 |
- const: ppdu-end-interrupts-mac1 |
| 200 |
- const: rxdma2host-monitor-status-ring-mac3 |
| 201 |
- const: rxdma2host-monitor-status-ring-mac2 |
| 202 |
- const: rxdma2host-monitor-status-ring-mac1 |
| 203 |
- const: host2rxdma-host-buf-ring-mac3 |
| 204 |
- const: host2rxdma-host-buf-ring-mac2 |
| 205 |
- const: host2rxdma-host-buf-ring-mac1 |
| 206 |
- const: rxdma2host-destination-ring-mac3 |
| 207 |
- const: rxdma2host-destination-ring-mac2 |
| 208 |
- const: rxdma2host-destination-ring-mac1 |
| 209 |
- const: host2tcl-input-ring4 |
| 210 |
- const: host2tcl-input-ring3 |
| 211 |
- const: host2tcl-input-ring2 |
| 212 |
- const: host2tcl-input-ring1 |
| 213 |
- const: wbm2host-tx-completions-ring3 |
| 214 |
- const: wbm2host-tx-completions-ring2 |
| 215 |
- const: wbm2host-tx-completions-ring1 |
| 216 |
- const: tcl2host-status-ring |
| 217 |
required: |
| 218 |
- interrupt-names |
| 219 |
|
| 220 |
- if: |
| 221 |
properties: |
| 222 |
compatible: |
| 223 |
contains: |
| 224 |
enum: |
| 225 |
- qcom,wcn6750-wifi |
| 226 |
then: |
| 227 |
properties: |
| 228 |
interrupts: |
| 229 |
items: |
| 230 |
- description: interrupt event for ring CE1 |
| 231 |
- description: interrupt event for ring CE2 |
| 232 |
- description: interrupt event for ring CE3 |
| 233 |
- description: interrupt event for ring CE4 |
| 234 |
- description: interrupt event for ring CE5 |
| 235 |
- description: interrupt event for ring CE6 |
| 236 |
- description: interrupt event for ring CE7 |
| 237 |
- description: interrupt event for ring CE8 |
| 238 |
- description: interrupt event for ring CE9 |
| 239 |
- description: interrupt event for ring CE10 |
| 240 |
- description: interrupt event for ring DP1 |
| 241 |
- description: interrupt event for ring DP2 |
| 242 |
- description: interrupt event for ring DP3 |
| 243 |
- description: interrupt event for ring DP4 |
| 244 |
- description: interrupt event for ring DP5 |
| 245 |
- description: interrupt event for ring DP6 |
| 246 |
- description: interrupt event for ring DP7 |
| 247 |
- description: interrupt event for ring DP8 |
| 248 |
- description: interrupt event for ring DP9 |
| 249 |
- description: interrupt event for ring DP10 |
| 250 |
- description: interrupt event for ring DP11 |
| 251 |
- description: interrupt event for ring DP12 |
| 252 |
- description: interrupt event for ring DP13 |
| 253 |
- description: interrupt event for ring DP14 |
| 254 |
- description: interrupt event for ring DP15 |
| 255 |
- description: interrupt event for ring DP16 |
| 256 |
- description: interrupt event for ring DP17 |
| 257 |
- description: interrupt event for ring DP18 |
| 258 |
- description: interrupt event for ring DP19 |
| 259 |
- description: interrupt event for ring DP20 |
| 260 |
- description: interrupt event for ring DP21 |
| 261 |
- description: interrupt event for ring DP22 |
| 262 |
|
| 263 |
examples: |
| 264 |
- | |
| 265 |
wifi0: wifi@c000000 { |
| 266 |
compatible = "qcom,ipq8074-wifi"; |
| 267 |
reg = <0xc000000 0x2000000>; |
| 268 |
interrupts = <0 320 1>, |
| 269 |
<0 319 1>, |
| 270 |
<0 318 1>, |
| 271 |
<0 317 1>, |
| 272 |
<0 316 1>, |
| 273 |
<0 315 1>, |
| 274 |
<0 314 1>, |
| 275 |
<0 311 1>, |
| 276 |
<0 310 1>, |
| 277 |
<0 411 1>, |
| 278 |
<0 410 1>, |
| 279 |
<0 40 1>, |
| 280 |
<0 39 1>, |
| 281 |
<0 302 1>, |
| 282 |
<0 301 1>, |
| 283 |
<0 37 1>, |
| 284 |
<0 36 1>, |
| 285 |
<0 296 1>, |
| 286 |
<0 295 1>, |
| 287 |
<0 294 1>, |
| 288 |
<0 293 1>, |
| 289 |
<0 292 1>, |
| 290 |
<0 291 1>, |
| 291 |
<0 290 1>, |
| 292 |
<0 289 1>, |
| 293 |
<0 288 1>, |
| 294 |
<0 239 1>, |
| 295 |
<0 236 1>, |
| 296 |
<0 235 1>, |
| 297 |
<0 234 1>, |
| 298 |
<0 233 1>, |
| 299 |
<0 232 1>, |
| 300 |
<0 231 1>, |
| 301 |
<0 230 1>, |
| 302 |
<0 229 1>, |
| 303 |
<0 228 1>, |
| 304 |
<0 224 1>, |
| 305 |
<0 223 1>, |
| 306 |
<0 203 1>, |
| 307 |
<0 183 1>, |
| 308 |
<0 180 1>, |
| 309 |
<0 179 1>, |
| 310 |
<0 178 1>, |
| 311 |
<0 177 1>, |
| 312 |
<0 176 1>, |
| 313 |
<0 163 1>, |
| 314 |
<0 162 1>, |
| 315 |
<0 160 1>, |
| 316 |
<0 159 1>, |
| 317 |
<0 158 1>, |
| 318 |
<0 157 1>, |
| 319 |
<0 156 1>; |
| 320 |
interrupt-names = "misc-pulse1", |
| 321 |
"misc-latch", |
| 322 |
"sw-exception", |
| 323 |
"watchdog", |
| 324 |
"ce0", |
| 325 |
"ce1", |
| 326 |
"ce2", |
| 327 |
"ce3", |
| 328 |
"ce4", |
| 329 |
"ce5", |
| 330 |
"ce6", |
| 331 |
"ce7", |
| 332 |
"ce8", |
| 333 |
"ce9", |
| 334 |
"ce10", |
| 335 |
"ce11", |
| 336 |
"host2wbm-desc-feed", |
| 337 |
"host2reo-re-injection", |
| 338 |
"host2reo-command", |
| 339 |
"host2rxdma-monitor-ring3", |
| 340 |
"host2rxdma-monitor-ring2", |
| 341 |
"host2rxdma-monitor-ring1", |
| 342 |
"reo2ost-exception", |
| 343 |
"wbm2host-rx-release", |
| 344 |
"reo2host-status", |
| 345 |
"reo2host-destination-ring4", |
| 346 |
"reo2host-destination-ring3", |
| 347 |
"reo2host-destination-ring2", |
| 348 |
"reo2host-destination-ring1", |
| 349 |
"rxdma2host-monitor-destination-mac3", |
| 350 |
"rxdma2host-monitor-destination-mac2", |
| 351 |
"rxdma2host-monitor-destination-mac1", |
| 352 |
"ppdu-end-interrupts-mac3", |
| 353 |
"ppdu-end-interrupts-mac2", |
| 354 |
"ppdu-end-interrupts-mac1", |
| 355 |
"rxdma2host-monitor-status-ring-mac3", |
| 356 |
"rxdma2host-monitor-status-ring-mac2", |
| 357 |
"rxdma2host-monitor-status-ring-mac1", |
| 358 |
"host2rxdma-host-buf-ring-mac3", |
| 359 |
"host2rxdma-host-buf-ring-mac2", |
| 360 |
"host2rxdma-host-buf-ring-mac1", |
| 361 |
"rxdma2host-destination-ring-mac3", |
| 362 |
"rxdma2host-destination-ring-mac2", |
| 363 |
"rxdma2host-destination-ring-mac1", |
| 364 |
"host2tcl-input-ring4", |
| 365 |
"host2tcl-input-ring3", |
| 366 |
"host2tcl-input-ring2", |
| 367 |
"host2tcl-input-ring1", |
| 368 |
"wbm2host-tx-completions-ring3", |
| 369 |
"wbm2host-tx-completions-ring2", |
| 370 |
"wbm2host-tx-completions-ring1", |
| 371 |
"tcl2host-status-ring"; |
| 372 |
qcom,rproc = <&q6v5_wcss>; |
| 373 |
}; |
| 374 |
|
| 375 |
- | |
| 376 |
|
| 377 |
reserved-memory { |
| 378 |
#address-cells = <2>; |
| 379 |
#size-cells = <2>; |
| 380 |
|
| 381 |
qcn9074_0: wifi@51100000 { |
| 382 |
no-map; |
| 383 |
reg = <0x0 0x51100000 0x0 0x03500000>; |
| 384 |
}; |
| 385 |
}; |
| 386 |
|
| 387 |
pci { |
| 388 |
pcie0 { |
| 389 |
#size-cells = <2>; |
| 390 |
#address-cells = <3>; |
| 391 |
|
| 392 |
wifi_0: wifi@0 { |
| 393 |
reg = <0 0 0 0 0>; |
| 394 |
memory-region = <&qcn9074_0>; |
| 395 |
}; |
| 396 |
}; |
| 397 |
}; |
| 398 |
|
| 399 |
- | |
| 400 |
#include <dt-bindings/interrupt-controller/arm-gic.h> |
| 401 |
|
| 402 |
reserved-memory { |
| 403 |
#address-cells = <2>; |
| 404 |
#size-cells = <2>; |
| 405 |
|
| 406 |
wlan_ce_mem: memory@4cd000 { |
| 407 |
no-map; |
| 408 |
reg = <0x0 0x004cd000 0x0 0x1000>; |
| 409 |
}; |
| 410 |
|
| 411 |
wlan_fw_mem: memory@80c00000 { |
| 412 |
no-map; |
| 413 |
reg = <0x0 0x80c00000 0x0 0xc00000>; |
| 414 |
}; |
| 415 |
}; |
| 416 |
|
| 417 |
wifi: wifi@17a10040 { |
| 418 |
compatible = "qcom,wcn6750-wifi"; |
| 419 |
reg = <0x17a10040 0x0>; |
| 420 |
iommus = <&apps_smmu 0x1c00 0x1>; |
| 421 |
interrupts = <GIC_SPI 768 IRQ_TYPE_EDGE_RISING>, |
| 422 |
<GIC_SPI 769 IRQ_TYPE_EDGE_RISING>, |
| 423 |
<GIC_SPI 770 IRQ_TYPE_EDGE_RISING>, |
| 424 |
<GIC_SPI 771 IRQ_TYPE_EDGE_RISING>, |
| 425 |
<GIC_SPI 772 IRQ_TYPE_EDGE_RISING>, |
| 426 |
<GIC_SPI 773 IRQ_TYPE_EDGE_RISING>, |
| 427 |
<GIC_SPI 774 IRQ_TYPE_EDGE_RISING>, |
| 428 |
<GIC_SPI 775 IRQ_TYPE_EDGE_RISING>, |
| 429 |
<GIC_SPI 776 IRQ_TYPE_EDGE_RISING>, |
| 430 |
<GIC_SPI 777 IRQ_TYPE_EDGE_RISING>, |
| 431 |
<GIC_SPI 778 IRQ_TYPE_EDGE_RISING>, |
| 432 |
<GIC_SPI 779 IRQ_TYPE_EDGE_RISING>, |
| 433 |
<GIC_SPI 780 IRQ_TYPE_EDGE_RISING>, |
| 434 |
<GIC_SPI 781 IRQ_TYPE_EDGE_RISING>, |
| 435 |
<GIC_SPI 782 IRQ_TYPE_EDGE_RISING>, |
| 436 |
<GIC_SPI 783 IRQ_TYPE_EDGE_RISING>, |
| 437 |
<GIC_SPI 784 IRQ_TYPE_EDGE_RISING>, |
| 438 |
<GIC_SPI 785 IRQ_TYPE_EDGE_RISING>, |
| 439 |
<GIC_SPI 786 IRQ_TYPE_EDGE_RISING>, |
| 440 |
<GIC_SPI 787 IRQ_TYPE_EDGE_RISING>, |
| 441 |
<GIC_SPI 788 IRQ_TYPE_EDGE_RISING>, |
| 442 |
<GIC_SPI 789 IRQ_TYPE_EDGE_RISING>, |
| 443 |
<GIC_SPI 790 IRQ_TYPE_EDGE_RISING>, |
| 444 |
<GIC_SPI 791 IRQ_TYPE_EDGE_RISING>, |
| 445 |
<GIC_SPI 792 IRQ_TYPE_EDGE_RISING>, |
| 446 |
<GIC_SPI 793 IRQ_TYPE_EDGE_RISING>, |
| 447 |
<GIC_SPI 794 IRQ_TYPE_EDGE_RISING>, |
| 448 |
<GIC_SPI 795 IRQ_TYPE_EDGE_RISING>, |
| 449 |
<GIC_SPI 796 IRQ_TYPE_EDGE_RISING>, |
| 450 |
<GIC_SPI 797 IRQ_TYPE_EDGE_RISING>, |
| 451 |
<GIC_SPI 798 IRQ_TYPE_EDGE_RISING>, |
| 452 |
<GIC_SPI 799 IRQ_TYPE_EDGE_RISING>; |
| 453 |
qcom,rproc = <&remoteproc_wpss>; |
| 454 |
memory-region = <&wlan_fw_mem>, <&wlan_ce_mem>; |
| 455 |
qcom,smem-states = <&wlan_smp2p_out 0>; |
| 456 |
qcom,smem-state-names = "wlan-smp2p-out"; |
| 457 |
wifi-firmware { |
| 458 |
iommus = <&apps_smmu 0x1c02 0x1>; |
| 459 |
}; |
| 460 |
}; |