SoundWire Controller Common Properties

Schema identifier ($id): "http://devicetree.org/schemas/soundwire/soundwire-controller.yaml#"

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

Maintainers (maintainers): "Srinivas Kandagatla <srinivas.kandagatla@linaro.org>", "Vinod Koul <vkoul@kernel.org>"

SoundWire busses can be described with a node for the SoundWire controller device and a set of child nodes for each SoundWire slave on the bus.

Properties and child nodes (properties) #

$nodename — not listed as required here #

String pattern (pattern): "^soundwire(@.*)?$"

#address-cells — required here #

Exact value (const): 2

#size-cells — required here #

Exact value (const): 0

Properties matching a name pattern (patternProperties) #

^.*@[0-9a-f],[0-9a-f]$ — name matches this regular expression #

Value type (type): "object"

Properties and child nodes (properties) #

compatible — required here

String pattern (pattern): "^sdw[0-9a-f]{1}[0-9a-f]{4}[0-9a-f]{4}[0-9a-f]{2}$"

Is the textual representation of SoundWire Enumeration address. compatible string should contain SoundWire Version ID, Manufacturer ID, Part ID and Class ID in order and shall be in lower-case hexadecimal with leading zeroes. Valid sizes of these fields are Version ID is 1 nibble, number '0x1' represents SoundWire 1.0 and '0x2' represents SoundWire 1.1 and so on. MFD is 4 nibbles PID is 4 nibbles CID is 2 nibbles More Information on detail of encoding of these fields can be found in MIPI Alliance DisCo & SoundWire 1.0 Specifications.

reg — required here

Maximum number of items (maxItems): 1

Link ID followed by Instance ID of SoundWire Device Address.

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

Required in this object (required): "#address-cells", "#size-cells"

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

true

Allowed by this rule.

Examples (examples) #

soundwire@c2d0000 {
    #address-cells = <2>;
    #size-cells = <0>;
    reg = <0x0c2d0000 0x2000>;

    speaker@0,1 {
        compatible = "sdw10217201000";
        reg = <0 1>;
        powerdown-gpios = <&wcdpinctrl 2 0>;
        #thermal-sensor-cells = <0>;
        #sound-dai-cells = <0>;
    };

    speaker@0,2 {
        compatible = "sdw10217201000";
        reg = <0 2>;
        powerdown-gpios = <&wcdpinctrl 2 0>;
        #thermal-sensor-cells = <0>;
        #sound-dai-cells = <0>;
    };
};

Source notes #

Annotations retained from the schema source

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

Edit this page