From: Luca Weiss <luca@z3ntu.xyz>
To: ~postmarketos/upstreaming@lists.sr.ht
Cc: phone-devel@vger.kernel.org, Andy Gross <agross@kernel.org>,
Bjorn Andersson <bjorn.andersson@linaro.org>,
Rob Herring <robh+dt@kernel.org>,
Krzysztof Kozlowski <krzysztof.kozlowski+dt@linaro.org>,
linux-arm-msm@vger.kernel.org, devicetree@vger.kernel.org,
linux-kernel@vger.kernel.org,
Alexander Martinz <amartinz@shiftphones.com>,
Dylan Van Assche <me@dylanvanassche.be>,
Alexander Martinz <amartinz@shiftphones.com>
Subject: Re: [PATCH 2/2] arm64: dts: qcom/sdm845-shift-axolotl: Add audio support
Date: Thu, 09 Jun 2022 19:19:15 +0200 [thread overview]
Message-ID: <11993096.O9o76ZdvQC@g550jk> (raw)
In-Reply-To: <20220609095412.211060-2-amartinz@shiftphones.com>
Hi Alexander,
On Donnerstag, 9. Juni 2022 11:54:12 CEST Alexander Martinz wrote:
> This patch adds audio support for the SHIFT6mq phone.
>
> The primary microphone and headphone jack are handled by the
> SDM845 sound card and WCD9340 codec.
>
> The primary speaker needs to go through the TFA9890 speaker
> amplifier.
>
> Signed-off-by: Alexander Martinz <amartinz@shiftphones.com>
> Tested-by: Dylan Van Assche <me@dylanvanassche.be>
> ---
> .../boot/dts/qcom/sdm845-shift-axolotl.dts | 141 ++++++++++++++++++
> 1 file changed, 141 insertions(+)
>
> diff --git a/arch/arm64/boot/dts/qcom/sdm845-shift-axolotl.dts
> b/arch/arm64/boot/dts/qcom/sdm845-shift-axolotl.dts index
> fa72f23ef0c2..8c4967d6d0e3 100644
> --- a/arch/arm64/boot/dts/qcom/sdm845-shift-axolotl.dts
> +++ b/arch/arm64/boot/dts/qcom/sdm845-shift-axolotl.dts
> @@ -8,6 +8,8 @@
>
> #include <dt-bindings/gpio/gpio.h>
> #include <dt-bindings/regulator/qcom,rpmh-regulator.h>
> +#include <dt-bindings/sound/qcom,q6afe.h>
> +#include <dt-bindings/sound/qcom,q6asm.h>
> #include "sdm845.dtsi"
> #include "pm8998.dtsi"
> #include "pmi8998.dtsi"
> @@ -492,6 +494,19 @@ touchscreen@38 {
> };
> };
>
> +&i2c11 {
> + status = "okay";
> + clock-frequency = <400000>;
> +
> + tfa9890_codec: tfa9890@34 {
> + compatible = "nxp,tfa9890";
> + reg = <0x34>;
> + vddd-supply = <&vreg_s4a_1p8>;
> + reset-gpio = <&tlmm 7 0>;
> + #sound-dai-cells = <1>;
> + };
> +};
> +
> &ipa {
> status = "okay";
>
> @@ -530,6 +545,27 @@ volume_down_resin: resin {
> };
> };
>
> +&q6afedai {
> + qi2s@22 {
> + reg = <22>;
> + qcom,sd-lines = <0>;
> + };
> +};
While my patch hasn't been reviewed yet, I have proposed to change the magic
number <22> to the constant QUATERNARY_MI2S_RX here in existing dts files which
better describes what the reg here is.
https://lore.kernel.org/linux-arm-msm/20220603094710.64591-1-luca.weiss@fairphone.com/
Maybe worth doing the same here for v2?
Regards
Luca
next prev parent reply other threads:[~2022-06-09 17:19 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2022-06-09 9:54 [PATCH 1/2] arch: arm64: qcom: sdm845-shift-axolotl: fix Bluetooth firmware loading Alexander Martinz
2022-06-09 9:54 ` [PATCH 2/2] arm64: dts: qcom/sdm845-shift-axolotl: Add audio support Alexander Martinz
2022-06-09 12:14 ` Krzysztof Kozlowski
2022-06-09 17:07 ` Stephan Gerhold
2022-06-09 17:19 ` Luca Weiss [this message]
2022-06-09 12:11 ` [PATCH 1/2] arch: arm64: qcom: sdm845-shift-axolotl: fix Bluetooth firmware loading Krzysztof Kozlowski
2022-06-09 12:47 ` Dmitry Baryshkov
2022-07-06 18:49 ` Caleb Connolly
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=11993096.O9o76ZdvQC@g550jk \
--to=luca@z3ntu.xyz \
--cc=agross@kernel.org \
--cc=amartinz@shiftphones.com \
--cc=bjorn.andersson@linaro.org \
--cc=devicetree@vger.kernel.org \
--cc=krzysztof.kozlowski+dt@linaro.org \
--cc=linux-arm-msm@vger.kernel.org \
--cc=linux-kernel@vger.kernel.org \
--cc=me@dylanvanassche.be \
--cc=phone-devel@vger.kernel.org \
--cc=robh+dt@kernel.org \
--cc=~postmarketos/upstreaming@lists.sr.ht \
/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