From 9a7f38264bbc353a097cf1ddd56f86681d2c8475 Mon Sep 17 00:00:00 2001
From: The-going <48602507+The-going@users.noreply.github.com>
Date: Mon, 26 May 2025 17:04:56 +0300
Subject: [PATCH] sun50i-h616: Add the missing digital audio node

---
 arch/arm64/boot/dts/allwinner/sun50i-h616.dtsi        | 11 +++++++++++
 .../dts/allwinner/sun50i-h618-bananapi-m4-berry.dts   |  8 +++-----
 2 files changed, 14 insertions(+), 5 deletions(-)

diff --git a/arch/arm64/boot/dts/allwinner/sun50i-h616.dtsi b/arch/arm64/boot/dts/allwinner/sun50i-h616.dtsi
index 4b1e73697887..f6bf478aa3e4 100644
--- a/arch/arm64/boot/dts/allwinner/sun50i-h616.dtsi
+++ b/arch/arm64/boot/dts/allwinner/sun50i-h616.dtsi
@@ -1076,6 +1076,17 @@ ahub_dam_plat:ahub_dam_plat@5097000 {
 			status = "disabled";
 		};
 
+		ahub_dam_mach:ahub_dam_mach {
+			compatible = "allwinner,sunxi-snd-mach";
+			soundcard-mach,name = "ahubdam";
+			status          = "disabled";
+			soundcard-mach,cpu {
+				sound-dai = <&ahub_dam_plat>;
+			};
+			soundcard-mach,codec {
+			};
+		};
+
 		ahub1_plat:ahub1_plat {
 			#sound-dai-cells = <0>;
 			compatible      = "allwinner,sunxi-snd-plat-ahub";
diff --git a/arch/arm64/boot/dts/allwinner/sun50i-h618-bananapi-m4-berry.dts b/arch/arm64/boot/dts/allwinner/sun50i-h618-bananapi-m4-berry.dts
index 29869f39de97..74012eec9982 100644
--- a/arch/arm64/boot/dts/allwinner/sun50i-h618-bananapi-m4-berry.dts
+++ b/arch/arm64/boot/dts/allwinner/sun50i-h618-bananapi-m4-berry.dts
@@ -290,16 +290,14 @@ &ahub_dam_plat {
 	status = "okay";
 };
 
-&ahub1_plat {
+&ahub_dam_mach {
 	status = "okay";
 };
 
-&ahub1_mach {
+&ahub1_plat {
 	status = "okay";
 };
 
-/*
-&ahub_i2s2 {
+&ahub1_mach {
 	status = "okay";
 };
-*/
-- 
2.35.3

