Skip to content

Commit c755c79

Browse files
jbrun3tkhilman
authored andcommitted
arm64: dts: meson: libretech-ac: 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 a3ff86d commit c755c79

File tree

1 file changed

+40
-0
lines changed

1 file changed

+40
-0
lines changed

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

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

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

1213
#include "meson-gxl-s905x.dtsi"
1314

@@ -105,6 +106,45 @@
105106
vin-supply = <&vcc_3v3>;
106107
regulator-always-on;
107108
};
109+
110+
sound {
111+
compatible = "amlogic,gx-sound-card";
112+
model = "GXL-LIBRETECH-S805X-AC";
113+
assigned-clocks = <&clkc CLKID_MPLL0>,
114+
<&clkc CLKID_MPLL1>,
115+
<&clkc CLKID_MPLL2>;
116+
assigned-clock-parents = <0>, <0>, <0>;
117+
assigned-clock-rates = <294912000>,
118+
<270950400>,
119+
<393216000>;
120+
status = "okay";
121+
122+
dai-link-0 {
123+
sound-dai = <&aiu AIU_CPU CPU_I2S_FIFO>;
124+
};
125+
126+
dai-link-1 {
127+
sound-dai = <&aiu AIU_CPU CPU_I2S_ENCODER>;
128+
dai-format = "i2s";
129+
mclk-fs = <256>;
130+
131+
codec-0 {
132+
sound-dai = <&aiu AIU_HDMI CTRL_I2S>;
133+
};
134+
};
135+
136+
dai-link-2 {
137+
sound-dai = <&aiu AIU_HDMI CTRL_OUT>;
138+
139+
codec-0 {
140+
sound-dai = <&hdmi_tx>;
141+
};
142+
};
143+
};
144+
};
145+
146+
&aiu {
147+
status = "okay";
108148
};
109149

110150
&cec_AO {

0 commit comments

Comments
 (0)