[PATCH 3/3] arm64: dts: rockchip: add spdifrx support to rk3308.dtsi

From: Yunhao Tian
Date: Sun Oct 24 2021 - 05:43:58 EST


From: Yunhao Tian <t123yh.xyz@xxxxxxxxx>

The Rockchip RK3308 features an integrated SPDIF receiver.
This patch adds support for it to rk3308.dtsi.

Signed-off-by: Yunhao Tian <t123yh.xyz@xxxxxxxxx>
---
arch/arm64/boot/dts/rockchip/rk3308.dtsi | 16 ++++++++++++++++
1 file changed, 16 insertions(+)

diff --git a/arch/arm64/boot/dts/rockchip/rk3308.dtsi b/arch/arm64/boot/dts/rockchip/rk3308.dtsi
index 0034312ef8f4..bbb0d2c74505 100644
--- a/arch/arm64/boot/dts/rockchip/rk3308.dtsi
+++ b/arch/arm64/boot/dts/rockchip/rk3308.dtsi
@@ -710,6 +710,22 @@ i2s_8ch_3: i2s@ff330000 {
status = "disabled";
};

+ spdif_rx: spdif-rx@ff3b0000 {
+ #sound-dai-cells = <0>;
+ compatible = "rockchip,rk3308-spdifrx";
+ reg = <0x0 0xff3b0000 0x0 0x1000>;
+ interrupts = <GIC_SPI 56 IRQ_TYPE_LEVEL_HIGH>;
+ clocks = <&cru SCLK_SPDIF_RX>, <&cru HCLK_SPDIFRX>;
+ clock-names = "mclk", "hclk";
+ dmas = <&dmac1 14>;
+ dma-names = "rx";
+ resets = <&cru SRST_SPDIFRX_M>;
+ reset-names = "spdifrx-m";
+ pinctrl-names = "default";
+ pinctrl-0 = <&spdif_in>;
+ status = "disabled";
+ };
+
spdif_tx: spdif-tx@ff3a0000 {
compatible = "rockchip,rk3308-spdif", "rockchip,rk3066-spdif";
reg = <0x0 0xff3a0000 0x0 0x1000>;
--
2.25.1