Skip to content

Commit 2989a2d

Browse files
jbrun3tkhilman
authored andcommitted
arm64: dts: meson: libretech-pc: add internal DAC support
Add the internal DAC support on the libretech CC. The output of this DAC is provided on the 9J4 connector. Signed-off-by: Jerome Brunet <[email protected]> Signed-off-by: Kevin Hilman <[email protected]> Link: https://lore.kernel.org/r/[email protected]
1 parent 451323f commit 2989a2d

File tree

1 file changed

+31
-0
lines changed

1 file changed

+31
-0
lines changed

arch/arm64/boot/dts/amlogic/meson-gx-libretech-pc.dtsi

Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,13 @@
3030
spi0 = &spifc;
3131
};
3232

33+
dio2133: analog-amplifier {
34+
compatible = "simple-audio-amplifier";
35+
sound-name-prefix = "AU2";
36+
VCC-supply = <&vcc5v>;
37+
enable-gpios = <&gpio GPIOH_5 GPIO_ACTIVE_HIGH>;
38+
};
39+
3340
chosen {
3441
stdout-path = "serial0:115200n8";
3542
};
@@ -180,6 +187,13 @@
180187
sound {
181188
compatible = "amlogic,gx-sound-card";
182189
model = "GXL-LIBRETECH-S9XX-PC";
190+
audio-aux-devs = <&dio2133>;
191+
audio-widgets = "Speaker", "7J4-14 LEFT",
192+
"Speaker", "7J4-11 RIGHT";
193+
audio-routing = "AU2 INL", "ACODEC LOLN",
194+
"AU2 INR", "ACODEC LORN",
195+
"7J4-14 LEFT", "AU2 OUTL",
196+
"7J4-11 RIGHT", "AU2 OUTR";
183197
assigned-clocks = <&clkc CLKID_MPLL0>,
184198
<&clkc CLKID_MPLL1>,
185199
<&clkc CLKID_MPLL2>;
@@ -201,6 +215,10 @@
201215
codec-0 {
202216
sound-dai = <&aiu AIU_HDMI CTRL_I2S>;
203217
};
218+
219+
codec-1 {
220+
sound-dai = <&aiu AIU_ACODEC CTRL_I2S>;
221+
};
204222
};
205223

206224
dai-link-2 {
@@ -210,9 +228,22 @@
210228
sound-dai = <&hdmi_tx>;
211229
};
212230
};
231+
232+
dai-link-3 {
233+
sound-dai = <&aiu AIU_ACODEC CTRL_OUT>;
234+
235+
codec-0 {
236+
sound-dai = <&acodec>;
237+
};
238+
};
213239
};
214240
};
215241

242+
&acodec {
243+
AVDD-supply = <&vddio_ao18>;
244+
status = "okay";
245+
};
246+
216247
&aiu {
217248
status = "okay";
218249
};

0 commit comments

Comments
 (0)