]> git.proxmox.com Git - mirror_ubuntu-focal-kernel.git/commitdiff
arm64: dts: rockchip: add spdif sound node for rock64
authorKatsuhiro Suzuki <katsuhiro@katsuster.net>
Mon, 17 Sep 2018 12:26:33 +0000 (21:26 +0900)
committerHeiko Stuebner <heiko@sntech.de>
Sat, 22 Sep 2018 20:51:15 +0000 (22:51 +0200)
This patch adds sound card node for rock64. Currently we can support
S/PDIF only. It seems the lack of codec driver of rk3328 to enable
analog audio out.

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 5852061e497b9d4fa3ae5722963fc7771df2fb3a..9ee4f57557f3f6bb04c5c5c67168b156d69ba661 100644 (file)
                regulator-min-microvolt = <5000000>;
                regulator-max-microvolt = <5000000>;
        };
+
+       sound {
+               compatible = "audio-graph-card";
+               label = "rockchip,rk3328";
+               dais = <&spdif_p0>;
+       };
+
+       spdif-dit {
+               compatible = "linux,spdif-dit";
+               #sound-dai-cells = <0>;
+
+               port {
+                       dit_p0_0: endpoint {
+                               remote-endpoint = <&spdif_p0_0>;
+                       };
+               };
+       };
 };
 
 &cpu0 {
        status = "okay";
 };
 
+&spdif {
+       pinctrl-0 = <&spdifm0_tx>;
+       status = "okay";
+       #sound-dai-cells = <0>;
+
+       spdif_p0: port {
+               spdif_p0_0: endpoint {
+                       remote-endpoint = <&dit_p0_0>;
+               };
+       };
+};
+
 &tsadc {
        rockchip,hw-tshut-mode = <0>;
        rockchip,hw-tshut-polarity = <0>;