Skip to content

Commit 697dd49

Browse files
knaerzchemmind
authored andcommitted
arm64: dts: rockchip: add SPDIF node for ROCK Pi 4
Add a SPDIF audio-graph-card to ROCK Pi 4 device tree. It's not enabled by default since all dma channels are used by the (already) enabled i2s0/1/2 and the pin is muxed with GPIO4_C5 which might be in use already. If enabled SPDIF_TX will be available at pin #15. Signed-off-by: Alex Bee <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Heiko Stuebner <[email protected]>
1 parent 65bd2b8 commit 697dd49

File tree

1 file changed

+26
-0
lines changed

1 file changed

+26
-0
lines changed

arch/arm64/boot/dts/rockchip/rk3399-rock-pi-4.dtsi

Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -42,6 +42,23 @@
4242
dais = <&i2s0_p0>;
4343
};
4444

45+
sound-dit {
46+
compatible = "audio-graph-card";
47+
label = "SPDIF";
48+
dais = <&spdif_p0>;
49+
};
50+
51+
spdif-dit {
52+
compatible = "linux,spdif-dit";
53+
#sound-dai-cells = <0>;
54+
55+
port {
56+
dit_p0_0: endpoint {
57+
remote-endpoint = <&spdif_p0_0>;
58+
};
59+
};
60+
};
61+
4562
vcc12v_dcin: dc-12v {
4663
compatible = "regulator-fixed";
4764
regulator-name = "vcc12v_dcin";
@@ -631,6 +648,15 @@
631648
status = "okay";
632649
};
633650

651+
&spdif {
652+
653+
spdif_p0: port {
654+
spdif_p0_0: endpoint {
655+
remote-endpoint = <&dit_p0_0>;
656+
};
657+
};
658+
};
659+
634660
&tcphy0 {
635661
status = "okay";
636662
};

0 commit comments

Comments
 (0)