Qualcomm WSA8840/WSA8845/WSA8845H smart speaker amplifier

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

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

Maintainers (maintainers): "Krzysztof Kozlowski <krzk@kernel.org>", "Srinivas Kandagatla <srinivas.kandagatla@linaro.org>"

WSA884X is a family of Qualcomm Aqstic smart speaker amplifiers using SoundWire digital audio interface.

All of these rules must match (allOf) #

Rule 1 #

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

Properties and child nodes (properties) #

compatible — required here #

Exact value (const): "sdw20217020400"

reg — required here #

Maximum number of items (maxItems): 1

powerdown-gpios — not listed as required here #

Powerdown/Shutdown line to use (pin SD_N)

Maximum number of items (maxItems): 1

reset-gpios — not listed as required here #

Powerdown/Shutdown line to use (pin SD_N)

Maximum number of items (maxItems): 1

qcom,port-mapping — not listed as required here #

Specifies static port mapping between slave and master ports. In the order of slave port index.

Shared schema rule ($ref): /schemas/types.yaml#/definitions/uint32-array

Minimum number of items (minItems): 6

Maximum number of items (maxItems): 6

#sound-dai-cells — required here #

Exact value (const): 0

vdd-1p8-supply — required here #

true — No constraints added by this property rule.

vdd-io-supply — required here #

true — No constraints added by this property rule.

Required in this object (required): "compatible", "reg", "#sound-dai-cells", "vdd-1p8-supply", "vdd-io-supply"

Exactly one of these rules must match (oneOf) #

Rule 1 #

Required in this object (required): "powerdown-gpios"

Rule 2 #

Required in this object (required): "reset-gpios"

Properties not evaluated by applicable rules (unevaluatedProperties) #

false

Not allowed by this rule.

Examples (examples) #

#include <dt-bindings/gpio/gpio.h>

soundwire {
    #address-cells = <2>;
    #size-cells = <0>;

    speaker@0,1 {
        compatible = "sdw20217020400";
        reg = <0 1>;
        pinctrl-names = "default";
        pinctrl-0 = <&spkr_2_sd_n_active>;
        powerdown-gpios = <&lpass_tlmm 18 GPIO_ACTIVE_LOW>;
        #sound-dai-cells = <0>;
        sound-name-prefix = "SpkrRight";
        vdd-1p8-supply = <&vreg_l15b_1p8>;
        vdd-io-supply = <&vreg_l3g_1p2>;
    };
};

Source notes #

Annotations retained from the schema source

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

Edit this page