Skip to content

Commit 249ce37

Browse files
jbrun3tkhilman
authored andcommitted
arm64: dts: meson: libretech-cc: add internal DAC support
Add the internal DAC support on the libretech CC. The output of this DAC is provided on the 3.5mm jack 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 f3c3538 commit 249ce37

File tree

1 file changed

+30
-0
lines changed

1 file changed

+30
-0
lines changed

arch/arm64/boot/dts/amlogic/meson-gxl-s905x-libretech-cc.dts

Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,13 @@
2222
ethernet0 = &ethmac;
2323
};
2424

25+
dio2133: analog-amplifier {
26+
compatible = "simple-audio-amplifier";
27+
sound-name-prefix = "AU2";
28+
VCC-supply = <&hdmi_5v>;
29+
enable-gpios = <&gpio GPIOH_5 GPIO_ACTIVE_HIGH>;
30+
};
31+
2532
chosen {
2633
stdout-path = "serial0:115200n8";
2734
};
@@ -129,6 +136,12 @@
129136
sound {
130137
compatible = "amlogic,gx-sound-card";
131138
model = "GXL-LIBRETECH-S905X-CC";
139+
audio-aux-devs = <&dio2133>;
140+
audio-widgets = "Line", "Lineout";
141+
audio-routing = "AU2 INL", "ACODEC LOLN",
142+
"AU2 INR", "ACODEC LORN",
143+
"Lineout", "AU2 OUTL",
144+
"Lineout", "AU2 OUTR";
132145
assigned-clocks = <&clkc CLKID_MPLL0>,
133146
<&clkc CLKID_MPLL1>,
134147
<&clkc CLKID_MPLL2>;
@@ -150,6 +163,10 @@
150163
codec-0 {
151164
sound-dai = <&aiu AIU_HDMI CTRL_I2S>;
152165
};
166+
167+
codec-1 {
168+
sound-dai = <&aiu AIU_ACODEC CTRL_I2S>;
169+
};
153170
};
154171

155172
dai-link-2 {
@@ -159,9 +176,22 @@
159176
sound-dai = <&hdmi_tx>;
160177
};
161178
};
179+
180+
dai-link-3 {
181+
sound-dai = <&aiu AIU_ACODEC CTRL_OUT>;
182+
183+
codec-0 {
184+
sound-dai = <&acodec>;
185+
};
186+
};
162187
};
163188
};
164189

190+
&acodec {
191+
AVDD-supply = <&vddio_ao18>;
192+
status = "okay";
193+
};
194+
165195
&aiu {
166196
status = "okay";
167197
};

0 commit comments

Comments
 (0)