devicetree.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH v1 0/2] Patches to add i2s, spdif node for rk3328
@ 2017-07-27  8:16 Sugar Zhang
  2017-07-27  8:16 ` [PATCH v1 1/2] arm64: dts: rockchip: add rk3328 i2s nodes Sugar Zhang
  2017-07-27  8:16 ` [PATCH v1 2/2] arm64: dts: rockchip: add rk3328 spdif node Sugar Zhang
  0 siblings, 2 replies; 6+ messages in thread
From: Sugar Zhang @ 2017-07-27  8:16 UTC (permalink / raw)
  To: heiko-4mtYJXux2i+zQB+pC5nmwQ, broonie-DgEjT+Ai2ygdnm+yROfE0A
  Cc: linux-rockchip-IAPFreCvJWM7uuMidbF8XUB+6BGkLq7r, Sugar Zhang,
	devicetree-u79uwXL29TY76Z2rM5mHXA, Liang Chen,
	linux-kernel-u79uwXL29TY76Z2rM5mHXA, Shawn Lin, Rob Herring,
	Will Deacon, Mark Rutland, Catalin Marinas,
	linux-arm-kernel-IAPFreCvJWM7uuMidbF8XUB+6BGkLq7r

These patches to add i2s, spdif dt nodes for rk3328 soc.


Sugar Zhang (2):
  arm64: dts: rockchip: add rk3328 i2s nodes
  arm64: dts: rockchip: add rk3328 spdif node

 arch/arm64/boot/dts/rockchip/rk3328.dtsi | 46 ++++++++++++++++++++++++++++++++
 1 file changed, 46 insertions(+)

-- 
2.7.4


--
To unsubscribe from this list: send the line "unsubscribe devicetree" in
the body of a message to majordomo-u79uwXL29TY76Z2rM5mHXA@public.gmane.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html

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

* [PATCH v1 1/2] arm64: dts: rockchip: add rk3328 i2s nodes
  2017-07-27  8:16 [PATCH v1 0/2] Patches to add i2s, spdif node for rk3328 Sugar Zhang
