Skip to content

Commit

Permalink
arm64: dts: rockchip: add SPDIF node for ROCK Pi 4
Browse files Browse the repository at this point in the history
BugLink: https://bugs.launchpad.net/bugs/2060142

[ Upstream commit 697dd49 ]

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]>
Signed-off-by: Sasha Levin <[email protected]>
Signed-off-by: Manuel Diewald <[email protected]>
Signed-off-by: Roxana Nicolescu <[email protected]>
  • Loading branch information
knaerzche authored and roxanan1996 committed Apr 26, 2024
1 parent 0409120 commit 07147cb
Showing 1 changed file with 26 additions and 0 deletions.
26 changes: 26 additions & 0 deletions arch/arm64/boot/dts/rockchip/rk3399-rock-pi-4.dtsi
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,23 @@
dais = <&i2s0_p0>;
};

sound-dit {
compatible = "audio-graph-card";
label = "SPDIF";
dais = <&spdif_p0>;
};

spdif-dit {
compatible = "linux,spdif-dit";
#sound-dai-cells = <0>;

port {
dit_p0_0: endpoint {
remote-endpoint = <&spdif_p0_0>;
};
};
};

vcc12v_dcin: dc-12v {
compatible = "regulator-fixed";
regulator-name = "vcc12v_dcin";
Expand Down Expand Up @@ -631,6 +648,15 @@
status = "okay";
};

&spdif {

spdif_p0: port {
spdif_p0_0: endpoint {
remote-endpoint = <&dit_p0_0>;
};
};
};

&tcphy0 {
status = "okay";
};
Expand Down

0 comments on commit 07147cb

Please sign in to comment.