build/patch/kernel/archive/rockchip64-6.0/board-rockpis-0021-arm64-dts-rockchip-enable-analog-audio-node-for-rk33.patch

65 lines
1.5 KiB
Diff
Raw Permalink Normal View History

From 1456af021789aed2f6020afa0353093be3d64f98 Mon Sep 17 00:00:00 2001
From: ashthespy <ashthespy@gmail.com>
Date: Mon, 3 Feb 2020 17:29:59 +0100
Subject: [PATCH 21/23] arm64: dts: rockchip: enable analog audio node for
rk3308-rock-pi-s
---
.../boot/dts/rockchip/rk3308-rock-pi-s.dts | 26 +++++++++++++++++++
1 file changed, 26 insertions(+)
diff --git a/arch/arm64/boot/dts/rockchip/rk3308-rock-pi-s.dts b/arch/arm64/boot/dts/rockchip/rk3308-rock-pi-s.dts
index 5536460e65c2..c65f906ecc5b 100644
--- a/arch/arm64/boot/dts/rockchip/rk3308-rock-pi-s.dts
+++ b/arch/arm64/boot/dts/rockchip/rk3308-rock-pi-s.dts
@@ -35,6 +35,22 @@ blue-led {
};
};
+ codec: acodec-sound {
+ compatible = "simple-audio-card";
+ simple-audio-card,format = "i2s";
+ simple-audio-card,name = "rockchip,rk3308-acodec";
+ simple-audio-card,mclk-fs = <256>;
+ simple-audio-card,codec-hp-det;
+ simple-audio-card,widgets =
+ "Headphone", "Headphones";
+ simple-audio-card,cpu {
+ sound-dai = <&i2s_8ch_2>;
+ };
+ simple-audio-card,codec {
+ sound-dai = <&acodec>;
+ };
+ };
+
sound {
compatible = "simple-audio-card";
simple-audio-card,format = "i2s";
@@ -166,6 +182,11 @@ vcc5v0_otg: vcc5v0-otg {
// };
};
+&acodec {
+ status = "okay";
+ #sound-dai-cells = <0>;
+};
+
&cpu0 {
cpu-supply = <&vdd_core>;
};
@@ -219,6 +240,11 @@ &i2s_8ch_0 {
#sound-dai-cells = <0>;
};
+&i2s_8ch_2 {
+ status = "okay";
+ #sound-dai-cells = <0>;
+};
+
&spi2 {
status = "okay";
max-freq = <10000000>;
--
2.25.1