mirror of
https://github.com/armbian/build
synced 2025-09-24 19:47:06 +07:00
sunxi-6.12: sun50i-h616: Add the missing digital audio nodes
This commit is contained in:
@@ -0,0 +1,130 @@
|
||||
From c36f7c14482613d2cc1ab7b68ae53ebf394c5108 Mon Sep 17 00:00:00 2001
|
||||
From: The-going <48602507+The-going@users.noreply.github.com>
|
||||
Date: Wed, 28 May 2025 16:09:13 +0300
|
||||
Subject: sun50i-h616: Add the missing digital audio nodes
|
||||
|
||||
---
|
||||
.../arm64/boot/dts/allwinner/sun50i-h616.dtsi | 93 +++++++++++++++++++
|
||||
1 file changed, 93 insertions(+)
|
||||
|
||||
diff --git a/arch/arm64/boot/dts/allwinner/sun50i-h616.dtsi b/arch/arm64/boot/dts/allwinner/sun50i-h616.dtsi
|
||||
index 84d5f4d6b65f..a0add8c7efcd 100644
|
||||
--- a/arch/arm64/boot/dts/allwinner/sun50i-h616.dtsi
|
||||
+++ b/arch/arm64/boot/dts/allwinner/sun50i-h616.dtsi
|
||||
@@ -419,6 +419,18 @@ i2c4_ph_pins: i2c4-ph-pins {
|
||||
function = "i2c4";
|
||||
};
|
||||
|
||||
+ /omit-if-no-ref/
|
||||
+ i2s2_pins: i2s2-pins {
|
||||
+ pins = "PG10", "PG11", "PG12", "PG13", "PG14";
|
||||
+ function = "i2s2";
|
||||
+ };
|
||||
+
|
||||
+ /omit-if-no-ref/
|
||||
+ i2s3_pins: i2s3-pins {
|
||||
+ pins = "PH5", "PH6", "PH7", "PH8", "PH9";
|
||||
+ function = "i2s3";
|
||||
+ };
|
||||
+
|
||||
ir_rx_pin: ir-rx-pin {
|
||||
pins = "PH10";
|
||||
function = "ir_rx";
|
||||
@@ -1003,6 +1015,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";
|
||||
@@ -1043,6 +1066,76 @@ ahub1_codec: soundcard-mach,codec {
|
||||
};
|
||||
};
|
||||
|
||||
+ ahub_i2s1: ahub-i2s1@5097000 {
|
||||
+ #sound-dai-cells = <0>;
|
||||
+ compatible = "allwinner,sunxi-ahub-daudio";
|
||||
+ reg = <0x5097000 0xadf>;
|
||||
+ clocks = <&ccu CLK_BUS_AUDIO_HUB>,
|
||||
+ <&ccu CLK_AUDIO_CODEC_1X>,
|
||||
+ <&ccu CLK_AUDIO_CODEC_4X>,
|
||||
+ <&ccu CLK_AUDIO_HUB>;
|
||||
+ clock-names = "apb", "audio-codec-1x", "audio-codec-4x", "audio-hub";
|
||||
+ tdm_num = <0x1>;
|
||||
+ pinconfig = <0x0>;
|
||||
+ frametype = <0x0>;
|
||||
+ pcm_lrck_period = <0x20>;
|
||||
+ slot_width_select = <0x20>;
|
||||
+ daudio_master = <0x4>;
|
||||
+ audio_format = <0x1>;
|
||||
+ signal_inversion = <0x1>;
|
||||
+ tdm_config = <0x1>;
|
||||
+ mclk_div = <0x1>;
|
||||
+ status = "disabled";
|
||||
+ };
|
||||
+
|
||||
+ ahub_i2s2: ahub-i2s2@5097000 {
|
||||
+ //#sound-dai-cells = <0>;
|
||||
+ compatible = "allwinner,sunxi-ahub-daudio";
|
||||
+ reg = <0x5097000 0xadf>;
|
||||
+ clocks = <&ccu CLK_BUS_AUDIO_HUB>,
|
||||
+ <&ccu CLK_AUDIO_CODEC_1X>,
|
||||
+ <&ccu CLK_AUDIO_CODEC_4X>,
|
||||
+ <&ccu CLK_AUDIO_HUB>;
|
||||
+ clock-names = "apb", "audio-codec-1x", "audio-codec-4x", "audio-hub";
|
||||
+ //pinctrl-names = "default";
|
||||
+ //pinctrl-0 = <&i2s2_pins>;
|
||||
+ tdm_num = <0x2>;
|
||||
+ pinconfig = <0x1>;
|
||||
+ frametype = <0x0>;
|
||||
+ pcm_lrck_period = <0x20>;
|
||||
+ slot_width_select = <0x20>;
|
||||
+ daudio_master = <0x4>;
|
||||
+ audio_format = <0x1>;
|
||||
+ signal_inversion = <0x1>;
|
||||
+ tdm_config = <0x1>;
|
||||
+ mclk_div = <0x4>;
|
||||
+ status = "disabled";
|
||||
+ };
|
||||
+
|
||||
+ ahub_i2s3: ahub-i2s3@5097000 {
|
||||
+ //#sound-dai-cells = <0>;
|
||||
+ compatible = "allwinner,sunxi-ahub-daudio";
|
||||
+ reg = <0x5097000 0xadf>;
|
||||
+ clocks = <&ccu CLK_BUS_AUDIO_HUB>,
|
||||
+ <&ccu CLK_AUDIO_CODEC_1X>,
|
||||
+ <&ccu CLK_AUDIO_CODEC_4X>,
|
||||
+ <&ccu CLK_AUDIO_HUB>;
|
||||
+ clock-names = "apb", "audio-codec-1x", "audio-codec-4x", "audio-hub";
|
||||
+ //pinctrl-names = "default";
|
||||
+ //pinctrl-0 = <&i2s3_pins>;
|
||||
+ tdm_num = <0x3>;
|
||||
+ pinconfig = <0x1>;
|
||||
+ frametype = <0x0>;
|
||||
+ pcm_lrck_period = <0x20>;
|
||||
+ slot_width_select = <0x20>;
|
||||
+ daudio_master = <0x4>;
|
||||
+ audio_format = <0x1>;
|
||||
+ signal_inversion = <0x1>;
|
||||
+ tdm_config = <0x1>;
|
||||
+ mclk_div = <0x4>;
|
||||
+ status = "disabled";
|
||||
+ };
|
||||
+
|
||||
usbotg: usb@5100000 {
|
||||
compatible = "allwinner,sun50i-h616-musb",
|
||||
"allwinner,sun8i-h3-musb";
|
||||
--
|
||||
2.35.3
|
||||
|
||||
@@ -181,3 +181,4 @@
|
||||
patches.armbian/BigTreeTech-CB1-dts-i2c-gpio-mode-adjustment-and-ws2812-rgb_val.patch
|
||||
patches.armbian/arm64-dts-sun50i-h616-Add-i2c3-pa-pwm-pins.patch
|
||||
patches.armbian/arm64-allwinner-Add-sun50i-h618-bananapi-m4-berry-support.patch
|
||||
patches.armbian/sun50i-h616-Add-the-missing-digital-audio-nodes.patch
|
||||
|
||||
@@ -477,3 +477,4 @@
|
||||
patches.armbian/BigTreeTech-CB1-dts-i2c-gpio-mode-adjustment-and-ws2812-rgb_val.patch
|
||||
patches.armbian/arm64-dts-sun50i-h616-Add-i2c3-pa-pwm-pins.patch
|
||||
patches.armbian/arm64-allwinner-Add-sun50i-h618-bananapi-m4-berry-support.patch
|
||||
patches.armbian/sun50i-h616-Add-the-missing-digital-audio-nodes.patch
|
||||
|
||||
Reference in New Issue
Block a user