Linux SNPS ARC Archive on lore.kernel.org
 help / color / mirror / Atom feed
* [RESEND PATCH 1/2] arc: axs10x: Add DT bindings for I2S audio playback
@ 2017-04-21 10:15 Jose Abreu
  2017-03-02 18:57 ` [PATCH " Alexey Brodkin
                   ` (2 more replies)
  0 siblings, 3 replies; 12+ messages in thread
From: Jose Abreu @ 2017-04-21 10:15 UTC (permalink / raw)
  To: linux-snps-arc

This patch adds the necessary DT bindings to get HDMI audio
output in ARC AXS10x SDP. The bindings for I2S controller were
added as well as the bindings for simple audio card.

Signed-off-by: Jose Abreu <joabreu at synopsys.com>
Acked-by: Alexey Brodkin <abrodkin at synopsys.com>
Cc: Carlos Palminha <palminha at synopsys.com>
Cc: Alexey Brodkin <abrodkin at synopsys.com>
Cc: Rob Herring <robh+dt at kernel.org>
Cc: Vineet Gupta <vgupta at synopsys.com>
Cc: devicetree at vger.kernel.org
Cc: linux-snps-arc at lists.infradead.org
Cc: linux-kernel at vger.kernel.org
---
 arch/arc/boot/dts/axs10x_mb.dtsi | 22 ++++++++++++++++++----
 1 file changed, 18 insertions(+), 4 deletions(-)

diff --git a/arch/arc/boot/dts/axs10x_mb.dtsi b/arch/arc/boot/dts/axs10x_mb.dtsi
index d6c1bbc..9d882b1 100644
--- a/arch/arc/boot/dts/axs10x_mb.dtsi
+++ b/arch/arc/boot/dts/axs10x_mb.dtsi
@@ -149,12 +149,13 @@
 			interrupts = <14>;
 		};
 
-		i2c at 0x1e000 {
-			compatible = "snps,designware-i2c";
+		i2s: i2s at 1e000 {
+			compatible = "snps,designware-i2s";
 			reg = <0x1e000 0x100>;
-			clock-frequency = <400000>;
-			clocks = <&i2cclk>;
+			clocks = <&i2sclk 0>;
+			clock-names = "i2sclk";
 			interrupts = <15>;
+			#sound-dai-cells = <0>;
 		};
 
 		i2c at 0x1f000 {
@@ -174,6 +175,7 @@
 				adi,input-colorspace = "rgb";
 				adi,input-clock = "1x";
 				adi,clock-delay = <0x03>;
+				#sound-dai-cells = <0>;
 
 				ports {
 					#address-cells = <1>;
@@ -295,5 +297,17 @@
 				};
 			};
 		};
+
+		sound_playback {
+			compatible = "simple-audio-card";
+			simple-audio-card,name = "AXS10x HDMI Audio";
+			simple-audio-card,format = "i2s";
+			simple-audio-card,cpu {
+				sound-dai = <&i2s>;
+			};
+			simple-audio-card,codec {
+				sound-dai = <&adv7511>;
+			};
+		};
 	};
 };
-- 
1.9.1

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

end of thread, other threads:[~2017-04-27 19:13 UTC | newest]

Thread overview: 12+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2017-04-21 10:15 [RESEND PATCH 1/2] arc: axs10x: Add DT bindings for I2S audio playback Jose Abreu
2017-03-02 18:57 ` [PATCH " Alexey Brodkin
2017-03-20 14:02   ` Jose Abreu
2017-03-20 14:05     ` Alexey Brodkin
2017-03-29 13:38     ` Jose Abreu
2017-04-21 10:15 ` [RESEND PATCH 2/2] arc: axs10x: Fix ARC PGU default clock frequency Jose Abreu
2017-03-02 17:35   ` [PATCH " Alexey Brodkin
2017-04-24 17:36 ` [RESEND PATCH 1/2] arc: axs10x: Add DT bindings for I2S audio playback Vineet Gupta
2017-04-26  8:55   ` Jose Abreu
2017-04-26 23:31     ` Vineet Gupta
2017-04-27 18:42       ` Jose Abreu
2017-04-27 19:13         ` Vineet Gupta

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox