mirror of
https://github.com/armbian/build.git
synced 2025-09-19 20:51:12 +02:00
I have changed the way the patches are generated a bit. Instead of using orange-pi branch from megous tree for 6.6 kernel, I have used the following kernel branches a83t-suspend, af8133j, anx, audio, axp, cam, drm, err, fixes, mbus, modem, opi3, pb, pinetab, pp, ppkb, samuel, speed, tbs-a711, ths These branches were carefully chosen to include only allwinner related patches and remove importing of the rockchip related patches into the allwinner kernel. Following patches are modified to fix patch application failure - patches.armbian/arm64-dts-sun50i-h616-orangepi-zero2-reg_usb1_vbus-status-ok.patch - patches.armbian/arm64-dts-sun50i-h616-orangepi-zero2-Enable-GPU-mali.patch - patches.armbian/arm64-dts-allwinner-h616-Add-efuse_xlate-cpu-frequency-scaling-v1_6_2.patch - patches.armbian/arm64-dts-allwinner-h616-LED-green_power_on-red_status_heartbeat.patch - patches.armbian/arm64-dts-allwinner-overlay-Add-Overlays-for-sunxi64.patch - patches.armbian/arm64-dts-sun50i-h616-bigtreetech-cb1.patch Following patches are modified because of kernel api change to fix compilation failure - patches.armbian/drv-gpu-drm-sun4i-Add-HDMI-audio-sun4i-hdmi-encoder.patch - patches.armbian/drv-of-Device-Tree-Overlay-ConfigFS-interface.patch
64 lines
2.1 KiB
Diff
64 lines
2.1 KiB
Diff
From 0000000000000000000000000000000000000000 Mon Sep 17 00:00:00 2001
|
|
From: The-going <48602507+The-going@users.noreply.github.com>
|
|
Date: Fri, 28 Jan 2022 12:58:57 +0300
|
|
Subject: arm:dts: sun8i-v3s/s3-pinecube enable sound codec
|
|
|
|
---
|
|
arch/arm/boot/dts/allwinner/sun8i-s3-pinecube.dts | 14 ++++++++++
|
|
arch/arm/boot/dts/allwinner/sun8i-v3s.dtsi | 14 ++++++++++
|
|
2 files changed, 28 insertions(+)
|
|
|
|
diff --git a/arch/arm/boot/dts/allwinner/sun8i-s3-pinecube.dts b/arch/arm/boot/dts/allwinner/sun8i-s3-pinecube.dts
|
|
index 20966e954eda..773ad05033a2 100644
|
|
--- a/arch/arm/boot/dts/allwinner/sun8i-s3-pinecube.dts
|
|
+++ b/arch/arm/boot/dts/allwinner/sun8i-s3-pinecube.dts
|
|
@@ -58,6 +58,20 @@ wifi_pwrseq: wifi_pwrseq {
|
|
};
|
|
};
|
|
|
|
+
|
|
+&i2s0 {
|
|
+ status = "okay";
|
|
+};
|
|
+
|
|
+&codec {
|
|
+ allwinner,audio-routing =
|
|
+ "Speaker", "LINEOUT",
|
|
+ "MIC1", "Mic",
|
|
+ "Mic", "MBIAS";
|
|
+ allwinner,pa-gpios = <&pio 6 6 GPIO_ACTIVE_HIGH>; /* PG6 */
|
|
+ status = "okay";
|
|
+};
|
|
+
|
|
&csi1 {
|
|
pinctrl-names = "default";
|
|
pinctrl-0 = <&csi1_8bit_pins>;
|
|
diff --git a/arch/arm/boot/dts/allwinner/sun8i-v3s.dtsi b/arch/arm/boot/dts/allwinner/sun8i-v3s.dtsi
|
|
index 3b9a282c2746..2e8d60f605da 100644
|
|
--- a/arch/arm/boot/dts/allwinner/sun8i-v3s.dtsi
|
|
+++ b/arch/arm/boot/dts/allwinner/sun8i-v3s.dtsi
|
|
@@ -471,6 +471,20 @@ codec_analog: codec-analog@1c23000 {
|
|
reg = <0x01c23000 0x4>;
|
|
};
|
|
|
|
+
|
|
+ i2s0: i2s@1c22000 {
|
|
+ #sound-dai-cells = <0>;
|
|
+ compatible = "allwinner,sun8i-h3-i2s";
|
|
+ reg = <0x01c22000 0x400>;
|
|
+ interrupts = <GIC_SPI 13 IRQ_TYPE_LEVEL_HIGH>;
|
|
+ clocks = <&ccu CLK_BUS_I2S0>, <&ccu CLK_I2S0>;
|
|
+ clock-names = "apb", "mod";
|
|
+ dmas = <&dma 3>, <&dma 3>;
|
|
+ resets = <&ccu RST_BUS_I2S0>; /* TODO: Areset/sun8i-v3s-ccu says this isn't available on V3s */
|
|
+ dma-names = "rx", "tx";
|
|
+ status = "disabled";
|
|
+ };
|
|
+
|
|
uart0: serial@1c28000 {
|
|
compatible = "snps,dw-apb-uart";
|
|
reg = <0x01c28000 0x400>;
|
|
--
|
|
Armbian
|
|
|