Qualcomm Technologies Inc. LPASS CPU dai driver
Schema identifier ($id): "http://devicetree.org/schemas/sound/qcom,lpass-cpu.yaml#"
Schema dialect ($schema): "http://devicetree.org/meta-schemas/core.yaml#"
Maintainers (maintainers): "Srinivas Kandagatla <srinivas.kandagatla@linaro.org>", "Rohit kumar <quic_rohkumar@quicinc.com>"
Qualcomm Technologies Inc. SOC Low-Power Audio SubSystem (LPASS) that consist of MI2S interface for audio data transfer on external codecs. LPASS cpu driver is a module to configure Low-Power Audio Interface(LPAIF) core registers across different IP versions.
Properties and child nodes (properties) #
compatible — required here #
Allowed values (enum): "qcom,lpass-cpu", "qcom,apq8016-lpass-cpu", "qcom,sc7180-lpass-cpu", "qcom,sc7280-lpass-cpu"
reg — required here #
Minimum number of items (minItems): 1
Maximum number of items (maxItems): 6
LPAIF core registers
reg-names — required here #
Minimum number of items (minItems): 1
Maximum number of items (maxItems): 6
clocks — required here #
Minimum number of items (minItems): 3
Maximum number of items (maxItems): 10
clock-names — required here #
Minimum number of items (minItems): 1
Maximum number of items (maxItems): 10
interrupts — required here #
Minimum number of items (minItems): 1
Maximum number of items (maxItems): 4
LPAIF DMA buffer interrupt
interrupt-names — required here #
Minimum number of items (minItems): 1
Maximum number of items (maxItems): 4
qcom,adsp — not listed as required here #
Shared schema rule ($ref): /schemas/types.yaml#/definitions/phandle
Phandle for the audio DSP node
iommus — not listed as required here #
Minimum number of items (minItems): 2
Maximum number of items (maxItems): 3
Phandle to apps_smmu node with sid mask
power-domains — not listed as required here #
Maximum number of items (maxItems): 1
power-domain-names — not listed as required here #
Maximum number of items (maxItems): 1
required-opps — not listed as required here #
Maximum number of items (maxItems): 1
#sound-dai-cells — required here #
Exact value (const): 1
#address-cells — not listed as required here #
Exact value (const): 1
#size-cells — not listed as required here #
Exact value (const): 0
Properties matching a name pattern (patternProperties) #
^dai-link@[0-9a-f]+$ — name matches this regular expression #
Value type (type): "object"
LPASS CPU dai node for each I2S device or Soundwire device. Bindings of each node depends on the specific driver providing the functionality and properties.
Properties and child nodes (properties) #
reg — required here
Maximum number of items (maxItems): 1
Must be one of the DAI ID
qcom,playback-sd-lines — not listed as required here
Shared schema rule ($ref): /schemas/types.yaml#/definitions/uint32-array
list of MI2S data lines for playback
qcom,capture-sd-lines — not listed as required here
Shared schema rule ($ref): /schemas/types.yaml#/definitions/uint32-array
list of MI2S data lines for capture
Required in this object (required): "reg"
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", "clocks", "clock-names", "interrupts", "interrupt-names", "#sound-dai-cells"
Properties not evaluated by applicable rules (unevaluatedProperties) #
false
Not allowed by this rule.
All of these rules must match (allOf) #
Rule 1 #
Shared schema rule (
$ref):dai-common.yaml#
Rule 2 #
Condition (
if) #Properties and child nodes (
properties)
compatible— not listed as required hereRule for matching array elements (
contains)Exact value (
const):"qcom,lpass-cpu"When the condition matches (
then) #Properties and child nodes (
properties)
clocks— not listed as required hereMaximum number of items (
maxItems):3
clock-names— not listed as required hereArray item rules (
items)Item 1
Exact value (
const):"ahbix-clk"Item 2
Exact value (
const):"mi2s-osr-clk"Item 3
Exact value (
const):"mi2s-bit-clk"
Rule 3 #
Condition (
if) #Properties and child nodes (
properties)
compatible— not listed as required hereRule for matching array elements (
contains)Exact value (
const):"qcom,apq8016-lpass-cpu"When the condition matches (
then) #Properties and child nodes (
properties)
clocks— not listed as required hereMinimum number of items (
minItems):7Maximum number of items (
maxItems):7
clock-names— not listed as required hereArray item rules (
items)Item 1
Exact value (
const):"ahbix-clk"Item 2
Exact value (
const):"mi2s-bit-clk0"Item 3
Exact value (
const):"mi2s-bit-clk1"Item 4
Exact value (
const):"mi2s-bit-clk2"Item 5
Exact value (
const):"mi2s-bit-clk3"Item 6
Exact value (
const):"pcnoc-mport-clk"Item 7
Exact value (
const):"pcnoc-sway-clk"
Rule 4 #
Condition (
if) #Properties and child nodes (
properties)
compatible— not listed as required hereRule for matching array elements (
contains)Exact value (
const):"qcom,sc7180-lpass-cpu"When the condition matches (
then) #Properties and child nodes (
properties)
clocks— not listed as required hereMinimum number of items (
minItems):6Maximum number of items (
maxItems):6
clock-names— not listed as required hereArray item rules (
items)Item 1
Exact value (
const):"pcnoc-sway-clk"Item 2
Exact value (
const):"audio-core"Item 3
Exact value (
const):"mclk0"Item 4
Exact value (
const):"pcnoc-mport-clk"Item 5
Exact value (
const):"mi2s-bit-clk0"Item 6
Exact value (
const):"mi2s-bit-clk1"
reg— not listed as required hereMinimum number of items (
minItems):2Maximum number of items (
maxItems):2
reg-names— not listed as required hereArray item rules (
items)Item 1
Exact value (
const):"lpass-hdmiif"Item 2
Exact value (
const):"lpass-lpaif"
interrupts— not listed as required hereMinimum number of items (
minItems):2Maximum number of items (
maxItems):2
interrupt-names— not listed as required hereArray item rules (
items)Item 1
Exact value (
const):"lpass-irq-lpaif"Item 2
Exact value (
const):"lpass-irq-hdmi"Required in this object (
required):"iommus","power-domains"
Rule 5 #
Condition (
if) #Properties and child nodes (
properties)
compatible— not listed as required hereRule for matching array elements (
contains)Exact value (
const):"qcom,sc7280-lpass-cpu"When the condition matches (
then) #Properties and child nodes (
properties)
clocks— not listed as required hereMinimum number of items (
minItems):10Maximum number of items (
maxItems):10
clock-names— not listed as required hereArray item rules (
items)Item 1
Exact value (
const):"aon_cc_audio_hm_h"Item 2
Exact value (
const):"audio_cc_ext_mclk0"Item 3
Exact value (
const):"core_cc_sysnoc_mport_core"Item 4
Exact value (
const):"core_cc_ext_if0_ibit"Item 5
Exact value (
const):"core_cc_ext_if1_ibit"Item 6
Exact value (
const):"audio_cc_codec_mem"Item 7
Exact value (
const):"audio_cc_codec_mem0"Item 8
Exact value (
const):"audio_cc_codec_mem1"Item 9
Exact value (
const):"audio_cc_codec_mem2"Item 10
Exact value (
const):"aon_cc_va_mem0"
reg— not listed as required hereMinimum number of items (
minItems):6Maximum number of items (
maxItems):6
reg-names— not listed as required hereArray item rules (
items)Item 1
Exact value (
const):"lpass-hdmiif"Item 2
Exact value (
const):"lpass-lpaif"Item 3
Exact value (
const):"lpass-rxtx-cdc-dma-lpm"Item 4
Exact value (
const):"lpass-rxtx-lpaif"Item 5
Exact value (
const):"lpass-va-lpaif"Item 6
Exact value (
const):"lpass-va-cdc-dma-lpm"
interrupts— not listed as required hereMinimum number of items (
minItems):4Maximum number of items (
maxItems):4
interrupt-names— not listed as required hereArray item rules (
items)Item 1
Exact value (
const):"lpass-irq-lpaif"Item 2
Exact value (
const):"lpass-irq-hdmi"Item 3
Exact value (
const):"lpass-irq-vaif"Item 4
Exact value (
const):"lpass-irq-rxtxif"
power-domain-names— not listed as required hereArray item rules (
items)Item 1
Exact value (
const):"lcx"Required in this object (
required):"iommus","power-domains"
Examples (examples) #
#include <dt-bindings/sound/sc7180-lpass.h>
soc {
#address-cells = <2>;
#size-cells = <2>;
lpass@62d80000 {
compatible = "qcom,sc7180-lpass-cpu";
reg = <0 0x62d87000 0 0x68000>,
<0 0x62f00000 0 0x29000>;
reg-names = "lpass-hdmiif",
"lpass-lpaif";
iommus = <&apps_smmu 0x1020 0>,
<&apps_smmu 0x1032 0>;
power-domains = <&lpass_hm 0>;
clocks = <&gcc 131>,
<&lpasscorecc 6>,
<&lpasscorecc 7>,
<&lpasscorecc 10>,
<&lpasscorecc 8>,
<&lpasscorecc 9>;
clock-names = "pcnoc-sway-clk", "audio-core",
"mclk0", "pcnoc-mport-clk",
"mi2s-bit-clk0", "mi2s-bit-clk1";
interrupts = <0 160 1>,
<0 268 1>;
interrupt-names = "lpass-irq-lpaif",
"lpass-irq-hdmi";
#sound-dai-cells = <1>;
#address-cells = <1>;
#size-cells = <0>;
/* Optional to set different MI2S SD lines */
dai-link@0 {
reg = <MI2S_PRIMARY>;
qcom,playback-sd-lines = <1>;
qcom,capture-sd-lines = <0>;
};
};
};
Source notes #
Annotations retained from the schema source
Line 1: SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)