Qualcomm WCD9335 Audio Codec

Schema identifier ($id): "http://devicetree.org/schemas/sound/qcom,wcd9335.yaml#"

Schema dialect ($schema): "http://devicetree.org/meta-schemas/core.yaml#"

Maintainers (maintainers): "Srinivas Kandagatla <srinivas.kandagatla@linaro.org>"

Qualcomm WCD9335 Codec is a standalone Hi-Fi audio codec IC with in-built Soundwire controller and interrupt mux. It supports both I2S/I2C and SLIMbus audio interfaces.

Properties and child nodes (properties) #

compatible — required here #

Exact value (const): "slim217,1a0"

reg — required here #

Maximum number of items (maxItems): 1

clocks — not listed as required here #

Maximum number of items (maxItems): 2

clock-names — not listed as required here #

Array item rules (items) #

Item 1

Exact value (const): "mclk"

Item 2

Exact value (const): "slimbus"

interrupts — not listed as required here #

Maximum number of items (maxItems): 2

interrupt-names — not listed as required here #

Array item rules (items) #

Item 1

Exact value (const): "intr1"

Item 2

Exact value (const): "intr2"

interrupt-controller — not listed as required here #

true — No constraints added by this property rule.

#interrupt-cells — not listed as required here #

Exact value (const): 1

reset-gpios — not listed as required here #

Maximum number of items (maxItems): 1

slim-ifc-dev — not listed as required here #

SLIM IFC device interface

Shared schema rule ($ref): /schemas/types.yaml#/definitions/phandle

#sound-dai-cells — not listed as required here #

Exact value (const): 1

vdd-buck-supply — not listed as required here #

1.8V buck supply

vdd-buck-sido-supply — not listed as required here #

1.8V SIDO buck supply

vdd-io-supply — not listed as required here #

1.8V I/O supply

vdd-micbias-supply — not listed as required here #

micbias supply

vdd-rx-supply — not listed as required here #

1.8V rx supply

vdd-tx-supply — not listed as required here #

1.8V tx supply

vdd-vbat-supply — not listed as required here #

vbat supply

Required in this object (required): "compatible", "reg"

All of these rules must match (allOf) #

Rule 1 #

Shared schema rule ($ref): dai-common.yaml#

Rule 2 #

Condition (if) #

Required in this object (required): "slim-ifc-dev"

When the condition matches (then) #

Required in this object (required): "clocks", "clock-names", "interrupts", "interrupt-names", "interrupt-controller", "#interrupt-cells", "reset-gpios", "slim-ifc-dev", "#sound-dai-cells", "vdd-buck-supply", "vdd-buck-sido-supply", "vdd-io-supply", "vdd-rx-supply", "vdd-tx-supply"

When the condition does not match (else) #

Properties and child nodes (properties)

clocks — not listed as required here

false — Not permitted by this property rule.

clock-names — not listed as required here

false — Not permitted by this property rule.

interrupts — not listed as required here

false — Not permitted by this property rule.

interrupt-names — not listed as required here

false — Not permitted by this property rule.

interrupt-controller — not listed as required here

false — Not permitted by this property rule.

#interrupt-cells — not listed as required here

false — Not permitted by this property rule.

reset-gpios — not listed as required here

false — Not permitted by this property rule.

slim-ifc-dev — not listed as required here

false — Not permitted by this property rule.

#sound-dai-cells — not listed as required here

false — Not permitted by this property rule.

vdd-buck-supply — not listed as required here

false — Not permitted by this property rule.

vdd-buck-sido-supply — not listed as required here

false — Not permitted by this property rule.

vdd-io-supply — not listed as required here

false — Not permitted by this property rule.

vdd-micbias-supply — not listed as required here

false — Not permitted by this property rule.

vdd-rx-supply — not listed as required here

false — Not permitted by this property rule.

vdd-tx-supply — not listed as required here

false — Not permitted by this property rule.

vdd-vbat-supply — not listed as required here

false — Not permitted by this property rule.

Properties not matched by properties or patternProperties in this schema (additionalProperties) #

false

Not allowed by this rule.

Examples (examples) #

#include <dt-bindings/clock/qcom,rpmcc.h>
#include <dt-bindings/gpio/gpio.h>
#include <dt-bindings/interrupt-controller/irq.h>

tasha_ifd: codec@0,0 {
    compatible = "slim217,1a0";
    reg = <0 0>;
};

codec@1,0 {
    compatible = "slim217,1a0";
    reg = <1 0>;

    clock-names = "mclk", "slimbus";
    clocks = <&div1_mclk>, <&rpmcc RPM_SMD_BB_CLK1>;

    interrupt-parent = <&tlmm>;
    interrupts = <54 IRQ_TYPE_LEVEL_HIGH>,
                 <53 IRQ_TYPE_LEVEL_HIGH>;
    interrupt-names = "intr1", "intr2";
    interrupt-controller;
    #interrupt-cells = <1>;

    reset-gpios = <&tlmm 64 GPIO_ACTIVE_LOW>;
    slim-ifc-dev = <&tasha_ifd>;
    #sound-dai-cells = <1>;

    vdd-buck-supply = <&vreg_s4a_1p8>;
    vdd-buck-sido-supply = <&vreg_s4a_1p8>;
    vdd-tx-supply = <&vreg_s4a_1p8>;
    vdd-rx-supply = <&vreg_s4a_1p8>;
    vdd-io-supply = <&vreg_s4a_1p8>;
};

Source notes #

Annotations retained from the schema source

Line 1: SPDX-License-Identifier: GPL-2.0-only OR BSD-2-Clause

Edit this page