Skip to content

Commit 3ffeb95

Browse files
jbrun3tkhilman
authored andcommitted
arm64: dts: meson: p230-q200: add initial audio playback support
Add basic audio support on the p230/q200 reference design. This initial support is limited to HDMI i2s and SPDIF (LPCM). Signed-off-by: Jerome Brunet <[email protected]> Signed-off-by: Kevin Hilman <[email protected]> Tested-by: Christian Hewitt <[email protected]> Link: https://lore.kernel.org/r/[email protected]
1 parent 4cc1b26 commit 3ffeb95

File tree

1 file changed

+63
-0
lines changed

1 file changed

+63
-0
lines changed

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

Lines changed: 63 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,12 +8,21 @@
88
* the pin-compatible S912 (GXM) or S905D (GXL) SoCs.
99
*/
1010

11+
#include <dt-bindings/sound/meson-aiu.h>
12+
1113
/ {
1214
aliases {
1315
serial0 = &uart_AO;
1416
ethernet0 = &ethmac;
1517
};
1618

19+
spdif_dit: audio-codec-0 {
20+
#sound-dai-cells = <0>;
21+
compatible = "linux,spdif-dit";
22+
status = "okay";
23+
sound-name-prefix = "DIT";
24+
};
25+
1726
chosen {
1827
stdout-path = "serial0:115200n8";
1928
};
@@ -102,6 +111,60 @@
102111
};
103112
};
104113
};
114+
115+
sound {
116+
compatible = "amlogic,gx-sound-card";
117+
model = "GX-P230-Q200";
118+
assigned-clocks = <&clkc CLKID_MPLL0>,
119+
<&clkc CLKID_MPLL1>,
120+
<&clkc CLKID_MPLL2>;
121+
assigned-clock-parents = <0>, <0>, <0>;
122+
assigned-clock-rates = <294912000>,
123+
<270950400>,
124+
<393216000>;
125+
status = "okay";
126+
127+
dai-link-0 {
128+
sound-dai = <&aiu AIU_CPU CPU_I2S_FIFO>;
129+
};
130+
131+
dai-link-1 {
132+
sound-dai = <&aiu AIU_CPU CPU_SPDIF_FIFO>;
133+
};
134+
135+
dai-link-2 {
136+
sound-dai = <&aiu AIU_CPU CPU_I2S_ENCODER>;
137+
dai-format = "i2s";
138+
mclk-fs = <256>;
139+
140+
codec-0 {
141+
sound-dai = <&aiu AIU_HDMI CTRL_I2S>;
142+
};
143+
};
144+
145+
dai-link-3 {
146+
sound-dai = <&aiu AIU_CPU CPU_SPDIF_ENCODER>;
147+
148+
codec-0 {
149+
sound-dai = <&spdif_dit>;
150+
};
151+
};
152+
153+
dai-link-4 {
154+
sound-dai = <&aiu AIU_HDMI CTRL_OUT>;
155+
156+
codec-0 {
157+
sound-dai = <&hdmi_tx>;
158+
};
159+
};
160+
};
161+
};
162+
163+
&aiu {
164+
status = "okay";
165+
pinctrl-0 = <&spdif_out_h_pins>;
166+
pinctrl-names = "default";
167+
105168
};
106169

107170
&cec_AO {

0 commit comments

Comments
 (0)