From: sashiko-bot@kernel.org
To: "Richard Acayan" <mailingradian@gmail.com>
Cc: conor+dt@kernel.org, robh@kernel.org, devicetree@vger.kernel.org
Subject: Re: [PATCH v2 09/11] arm64: dts: qcom: pm660l: add analog audio codec
Date: Sat, 03 Oct 2026 18:06:35 +0000 [thread overview]
Message-ID: <20261003180636.5B5F21F0089B@smtp.kernel.org> (raw)
In-Reply-To: <20261003175659.23536-10-mailingradian@gmail.com>
Thank you for your contribution! Sashiko AI review found 2 potential issue(s) to consider:
- [Medium] dts: pm660l: board-specific hardware properties hardcoded in generic PMIC dtsi
- [Low] dts: pm660l: undeclared sound-name-prefix causes dtbs_check warning
--
commit cfcd4e3e10aad19a5a6d69fee31b064e8108d24a
Author: Richard Acayan <mailingradian@gmail.com>
arm64: dts: qcom: pm660l: add analog audio codec
The PM660L analog audio codec (PMIC revision 4) controls the headphone
jack, and optionally the earpiece and speaker, at the vendor's decision.
This commit adds the analog audio codec to the generic PMIC device tree.
> diff --git a/arch/arm64/boot/dts/qcom/pm660l.dtsi b/arch/arm64/boot/dts/qcom/pm660l.dtsi
> index 3f8b9eafe1641..5b406b83043c2 100644
> --- a/arch/arm64/boot/dts/qcom/pm660l.dtsi
> +++ b/arch/arm64/boot/dts/qcom/pm660l.dtsi
> @@ -87,6 +87,46 @@ pm660l_wled: leds@d800 {
> status = "disabled";
> };
>
> + pm660l_codec: audio-codec@f000 {
> + compatible = "qcom,pm660l-wcd-analog-codec",
> + "qcom,pm8953-wcd-analog-codec";
> + reg = <0xf000>;
[ ... ]
> + interrupt-names = "cdc_spk_cnp_int",
> + "cdc_spk_clip_int",
> + "cdc_spk_ocp_int",
> + "mbhc_ins_rem_det1",
> + "mbhc_but_rel_det",
> + "mbhc_but_press_det",
> + "mbhc_ins_rem_det",
> + "mbhc_switch_int",
> + "cdc_ear_ocp_int",
> + "cdc_hphr_ocp_int",
> + "cdc_hphl_ocp_det",
> + "cdc_ear_cnp_int",
> + "cdc_hphr_cnp_int",
> + "cdc_hphl_cnp_int";
> + qcom,hphl-jack-type-normally-open;
> + qcom,gnd-jack-type-normally-open;
> + qcom,micbias2-ext-cap;
[Severity: Medium]
Will this cause problems for other boards that include this generic PMIC
file but have different hardware wiring?
These physical wiring properties (qcom,hphl-jack-type-normally-open,
qcom,gnd-jack-type-normally-open, qcom,micbias2-ext-cap) seem like they
should be placed in board-specific .dts files rather than a generic common
.dtsi.
Other boards with differently wired jacks (e.g., normally-closed) or lacking
an external capacitor will inherit these settings, which could lead to
inverted headphone detection or broken microphones.
> + sound-name-prefix = "Analog";
[Severity: Low]
Is this sound-name-prefix property supported by the dt-binding schema?
It appears that the dt-binding schema for this codec
(Documentation/devicetree/bindings/sound/qcom,pm8916-wcd-analog-codec.yaml)
enforces additionalProperties: false and does not define sound-name-prefix.
Adding it here will likely cause a dtbs_check validation failure.
> + #sound-dai-cells = <1>;
> + status = "disabled";
> + };
> +
> pm660l_spmi_regulators: regulators {
> compatible = "qcom,pm660l-regulators";
> };
--
Sashiko AI review · https://sashiko.dev/#/patchset/20261003175659.23536-1-mailingradian@gmail.com?part=9
next prev parent reply other threads:[~2026-10-03 18:06 UTC|newest]
Thread overview: 19+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-10-03 17:56 [PATCH v2 00/11] ADSP for SDM670 and sound on Google Pixel 3a Richard Acayan
2026-10-03 17:56 ` [PATCH v2 01/11] dt-bindings: soc: qcom,smp2p: add sleepstate support Richard Acayan
2026-10-03 17:56 ` [PATCH v2 02/11] dt-bindings: mailbox: qcom: Add SDM670 APCS compatible Richard Acayan
2026-10-03 17:56 ` [PATCH v2 03/11] dt-bindings: soc: qcom: aoss: Add compatible for SDM670 Richard Acayan
2026-10-03 17:56 ` [PATCH v2 04/11] dt-bindings: remoteproc: qcom: adsp: Add SDM670 ADSP compatible Richard Acayan
2026-10-03 18:05 ` sashiko-bot
2026-10-09 6:52 ` Krzysztof Kozlowski
2026-10-03 17:56 ` [PATCH v2 05/11] ASoC: dt-bindings: msm8916-digital-codec: Add SDM670 compatible Richard Acayan
2026-10-04 7:55 ` Krzysztof Kozlowski
2026-10-03 17:56 ` [PATCH v2 06/11] remoteproc: qcom: pas: Add SDM670 ADSP support Richard Acayan
2026-10-03 17:56 ` [PATCH v2 07/11] arm64: dts: qcom: sdm670: add adsp Richard Acayan
2026-10-03 18:08 ` sashiko-bot
2026-10-03 17:56 ` [PATCH v2 08/11] arm64: dts: qcom: sdm670-google: enable adsp Richard Acayan
2026-10-03 17:56 ` [PATCH v2 09/11] arm64: dts: qcom: pm660l: add analog audio codec Richard Acayan
2026-10-03 18:06 ` sashiko-bot [this message]
2026-10-03 17:56 ` [PATCH v2 10/11] arm64: dts: qcom: sdm670: add digital " Richard Acayan
2026-10-03 17:56 ` [PATCH v2 11/11] arm64: dts: qcom: sdm670-google: add sound card Richard Acayan
2026-10-03 18:11 ` sashiko-bot
2026-10-07 11:05 ` (subset) [PATCH v2 00/11] ADSP for SDM670 and sound on Google Pixel 3a 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=20261003180636.5B5F21F0089B@smtp.kernel.org \
--to=sashiko-bot@kernel.org \
--cc=conor+dt@kernel.org \
--cc=devicetree@vger.kernel.org \
--cc=mailingradian@gmail.com \
--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