Skip to content

Commit

Permalink
[ rockchip64 ] Rock64 add audio
Browse files Browse the repository at this point in the history
  • Loading branch information
Tonymac32 committed Feb 3, 2020
1 parent af5d8af commit 7084a2d
Showing 1 changed file with 90 additions and 0 deletions.
90 changes: 90 additions & 0 deletions patch/kernel/rockchip64-current/board-rock64-add-audio.patch
Original file line number Diff line number Diff line change
@@ -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 {

0 comments on commit 7084a2d

Please sign in to comment.