Qualcomm WCNSS
Schema identifier ($id): "http://devicetree.org/schemas/soc/qcom/qcom,wcnss.yaml#"
Schema dialect ($schema): "http://devicetree.org/meta-schemas/core.yaml#"
Maintainers (maintainers): "Andy Gross <agross@kernel.org>", "Bjorn Andersson <bjorn.andersson@linaro.org>"
The Qualcomm WCNSS hardware consists of control block and a BT, WiFi and FM radio block, all using SMD as command channels.
Properties and child nodes (properties) #
compatible — required here #
Exact value (const): "qcom,wcnss"
firmware-name — not listed as required here #
Shared schema rule ($ref): /schemas/types.yaml#/definitions/string
Default value (default): "wlan/prima/WCNSS_qcom_wlan_nv.bin"
Relative firmware image path for the WLAN NV blob.
qcom,mmio — required here #
Shared schema rule ($ref): /schemas/types.yaml#/definitions/phandle
Reference to a node specifying the wcnss "ccu" and "dxe" register blocks.
The node must be compatible with one of the following::
- qcom,riva"
- qcom,pronto"
qcom,smd-channels — required here #
Shared schema rule ($ref): /schemas/types.yaml#/definitions/string
Exact value (const): "WCNSS_CTRL"
Standard SMD property specifying the SMD channel used for communication with the WiFi firmware.
bluetooth — not listed as required here #
Value type (type): "object"
Properties not matched by properties or patternProperties in this schema (additionalProperties) #
false
Not allowed by this rule.
All of these rules must match (allOf) #
Rule 1
Shared schema rule (
$ref):/schemas/net/bluetooth/bluetooth-controller.yaml#
Properties and child nodes (properties) #
compatible — required here
Exact value (const): "qcom,wcnss-bt"
local-bd-address — not listed as required here
true — No constraints added by this property rule.
Required in this object (required): "compatible"
wifi — not listed as required here #
Properties not evaluated by applicable rules (unevaluatedProperties) #
false
Not allowed by this rule.
Value type (type): "object"
Properties and child nodes (properties) #
compatible — required here
Exact value (const): "qcom,wcnss-wlan"
interrupts — required here
Maximum number of items (maxItems): 2
interrupt-names — required here
Array item rules (items)
Item 1
Exact value (
const):"tx"
Item 2
Exact value (
const):"rx"
qcom,smem-states — required here
Shared schema rule ($ref): /schemas/types.yaml#/definitions/phandle-array
Maximum number of items (maxItems): 2
Should reference the tx-enable and tx-rings-empty SMEM states.
qcom,smem-state-names — required here
Array item rules (items)
Item 1
Exact value (
const):"tx-enable"
Item 2
Exact value (
const):"tx-rings-empty"
Names of SMEM states.
Required in this object (required): "compatible", "interrupts", "interrupt-names", "qcom,smem-states", "qcom,smem-state-names"
All of these rules must match (allOf) #
Rule 1
Shared schema rule (
$ref):/schemas/net/wireless/wireless-controller.yaml#
Required in this object (required): "compatible", "qcom,mmio", "qcom,smd-channels"
Properties not matched by properties or patternProperties in this schema (additionalProperties) #
false
Not allowed by this rule.
Examples (examples) #
#include <dt-bindings/interrupt-controller/arm-gic.h>
smd-edge {
interrupts = <GIC_SPI 142 IRQ_TYPE_EDGE_RISING>;
qcom,ipc = <&apcs 8 17>;
qcom,smd-edge = <6>;
qcom,remote-pid = <4>;
label = "pronto";
wcnss {
compatible = "qcom,wcnss";
qcom,smd-channels = "WCNSS_CTRL";
qcom,mmio = <&pronto>;
bluetooth {
compatible = "qcom,wcnss-bt";
/* Updated by boot firmware (little-endian order) */
local-bd-address = [ 00 00 00 00 00 00 ];
};
wifi {
compatible = "qcom,wcnss-wlan";
interrupts = <GIC_SPI 145 IRQ_TYPE_LEVEL_HIGH>,
<GIC_SPI 146 IRQ_TYPE_LEVEL_HIGH>;
interrupt-names = "tx", "rx";
qcom,smem-states = <&apps_smsm 10>, <&apps_smsm 9>;
qcom,smem-state-names = "tx-enable", "tx-rings-empty";
};
};
};
Source notes #
Annotations retained from the schema source
Line 1: SPDX-License-Identifier: GPL-2.0-only OR BSD-2-Clause