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
32 additionalProperties: false
34 Container for dai-link level properties and the CODEC sub-nodes.
35 There should be at least one (and probably more) subnode of this type
39 $ref: /schemas/types.yaml#/definitions/string
40 enum: [ i2s, left-j, dsp_a ]
43 $ref: /schemas/types.yaml#/definitions/uint32
45 Number of slots in use. If omitted, slot number is set to
46 accommodate the largest mask provided.
50 $ref: /schemas/types.yaml#/definitions/uint32
51 description: Width in bits for each slot
52 enum: [ 8, 16, 20, 24, 32 ]
56 $ref: /schemas/types.yaml#/definitions/uint32
58 Multiplication factor between the frame rate and master clock
63 description: phandle of the CPU DAI
66 "^dai-tdm-slot-(t|r)x-mask-[0-3]$":
67 $ref: /schemas/types.yaml#/definitions/uint32-array
71 Transmit and receive cpu slot masks of each TDM lane
72 When omitted, mask is assumed to have to no slots. A valid
73 interface must have at least one slot, so at least one these
74 mask should be provided with an enabled slot.
78 additionalProperties: false
80 dai-link representing backend links should have at least one subnode.
81 One subnode for each codec of the dai-link. dai-link representing
82 frontend links have no codec, therefore have no subnodes
87 description: phandle of the codec DAI
90 "^dai-tdm-slot-(t|r)x-mask$":
91 $ref: /schemas/types.yaml#/definitions/uint32-array
94 description: Transmit and receive codec slot masks
105 unevaluatedProperties: false
110 compatible = "amlogic,axg-sound-card";
112 audio-aux-devs = <&tdmin_a>, <&tdmout_c>;
113 audio-widgets = "Line", "Lineout",
115 "Speaker", "Speaker1 Left",
116 "Speaker", "Speaker1 Right",
117 "Speaker", "Speaker2 Left",
118 "Speaker", "Speaker2 Right";
119 audio-routing = "TDMOUT_C IN 0", "FRDDR_A OUT 2",
120 "SPDIFOUT IN 0", "FRDDR_A OUT 3",
121 "TDM_C Playback", "TDMOUT_C OUT",
122 "TDMIN_A IN 2", "TDM_C Capture",
123 "TDMIN_A IN 5", "TDM_C Loopback",
124 "TODDR_A IN 0", "TDMIN_A OUT",
125 "Lineout", "Lineout AOUTL",
126 "Lineout", "Lineout AOUTR",
127 "Speaker1 Left", "SPK1 OUT_A",
128 "Speaker2 Left", "SPK2 OUT_A",
129 "Speaker1 Right", "SPK1 OUT_B",
130 "Speaker2 Right", "SPK2 OUT_B",
131 "Linein AINL", "Linein",
132 "Linein AINR", "Linein";
135 sound-dai = <&frddr_a>;
139 sound-dai = <&toddr_a>;
143 sound-dai = <&tdmif_c>;
145 dai-tdm-slot-tx-mask-2 = <1 1>;
146 dai-tdm-slot-tx-mask-3 = <1 1>;
147 dai-tdm-slot-rx-mask-1 = <1 1>;
151 sound-dai = <&lineout>;
155 sound-dai = <&speaker_amp1>;
159 sound-dai = <&speaker_amp2>;
163 sound-dai = <&linein>;
168 sound-dai = <&spdifout>;
171 sound-dai = <&spdif_dit>;