Cirrus Logic CS48L32 audio DSP.
Schema identifier ($id): "http://devicetree.org/schemas/sound/cirrus,cs48l32.yaml#"
Schema dialect ($schema): "http://devicetree.org/meta-schemas/core.yaml#"
Maintainers (maintainers): "patches@opensource.cirrus.com"
The CS48L32 is a high-performance low-power audio DSP for smartphones and other portable audio devices. The CS48L32 combines a programmable Halo Core DSP with a variety of power-efficient fixed-function audio processors.
See also the binding headers:
include/dt-bindings/sound/cs48l32.yaml
All of these rules must match (allOf) #
Rule 1 #
Shared schema rule (
$ref):/schemas/spi/spi-peripheral-props.yaml#
Rule 2 #
Shared schema rule (
$ref):dai-common.yaml#
Properties and child nodes (properties) #
compatible — required here #
Allowed values (enum): "cirrus,cs48l32"
reg — required here #
SPI chip-select number.
Maximum number of items (maxItems): 1
spi-max-frequency — not listed as required here #
Maximum value (maximum): 25000000
vdd-a-supply — required here #
Regulator supplying VDD_A
vdd-d-supply — required here #
Regulator supplying VDD_D
vdd-io-supply — required here #
Regulator supplying VDD_IO
vdd-cp-supply — required here #
Regulator supplying VDD_CP
reset-gpios — not listed as required here #
One entry specifying the GPIO controlling /RESET. Although optional, it is strongly recommended to use a hardware reset.
Maximum number of items (maxItems): 1
interrupts — not listed as required here #
Maximum number of items (maxItems): 1
clocks — not listed as required here #
Array item rules (items) #
Item 1
The clock supplied on MCLK1
clock-names — not listed as required here #
Exact value (const): "mclk1"
#sound-dai-cells — not listed as required here #
Exact value (const): 1
cirrus,in-type — not listed as required here #
A list of input type settings for each ADC input.
Inputs are one of these types:
CS48L32_IN_TYPE_DIFF : analog differential (default)
CS48L32_IN_TYPE_SE : analog single-ended
The type of the left (L) and right (R) channel on each input is independently configured, as are the two groups of pins muxable to the input (referred to in the datasheet as "1" and "2").
Shared schema rule ($ref): /schemas/types.yaml#/definitions/uint32-array
Array item rules (items) #
Item 1
IN1L_1 analog input type. One of the CS48L32_IN_TYPE_xxx.
Minimum value (
minimum):0Maximum value (
maximum):1Default value (
default):0
Item 2
IN1R_1 analog input type. One of the CS48L32_IN_TYPE_xxx.
Minimum value (
minimum):0Maximum value (
maximum):1Default value (
default):0
Item 3
IN1L_2 analog input type. One of the CS48L32_IN_TYPE_xxx.
Minimum value (
minimum):0Maximum value (
maximum):1Default value (
default):0
Item 4
IN1R_2 analog input type. One of the CS48L32_IN_TYPE_xxx.
Minimum value (
minimum):0Maximum value (
maximum):1Default value (
default):0
cirrus,pdm-sup — not listed as required here #
Indicate which MICBIAS output supplies bias to the microphone. There is one cell per input (IN1, IN2, ...).
One of the CS48L32_MICBIAS_xxx values.
CS48L32_PDM_SUP_VOUT_MIC : mic biased from VOUT_MIC
CS48L32_PDM_SUP_MICBIAS1 : mic biased from MICBIAS1
Also see the INn_PDM_SUP field in the datasheet.
Shared schema rule ($ref): /schemas/types.yaml#/definitions/uint32-array
Array item rules (items) #
Item 1
IN1 PDM supply source
Minimum value (
minimum):0Maximum value (
maximum):1Default value (
default):0
Item 2
IN2 PDM supply source
Minimum value (
minimum):0Maximum value (
maximum):1Default value (
default):0
Required in this object (required): "compatible", "reg", "vdd-a-supply", "vdd-d-supply", "vdd-io-supply", "vdd-cp-supply"
Properties not matched by properties or patternProperties in this schema (additionalProperties) #
false
Not allowed by this rule.
Examples (examples) #
#include <dt-bindings/sound/cs48l32.h>
spi@e0006000 {
#address-cells = <1>;
#size-cells = <0>;
reg = <0xe0006000 0x1000>;
codec@1 {
compatible = "cirrus,cs48l32";
reg = <0x1>;
spi-max-frequency = <2500000>;
vdd-a-supply = <®ulator_1v8>;
vdd-d-supply = <®ulator_1v2>;
vdd-io-supply = <®ulator_1v8>;
vdd-cp-supply = <®ulator_1v8>;
reset-gpios = <&gpio 0 0>;
clocks = <&clks 0>;
clock-names = "mclk1";
interrupt-parent = <&gpio0>;
interrupts = <56 8>;
#sound-dai-cells = <1>;
cirrus,in-type = <
CS48L32_IN_TYPE_DIFF CS48L32_IN_TYPE_DIFF
CS48L32_IN_TYPE_SE CS48L32_IN_TYPE_SE
>;
cirrus,pdm-sup = <
CS48L32_PDM_SUP_MICBIAS1 CS48L32_PDM_SUP_MICBIAS1
>;
};
};
#include <dt-bindings/sound/cs48l32.h>
spi@e0006000 {
#address-cells = <1>;
#size-cells = <0>;
reg = <0xe0006000 0x1000>;
codec@1 {
compatible = "cirrus,cs48l32";
reg = <0x1>;
vdd-a-supply = <®ulator_1v8>;
vdd-d-supply = <®ulator_1v2>;
vdd-io-supply = <®ulator_1v8>;
vdd-cp-supply = <®ulator_1v8>;
};
};
Source notes #
Annotations retained from the schema source
Line 1: SPDX-License-Identifier: GPL-2.0-only OR BSD-2-Clause
Line 174:
Line 175: Minimal config
Line 176: