From: sashiko-bot@kernel.org
To: "David Heidelberg" <david@ixit.cz>
Cc: robh@kernel.org, conor+dt@kernel.org, devicetree@vger.kernel.org
Subject: Re: [PATCH RFC 6/6] arm64: dts: qcom: sdm845-google: Add basic audio support
Date: Sun, 05 Jul 2026 20:18:08 +0000 [thread overview]
Message-ID: <20260705201808.B82201F000E9@smtp.kernel.org> (raw)
In-Reply-To: <20260705-pixel3-audio-v1-6-3b66f33859f1@ixit.cz>
Thank you for your contribution! Sashiko AI review found 1 potential issue(s) to consider:
- [Low] The `reset-gpios` property for the CS35L36 codecs incorrectly specifies `GPIO_ACTIVE_HIGH` to work around a logical bug in the CS35L36 driver.
--
commit 380e434eaeea6507428e5e193d27e7812369af1c
Author: David Heidelberg <david@ixit.cz>
arm64: dts: qcom: sdm845-google: Add basic audio support
This commit introduces audio support for the sdm845-google devices. It adds
the sound card and wires up two CS35L36 audio codecs for the top and bottom
speakers.
> diff --git a/arch/arm64/boot/dts/qcom/sdm845-google-common.dtsi b/arch/arm64/boot/dts/qcom/sdm845-google-common.dtsi
> index b2dc0327dff85..d00fee7ebd424 100644
> --- a/arch/arm64/boot/dts/qcom/sdm845-google-common.dtsi
> +++ b/arch/arm64/boot/dts/qcom/sdm845-google-common.dtsi
[ ... ]
> @@ -409,9 +411,53 @@ nfc@28 {
> };
>
> &i2c12 {
> - /* Bottom spkr (right) CS35L36 @ 40 */
> + status = "okay";
> +
> + /* CS35L36, Bottom Speaker */
> + cs35l36_bottom: audio-codec@40 {
> + compatible = "cirrus,cs35l36";
> + reg = <0x40>;
> + reset-gpios = <&tlmm 112 GPIO_ACTIVE_HIGH>;
[Severity: Low]
Is this reset-gpios polarity intentionally set to GPIO_ACTIVE_HIGH to work
around the cs35l36 driver bug?
Since the CS35L36 hardware reset pin is active-low, shouldn't devicetree
accurately describe the hardware rather than encode a software workaround?
The driver in sound/soc/codecs/cs35l36.c currently treats the GPIO as an
enable signal, requesting it with GPIOD_OUT_LOW and writing a logical 1
to run. Setting GPIO_ACTIVE_HIGH in the DT translates this into a physical
high voltage, taking the device out of reset.
Would it be better to specify this as active-low to match the hardware and
address the bug in the driver instead?
> + #sound-dai-cells = <0>;
[ ... ]
> + /* CS35L36, Top Speaker */
> + cs35l36_top: audio-codec@41 {
> + compatible = "cirrus,cs35l36";
> + reg = <0x41>;
> + reset-gpios = <&tlmm 75 GPIO_ACTIVE_HIGH>;
[Severity: Low]
Are we encoding the same driver workaround in the devicetree here for the
top speaker?
--
Sashiko AI review · https://sashiko.dev/#/patchset/20260705-pixel3-audio-v1-0-3b66f33859f1@ixit.cz?part=6
next prev parent reply other threads:[~2026-07-05 20:18 UTC|newest]
Thread overview: 22+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-07-05 20:06 [PATCH RFC 0/6] Speakers for Pixel 3 / 3 XL David Heidelberg via B4 Relay
2026-07-05 20:06 ` [PATCH RFC 1/6] ASoC: qcom: sdm845: Demystify TDM masks a bit David Heidelberg via B4 Relay
2026-07-05 20:19 ` sashiko-bot
2026-07-05 20:06 ` [PATCH RFC 2/6] ASoC: qcom: sdm845: use DSP_A format for TDM codec DAIs David Heidelberg via B4 Relay
2026-07-05 20:18 ` sashiko-bot
2026-07-06 8:33 ` Konrad Dybcio
2026-07-06 9:15 ` David Heidelberg
2026-07-06 9:40 ` Konrad Dybcio
2026-07-05 20:06 ` [PATCH RFC 3/6] ASoC: qcom: sdm845: Use per-speaker RX masks for TDM slot assignment David Heidelberg via B4 Relay
2026-07-05 20:25 ` sashiko-bot
2026-07-05 20:06 ` [PATCH RFC 4/6] ASoC: qcom: sdm845: Set codec dai and component sysclk during startup David Heidelberg via B4 Relay
2026-07-05 20:19 ` sashiko-bot
2026-07-05 20:06 ` [PATCH RFC 5/6] ASoC: cs35l36: Implement set_tdm_slot to program RX slot register David Heidelberg via B4 Relay
2026-07-05 20:20 ` sashiko-bot
2026-07-06 8:52 ` Charles Keepax
2026-07-06 9:11 ` Konrad Dybcio
2026-07-05 20:06 ` [PATCH RFC 6/6] arm64: dts: qcom: sdm845-google: Add basic audio support David Heidelberg via B4 Relay
2026-07-05 20:18 ` sashiko-bot [this message]
2026-07-06 9:14 ` Konrad Dybcio
2026-07-06 9:17 ` David Heidelberg
2026-07-06 11:59 ` Konrad Dybcio
2026-07-06 12:00 ` Konrad Dybcio
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=20260705201808.B82201F000E9@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