1 # SPDX-License-Identifier: GPL-2.0-only OR BSD-2-Clause
4 $id: http://devicetree.org/schemas/sound/cirrus,madera.yaml#
5 $schema: http://devicetree.org/meta-schemas/core.yaml#
7 title: Cirrus Logic Madera class audio CODECs
10 - patches@opensource.cirrus.com
13 This describes audio configuration bindings for these codecs.
15 See also the core bindings for the parent MFD driver:
17 Documentation/devicetree/bindings/mfd/cirrus,madera.yaml
19 and defines for values used in these bindings:
21 include/dt-bindings/sound/madera.h
23 The properties are all contained in the parent MFD node.
28 The first cell indicating the audio interface.
33 A list of input mode settings for each input. A maximum
34 of 24 cells, with four cells per input in the order INnAL,
35 INnAR INnBL INnBR. For non-muxed inputs the first two cells
36 for that input set the mode for the left and right channel
37 and the second two cells must be 0. For muxed inputs the
38 first two cells for that input set the mode of the left and
39 right A inputs and the second two cells set the mode of the
40 left and right B inputs. Valid mode values are one of the
41 MADERA_INMODE_xxx. If the array is shorter than the number
42 of inputs the unspecified inputs default to MADERA_INMODE_DIFF.
43 $ref: /schemas/types.yaml#/definitions/uint32-array
53 Mono bit for each output, maximum of six cells if the array
54 is shorter outputs will be set to stereo.
55 $ref: /schemas/types.yaml#/definitions/uint32-array
65 Indicates how the MICBIAS pins have been externally connected
66 to DMICs on each input, one cell per input.
70 A value of 0 indicates MICVDD and is the default,
71 other values depend on the codec: For CS47L35 one of the
72 CS47L35_DMIC_REF_xxx values For all other codecs one of
73 the MADERA_DMIC_REF_xxx values Also see the datasheet for a
74 description of the INn_DMIC_SUP field.
75 $ref: /schemas/types.yaml#/definitions/uint32-array
83 cirrus,max-channels-clocked:
85 Maximum number of channels that I2S clocks will be generated
86 for. Useful when clock master for systems where the I2S bus
87 has multiple data lines. One cell for each AIF, use a value
88 of zero for AIFs that should be handled normally.
89 $ref: /schemas/types.yaml#/definitions/uint32-array
97 PDM speaker data format, must contain 2 cells (OUT5 and
98 OUT6). See the PDM_SPKn_FMT field in the datasheet for a
99 description of this value. The second cell is ignored for
100 codecs that do not have OUT6.
101 $ref: /schemas/types.yaml#/definitions/uint32-array
107 PDM mute format, must contain 2 cells (OUT5 and OUT6). See the
108 PDM_SPKn_CTRL_1 register in the datasheet for a description
109 of this value. The second cell is ignored for codecs that
111 $ref: /schemas/types.yaml#/definitions/uint32-array
115 additionalProperties: true