From: sashiko-bot@kernel.org
To: "David Heidelberg" <david@ixit.cz>
Cc: conor+dt@kernel.org, devicetree@vger.kernel.org, robh@kernel.org
Subject: Re: [PATCH RFC 3/3] arm64: dts: qcom: sdm845-oneplus-fajita: Enable speaker codec
Date: Sun, 02 Aug 2026 12:55:42 +0000 [thread overview]
Message-ID: <20260802125542.9E2B71F000E9@smtp.kernel.org> (raw)
In-Reply-To: <20260802-tfa98xx-upstream-v1-3-4dd55cdd658a@ixit.cz>
Thank you for your contribution! Sashiko AI review found 2 potential issue(s) to consider:
- [High] Incorrect active polarity for the codec reset GPIO in the device tree, holding the hardware in reset.
- [Medium] The commit message incorrectly identifies the target device as 'OnePlus 6', while the patch actually modifies the 'OnePlus 6T' (Fajita) device tree.
--
--- Patch [3]: [PATCH RFC 3/3] arm64: dts: qcom: sdm845-oneplus-fajita: Enable speaker codec ---
commit 05cefbbcdc0e5b43fbfd650af4c52fe9dfdebf01
Author: David Heidelberg <david@ixit.cz>
arm64: dts: qcom: sdm845-oneplus-fajita: Enable speaker codec
This commit enables the NXP TFA9894 audio codec on the OnePlus 6T (Fajita)
device tree by adding the required I2C node and linking it to the speaker
playback DAI.
> OnePlus 6 uses NXP TFA9894 audio codec. Enable it.
[Severity: Medium]
Is the device name correct here? The patch modifies sdm845-oneplus-fajita.dts,
which corresponds to the OnePlus 6T. The OnePlus 6 (Enchilada) appears to use a
completely different codec (MAX98927). Should this specify OnePlus 6T instead?
> diff --git a/arch/arm64/boot/dts/qcom/sdm845-oneplus-fajita.dts b/arch/arm64/boot/dts/qcom/sdm845-oneplus-fajita.dts
> index 0542333a83579..cb08aab4740a4 100644
> --- a/arch/arm64/boot/dts/qcom/sdm845-oneplus-fajita.dts
> +++ b/arch/arm64/boot/dts/qcom/sdm845-oneplus-fajita.dts
[ ... ]
> @@ -40,7 +40,16 @@ &framebuffer {
> };
>
> &i2c4 {
> - /* nxp,tfa9894 @ 0x34 */
> + clock-frequency = <400000>;
> +
> + status = "okay";
> +
> + tfa9894_codec: audio-codec@34 {
> + compatible = "nxp,tfa9894";
> + reg = <0x34>;
> + reset-gpios = <&tlmm 69 GPIO_ACTIVE_HIGH>;
[Severity: High]
Does this GPIO polarity hold the codec in reset permanently?
Looking at tfa98xx_i2c_probe() in sound/soc/codecs/tfa98xx.c, the driver
clears the logical reset during boot:
sound/soc/codecs/tfa98xx.c:tfa98xx_i2c_probe() {
...
gpiod_set_value_cansleep(reset_gpiod, 0);
...
}
Because the device tree specifies GPIO_ACTIVE_HIGH, deasserting the logical
reset (setting to 0) will drive the physical pin LOW. If the hardware actually
expects a physical HIGH signal to operate, this active-high configuration will
cause the subsequent I2C probe to fail.
> + #sound-dai-cells = <0>;
> + };
> };
--
Sashiko AI review · https://sashiko.dev/#/patchset/20260802-tfa98xx-upstream-v1-0-4dd55cdd658a@ixit.cz?part=3
prev parent reply other threads:[~2026-08-02 12:55 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-08-02 12:42 [PATCH RFC 0/3] Initial TFA2 family driver for tfa98xx David Heidelberg via B4 Relay
2026-08-02 12:42 ` [PATCH RFC 1/3] dt-bindings: sound: Add NXP TFA98XX TFA2 amplifier binding David Heidelberg via B4 Relay
2026-08-02 12:45 ` sashiko-bot
2026-08-02 12:42 ` [PATCH RFC 2/3] ASoC: codecs: tfa98xx: add driver for TFA2 amplifiers David Heidelberg via B4 Relay
2026-08-02 12:48 ` sashiko-bot
2026-08-02 12:42 ` [PATCH RFC 3/3] arm64: dts: qcom: sdm845-oneplus-fajita: Enable speaker codec David Heidelberg via B4 Relay
2026-08-02 12:55 ` sashiko-bot [this message]
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=20260802125542.9E2B71F000E9@smtp.kernel.org \
--to=sashiko-bot@kernel.org \
--cc=conor+dt@kernel.org \
--cc=david@ixit.cz \
--cc=devicetree@vger.kernel.org \
--cc=robh@kernel.org \
--cc=sashiko-reviews@lists.linux.dev \
/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