mirror of
https://github.com/Fishwaldo/build.git
synced 2025-03-17 12:21:23 +00:00
[ rockchip64 ] Rock64 add audio
This commit is contained in:
parent
af5d8af2ee
commit
7084a2d457
1 changed files with 90 additions and 0 deletions
90
patch/kernel/rockchip64-current/board-rock64-add-audio.patch
Normal file
90
patch/kernel/rockchip64-current/board-rock64-add-audio.patch
Normal file
|
@ -0,0 +1,90 @@
|
|||
diff --git a/arch/arm64/boot/dts/rockchip/rk3328-rock64.dts b/arch/arm64/boot/dts/rockchip/rk3328-rock64.dts
|
||||
index f97446924..d9a1cb24a 100644
|
||||
--- a/arch/arm64/boot/dts/rockchip/rk3328-rock64.dts
|
||||
+++ b/arch/arm64/boot/dts/rockchip/rk3328-rock64.dts
|
||||
@@ -83,34 +83,14 @@
|
||||
linux,default-trigger = "heartbeat";
|
||||
};
|
||||
};
|
||||
+};
|
||||
|
||||
- sound {
|
||||
- compatible = "audio-graph-card";
|
||||
- label = "rockchip,rk3328";
|
||||
- dais = <&i2s1_p0
|
||||
- &spdif_p0>;
|
||||
- };
|
||||
-
|
||||
- spdif-dit {
|
||||
- compatible = "linux,spdif-dit";
|
||||
- #sound-dai-cells = <0>;
|
||||
-
|
||||
- port {
|
||||
- dit_p0_0: endpoint {
|
||||
- remote-endpoint = <&spdif_p0_0>;
|
||||
- };
|
||||
- };
|
||||
- };
|
||||
+&analog_sound {
|
||||
+ status = "okay";
|
||||
};
|
||||
|
||||
&codec {
|
||||
status = "okay";
|
||||
-
|
||||
- port@0 {
|
||||
- codec_p0_0: endpoint {
|
||||
- remote-endpoint = <&i2s1_p0_0>;
|
||||
- };
|
||||
- };
|
||||
};
|
||||
|
||||
&cpu0 {
|
||||
@@ -166,6 +146,10 @@
|
||||
status = "okay";
|
||||
};
|
||||
|
||||
+&hdmi_sound {
|
||||
+ stratus = "okay";
|
||||
+};
|
||||
+
|
||||
&i2c1 {
|
||||
status = "okay";
|
||||
|
||||
@@ -277,16 +261,12 @@
|
||||
};
|
||||
};
|
||||
|
||||
-&i2s1 {
|
||||
+&i2s0 {
|
||||
status = "okay";
|
||||
+};
|
||||
|
||||
- i2s1_p0: port {
|
||||
- i2s1_p0_0: endpoint {
|
||||
- dai-format = "i2s";
|
||||
- mclk-fs = <256>;
|
||||
- remote-endpoint = <&codec_p0_0>;
|
||||
- };
|
||||
- };
|
||||
+&i2s1 {
|
||||
+ status = "okay";
|
||||
};
|
||||
|
||||
&io_domains {
|
||||
@@ -336,12 +316,10 @@
|
||||
&spdif {
|
||||
pinctrl-0 = <&spdifm0_tx>;
|
||||
status = "okay";
|
||||
+};
|
||||
|
||||
- spdif_p0: port {
|
||||
- spdif_p0_0: endpoint {
|
||||
- remote-endpoint = <&dit_p0_0>;
|
||||
- };
|
||||
- };
|
||||
+&spdif_sound {
|
||||
+ status = "okay";
|
||||
};
|
||||
|
||||
&spi0 {
|
Loading…
Add table
Reference in a new issue