Skip to content

Commit a95f231

Browse files
vamrs-fengRadxaYuntian
authored andcommitted
overlays: allwinner: cubie-a7z: add edp sound card support
Signed-off-by: Feng Zhang <[email protected]>
1 parent f7a1838 commit a95f231

File tree

2 files changed

+42
-1
lines changed

2 files changed

+42
-1
lines changed

arch/arm64/boot/dts/allwinner/overlays/Makefile

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,8 @@ dtb-$(CONFIG_ARCH_SUN60IW2) += \
4141
cubie-a7a-radxa-camera-13m-214.dtbo \
4242
cubie-a7a-radxa-camera-4k-415.dtbo \
4343
cubie-a7a-radxa-display-8hd.dtbo \
44-
cubie-a7a-radxa-display-10fhd.dtbo
44+
cubie-a7a-radxa-display-10fhd.dtbo \
45+
cubie-a7z-reroute-audio-from-hdmi-to-typec-dp.dtbo
4546

4647
targets += $(dtb-y)
4748

Lines changed: 40 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,40 @@
1+
/dts-v1/;
2+
/plugin/;
3+
4+
/ {
5+
metadata {
6+
title = "Reroute audio from HDMI to Type-C DisplayPort";
7+
compatible = "radxa,cubie-a7z";
8+
category = "misc";
9+
exclusive = "i2s3_mach", "i2s3_plat", "i2s3_cpu", "i2s3_codec";
10+
description = "Reroute audio from HDMI to Type-C DisplayPort.
11+
12+
Due to the limitation of the platform, the I2S audio codec can only be used by either HDMI or eDP, not both at the same time.
13+
This is connected to HDMI by default.
14+
Enable this overlay when playing audio via Type-C DisplayPort.";
15+
};
16+
};
17+
18+
&i2s3_plat {
19+
/* av: */
20+
/* av not need dai-type */
21+
dai-type;
22+
status = "okay";
23+
};
24+
25+
&i2s3_mach {
26+
soundcard-mach,playback-only;
27+
soundcard-mach,name = "allwinner-edp";
28+
status = "okay";
29+
};
30+
31+
&i2s3_cpu {
32+
/* av: */
33+
soundcard-mach,pll-fs = <4>;
34+
soundcard-mach,mclk-fs = <512>;
35+
};
36+
37+
&i2s3_codec {
38+
/* edp: */
39+
sound-dai = <&edp0>;
40+
};

0 commit comments

Comments
 (0)