Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.kernel > #1662065 > unrolled thread

[PATCH v1 2/2] ARM: dts: rk322x: add spdif node

Started bySugar Zhang <sugar.zhang@rock-chips.com>
First post2017-06-09 10:10 +0200
Last post2017-06-17 20:00 +0200
Articles 2 — 2 participants

Back to article view | Back to linux.kernel

This discussion starts older than the indexed window; earlier articles aren't shown. The article labeled Started by below is the oldest one visible, not the original post.


Contents

  [PATCH v1 2/2] ARM: dts: rk322x: add spdif node Sugar Zhang <sugar.zhang@rock-chips.com> - 2017-06-09 10:10 +0200
    Re: [PATCH v1 2/2] ARM: dts: rk322x: add spdif node Heiko Stuebner <heiko@sntech.de> - 2017-06-17 20:00 +0200

#1662065 — [PATCH v1 2/2] ARM: dts: rk322x: add spdif node

FromSugar Zhang <sugar.zhang@rock-chips.com>
Date2017-06-09 10:10 +0200
Subject[PATCH v1 2/2] ARM: dts: rk322x: add spdif node
Message-ID<tQn9v-7uN-3@gated-at.bofh.it>
This patch add spdif node for rk322x.

Signed-off-by: Sugar Zhang <sugar.zhang@rock-chips.com>

---

 arch/arm/boot/dts/rk322x.dtsi | 20 ++++++++++++++++++++
 1 file changed, 20 insertions(+)

diff --git a/arch/arm/boot/dts/rk322x.dtsi b/arch/arm/boot/dts/rk322x.dtsi
index 48a0c1c..56f0842 100644
--- a/arch/arm/boot/dts/rk322x.dtsi
+++ b/arch/arm/boot/dts/rk322x.dtsi
@@ -168,6 +168,20 @@
 		status = "disabled";
 	};
 
+	spdif: spdif@100d0000 {
+		compatible = "rockchip,rk3228-spdif";
+		reg = <0x100d0000 0x1000>;
+		interrupts = <GIC_SPI 29 IRQ_TYPE_LEVEL_HIGH>;
+		clocks = <&cru SCLK_SPDIF>, <&cru HCLK_SPDIF_8CH>;
+		clock-names = "mclk", "hclk";
+		dmas = <&pdma 10>;
+		#dma-cells = <1>;
+		dma-names = "tx";
+		pinctrl-names = "default";
+		pinctrl-0 = <&spdif_tx>;
+		status = "disabled";
+	};
+
 	i2s2: i2s2@100e0000 {
 		compatible = "rockchip,rk3228-i2s", "rockchip,rk3066-i2s";
 		reg = <0x100e0000 0x4000>;
@@ -651,6 +665,12 @@
 			};
 		};
 
+		spdif {
+			spdif_tx: spdif-tx {
+				rockchip,pins = <3 31 RK_FUNC_2 &pcfg_pull_none>;
+			};
+		};
+
 		tsadc {
 			otp_gpio: otp-gpio {
 				rockchip,pins = <0 24 RK_FUNC_GPIO &pcfg_pull_none>;
-- 
1.9.1

[toc] | [next] | [standalone]


#1668381

FromHeiko Stuebner <heiko@sntech.de>
Date2017-06-17 20:00 +0200
Message-ID<tTqaR-23R-3@gated-at.bofh.it>
In reply to#1662065
Am Freitag, 9. Juni 2017, 15:59:33 CEST schrieb Sugar Zhang:
> This patch add spdif node for rk322x.
> 
> Signed-off-by: Sugar Zhang <sugar.zhang@rock-chips.com>

applied, after adapting the subject to
	ARM: dts: rockchip: add rk322x spdif node

and dropping the #dma-cells property.
#dma-cells is a property of dma-controllers not dma-clients.


Heiko

[toc] | [prev] | [standalone]


Back to top | Article view | linux.kernel


csiph-web