linux-kernel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH 1/2] arm64: dts: meson: add spdif out to khadas-vim
@ 2021-08-10  4:16 Artem Lapkin
  2021-08-10  4:16 ` [PATCH 2/2] arm64: dts: meson: add spdif out to khadas-vim2 Artem Lapkin
  2021-08-10  7:55 ` [PATCH 1/2] arm64: dts: meson: add spdif out to khadas-vim Neil Armstrong
  0 siblings, 2 replies; 4+ messages in thread
From: Artem Lapkin @ 2021-08-10  4:16 UTC (permalink / raw)
  To: narmstrong
  Cc: jbrunet, linux-arm-kernel, linux-amlogic, linux-kernel,
	christianshewitt, art, nick, gouwa

Add spdif output audio support to khadas-vim

Signed-off-by: Artem Lapkin <art@khadas.com>
---
 .../dts/amlogic/meson-gxl-s905x-khadas-vim.dts  | 17 +++++++++++++++++
 1 file changed, 17 insertions(+)

diff --git a/arch/arm64/boot/dts/amlogic/meson-gxl-s905x-khadas-vim.dts b/arch/arm64/boot/dts/amlogic/meson-gxl-s905x-khadas-vim.dts
index 60feac0179c0..01f13822a616 100644
--- a/arch/arm64/boot/dts/amlogic/meson-gxl-s905x-khadas-vim.dts
+++ b/arch/arm64/boot/dts/amlogic/meson-gxl-s905x-khadas-vim.dts
@@ -64,6 +64,13 @@ hdmi_connector_in: endpoint {
 		};
 	};
 
+	spdif_dit: audio-codec-0 {
+		#sound-dai-cells = <0>;
+		compatible = "linux,spdif-dit";
+		status = "okay";
+		sound-name-prefix = "DIT";
+	};
+
 	sound {
 		compatible = "amlogic,gx-sound-card";
 		model = "KHADAS-VIM";
@@ -97,11 +104,21 @@ codec-0 {
 				sound-dai = <&hdmi_tx>;
 			};
 		};
+
+		dai-link-3 {
+			sound-dai = <&aiu AIU_CPU CPU_SPDIF_ENCODER>;
+
+			codec-0 {
+				sound-dai = <&spdif_dit>;
+			};
+		};
 	};
 };
 
 &aiu {
 	status = "okay";
+	pinctrl-0 = <&spdif_out_h_pins>;
+	pinctrl-names = "default";
 };
 
 &cec_AO {
-- 
2.25.1


^ permalink raw reply related	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2021-08-10 23:21 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-08-10  4:16 [PATCH 1/2] arm64: dts: meson: add spdif out to khadas-vim Artem Lapkin
2021-08-10  4:16 ` [PATCH 2/2] arm64: dts: meson: add spdif out to khadas-vim2 Artem Lapkin
2021-08-10  7:55 ` [PATCH 1/2] arm64: dts: meson: add spdif out to khadas-vim Neil Armstrong
2021-08-10 23:21   ` Art Nikpal

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).