Skip to content

Commit b50ccab

Browse files
jailuthranmenon
authored andcommitted
arm64: dts: ti: am62x-sk: Add overlay for HDMI audio
Enable audio output over HDMI instead of the 3.5mm jack. A FET switch (U65) on the EVM muxes serial audio lines coming from McASP between the codec (tlv320aic3106) and the HDMI bridge (sii9022). By default it uses the codec, but it can be toggled to use the HDMI bridge by shorting a (J24) header on the board. Signed-off-by: Jai Luthra <j-luthra@ti.com> [a-bhatia1: Cosmetic changes] Signed-off-by: Aradhya Bhatia <a-bhatia1@ti.com> Link: https://lore.kernel.org/r/20230809084559.17322-5-a-bhatia1@ti.com Signed-off-by: Nishanth Menon <nm@ti.com>
1 parent db6e823 commit b50ccab

2 files changed

Lines changed: 43 additions & 0 deletions

File tree

arch/arm64/boot/dts/ti/Makefile

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,7 @@ dtb-$(CONFIG_ARCH_K3) += k3-am625-verdin-wifi-dahlia.dtb
1919
dtb-$(CONFIG_ARCH_K3) += k3-am625-verdin-wifi-dev.dtb
2020
dtb-$(CONFIG_ARCH_K3) += k3-am625-verdin-wifi-yavia.dtb
2121
dtb-$(CONFIG_ARCH_K3) += k3-am62-lp-sk.dtb
22+
dtb-$(CONFIG_ARCH_K3) += k3-am62x-sk-hdmi-audio.dtbo
2223

2324
# Boards with AM62Ax SoC
2425
dtb-$(CONFIG_ARCH_K3) += k3-am62a7-sk.dtb
@@ -68,6 +69,8 @@ dtb-$(CONFIG_ARCH_K3) += k3-am69-sk.dtb
6869
dtb-$(CONFIG_ARCH_K3) += k3-j784s4-evm.dtb
6970

7071
# Enable support for device-tree overlays
72+
DTC_FLAGS_k3-am625-sk += -@
73+
DTC_FLAGS_k3-am62-lp-sk += -@
7174
DTC_FLAGS_k3-am6548-iot2050-advanced-m2 += -@
7275
DTC_FLAGS_k3-j721e-common-proc-board += -@
7376
DTC_FLAGS_k3-j721s2-common-proc-board += -@
Lines changed: 40 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,40 @@
1+
// SPDX-License-Identifier: GPL-2.0
2+
/**
3+
* Audio playback via HDMI for AM625-SK and AM62-LP SK.
4+
*
5+
* Links:
6+
* AM625 SK: https://www.ti.com/tool/SK-AM62
7+
* AM62-LP SK: https://www.ti.com/tool/SK-AM62-LP
8+
*
9+
* Copyright (C) 2023 Texas Instruments Incorporated - http://www.ti.com/
10+
*/
11+
12+
/dts-v1/;
13+
/plugin/;
14+
15+
&{/} {
16+
hdmi_audio: sound-sii9022 {
17+
compatible = "simple-audio-card";
18+
simple-audio-card,name = "AM62x-Sil9022-HDMI";
19+
simple-audio-card,format = "i2s";
20+
simple-audio-card,bitclock-master = <&hdmi_dailink_master>;
21+
simple-audio-card,frame-master = <&hdmi_dailink_master>;
22+
23+
hdmi_dailink_master: simple-audio-card,cpu {
24+
sound-dai = <&mcasp1>;
25+
system-clock-direction-out;
26+
};
27+
28+
simple-audio-card,codec {
29+
sound-dai = <&sii9022>;
30+
};
31+
};
32+
};
33+
34+
&mcasp1 {
35+
auxclk-fs-ratio = <2177>;
36+
};
37+
38+
&codec_audio {
39+
status = "disabled";
40+
};

0 commit comments

Comments
 (0)