1 # SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
4 $id: http://devicetree.org/schemas/sound/amlogic,axg-sound-card.yaml#
5 $schema: http://devicetree.org/meta-schemas/core.yaml#
7 title: Amlogic AXG sound card
10 - Jerome Brunet <jbrunet@baylibre.com>
13 - $ref: sound-card-common.yaml#
17 const: amlogic,axg-sound-card
20 $ref: /schemas/types.yaml#/definitions/phandle-array
21 description: list of auxiliary devices
24 $ref: /schemas/types.yaml#/definitions/non-unique-string-array
26 A list off component DAPM widget. Each entry is a pair of strings,
27 the first being the widget type, the second being the widget name
33 Base PLL clocks of audio susbsytem, used to configure base clock
34 frequencies for different audio use-cases.
39 additionalProperties: false
41 Container for dai-link level properties and the CODEC sub-nodes.
42 There should be at least one (and probably more) subnode of this type
46 $ref: /schemas/types.yaml#/definitions/string
47 enum: [ i2s, left-j, dsp_a ]
50 $ref: /schemas/types.yaml#/definitions/uint32
52 Number of slots in use. If omitted, slot number is set to
53 accommodate the largest mask provided.
57 $ref: /schemas/types.yaml#/definitions/uint32
58 description: Width in bits for each slot
59 enum: [ 8, 16, 20, 24, 32 ]
63 $ref: /schemas/types.yaml#/definitions/uint32
65 Multiplication factor between the frame rate and master clock
70 description: phandle of the CPU DAI
73 "^dai-tdm-slot-(t|r)x-mask-[0-3]$":
74 $ref: /schemas/types.yaml#/definitions/uint32-array
78 Transmit and receive cpu slot masks of each TDM lane
79 When omitted, mask is assumed to have to no slots. A valid
80 interface must have at least one slot, so at least one these
81 mask should be provided with an enabled slot.
85 additionalProperties: false
87 dai-link representing backend links should have at least one subnode.
88 One subnode for each codec of the dai-link. dai-link representing
89 frontend links have no codec, therefore have no subnodes
94 description: phandle of the codec DAI
97 "^dai-tdm-slot-(t|r)x-mask$":
98 $ref: /schemas/types.yaml#/definitions/uint32-array
101 description: Transmit and receive codec slot masks
112 unevaluatedProperties: false
117 compatible = "amlogic,axg-sound-card";
119 audio-aux-devs = <&tdmin_a>, <&tdmout_c>;
120 audio-widgets = "Line", "Lineout",
122 "Speaker", "Speaker1 Left",
123 "Speaker", "Speaker1 Right",
124 "Speaker", "Speaker2 Left",
125 "Speaker", "Speaker2 Right";
126 audio-routing = "TDMOUT_C IN 0", "FRDDR_A OUT 2",
127 "SPDIFOUT IN 0", "FRDDR_A OUT 3",
128 "TDM_C Playback", "TDMOUT_C OUT",
129 "TDMIN_A IN 2", "TDM_C Capture",
130 "TDMIN_A IN 5", "TDM_C Loopback",
131 "TODDR_A IN 0", "TDMIN_A OUT",
132 "Lineout", "Lineout AOUTL",
133 "Lineout", "Lineout AOUTR",
134 "Speaker1 Left", "SPK1 OUT_A",
135 "Speaker2 Left", "SPK2 OUT_A",
136 "Speaker1 Right", "SPK1 OUT_B",
137 "Speaker2 Right", "SPK2 OUT_B",
138 "Linein AINL", "Linein",
139 "Linein AINR", "Linein";
142 sound-dai = <&frddr_a>;
146 sound-dai = <&toddr_a>;
150 sound-dai = <&tdmif_c>;
152 dai-tdm-slot-tx-mask-2 = <1 1>;
153 dai-tdm-slot-tx-mask-3 = <1 1>;
154 dai-tdm-slot-rx-mask-1 = <1 1>;
158 sound-dai = <&lineout>;
162 sound-dai = <&speaker_amp1>;
166 sound-dai = <&speaker_amp2>;
170 sound-dai = <&linein>;
175 sound-dai = <&spdifout>;
178 sound-dai = <&spdif_dit>;