Qualcomm WCD9380/WCD9385 USB SubSystem Altmode/Analog Audio Switch

Schema identifier ($id): "http://devicetree.org/schemas/usb/qcom,wcd939x-usbss.yaml#"

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

Maintainers (maintainers): "Neil Armstrong <neil.armstrong@linaro.org>"

Qualcomm WCD9390/WCD9395 is a standalone Hi-Fi audio codec IC with a functionally separate USB SubSystem for Altmode/Analog Audio Switch accessible over an I2C interface. The Audio Headphone and Microphone data path between the Codec and the USB-C Mux subsystems are external to the IC, thus requiring DT port-endpoint graph description to handle USB-C altmode & orientation switching for Audio Accessory Mode.

Properties and child nodes (properties) #

compatible — required here #

Exactly one of these rules must match (oneOf) #

Rule 1

Exact value (const): "qcom,wcd9390-usbss"

Rule 2

Array item rules (items)

Item 1

Exact value (const): "qcom,wcd9395-usbss"

Item 2

Exact value (const): "qcom,wcd9390-usbss"

reg — required here #

Maximum number of items (maxItems): 1

reset-gpios — not listed as required here #

Maximum number of items (maxItems): 1

vdd-supply — not listed as required here #

USBSS VDD power supply

mode-switch — not listed as required here #

true — No constraints added by this property rule.

orientation-switch — not listed as required here #

true — No constraints added by this property rule.

ports — required here #

Shared schema rule ($ref): /schemas/graph.yaml#/properties/ports

Properties and child nodes (properties) #

port@0 — not listed as required here

Shared schema rule ($ref): /schemas/graph.yaml#/properties/port

A port node to link the WCD939x USB SubSystem to a TypeC controller for the purpose of handling altmode muxing and orientation switching.

port@1 — not listed as required here

Shared schema rule ($ref): /schemas/graph.yaml#/properties/port

A port node to link the WCD939x USB SubSystem to the Codec SubSystem for the purpose of handling USB-C Audio Accessory Mode muxing and orientation switching.

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

All of these rules must match (allOf) #

Rule 1 #

Shared schema rule ($ref): usb-switch.yaml#

Rule 2 #

Shared schema rule ($ref): usb-switch-ports.yaml#

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

false

Not allowed by this rule.

Examples (examples) #

i2c {
    #address-cells = <1>;
    #size-cells = <0>;

    typec-mux@42 {
        compatible = "qcom,wcd9390-usbss";
        reg = <0x42>;

        vdd-supply = <&vreg_bob>;

        mode-switch;
        orientation-switch;

        ports {
            #address-cells = <1>;
            #size-cells = <0>;

            port@0 {
                reg = <0>;
                wcd9390_usbss_sbu: endpoint {
                    remote-endpoint = <&typec_sbu>;
                };
            };
            port@1 {
                reg = <1>;
                wcd9390_usbss_codec: endpoint {
                    remote-endpoint = <&wcd9390_codec_usbss>;
                };
            };
        };
    };
};

Source notes #

Annotations retained from the schema source

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

Edit this page