From: "Paweł Anikiel" <pan@semihalf.com>
To: alsa-devel@alsa-project.org, devicetree@vger.kernel.org,
linux-kernel@vger.kernel.org, lgirdwood@gmail.com,
broonie@kernel.org
Cc: perex@perex.cz, tiwai@suse.com, robh+dt@kernel.org,
krzysztof.kozlowski+dt@linaro.org, dinguyen@kernel.org,
lars@metafoo.de, nuno.sa@analog.com, upstream@semihalf.com,
amstan@chromium.org, "Paweł Anikiel" <pan@semihalf.com>
Subject: [PATCH v2 6/7] ARM: dts: chameleonv3: Add Chameleon v3 audio
Date: Mon, 8 May 2023 13:30:36 +0200 [thread overview]
Message-ID: <20230508113037.137627-7-pan@semihalf.com> (raw)
In-Reply-To: <20230508113037.137627-1-pan@semihalf.com>
Add dts nodes for i2s, audio codec, and simple-audio-card devices.
Signed-off-by: Paweł Anikiel <pan@semihalf.com>
---
.../boot/dts/socfpga_arria10_chameleonv3.dts | 56 +++++++++++++++++++
1 file changed, 56 insertions(+)
diff --git a/arch/arm/boot/dts/socfpga_arria10_chameleonv3.dts b/arch/arm/boot/dts/socfpga_arria10_chameleonv3.dts
index f0483ef46a36..a69819e26144 100644
--- a/arch/arm/boot/dts/socfpga_arria10_chameleonv3.dts
+++ b/arch/arm/boot/dts/socfpga_arria10_chameleonv3.dts
@@ -15,6 +15,61 @@ aliases {
i2c0 = &i2c0;
i2c1 = &i2c1;
};
+
+ soc {
+ i2s0: i2s@c0060300 {
+ compatible = "google,chv3-i2s";
+ reg = <0xc0060300 0x100>,
+ <0xc0060f00 0x10>;
+ interrupts = <GIC_SPI 20 IRQ_TYPE_LEVEL_HIGH>;
+ #sound-dai-cells = <0>;
+ };
+
+ i2s1: i2s@c0060400 {
+ compatible = "google,chv3-i2s";
+ reg = <0xc0060400 0x100>,
+ <0xc0060f10 0x10>;
+ interrupts = <GIC_SPI 21 IRQ_TYPE_LEVEL_HIGH>;
+ #sound-dai-cells = <0>;
+ };
+ };
+
+ sound {
+ compatible = "simple-audio-card";
+ simple-audio-card,name = "chv3-audio";
+ #address-cells = <1>;
+ #size-cells = <0>;
+
+ simple-audio-card,dai-link@0 {
+ reg = <0>;
+ cpu {
+ sound-dai = <&i2s0>;
+ };
+ codec {
+ sound-dai = <&chv3_codec>;
+ };
+ };
+
+ simple-audio-card,dai-link@1 {
+ reg = <1>;
+ format = "i2s";
+ cpu {
+ sound-dai = <&i2s1>;
+ };
+ codec {
+ sound-dai = <&ssm2603>;
+ bitclock-master;
+ frame-master;
+ system-clock-frequency = <22579200>;
+ mclk-fs = <512>;
+ };
+ };
+ };
+
+ chv3_codec: audio-codec {
+ compatible = "google,chv3-codec";
+ #sound-dai-cells = <0>;
+ };
};
&gmac0 {
@@ -39,6 +94,7 @@ &i2c0 {
ssm2603: audio-codec@1a {
compatible = "adi,ssm2603";
reg = <0x1a>;
+ #sound-dai-cells = <0>;
};
};
--
2.40.1.521.gf1e218fcd8-goog
next prev parent reply other threads:[~2023-05-08 11:32 UTC|newest]
Thread overview: 17+ messages / expand[flat|nested] mbox.gz Atom feed top
2023-05-08 11:30 [PATCH v2 0/7] Add Chameleon v3 ASoC audio Paweł Anikiel
2023-05-08 11:30 ` [PATCH v2 1/7] ASoC: Add Google Chameleon v3 i2s driver Paweł Anikiel
2023-05-08 11:30 ` [PATCH v2 2/7] ASoC: Add Google Chameleon v3 codec driver Paweł Anikiel
2023-05-08 11:30 ` [PATCH v2 3/7] ASoC: dt-bindings: Add Google Chameleon v3 i2s device Paweł Anikiel
2023-05-08 12:27 ` Rob Herring
2023-05-09 6:14 ` Krzysztof Kozlowski
2023-05-09 6:15 ` Krzysztof Kozlowski
2023-05-08 11:30 ` [PATCH v2 4/7] ASoC: dt-bindings: Add Google Chameleon v3 audio codec Paweł Anikiel
2023-05-08 12:27 ` Rob Herring
2023-05-09 6:18 ` Krzysztof Kozlowski
2023-05-09 9:54 ` Mark Brown
2023-05-09 10:39 ` Paweł Anikiel
2023-05-08 11:30 ` [PATCH v2 5/7] ARM: dts: chameleonv3: Add mute gpio hog Paweł Anikiel
2023-05-08 11:30 ` Paweł Anikiel [this message]
2023-05-08 11:30 ` [PATCH v2 7/7] ASoC: ssm2602: Add workaround for playback distortions Paweł Anikiel
2023-05-12 4:19 ` (subset) [PATCH v2 0/7] Add Chameleon v3 ASoC audio Mark Brown
2023-05-18 22:29 ` Mark Brown
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=20230508113037.137627-7-pan@semihalf.com \
--to=pan@semihalf.com \
--cc=alsa-devel@alsa-project.org \
--cc=amstan@chromium.org \
--cc=broonie@kernel.org \
--cc=devicetree@vger.kernel.org \
--cc=dinguyen@kernel.org \
--cc=krzysztof.kozlowski+dt@linaro.org \
--cc=lars@metafoo.de \
--cc=lgirdwood@gmail.com \
--cc=linux-kernel@vger.kernel.org \
--cc=nuno.sa@analog.com \
--cc=perex@perex.cz \
--cc=robh+dt@kernel.org \
--cc=tiwai@suse.com \
--cc=upstream@semihalf.com \
/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
all inboxes | Powered by JetHome®