@ 2017-07-27  8:16 ` Sugar Zhang
       [not found]   ` <1501143365-76104-2-git-send-email-sugar.zhang-TNX95d0MmH7DzftRWevZcw@public.gmane.org>
  2017-07-27  8:16 ` [PATCH v1 2/2] arm64: dts: rockchip: add rk3328 spdif node Sugar Zhang
  1 sibling, 1 reply; 6+ messages in thread
From: Sugar Zhang @ 2017-07-27  8:16 UTC (permalink / raw)
  To: heiko, broonie
  Cc: linux-rockchip, Sugar Zhang, Rob Herring, Mark Rutland,
	Catalin Marinas, Will Deacon, Liang Chen, Shawn Lin, devicetree,
	linux-arm-kernel, linux-kernel

This patch add the i2s dt nodes for rk3328.

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

 arch/arm64/boot/dts/rockchip/rk3328.dtsi | 33 ++++++++++++++++++++++++++++++++
 1 file changed, 33 insertions(+)

diff --git a/arch/arm64/boot/dts/rockchip/rk3328.dtsi b/arch/arm64/boot/dts/rockchip/rk3328.dtsi
index 0be96ce..f1a284b 100644
--- a/arch/arm64/boot/dts/rockchip/rk3328.dtsi
+++ b/arch/arm64/boot/dts/rockchip/rk3328.dtsi
@@ -156,6 +156,39 @@
 		clock-output-names = "xin24m";
 	};
 
+	i2s0: i2s@ff000000 {
+		compatible = "rockchip,rk3328-i2s", "rockchip,rk3066-i2s";
+		reg = <0x0 0xff000000 0x0 0x1000>;
+		interrupts = <GIC_SPI 26 IRQ_TYPE_LEVEL_HIGH>;
+		clocks = <&cru SCLK_I2S0>, <&cru HCLK_I2S0_8CH>;
+		clock-names = "i2s_clk", "i2s_hclk";
+		dmas = <&dmac 11>, <&dmac 12>;
+		dma-names = "tx", "rx";
+		status = "disabled";
+	};
+
+	i2s1: i2s@ff010000 {
+		compatible = "rockchip,rk3328-i2s", "rockchip,rk3066-i2s";
+		reg = <0x0 0xff010000 0x0 0x1000>;
+		interrupts = <GIC_SPI 27 IRQ_TYPE_LEVEL_HIGH>;
+		clocks = <&cru SCLK_I2S1>, <&cru HCLK_I2S1_8CH>;
+		clock-names = "i2s_clk", "i2s_hclk";
+		dmas = <&dmac 14>, <&dmac 15>;
+		dma-names = "tx", "rx";
+		status = "disabled";
+	};
+
+	i2s2: i2s@ff020000 {
+		compatible = "rockchip,rk3328-i2s", "rockchip,rk3066-i2s";
+		reg = <0x0 0xff020000 0x0 0x1000>;
+		interrupts = <GIC_SPI 28 IRQ_TYPE_LEVEL_HIGH>;
+		clocks = <&cru SCLK_I2S2>, <&cru HCLK_I2S2_2CH>;
+		clock-names = "i2s_clk", "i2s_hclk";
+		dmas = <&dmac 0>, <&dmac 1>;
+		dma-names = "tx", "rx";
+		status = "disabled";
+	};
+
 	grf: syscon@ff100000 {
 		compatible = "rockchip,rk3328-grf", "syscon", "simple-mfd";
 		reg = <0x0 0xff100000 0x0 0x1000>;
-- 
2.7.4

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

* [PATCH v1 2/2] arm64: dts: rockchip: add rk3328 spdif node
  2017-07-27  8:16 [PATCH v1 0/2] Patches to add i2s, spdif node for rk3328 Sugar Zhang
  2017-07-27  8:16 ` [PATCH v1 1/2] arm64: dts: rockchip: add rk3328 i2s nodes Sugar Zhang
@ 2017-07-27  8:16 ` Sugar Zhang
  2017-07-29 21:12   ` Heiko Stuebner
  1 sibling, 1 reply; 6+ messages in thread
From: Sugar Zhang @ 2017-07-27  8:16 UTC (permalink / raw)
  To: heiko, broonie
  Cc: linux-rockchip, Sugar Zhang, Rob Herring, Mark Rutland,
	Catalin Marinas, Will Deacon, Liang Chen, Shawn Lin, devicetree,
	linux-arm-kernel, linux-kernel

This patch add the spdif dt node for rk3328.

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

---

 arch/arm64/boot/dts/rockchip/rk3328.dtsi | 13 +++++++++++++
 1 file changed, 13 insertions(+)

diff --git a/arch/arm64/boot/dts/rockchip/rk3328.dtsi b/arch/arm64/boot/dts/rockchip/rk3328.dtsi
index f1a284b..d278670 100644
--- a/arch/arm64/boot/dts/rockchip/rk3328.dtsi
+++ b/arch/arm64/boot/dts/rockchip/rk3328.dtsi
@@ -189,6 +189,19 @@
 		status = "disabled";
 	};
 
