diff mbox series

[1/4] arm64: dts: rockchip: add SPDIF node for rk3399-firefly

Message ID 20210613215237.830160-1-pbrobinson@gmail.com (mailing list archive)
State New, archived
Headers show
Series [1/4] arm64: dts: rockchip: add SPDIF node for rk3399-firefly | expand

Commit Message

Peter Robinson June 13, 2021, 9:52 p.m. UTC
This patch adds the SPDIF sound node and related settings
for rk3399-firefly.

Signed-off-by: Peter Robinson <pbrobinson@gmail.com>
---
 .../boot/dts/rockchip/rk3399-firefly.dts      | 28 +++++++++++++++++++
 1 file changed, 28 insertions(+)

Comments

Heiko Stuebner June 19, 2021, 9:58 p.m. UTC | #1
On Sun, 13 Jun 2021 22:52:34 +0100, Peter Robinson wrote:
> This patch adds the SPDIF sound node and related settings
> for rk3399-firefly.

Applied, thanks!

[1/4] arm64: dts: rockchip: add SPDIF node for rk3399-firefly
      commit: ba2401ab87bc2049a49d45f75013f6faebd120f1
[2/4] arm64: dts: rockchip: add infrared receiver node to RK3399 Firefly
      commit: 4fab8e3655e476170281884d999c4d758d405fac
[3/4] arm64: dts: rockchip: Sort rk3399 firefly pinmux entries
      commit: 5768c5ff0709aeea40fbdc8e362733f5a99fc458
[4/4] arm64: dts: rockchip: Add USB-C port details for rk3399 Firefly
      commit: a406bfda89c78a75327f8b6a0281b5d3bed493a1

Best regards,
diff mbox series

Patch

diff --git a/arch/arm64/boot/dts/rockchip/rk3399-firefly.dts b/arch/arm64/boot/dts/rockchip/rk3399-firefly.dts
index 45254be1350d..6bbf79a370df 100644
--- a/arch/arm64/boot/dts/rockchip/rk3399-firefly.dts
+++ b/arch/arm64/boot/dts/rockchip/rk3399-firefly.dts
@@ -151,6 +151,23 @@  sdio_pwrseq: sdio-pwrseq {
 		reset-gpios = <&gpio0 RK_PB2 GPIO_ACTIVE_LOW>;
 	};
 
+	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>;
+			};
+		};
+	};
+
 	/* switched by pmic_sleep */
 	vcc1v8_s3: vcca1v8_s3: vcc1v8-s3 {
 		compatible = "regulator-fixed";
@@ -710,6 +727,17 @@  &sdhci {
 	status = "okay";
 };
 
+&spdif {
+	pinctrl-0 = <&spdif_bus_1>;
+	status = "okay";
+
+	spdif_p0: port {
+		spdif_p0_0: endpoint {
+			remote-endpoint = <&dit_p0_0>;
+		};
+	};
+};
+
 &tcphy0 {
 	status = "okay";
 };