1 # SPDX-License-Identifier: GPL-2.0
4 $id: http://devicetree.org/schemas/sound/allwinner,sun4i-a10-codec.yaml#
5 $schema: http://devicetree.org/meta-schemas/core.yaml#
7 title: Allwinner A10 Codec Device Tree Bindings
10 - Chen-Yu Tsai <wens@csie.org>
11 - Maxime Ripard <mripard@kernel.org>
19 - allwinner,sun4i-a10-codec
20 - allwinner,sun6i-a31-codec
21 - allwinner,sun7i-a20-codec
22 - allwinner,sun8i-a23-codec
23 - allwinner,sun8i-h3-codec
24 - allwinner,sun8i-v3s-codec
34 - description: Bus Clock
35 - description: Module Clock
44 - description: RX DMA Channel
45 - description: TX DMA Channel
55 allwinner,audio-routing:
57 A list of the connections between audio components. Each entry
58 is a pair of strings, the first being the connection's sink, the
59 second being the connection's source.
60 $ref: /schemas/types.yaml#definitions/non-unique-string-array
65 # Audio Pins on the SoC
74 # Microphone Biases from the SoC
86 allwinner,codec-analog-controls:
87 $ref: /schemas/types.yaml#/definitions/phandle
88 description: Phandle to the codec analog controls in the PRCM
91 description: GPIO to enable the external amplifier
108 - allwinner,sun6i-a31-codec
109 - allwinner,sun8i-a23-codec
110 - allwinner,sun8i-h3-codec
111 - allwinner,sun8i-v3s-codec
117 const: allwinner,sun6i-a31-codec
122 - allwinner,audio-routing
127 - allwinner,audio-routing
128 - allwinner,codec-analog-controls
134 - allwinner,sun6i-a31-codec
138 allwinner,audio-routing:
161 - allwinner,sun8i-a23-codec
165 allwinner,audio-routing:
186 - allwinner,sun8i-h3-codec
190 allwinner,audio-routing:
212 - allwinner,sun8i-v3s-codec
216 allwinner,audio-routing:
230 additionalProperties: false
235 #sound-dai-cells = <0>;
236 compatible = "allwinner,sun7i-a20-codec";
237 reg = <0x01c22c00 0x40>;
238 interrupts = <0 30 4>;
239 clocks = <&apb0_gates 0>, <&codec_clk>;
240 clock-names = "apb", "codec";
241 dmas = <&dma 0 19>, <&dma 0 19>;
242 dma-names = "rx", "tx";
247 #sound-dai-cells = <0>;
248 compatible = "allwinner,sun6i-a31-codec";
249 reg = <0x01c22c00 0x98>;
250 interrupts = <0 29 4>;
251 clocks = <&ccu 61>, <&ccu 135>;
252 clock-names = "apb", "codec";
254 dmas = <&dma 15>, <&dma 15>;
255 dma-names = "rx", "tx";
256 allwinner,audio-routing =
258 "Speaker", "LINEOUT",
263 "MIC2", "Headset Mic";