Cirrus Logic CS42448/CS42888 audio CODEC
Schema identifier ($id): "http://devicetree.org/schemas/sound/cirrus,cs42xx8.yaml#"
Schema dialect ($schema): "http://devicetree.org/meta-schemas/core.yaml#"
Maintainers (maintainers): "patches@opensource.cirrus.com"
All of these rules must match (allOf) #
Rule 1 #
Shared schema rule (
$ref):dai-common.yaml#
Properties and child nodes (properties) #
compatible — required here #
Allowed values (enum): "cirrus,cs42448", "cirrus,cs42888"
reg — required here #
Maximum number of items (maxItems): 1
clocks — required here #
Minimum number of items (minItems): 1
Maximum number of items (maxItems): 2
clock-names — required here #
Exact value (const): "mclk"
VA-supply — not listed as required here #
Analog power supply.
VD-supply — not listed as required here #
Digital power supply.
VLC-supply — not listed as required here #
Control port power supply
VLS-supply — not listed as required here #
Serial port interface power supply.
reset-gpios — not listed as required here #
This pin is connected to the chip's RESET pin.
Maximum number of items (maxItems): 1
port — not listed as required here #
Shared schema rule ($ref): audio-graph-port.yaml#
Properties not evaluated by applicable rules (unevaluatedProperties) #
false
Not allowed by this rule.
Required in this object (required): "compatible", "reg", "clocks", "clock-names"
Condition (if) #
Properties and child nodes (
properties) #
compatible— not listed as required here #Rule for matching array elements (
contains)Exact value (
const):"cirrus,cs42888"
When the condition matches (then) #
Required in this object (
required):"VA-supply","VD-supply","VLC-supply","VLS-supply"
Properties not evaluated by applicable rules (unevaluatedProperties) #
false
Not allowed by this rule.
Examples (examples) #
i2c {
#address-cells = <1>;
#size-cells = <0>;
codec@48 {
compatible = "cirrus,cs42888";
reg = <0x48>;
clocks = <&codec_mclk 0>;
clock-names = "mclk";
VA-supply = <®_audio>;
VD-supply = <®_audio>;
VLS-supply = <®_audio>;
VLC-supply = <®_audio>;
reset-gpios = <&gpio 1>;
};
};
Source notes #
Annotations retained from the schema source
Line 1: SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)