arm64: dts: rockchip: enable analog audio node for rock64
authorKatsuhiro Suzuki <katsuhiro@katsuster.net>
Sun, 23 Dec 2018 10:10:26 +0000 (19:10 +0900)
committerHeiko Stuebner <heiko@sntech.de>
Mon, 7 Jan 2019 08:16:53 +0000 (09:16 +0100)
The Rock64 boards has analog audio jack on it. RK3328 can output
analog audio signal using I2S1 and ACODEC core.

This patch adds sound node for analog audio for Rock64.

Signed-off-by: Katsuhiro Suzuki <katsuhiro@katsuster.net>
Signed-off-by: Heiko Stuebner <heiko@sntech.de>
arch/arm64/boot/dts/rockchip/rk3328-rock64.dts

index 2dc0fad..77db0de 100644 (file)
@@ -66,7 +66,8 @@
        sound {
                compatible = "audio-graph-card";
                label = "rockchip,rk3328";
-               dais = <&spdif_p0>;
+               dais = <&i2s1_p0
+                       &spdif_p0>;
        };
 
        spdif-dit {
        };
 };
 
+&codec {
+       status = "okay";
+
+       port@0 {
+               codec_p0_0: endpoint {
+                       remote-endpoint = <&i2s1_p0_0>;
+               };
+       };
+};
+
 &cpu0 {
        cpu-supply = <&vdd_arm>;
 };
        };
 };
 
+&i2s1 {
+       status = "okay";
+
+       i2s1_p0: port {
+               i2s1_p0_0: endpoint {
+                       dai-format = "i2s";
+                       mclk-fs = <256>;
+                       remote-endpoint = <&codec_p0_0>;
+               };
+       };
+};
+
 &io_domains {
        status = "okay";