Skip to content

Commit a3ff86d

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

File tree

1 file changed

+40
-0
lines changed

1 file changed

+40
-0
lines changed

arch/arm64/boot/dts/amlogic/meson-gxl-s905x-libretech-cc.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

@@ -124,6 +125,45 @@
124125
regulator-max-microvolt = <1800000>;
125126
vin-supply = <&vcc_3v3>;
126127
};
128+
129+
sound {
130+
compatible = "amlogic,gx-sound-card";
131+
model = "GXL-LIBRETECH-S905X-CC";
132+
assigned-clocks = <&clkc CLKID_MPLL0>,
133+
<&clkc CLKID_MPLL1>,
134+
<&clkc CLKID_MPLL2>;
135+
assigned-clock-parents = <0>, <0>, <0>;
136+
assigned-clock-rates = <294912000>,
137+
<270950400>,
138+
<393216000>;
139+
status = "okay";
140+
141+
dai-link-0 {
142+
sound-dai = <&aiu AIU_CPU CPU_I2S_FIFO>;
143+
};
144+
145+
dai-link-1 {
146+
sound-dai = <&aiu AIU_CPU CPU_I2S_ENCODER>;
147+
dai-format = "i2s";
148+
mclk-fs = <256>;
149+
150+
codec-0 {
151+
sound-dai = <&aiu AIU_HDMI CTRL_I2S>;
152+
};
153+
};
154+
155+
dai-link-2 {
156+
sound-dai = <&aiu AIU_HDMI CTRL_OUT>;
157+
158+
codec-0 {
159+
sound-dai = <&hdmi_tx>;
160+
};
161+
};
162+
};
163+
};
164+
165+
&aiu {
166+
status = "okay";
127167
};
128168

129169
&cec_AO {

0 commit comments

Comments
 (0)