Qualcomm SoundWire Slave devices on PM4125/PM2250 PMIC audio codec.

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

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

Maintainers (maintainers): "Alexey Klimov <alexey.klimov@linaro.org>"

The audio codec IC found on Qualcomm PM4125/PM2250 PMICs. It has RX and TX Soundwire slave devices.

Properties and child nodes (properties) #

compatible — required here #

Exact value (const): "sdw20217010c00"

reg — required here #

Maximum number of items (maxItems): 1

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

Specifies static port mapping between device and host tx ports. In the order of the device port index which are adc1_port, adc23_port, dmic03_mbhc_port, dmic46_port. Supports maximum 2 tx soundwire ports.

PM4125 TX Port 1 (ADC1,2 & DMIC0 & MBHC) <=> SWR0 Port 1 PM4125 TX Port 2 (ADC1 & DMIC0,1,2 & MBHC) <=> SWR0 Port 2

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

Minimum number of items (minItems): 2

Maximum number of items (maxItems): 4

Array item rules (items) #

Allowed values (enum): 1, 2, 3, 4

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

Specifies static port mapping between device and host rx ports. In the order of device port index which are hph_port, clsh_port, comp_port, lo_port, dsd port. Supports maximum 2 rx soundwire ports.

PM4125 RX Port 1 (HPH_L/R) <==> SWR1 Port 1 (HPH_L/R) PM4125 RX Port 2 (COMP_L/R) <==> SWR1 Port 3 (COMP_L/R)

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

Minimum number of items (minItems): 2

Maximum number of items (maxItems): 5

Array item rules (items) #

Allowed values (enum): 1, 2, 3, 4, 5

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

Exactly one of these rules must match (oneOf) #

Rule 1 #

Required in this object (required): "qcom,tx-port-mapping"

Rule 2 #

Required in this object (required): "qcom,rx-port-mapping"

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

false

Not allowed by this rule.

Examples (examples) #

soundwire@a610000 {
    reg = <0x0a610000 0x2000>;
    #address-cells = <2>;
    #size-cells = <0>;
    pm4125_rx: codec@0,1 {
        compatible = "sdw20217010c00";
        reg = <0 1>;
        qcom,rx-port-mapping = <1 3>;
    };
};

Source notes #

Annotations retained from the schema source

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

Edit this page