Skip to content

Commit f3c3538

Browse files
jbrun3tkhilman
authored andcommitted
arm64: dts: meson: p230-q200: add internal DAC support
Add the necessary bits to support the internal audio DAC the p230/q200 reference design derivated boards. 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 a66d4ae commit f3c3538

File tree

1 file changed

+32
-0
lines changed

1 file changed

+32
-0
lines changed

arch/arm64/boot/dts/amlogic/meson-gx-p23x-q20x.dtsi

Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,13 @@
1616
ethernet0 = &ethmac;
1717
};
1818

19+
dio2133: analog-amplifier {
20+
compatible = "simple-audio-amplifier";
21+
sound-name-prefix = "AU2";
22+
VCC-supply = <&hdmi_5v>;
23+
enable-gpios = <&gpio GPIOH_5 GPIO_ACTIVE_HIGH>;
24+
};
25+
1926
spdif_dit: audio-codec-0 {
2027
#sound-dai-cells = <0>;
2128
compatible = "linux,spdif-dit";
@@ -115,6 +122,14 @@
115122
sound {
116123
compatible = "amlogic,gx-sound-card";
117124
model = "GX-P230-Q200";
125+
audio-aux-devs = <&dio2133>;
126+
audio-widgets = "Line", "Lineout";
127+
audio-routing = "AU2 INL", "ACODEC LOLP",
128+
"AU2 INR", "ACODEC LORP",
129+
"AU2 INL", "ACODEC LOLN",
130+
"AU2 INR", "ACODEC LORN",
131+
"Lineout", "AU2 OUTL",
132+
"Lineout", "AU2 OUTR";
118133
assigned-clocks = <&clkc CLKID_MPLL0>,
119134
<&clkc CLKID_MPLL1>,
120135
<&clkc CLKID_MPLL2>;
@@ -140,6 +155,10 @@
140155
codec-0 {
141156
sound-dai = <&aiu AIU_HDMI CTRL_I2S>;
142157
};
158+
159+
codec-1 {
160+
sound-dai = <&aiu AIU_ACODEC CTRL_I2S>;
161+
};
143162
};
144163

145164
dai-link-3 {
@@ -157,9 +176,22 @@
157176
sound-dai = <&hdmi_tx>;
158177
};
159178
};
179+
180+
dai-link-5 {
181+
sound-dai = <&aiu AIU_ACODEC CTRL_OUT>;
182+
183+
codec-0 {
184+
sound-dai = <&acodec>;
185+
};
186+
};
160187
};
161188
};
162189

190+
&acodec {
191+
AVDD-supply = <&vddio_ao18>;
192+
status = "okay";
193+
};
194+
163195
&aiu {
164196
status = "okay";
165197
pinctrl-0 = <&spdif_out_h_pins>;

0 commit comments

Comments
 (0)