Skip to content

Commit 451323f

Browse files
jbrun3tkhilman
authored andcommitted
arm64: dts: meson: libretech-ac: add internal DAC support
Add the internal DAC support on the libretech CC. The output of this DAC is provided on the 9J5 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 249ce37 commit 451323f

File tree

1 file changed

+30
-0
lines changed

1 file changed

+30
-0
lines changed

arch/arm64/boot/dts/amlogic/meson-gxl-s805x-libretech-ac.dts

Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -98,6 +98,15 @@
9898
regulator-always-on;
9999
};
100100

101+
vddio_ao18: regulator-vddio_ao18 {
102+
compatible = "regulator-fixed";
103+
regulator-name = "VDDIO_AO18";
104+
regulator-min-microvolt = <1800000>;
105+
regulator-max-microvolt = <1800000>;
106+
vin-supply = <&vcc_3v3>;
107+
regulator-always-on;
108+
};
109+
101110
vddio_boot: regulator-vddio_boot {
102111
compatible = "regulator-fixed";
103112
regulator-name = "VDDIO_BOOT";
@@ -110,6 +119,10 @@
110119
sound {
111120
compatible = "amlogic,gx-sound-card";
112121
model = "GXL-LIBRETECH-S805X-AC";
122+
audio-widgets = "Speaker", "9J5-3 LEFT",
123+
"Speaker", "9J5-2 RIGHT";
124+
audio-routing = "9J5-3 LEFT", "ACODEC LOLN",
125+
"9J5-2 RIGHT", "ACODEC LORN";
113126
assigned-clocks = <&clkc CLKID_MPLL0>,
114127
<&clkc CLKID_MPLL1>,
115128
<&clkc CLKID_MPLL2>;
@@ -131,6 +144,10 @@
131144
codec-0 {
132145
sound-dai = <&aiu AIU_HDMI CTRL_I2S>;
133146
};
147+
148+
codec-1 {
149+
sound-dai = <&aiu AIU_ACODEC CTRL_I2S>;
150+
};
134151
};
135152

136153
dai-link-2 {
@@ -140,9 +157,22 @@
140157
sound-dai = <&hdmi_tx>;
141158
};
142159
};
160+
161+
dai-link-3 {
162+
sound-dai = <&aiu AIU_ACODEC CTRL_OUT>;
163+
164+
codec-0 {
165+
sound-dai = <&acodec>;
166+
};
167+
};
143168
};
144169
};
145170

171+
&acodec {
172+
AVDD-supply = <&vddio_ao18>;
173+
status = "okay";
174+
};
175+
146176
&aiu {
147177
status = "okay";
148178
};

0 commit comments

Comments
 (0)