Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > linux.kernel > #1570568
| From | Mylène Josserand <mylene.josserand@free-electrons.com> |
|---|---|
| Newsgroups | linux.kernel |
| Subject | [PATCH v3 6/8] ARM: dts: sun8i: Add audio codec, dai and card for A33 |
| Date | 2017-01-31 11:20 +0100 |
| Message-ID | <t5DHA-7V9-31@gated-at.bofh.it> (permalink) |
| References | <t5DxU-7RQ-7@gated-at.bofh.it> |
| Organization | linux.* mail to news gateway |
Add the audio codec, dai and a simple card to be able to use the
audio stream of the builtin codec on sun8i SoC.
This commit adds also an audio-routing for the sound card node to link
the analog DAPM widgets (Right/Left DAC) and the digital one's as they
are created in different drivers.
Signed-off-by: Mylène Josserand <mylene.josserand@free-electrons.com>
---
arch/arm/boot/dts/sun8i-a33.dtsi | 45 ++++++++++++++++++++++++++++++++++++++++
1 file changed, 45 insertions(+)
diff --git a/arch/arm/boot/dts/sun8i-a33.dtsi b/arch/arm/boot/dts/sun8i-a33.dtsi
index 5a9ba43ccb07..18c174fef84f 100644
--- a/arch/arm/boot/dts/sun8i-a33.dtsi
+++ b/arch/arm/boot/dts/sun8i-a33.dtsi
@@ -104,6 +104,28 @@
reg = <0x40000000 0x80000000>;
};
+ sound: sound {
+ compatible = "simple-audio-card";
+ simple-audio-card,name = "sun8i-a33-audio";
+ simple-audio-card,format = "i2s";
+ simple-audio-card,frame-master = <&link_codec>;
+ simple-audio-card,bitclock-master = <&link_codec>;
+ simple-audio-card,mclk-fs = <512>;
+ simple-audio-card,aux-devs = <&codec_analog>;
+ simple-audio-card,routing =
+ "Left DAC", "Digital Left DAC",
+ "Right DAC", "Digital Right DAC";
+ status = "disabled";
+
+ simple-audio-card,cpu {
+ sound-dai = <&dai>;
+ };
+
+ link_codec: simple-audio-card,codec {
+ sound-dai = <&codec>;
+ };
+ };
+
soc@01c00000 {
tcon0: lcd-controller@01c0c000 {
compatible = "allwinner,sun8i-a33-tcon";
@@ -151,6 +173,29 @@
reset-names = "ahb";
};
+ dai: dai@01c22c00 {
+ #sound-dai-cells = <0>;
+ compatible = "allwinner,sun6i-a31-i2s";
+ reg = <0x01c22c00 0x200>;
+ interrupts = <GIC_SPI 29 IRQ_TYPE_LEVEL_HIGH>;
+ clocks = <&ccu CLK_BUS_CODEC>, <&ccu CLK_AC_DIG>;
+ clock-names = "apb", "mod";
+ resets = <&ccu RST_BUS_CODEC>;
+ dmas = <&dma 15>, <&dma 15>;
+ dma-names = "rx", "tx";
+ status = "disabled";
+ };
+
+ codec: codec@01c22e00 {
+ #sound-dai-cells = <0>;
+ compatible = "allwinner,sun8i-a33-codec";
+ reg = <0x01c22e00 0x400>;
+ interrupts = <GIC_SPI 29 IRQ_TYPE_LEVEL_HIGH>;
+ clocks = <&ccu CLK_BUS_CODEC>, <&ccu CLK_AC_DIG>;
+ clock-names = "bus", "mod";
+ status = "disabled";
+ };
+
fe0: display-frontend@01e00000 {
compatible = "allwinner,sun8i-a33-display-frontend";
reg = <0x01e00000 0x20000>;
--
2.11.0
Back to linux.kernel | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread
[PATCH v3 0/8] Add sun8i A33 audio driver Mylène Josserand <mylene.josserand@free-electrons.com> - 2017-01-31 11:10 +0100
[PATCH v3 8/8] ARM: dts: sun8i: sinlinx: Enable audio nodes Mylène Josserand <mylene.josserand@free-electrons.com> - 2017-01-31 11:10 +0100
[PATCH v3 1/8] ASoC: sun4i-i2s: Update binding documentation to include A31 Mylène Josserand <mylene.josserand@free-electrons.com> - 2017-01-31 11:10 +0100
Re: [PATCH v3 1/8] ASoC: sun4i-i2s: Update binding documentation to include A31 Maxime Ripard <maxime.ripard@free-electrons.com> - 2017-01-31 12:10 +0100
Re: [PATCH v3 1/8] ASoC: sun4i-i2s: Update binding documentation to include A31 Mark Brown <broonie@kernel.org> - 2017-02-01 00:00 +0100
Re: [PATCH v3 1/8] ASoC: sun4i-i2s: Update binding documentation to include A31 Mylene Josserand <mylene.josserand@free-electrons.com> - 2017-02-01 08:50 +0100
Re: [PATCH v3 1/8] ASoC: sun4i-i2s: Update binding documentation to include A31 Mark Brown <broonie@kernel.org> - 2017-02-01 13:10 +0100
Re: [PATCH v3 1/8] ASoC: sun4i-i2s: Update binding documentation to include A31 Mylene Josserand <mylene.josserand@free-electrons.com> - 2017-02-01 16:20 +0100
Re: [PATCH v3 1/8] ASoC: sun4i-i2s: Update binding documentation to include A31 Rob Herring <robh@kernel.org> - 2017-02-01 18:30 +0100
[PATCH v3 7/8] ARM: dts: sun8i: parrot: Enable audio nodes Mylène Josserand <mylene.josserand@free-electrons.com> - 2017-01-31 11:10 +0100
[PATCH v3 3/8] ASoC: Add sun8i digital audio codec Mylène Josserand <mylene.josserand@free-electrons.com> - 2017-01-31 11:10 +0100
Re: [PATCH v3 3/8] ASoC: Add sun8i digital audio codec Maxime Ripard <maxime.ripard@free-electrons.com> - 2017-01-31 11:40 +0100
Re: [PATCH v3 3/8] ASoC: Add sun8i digital audio codec kbuild test robot <lkp@intel.com> - 2017-01-31 12:40 +0100
[PATCH] ASoC: fix platform_no_drv_owner.cocci warnings kbuild test robot <lkp@intel.com> - 2017-01-31 12:40 +0100
[PATCH v3 2/8] ASoC: sun4i-i2s: Add quirks to handle a31 compatible Mylène Josserand <mylene.josserand@free-electrons.com> - 2017-01-31 11:10 +0100
Re: [PATCH v3 2/8] ASoC: sun4i-i2s: Add quirks to handle a31 compatible Maxime Ripard <maxime.ripard@free-electrons.com> - 2017-01-31 11:40 +0100
[PATCH v3 6/8] ARM: dts: sun8i: Add audio codec, dai and card for A33 Mylène Josserand <mylene.josserand@free-electrons.com> - 2017-01-31 11:20 +0100
[PATCH v3 5/8] ASoC: codecs: Add sun8i-a33 binding documentation Mylène Josserand <mylene.josserand@free-electrons.com> - 2017-01-31 11:20 +0100
Re: [PATCH v3 5/8] ASoC: codecs: Add sun8i-a33 binding documentation Maxime Ripard <maxime.ripard@free-electrons.com> - 2017-01-31 11:50 +0100
Re: [PATCH v3 5/8] ASoC: codecs: Add sun8i-a33 binding documentation Rob Herring <robh@kernel.org> - 2017-02-01 18:40 +0100
[PATCH v3 4/8] ASoC: sun8i-codec-analog: Add amplifier event to fix first delay Mylène Josserand <mylene.josserand@free-electrons.com> - 2017-01-31 11:20 +0100
Re: [PATCH v3 4/8] ASoC: sun8i-codec-analog: Add amplifier event to fix first delay Maxime Ripard <maxime.ripard@free-electrons.com> - 2017-01-31 11:40 +0100
csiph-web