Qualcomm WCNSS Peripheral Image Loader
Schema identifier ($id): "http://devicetree.org/schemas/remoteproc/qcom,wcnss-pil.yaml#"
Schema dialect ($schema): "http://devicetree.org/meta-schemas/core.yaml#"
Maintainers (maintainers): "Bjorn Andersson <andersson@kernel.org>"
This document defines the binding for a component that loads and boots firmware on the Qualcomm WCNSS core.
Properties and child nodes (properties) #
compatible — required here #
Append "qcom,pronto" if the device is actually pronto, and not riva
Exactly one of these rules must match (oneOf) #
Rule 1
Array item rules (
items)Item 1
Allowed values (
enum):"qcom,pronto-v1-pil","qcom,pronto-v2-pil","qcom,pronto-v3-pil"Item 2
Exact value (
const):"qcom,pronto"
Rule 2
Exact value (
const):"qcom,riva-pil"
reg — required here #
Maximum number of items (maxItems): 3
The base address and size of the CCU, DXE and PMU register blocks
reg-names — required here #
Array item rules (items) #
Item 1
Exact value (
const):"ccu"
Item 2
Exact value (
const):"dxe"
Item 3
Exact value (
const):"pmu"
interrupts — required here #
Minimum number of items (minItems): 2
Maximum number of items (maxItems): 5
interrupt-names — required here #
Minimum number of items (minItems): 2
Array item rules (items) #
Item 1
Exact value (
const):"wdog"
Item 2
Exact value (
const):"fatal"
Item 3
Exact value (
const):"ready"
Item 4
Exact value (
const):"handover"
Item 5
Exact value (
const):"stop-ack"
firmware-name — not listed as required here #
Maximum number of items (maxItems): 1
Relative firmware image path for the WCNSS core. Defaults to "wcnss.mdt".
vddpx-supply — required here #
PX regulator to be held on behalf of the booting of the WCNSS core
vddmx-supply — not listed as required here #
MX regulator to be held on behalf of the booting of the WCNSS core.
vddcx-supply — not listed as required here #
CX regulator to be held on behalf of the booting of the WCNSS core.
power-domains — not listed as required here #
Minimum number of items (minItems): 1
Maximum number of items (maxItems): 2
power-domain-names — not listed as required here #
Minimum number of items (minItems): 1
Array item rules (items) #
Item 1
Exact value (
const):"cx"
Item 2
Exact value (
const):"mx"
qcom,smem-states — not listed as required here #
Shared schema rule ($ref): /schemas/types.yaml#/definitions/phandle-array
States used by the AP to signal the WCNSS core that it should shutdown
Array item rules (items) #
Item 1
Stop the modem
qcom,smem-state-names — not listed as required here #
The names of the state bits used for SMP2P output
Array item rules (items) #
Item 1
Exact value (
const):"stop"
memory-region — required here #
Maximum number of items (maxItems): 1
reserved-memory for the WCNSS core
smd-edge — required here #
Shared schema rule ($ref): /schemas/remoteproc/qcom,smd-edge.yaml#
Qualcomm Shared Memory subnode which represents communication edge, channels and devices related to the ADSP.
iris — required here #
Value type (type): "object"
The iris subnode of the WCNSS PIL is used to describe the attached RF module and its resource dependencies.
Properties and child nodes (properties) #
compatible — required here
Allowed values (enum): "qcom,wcn3620", "qcom,wcn3660", "qcom,wcn3660b", "qcom,wcn3680"
clocks — required here
Minimum number of items (minItems): 1
Array item rules (items)
Item 1
XO clock
Item 2
RF clock
clock-names — required here
Minimum number of items (minItems): 1
Array item rules (items)
Item 1
Exact value (
const):"xo"
Item 2
Exact value (
const):"rf"
vddxo-supply — required here
Reference to the regulator to be held on behalf of the booting WCNSS core
vddrfa-supply — required here
Reference to the regulator to be held on behalf of the booting WCNSS core
vddpa-supply — required here
Reference to the regulator to be held on behalf of the booting WCNSS core
vdddig-supply — required here
Reference to the regulator to be held on behalf of the booting WCNSS core
Required in this object (required): "compatible", "clocks", "clock-names", "vddxo-supply", "vddrfa-supply", "vddpa-supply", "vdddig-supply"
Properties not matched by properties or patternProperties in this schema (additionalProperties) #
false
Not allowed by this rule.
Required in this object (required): "compatible", "reg", "reg-names", "interrupts", "interrupt-names", "iris", "vddpx-supply", "memory-region", "smd-edge"
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 #
Condition (
if) #Properties and child nodes (
properties)
compatible— not listed as required hereRule for matching array elements (
contains)Exact value (
const):"qcom,riva-pil"When the condition matches (
then) #Required in this object (
required):"vddcx-supply","vddmx-supply"
Rule 2 #
Condition (
if) #Properties and child nodes (
properties)
compatible— not listed as required hereRule for matching array elements (
contains)Allowed values (
enum):"qcom,pronto-v1-pil","qcom,pronto-v2-pil"When the condition matches (
then) #Exactly one of these rules must match (
oneOf)Rule 1
Required in this object (
required):"power-domains","power-domain-names"Properties and child nodes (
properties)
power-domains— required hereMinimum number of items (
minItems):2
power-domain-names— required hereMinimum number of items (
minItems):2
vddmx-supply— not listed as required here
false— Not permitted by this property rule.
vddcx-supply— not listed as required here
false— Not permitted by this property rule.Rule 2
Required in this object (
required):"power-domains","power-domain-names","vddmx-supply"Properties and child nodes (
properties)
power-domains— required hereMaximum number of items (
maxItems):1
power-domain-names— required hereMaximum number of items (
maxItems):1
vddcx-supply— not listed as required here
false— Not permitted by this property rule.Rule 3
Required in this object (
required):"vddmx-supply","vddcx-supply"Properties and child nodes (
properties)
power-domains— not listed as required here
false— Not permitted by this property rule.
power-domain-names— not listed as required here
false— Not permitted by this property rule.
vddmx-supply— required hereDeprecated (
deprecated):trueDeprecated for qcom,pronto-v1/2-pil
vddcx-supply— required hereDeprecated (
deprecated):trueDeprecated for qcom,pronto-v1/2-pil
Rule 3 #
Condition (
if) #Properties and child nodes (
properties)
compatible— not listed as required hereRule for matching array elements (
contains)When the condition matches (
then) #Properties and child nodes (
properties)
power-domains— required hereMinimum number of items (
minItems):2
power-domain-names— required hereMinimum number of items (
minItems):2
vddmx-supply— not listed as required here
false— Not permitted by this property rule.
vddcx-supply— not listed as required here
false— Not permitted by this property rule.Required in this object (
required):"power-domains","power-domain-names"
Examples (examples) #
#include <dt-bindings/interrupt-controller/arm-gic.h>
#include <dt-bindings/clock/qcom,rpmcc.h>
#include <dt-bindings/power/qcom-rpmpd.h>
pronto@a21b000 {
compatible = "qcom,pronto-v2-pil", "qcom,pronto";
reg = <0x0a204000 0x2000>, <0x0a202000 0x1000>, <0x0a21b000 0x3000>;
reg-names = "ccu", "dxe", "pmu";
interrupts-extended = <&intc GIC_SPI 149 IRQ_TYPE_EDGE_RISING>,
<&wcnss_smp2p_in 0 IRQ_TYPE_EDGE_RISING>,
<&wcnss_smp2p_in 1 IRQ_TYPE_EDGE_RISING>,
<&wcnss_smp2p_in 2 IRQ_TYPE_EDGE_RISING>,
<&wcnss_smp2p_in 3 IRQ_TYPE_EDGE_RISING>;
interrupt-names = "wdog", "fatal", "ready", "handover", "stop-ack";
power-domains = <&rpmpd MSM8916_VDDCX>, <&rpmpd MSM8916_VDDMX>;
power-domain-names = "cx", "mx";
vddpx-supply = <&pm8916_l7>;
qcom,smem-states = <&wcnss_smp2p_out 0>;
qcom,smem-state-names = "stop";
memory-region = <&wcnss_region>;
pinctrl-names = "default";
pinctrl-0 = <&wcnss_pin_a>;
iris {
compatible = "qcom,wcn3620";
vddxo-supply = <&pm8916_l7>;
vddrfa-supply = <&pm8916_s3>;
vddpa-supply = <&pm8916_l9>;
vdddig-supply = <&pm8916_l5>;
clocks = <&rpmcc RPM_SMD_RF_CLK2>;
clock-names = "xo";
};
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_ctrl: wcnss {
compatible = "qcom,wcnss";
qcom,smd-channels = "WCNSS_CTRL";
qcom,mmio = <&pronto>;
bluetooth {
compatible = "qcom,wcnss-bt";
};
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 OR BSD-2-Clause)
Line 192: CX and MX must be present either as power domains or regulators
Line 194: Both CX and MX represented as power domains
Line 205: CX represented as power domain, MX as regulator
Line 216: Both CX and MX represented as regulators