+	spdif: spdif@ff030000 {
+		compatible = "rockchip,rk3328-spdif";
+		reg = <0x0 0xff030000 0x0 0x1000>;
+		interrupts = <GIC_SPI 29 IRQ_TYPE_LEVEL_HIGH>;
+		clocks = <&cru SCLK_SPDIF>, <&cru HCLK_SPDIF_8CH>;
+		clock-names = "mclk", "hclk";
+		dmas = <&dmac 10>;
+		dma-names = "tx";
+		pinctrl-names = "default";
+		pinctrl-0 = <&spdifm2_tx>;
+		status = "disabled";
+	};
+
 	grf: syscon@ff100000 {
 		compatible = "rockchip,rk3328-grf", "syscon", "simple-mfd";
 		reg = <0x0 0xff100000 0x0 0x1000>;
-- 
2.7.4

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

* Re: [PATCH v1 1/2] arm64: dts: rockchip: add rk3328 i2s nodes
       [not found]   ` <1501143365-76104-2-git-send-email-sugar.zhang-TNX95d0MmH7DzftRWevZcw@public.gmane.org>
@ 2017-07-29 21:09     ` Heiko Stuebner
  2017-08-07 21:30     ` Heiko Stuebner
  1 sibling, 0 replies; 6+ messages in thread
From: Heiko Stuebner @ 2017-07-29 21:09 UTC (permalink / raw)
  To: Sugar Zhang
  Cc: broonie-DgEjT+Ai2ygdnm+yROfE0A,
	linux-rockchip-IAPFreCvJWM7uuMidbF8XUB+6BGkLq7r, Rob Herring,
	Mark Rutland, Catalin Marinas, Will Deacon, Liang Chen, Shawn Lin,
	devicetree-u79uwXL29TY76Z2rM5mHXA,
	linux-arm-kernel-IAPFreCvJWM7uuMidbF8XUB+6BGkLq7r,
	linux-kernel-u79uwXL29TY76Z2rM5mHXA

Am Donnerstag, 27. Juli 2017, 16:16:03 CEST schrieb Sugar Zhang:
> This patch add the i2s dt nodes for rk3328.
> 
> Signed-off-by: Sugar Zhang <sugar.zhang-TNX95d0MmH7DzftRWevZcw@public.gmane.org>
> ---
> 
>  arch/arm64/boot/dts/rockchip/rk3328.dtsi | 33 ++++++++++++++++++++++++++++++++
>  1 file changed, 33 insertions(+)
> 
> diff --git a/arch/arm64/boot/dts/rockchip/rk3328.dtsi b/arch/arm64/boot/dts/rockchip/rk3328.dtsi
> index 0be96ce..f1a284b 100644
> --- a/arch/arm64/boot/dts/rockchip/rk3328.dtsi
> +++ b/arch/arm64/boot/dts/rockchip/rk3328.dtsi
> @@ -156,6 +156,39 @@
>  		clock-output-names = "xin24m";
>  	};
>  
> +	i2s0: i2s@ff000000 {
> +		compatible = "rockchip,rk3328-i2s", "rockchip,rk3066-i2s";

It looks like the rockchip,rk3328-i2s compatible is missing in the binding
documentation (Documentation/devicetree/bindings/sound/rockchip-i2s.txt)

Send a patch adding it first please.


Heiko

--
To unsubscribe from this list: send the line "unsubscribe devicetree" in
the body of a message to majordomo-u79uwXL29TY76Z2rM5mHXA@public.gmane.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html

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

* Re: [PATCH v1 2/2] arm64: dts: rockchip: add rk3328 spdif node
  2017-07-27  8:16 ` [PATCH v1 2/2] arm64: dts: rockchip: add rk3328 spdif node Sugar Zhang
@ 2017-07-29 21:12   ` Heiko Stuebner
  0 siblings, 0 replies; 6+ messages in thread
From: Heiko Stuebner @ 2017-07-29 21:12 UTC (permalink / raw)
  To: Sugar Zhang
  Cc: broonie, linux-rockchip, Rob Herring, Mark Rutland,
	Catalin Marinas, Will Deacon, Liang Chen, Shawn Lin, devicetree,
	linux-arm-kernel, linux-kernel

Am Donnerstag, 27. Juli 2017, 16:16:04 CEST schrieb Sugar Zhang:
> This patch add the spdif dt node for rk3328.
> 
> Signed-off-by: Sugar Zhang <sugar.zhang@rock-chips.com>
> 
> ---
> 
>  arch/arm64/boot/dts/rockchip/rk3328.dtsi | 13 +++++++++++++
>  1 file changed, 13 insertions(+)
> 
> diff --git a/arch/arm64/boot/dts/rockchip/rk3328.dtsi b/arch/arm64/boot/dts/rockchip/rk3328.dtsi
> index f1a284b..d278670 100644
> --- a/arch/arm64/boot/dts/rockchip/rk3328.dtsi
> +++ b/arch/arm64/boot/dts/rockchip/rk3328.dtsi
> @@ -189,6 +189,19 @@
>  		status = "disabled";
>  	};
>  

I've adapted the patch so that it can exist without the previous one
and applied it for 4.14.


Thanks
Heiko


> +	spdif: spdif@ff030000 {
> +		compatible = "rockchip,rk3328-spdif";
> +		reg = <0x0 0xff030000 0x0 0x1000>;
> +		interrupts = <GIC_SPI 29 IRQ_TYPE_LEVEL_HIGH>;
> +		clocks = <&cru SCLK_SPDIF>, <&cru HCLK_SPDIF_8CH>;
> +		clock-names = "mclk", "hclk";
> +		dmas = <&dmac 10>;
> +		dma-names = "tx";
> +		pinctrl-names = "default";
> +		pinctrl-0 = <&spdifm2_tx>;
> +		status = "disabled";
> +	};
> +
>  	grf: syscon@ff100000 {
>  		compatible = "rockchip,rk3328-grf", "syscon", "simple-mfd";
>  		reg = <0x0 0xff100000 0x0 0x1000>;
> 

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

* Re: [PATCH v1 1/2] arm64: dts: rockchip: add rk3328 i2s nodes
       [not found]   ` <1501143365-76104-2-git-send-email-sugar.zhang-TNX95d0MmH7DzftRWevZcw@public.gmane.org>
  2017-07-29 21:09     ` Heiko Stuebner
@ 2017-08-07 21:30     ` Heiko Stuebner
  1 sibling, 0 replies; 6+ messages in thread
From: Heiko Stuebner @ 2017-08-07 21:30 UTC (permalink / raw)
  To: Sugar Zhang
  Cc: broonie-DgEjT+Ai2ygdnm+yROfE0A,
	linux-rockchip-IAPFreCvJWM7uuMidbF8XUB+6BGkLq7r, Rob Herring,
	Mark Rutland, Catalin Marinas, Will Deacon, Liang Chen, Shawn Lin,
	devicetree-u79uwXL29TY76Z2rM5mHXA,
	linux-arm-kernel-IAPFreCvJWM7uuMidbF8XUB+6BGkLq7r,
	linux-kernel-u79uwXL29TY76Z2rM5mHXA

Am Donnerstag, 27. Juli 2017, 16:16:03 CEST schrieb Sugar Zhang:
> This patch add the i2s dt nodes for rk3328.
> 
> Signed-off-by: Sugar Zhang <sugar.zhang-TNX95d0MmH7DzftRWevZcw@public.gmane.org>

as the binding patch got applied I've now also applied thos one for 4.14


Heiko
--
To unsubscribe from this list: send the line "unsubscribe devicetree" in
the body of a message to majordomo-u79uwXL29TY76Z2rM5mHXA@public.gmane.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html

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

end of thread, other threads:[~2017-08-07 21:30 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2017-07-27  8:16 [PATCH v1 0/2] Patches to add i2s, spdif node for rk3328 Sugar Zhang
2017-07-27  8:16 ` [PATCH v1 1/2] arm64: dts: rockchip: add rk3328 i2s nodes Sugar Zhang
     [not found]   ` <1501143365-76104-2-git-send-email-sugar.zhang-TNX95d0MmH7DzftRWevZcw@public.gmane.org>
2017-07-29 21:09     ` Heiko Stuebner
2017-08-07 21:30     ` Heiko Stuebner
2017-07-27  8:16 ` [PATCH v1 2/2] arm64: dts: rockchip: add rk3328 spdif node Sugar Zhang
2017-07-29 21:12   ` Heiko Stuebner

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).