mirror of
https://github.com/armbian/build
synced 2025-09-24 19:47:06 +07:00
* The initial state of a series of patches for sunxi-5.17 tag orange-pi-5.17-20220323-1423 * DEBUG for sunxi-5.17 * Add Armbian patches to 5.17 * Fix duplicate nodes for sun50i-h5-orangepi-pc2 * Fix reg_ahci_5v to status okay for bananapro board * Remove an unused patch for an unsupported sun50i-h6-tanix-tx6 board
64 lines
1.8 KiB
Diff
64 lines
1.8 KiB
Diff
From c42403109d01c176ce425083b08303c46961e822 Mon Sep 17 00:00:00 2001
|
|
From: The-going <48602507+The-going@users.noreply.github.com>
|
|
Date: Tue, 25 Jan 2022 21:18:21 +0300
|
|
Subject: [PATCH 101/101] arm:dts: sun8i-r40 bananapi-m2-ultra add codec analog
|
|
|
|
---
|
|
.../boot/dts/sun8i-r40-bananapi-m2-ultra.dts | 10 ++++++++++
|
|
arch/arm/boot/dts/sun8i-r40.dtsi | 18 ++++++++++++++++++
|
|
2 files changed, 28 insertions(+)
|
|
|
|
diff --git a/arch/arm/boot/dts/sun8i-r40-bananapi-m2-ultra.dts b/arch/arm/boot/dts/sun8i-r40-bananapi-m2-ultra.dts
|
|
index 87cf03574..73370f20d 100644
|
|
--- a/arch/arm/boot/dts/sun8i-r40-bananapi-m2-ultra.dts
|
|
+++ b/arch/arm/boot/dts/sun8i-r40-bananapi-m2-ultra.dts
|
|
@@ -113,6 +113,16 @@ &ahci {
|
|
status = "okay";
|
|
};
|
|
|
|
+&codec {
|
|
+ allwinner,audio-routing =
|
|
+ "Headphone", "HP",
|
|
+ "Headphone", "HPCOM",
|
|
+ "MIC1", "Mic",
|
|
+ "Mic", "MBIAS";
|
|
+ allwinner,codec-analog-controls = <&codec_analog>;
|
|
+ status = "okay";
|
|
+};
|
|
+
|
|
&de {
|
|
status = "okay";
|
|
};
|
|
diff --git a/arch/arm/boot/dts/sun8i-r40.dtsi b/arch/arm/boot/dts/sun8i-r40.dtsi
|
|
index 4f42e3c4b..5bb6e1530 100644
|
|
--- a/arch/arm/boot/dts/sun8i-r40.dtsi
|
|
+++ b/arch/arm/boot/dts/sun8i-r40.dtsi
|
|
@@ -800,6 +800,24 @@ ths: thermal-sensor@1c24c00 {
|
|
#thermal-sensor-cells = <1>;
|
|
};
|
|
|
|
+ codec: codec@1c22c00 {
|
|
+ #sound-dai-cells = <1>;
|
|
+ compatible = "allwinner,sun8i-h3-codec";
|
|
+ reg = <0x01c22c00 0x300>;
|
|
+ interrupts = <GIC_SPI 30 IRQ_TYPE_LEVEL_HIGH>;
|
|
+ clocks = <&ccu CLK_BUS_CODEC>, <&ccu CLK_CODEC>;
|
|
+ clock-names = "apb", "codec";
|
|
+ resets = <&ccu RST_BUS_CODEC>;
|
|
+ dmas = <&dma 19>, <&dma 19>;
|
|
+ dma-names = "rx", "tx";
|
|
+ status = "disabled";
|
|
+ };
|
|
+
|
|
+ codec_analog: codec-analog@1c22f00 {
|
|
+ compatible = "allwinner,sun8i-a23-codec-analog";
|
|
+ reg = <0x01c22f00 0x4>;
|
|
+ };
|
|
+
|
|
uart0: serial@1c28000 {
|
|
compatible = "snps,dw-apb-uart";
|
|
reg = <0x01c28000 0x400>;
|
|
--
|
|
2.31.1
|
|
|