From: Alexey.Brodkin@synopsys.com (Alexey Brodkin)
To: linux-snps-arc@lists.infradead.org
Subject: [PATCH 1/2] arc: axs10x: Add DT bindings for I2S audio playback
Date: Thu, 2 Mar 2017 18:57:19 +0000 [thread overview]
Message-ID: <1488481038.2684.14.camel@synopsys.com> (raw)
In-Reply-To: <7ed6deaf1ae6d5819364c793835aa30316077a7e.1487787376.git.joabreu@synopsys.com>
Hi Jose,
On Wed, 2017-02-22@18:19 +0000, Jose Abreu wrote:
> 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>
> 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>;
> + };
> + };
> ? };
> ?};
Just for the sake of history that's my mods to defconfig that allowed me
to play .pcm via HDMI from axs103 board:
-------------------------------->8-------------------------------
diff --git a/arch/arc/configs/axs103_smp_defconfig b/arch/arc/configs/axs103_smp_defconfig
index 30a3d4cf53d2..b11362a32e4e 100644
--- a/arch/arc/configs/axs103_smp_defconfig
+++ b/arch/arc/configs/axs103_smp_defconfig
@@ -67,25 +67,29 @@ CONFIG_MOUSE_PS2_TOUCHKIT=y
?CONFIG_MOUSE_SERIAL=y
?CONFIG_MOUSE_SYNAPTICS_USB=y
?# CONFIG_LEGACY_PTYS is not set
-# CONFIG_DEVKMEM is not set
?CONFIG_SERIAL_8250=y
?CONFIG_SERIAL_8250_CONSOLE=y
?CONFIG_SERIAL_8250_DW=y
?CONFIG_SERIAL_OF_PLATFORM=y
?# CONFIG_HW_RANDOM is not set
-CONFIG_I2C=y
?CONFIG_I2C_CHARDEV=y
?CONFIG_I2C_DESIGNWARE_PLATFORM=y
?# CONFIG_HWMON is not set
-CONFIG_DRM=m
-CONFIG_DRM_I2C_ADV7511=m
-CONFIG_DRM_ARCPGU=m
-CONFIG_FB=y
+CONFIG_DRM=y
+CONFIG_DRM_I2C_ADV7511=y
+CONFIG_DRM_I2C_ADV7511_AUDIO=y
+CONFIG_DRM_ARCPGU=y
?CONFIG_FRAMEBUFFER_CONSOLE=y
?CONFIG_LOGO=y
?# CONFIG_LOGO_LINUX_MONO is not set
?# CONFIG_LOGO_LINUX_VGA16 is not set
?# CONFIG_LOGO_LINUX_CLUT224 is not set
+CONFIG_SOUND=y
+CONFIG_SND=y
+CONFIG_SND_SOC=y
+CONFIG_SND_DESIGNWARE_I2S=y
+CONFIG_SND_DESIGNWARE_PCM=y
+CONFIG_SND_SIMPLE_CARD=y
?CONFIG_USB_EHCI_HCD=y
?CONFIG_USB_EHCI_HCD_PLATFORM=y
?CONFIG_USB_OHCI_HCD=y
-------------------------------->8-------------------------------
Anyways...
Acked-by: Alexey Brodkin <abrodkin at synopsys.com>
next prev parent reply other threads:[~2017-03-02 18:57 UTC|newest]
Thread overview: 12+ messages / expand[flat|nested] mbox.gz Atom feed top
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 ` Alexey Brodkin [this message]
2017-03-20 14:02 ` [PATCH " 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
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=1488481038.2684.14.camel@synopsys.com \
--to=alexey.brodkin@synopsys.com \
--cc=linux-snps-arc@lists.infradead.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox