All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH 1/4] arm64: dts: rockchip: add SPDIF node for rk3399-firefly
@ 2021-06-13 21:52 ` Peter Robinson
  0 siblings, 0 replies; 10+ messages in thread
From: Peter Robinson @ 2021-06-13 21:52 UTC (permalink / raw)
  To: Heiko Stuebner, linux-arm-kernel, linux-rockchip; +Cc: Peter Robinson

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(+)

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";
 };
-- 
2.31.1


_______________________________________________
Linux-rockchip mailing list
Linux-rockchip@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/linux-rockchip

^ permalink raw reply related	[flat|nested] 10+ messages in thread

end of thread, other threads:[~2021-06-19 22:00 UTC | newest]

Thread overview: 10+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-06-13 21:52 [PATCH 1/4] arm64: dts: rockchip: add SPDIF node for rk3399-firefly Peter Robinson
2021-06-13 21:52 ` Peter Robinson
2021-06-13 21:52 ` [PATCH 2/4] arm64: dts: rockchip: add infrared receiver node to RK3399 Firefly Peter Robinson
2021-06-13 21:52   ` Peter Robinson
2021-06-13 21:52 ` [PATCH 3/4] arm64: dts: rockchip: Sort rk3399 firefly pinmux entries Peter Robinson
2021-06-13 21:52   ` Peter Robinson
2021-06-13 21:52 ` [PATCH 4/4] arm64: dts: rockchip: Add USB-C port details for rk3399 Firefly Peter Robinson
2021-06-13 21:52   ` Peter Robinson
2021-06-19 21:58 ` [PATCH 1/4] arm64: dts: rockchip: add SPDIF node for rk3399-firefly Heiko Stuebner
2021-06-19 21:58   ` Heiko Stuebner

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.