mirror of
https://github.com/libretro/Lakka-LibreELEC.git
synced 2024-11-24 10:16:18 +00:00
216 lines
4.4 KiB
Diff
216 lines
4.4 KiB
Diff
From c60ca77b02dd6904ffbd5418138a5880a822b460 Mon Sep 17 00:00:00 2001
|
|
From: Christian Hewitt <christianshewitt@gmail.com>
|
|
Date: Sat, 27 Nov 2021 13:50:06 +0000
|
|
Subject: [PATCH 071/120] WIP: arm64: dts: meson: add Headphone output to
|
|
Beelink GT-King
|
|
|
|
Add support for the Headphone audio DAC built-in to the S922X chip.
|
|
|
|
Signed-off-by: Christian Hewitt <christianshewitt@gmail.com>
|
|
---
|
|
.../boot/dts/amlogic/meson-g12b-gtking.dts | 120 +++++++++++++++++-
|
|
1 file changed, 113 insertions(+), 7 deletions(-)
|
|
|
|
diff --git a/arch/arm64/boot/dts/amlogic/meson-g12b-gtking.dts b/arch/arm64/boot/dts/amlogic/meson-g12b-gtking.dts
|
|
index 5d96c1449050..a441975cbfb0 100644
|
|
--- a/arch/arm64/boot/dts/amlogic/meson-g12b-gtking.dts
|
|
+++ b/arch/arm64/boot/dts/amlogic/meson-g12b-gtking.dts
|
|
@@ -8,6 +8,7 @@
|
|
/dts-v1/;
|
|
|
|
#include "meson-g12b-w400.dtsi"
|
|
+#include <dt-bindings/sound/meson-g12a-toacodec.h>
|
|
#include <dt-bindings/sound/meson-g12a-tohdmitx.h>
|
|
|
|
/ {
|
|
@@ -29,14 +30,37 @@ spdif_dit: audio-codec-1 {
|
|
sound {
|
|
compatible = "amlogic,axg-sound-card";
|
|
model = "GTKING";
|
|
- audio-aux-devs = <&tdmout_b>;
|
|
+ audio-widgets = "Line", "Lineout";
|
|
+ audio-aux-devs = <&tdmout_b>, <&tdmout_c>,
|
|
+ <&tdmin_a>, <&tdmin_b>, <&tdmin_c>;
|
|
audio-routing = "TDMOUT_B IN 0", "FRDDR_A OUT 1",
|
|
"TDMOUT_B IN 1", "FRDDR_B OUT 1",
|
|
"TDMOUT_B IN 2", "FRDDR_C OUT 1",
|
|
"TDM_B Playback", "TDMOUT_B OUT",
|
|
+ "TDMOUT_C IN 0", "FRDDR_A OUT 2",
|
|
+ "TDMOUT_C IN 1", "FRDDR_B OUT 2",
|
|
+ "TDMOUT_C IN 2", "FRDDR_C OUT 2",
|
|
+ "TDM_C Playback", "TDMOUT_C OUT",
|
|
+ "TDMIN_A IN 4", "TDM_B Loopback",
|
|
+ "TDMIN_B IN 4", "TDM_B Loopback",
|
|
+ "TDMIN_C IN 4", "TDM_B Loopback",
|
|
+ "TDMIN_A IN 5", "TDM_C Loopback",
|
|
+ "TDMIN_B IN 5", "TDM_C Loopback",
|
|
+ "TDMIN_C IN 5", "TDM_C Loopback",
|
|
+ "TODDR_A IN 0", "TDMIN_A OUT",
|
|
+ "TODDR_B IN 0", "TDMIN_A OUT",
|
|
+ "TODDR_C IN 0", "TDMIN_A OUT",
|
|
+ "TODDR_A IN 1", "TDMIN_B OUT",
|
|
+ "TODDR_B IN 1", "TDMIN_B OUT",
|
|
+ "TODDR_C IN 1", "TDMIN_B OUT",
|
|
+ "TODDR_A IN 2", "TDMIN_C OUT",
|
|
+ "TODDR_B IN 2", "TDMIN_C OUT",
|
|
+ "TODDR_C IN 2", "TDMIN_C OUT",
|
|
"SPDIFOUT IN 0", "FRDDR_A OUT 3",
|
|
"SPDIFOUT IN 1", "FRDDR_B OUT 3",
|
|
- "SPDIFOUT IN 2", "FRDDR_C OUT 3";
|
|
+ "SPDIFOUT IN 2", "FRDDR_C OUT 3",
|
|
+ "Lineout", "ACODEC LOLP",
|
|
+ "Lineout", "ACODEC LORP";
|
|
|
|
assigned-clocks = <&clkc CLKID_MPLL2>,
|
|
<&clkc CLKID_MPLL0>,
|
|
@@ -59,8 +83,20 @@ dai-link-2 {
|
|
sound-dai = <&frddr_c>;
|
|
};
|
|
|
|
- /* 8ch hdmi interface */
|
|
dai-link-3 {
|
|
+ sound-dai = <&toddr_a>;
|
|
+ };
|
|
+
|
|
+ dai-link-4 {
|
|
+ sound-dai = <&toddr_b>;
|
|
+ };
|
|
+
|
|
+ dai-link-5 {
|
|
+ sound-dai = <&toddr_c>;
|
|
+ };
|
|
+
|
|
+ /* 8ch hdmi interface */
|
|
+ dai-link-6 {
|
|
sound-dai = <&tdmif_b>;
|
|
dai-format = "i2s";
|
|
dai-tdm-slot-tx-mask-0 = <1 1>;
|
|
@@ -69,13 +105,17 @@ dai-link-3 {
|
|
dai-tdm-slot-tx-mask-3 = <1 1>;
|
|
mclk-fs = <256>;
|
|
|
|
- codec {
|
|
+ codec-0 {
|
|
sound-dai = <&tohdmitx TOHDMITX_I2S_IN_B>;
|
|
};
|
|
+
|
|
+ codec-1 {
|
|
+ sound-dai = <&toacodec TOACODEC_IN_B>;
|
|
+ };
|
|
};
|
|
|
|
/* spdif hdmi or toslink interface */
|
|
- dai-link-4 {
|
|
+ dai-link-7 {
|
|
sound-dai = <&spdifout>;
|
|
|
|
codec-0 {
|
|
@@ -88,7 +128,7 @@ codec-1 {
|
|
};
|
|
|
|
/* spdif hdmi interface */
|
|
- dai-link-5 {
|
|
+ dai-link-8 {
|
|
sound-dai = <&spdifout_b>;
|
|
|
|
codec {
|
|
@@ -96,17 +136,47 @@ codec {
|
|
};
|
|
};
|
|
|
|
+ /* i2s jack output interface */
|
|
+ dai-link-9 {
|
|
+ sound-dai = <&tdmif_c>;
|
|
+ dai-format = "i2s";
|
|
+ dai-tdm-slot-tx-mask-0 = <1 1>;
|
|
+ mclk-fs = <256>;
|
|
+
|
|
+ codec-0 {
|
|
+ sound-dai = <&tohdmitx TOHDMITX_I2S_IN_C>;
|
|
+ };
|
|
+
|
|
+ codec-1 {
|
|
+ sound-dai = <&toacodec TOACODEC_IN_C>;
|
|
+ };
|
|
+ };
|
|
+
|
|
/* hdmi glue */
|
|
- dai-link-6 {
|
|
+ dai-link-10 {
|
|
sound-dai = <&tohdmitx TOHDMITX_I2S_OUT>;
|
|
|
|
codec {
|
|
sound-dai = <&hdmi_tx>;
|
|
};
|
|
};
|
|
+
|
|
+ /* acodec glue */
|
|
+ dai-link-11 {
|
|
+ sound-dai = <&toacodec TOACODEC_OUT>;
|
|
+
|
|
+ codec {
|
|
+ sound-dai = <&acodec>;
|
|
+ };
|
|
+ };
|
|
};
|
|
};
|
|
|
|
+&acodec {
|
|
+ AVDD-supply = <&vddao_1v8>;
|
|
+ status = "okay";
|
|
+};
|
|
+
|
|
&arb {
|
|
status = "okay";
|
|
};
|
|
@@ -154,10 +224,46 @@ &tdmif_b {
|
|
status = "okay";
|
|
};
|
|
|
|
+&tdmif_c {
|
|
+ status = "okay";
|
|
+};
|
|
+
|
|
+&tdmin_a {
|
|
+ status = "okay";
|
|
+};
|
|
+
|
|
+&tdmin_b {
|
|
+ status = "okay";
|
|
+};
|
|
+
|
|
+&tdmin_c {
|
|
+ status = "okay";
|
|
+};
|
|
+
|
|
&tdmout_b {
|
|
status = "okay";
|
|
};
|
|
|
|
+&tdmout_c {
|
|
+ status = "okay";
|
|
+};
|
|
+
|
|
+&toacodec {
|
|
+ status = "okay";
|
|
+};
|
|
+
|
|
+&toddr_a {
|
|
+ status = "okay";
|
|
+};
|
|
+
|
|
+&toddr_b {
|
|
+ status = "okay";
|
|
+};
|
|
+
|
|
+&toddr_c {
|
|
+ status = "okay";
|
|
+};
|
|
+
|
|
&tohdmitx {
|
|
status = "okay";
|
|
};
|
|
--
|
|
2.34.1
|
|
|