Skip to content

Commit d8e8e66

Browse files
jbrun3tkhilman
authored andcommitted
arm64: dts: meson: libretech-pc: add initial audio playback support
Add initial audio support limited to HDMI i2s. 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 c755c79 commit d8e8e66

File tree

1 file changed

+40
-0
lines changed

1 file changed

+40
-0
lines changed

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

Lines changed: 40 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@
88

99
#include <dt-bindings/input/input.h>
1010
#include <dt-bindings/leds/common.h>
11+
#include <dt-bindings/sound/meson-aiu.h>
1112

1213
/ {
1314
adc-keys {
@@ -175,6 +176,45 @@
175176
regulator-settling-time-up-us = <200>;
176177
regulator-settling-time-down-us = <50000>;
177178
};
179+
180+
sound {
181+
compatible = "amlogic,gx-sound-card";
182+
model = "GXL-LIBRETECH-S9XX-PC";
183+
assigned-clocks = <&clkc CLKID_MPLL0>,
184+
<&clkc CLKID_MPLL1>,
185+
<&clkc CLKID_MPLL2>;
186+
assigned-clock-parents = <0>, <0>, <0>;
187+
assigned-clock-rates = <294912000>,
188+
<270950400>,
189+
<393216000>;
190+
status = "okay";
191+
192+
dai-link-0 {
193+
sound-dai = <&aiu AIU_CPU CPU_I2S_FIFO>;
194+
};
195+
196+
dai-link-1 {
197+
sound-dai = <&aiu AIU_CPU CPU_I2S_ENCODER>;
198+
dai-format = "i2s";
199+
mclk-fs = <256>;
200+
201+
codec-0 {
202+
sound-dai = <&aiu AIU_HDMI CTRL_I2S>;
203+
};
204+
};
205+
206+
dai-link-2 {
207+
sound-dai = <&aiu AIU_HDMI CTRL_OUT>;
208+
209+
codec-0 {
210+
sound-dai = <&hdmi_tx>;
211+
};
212+
};
213+
};
214+
};
215+
216+
&aiu {
217+
status = "okay";
178218
};
179219

180220
&cec_AO {

0 commit comments

Comments
 (0)