mirror of
https://github.com/libretro/Lakka-LibreELEC.git
synced 2025-03-01 04:31:30 +00:00
75 lines
1.7 KiB
Diff
75 lines
1.7 KiB
Diff
From 84482c9385e9eeb3420d308908eb78be7a3794c4 Mon Sep 17 00:00:00 2001
|
|
From: Christian Hewitt <christianshewitt@gmail.com>
|
|
Date: Fri, 15 May 2020 08:02:54 +0000
|
|
Subject: [PATCH 56/88] WIP: arm64: dts: meson: add audio playback to
|
|
p212-s905x dtsi
|
|
|
|
Add initial audio support limited to HDMI i2s.
|
|
|
|
Signed-off-by: Christian Hewitt <christianshewitt@gmail.com>
|
|
---
|
|
.../dts/amlogic/meson-gxl-s905x-p212.dtsi | 40 +++++++++++++++++++
|
|
1 file changed, 40 insertions(+)
|
|
|
|
diff --git a/arch/arm64/boot/dts/amlogic/meson-gxl-s905x-p212.dtsi b/arch/arm64/boot/dts/amlogic/meson-gxl-s905x-p212.dtsi
|
|
index 05cb2f5e5c36..5d41d93bd008 100644
|
|
--- a/arch/arm64/boot/dts/amlogic/meson-gxl-s905x-p212.dtsi
|
|
+++ b/arch/arm64/boot/dts/amlogic/meson-gxl-s905x-p212.dtsi
|
|
@@ -11,6 +11,7 @@
|
|
/* Common DTSI for devices which are based on the P212 reference board. */
|
|
|
|
#include "meson-gxl-s905x.dtsi"
|
|
+#include <dt-bindings/sound/meson-aiu.h>
|
|
|
|
/ {
|
|
aliases {
|
|
@@ -85,6 +86,45 @@
|
|
clocks = <&wifi32k>;
|
|
clock-names = "ext_clock";
|
|
};
|
|
+
|
|
+ sound {
|
|
+ compatible = "amlogic,gx-sound-card";
|
|
+ model = "S905X-P212";
|
|
+ assigned-clocks = <&clkc CLKID_MPLL0>,
|
|
+ <&clkc CLKID_MPLL1>,
|
|
+ <&clkc CLKID_MPLL2>;
|
|
+ assigned-clock-parents = <0>, <0>, <0>;
|
|
+ assigned-clock-rates = <294912000>,
|
|
+ <270950400>,
|
|
+ <393216000>;
|
|
+ status = "okay";
|
|
+
|
|
+ dai-link-0 {
|
|
+ sound-dai = <&aiu AIU_CPU CPU_I2S_FIFO>;
|
|
+ };
|
|
+
|
|
+ dai-link-1 {
|
|
+ sound-dai = <&aiu AIU_CPU CPU_I2S_ENCODER>;
|
|
+ dai-format = "i2s";
|
|
+ mclk-fs = <256>;
|
|
+
|
|
+ codec-0 {
|
|
+ sound-dai = <&aiu AIU_HDMI CTRL_I2S>;
|
|
+ };
|
|
+ };
|
|
+
|
|
+ dai-link-2 {
|
|
+ sound-dai = <&aiu AIU_HDMI CTRL_OUT>;
|
|
+
|
|
+ codec-0 {
|
|
+ sound-dai = <&hdmi_tx>;
|
|
+ };
|
|
+ };
|
|
+ };
|
|
+};
|
|
+
|
|
+&aiu {
|
|
+ status = "okay";
|
|
};
|
|
|
|
ðmac {
|
|
--
|
|
2.17.1
|
|
|