aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorKatsuhiro Suzuki <katsuhiro@katsuster.net>2018-09-17 08:26:33 -0400
committerHeiko Stuebner <heiko@sntech.de>2018-09-22 16:51:15 -0400
commite007e4e0d87649cae4359a9776d2e14b67dd7187 (patch)
tree72aa060f2c567cf7ed1dc6014dbf2015e08edf10
parent88a20edf76091ee7f1bb459b89d714d53f0f8940 (diff)
arm64: dts: rockchip: add spdif sound node for rock64
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>
-rw-r--r--arch/arm64/boot/dts/rockchip/rk3328-rock64.dts29
1 files changed, 29 insertions, 0 deletions
diff --git a/arch/arm64/boot/dts/rockchip/rk3328-rock64.dts b/arch/arm64/boot/dts/rockchip/rk3328-rock64.dts
index 5852061e497b..9ee4f57557f3 100644
--- a/arch/arm64/boot/dts/rockchip/rk3328-rock64.dts
+++ b/arch/arm64/boot/dts/rockchip/rk3328-rock64.dts
@@ -62,6 +62,23 @@
62 regulator-min-microvolt = <5000000>; 62 regulator-min-microvolt = <5000000>;
63 regulator-max-microvolt = <5000000>; 63 regulator-max-microvolt = <5000000>;
64 }; 64 };
65
66 sound {
67 compatible = "audio-graph-card";
68 label = "rockchip,rk3328";
69 dais = <&spdif_p0>;
70 };
71
72 spdif-dit {
73 compatible = "linux,spdif-dit";
74 #sound-dai-cells = <0>;
75
76 port {
77 dit_p0_0: endpoint {
78 remote-endpoint = <&spdif_p0_0>;
79 };
80 };
81 };
65}; 82};
66 83
67&cpu0 { 84&cpu0 {
@@ -261,6 +278,18 @@
261 status = "okay"; 278 status = "okay";
262}; 279};
263 280
281&spdif {
282 pinctrl-0 = <&spdifm0_tx>;
283 status = "okay";
284 #sound-dai-cells = <0>;
285
286 spdif_p0: port {
287 spdif_p0_0: endpoint {
288 remote-endpoint = <&dit_p0_0>;
289 };
290 };
291};
292
264&tsadc { 293&tsadc {
265 rockchip,hw-tshut-mode = <0>; 294 rockchip,hw-tshut-mode = <0>;
266 rockchip,hw-tshut-polarity = <0>; 295 rockchip,hw-tshut-polarity = <0>;