Devicetree
 help / color / mirror / Atom feed
From: sashiko-bot@kernel.org
To: "Ravi Hothi" <ravi.hothi@oss.qualcomm.com>
Cc: linux-sound@vger.kernel.org, devicetree@vger.kernel.org,
	robh@kernel.org, conor+dt@kernel.org
Subject: Re: [PATCH v3 1/2] ASoC: dt-bindings: qcom,wcd9378-sdw: add non-SDCA (mobile) mode
Date: Fri, 27 Nov 2026 14:01:09 +0000	[thread overview]
Message-ID: <sashiko-outbox-237528@kernel.org> (raw)
In-Reply-To: <20261127-b4-wcd9378-v3-v3-1-397e5ba2da55@oss.qualcomm.com>

Thank you for your contribution! Sashiko AI review found 1 potential
issue to consider:
- [Low] ASoC: dt-bindings: qcom,wcd9378-sdw: qcom,port-mapping not
  required for RX node
--

commit 14ae46e896909f194da940d46755798a8c5dcc39
Author: Ravi Hothi <ravi.hothi@oss.qualcomm.com>

ASoC: dt-bindings: qcom,wcd9378-sdw: add non-SDCA (mobile) mode

This commit updates the WCD9378 SoundWire binding to describe the
non-SDCA (mobile) split RX/TX device topology alongside the existing
SDCA-compliant single-device topology.

> diff --git a/Documentation/devicetree/bindings/sound/qcom,wcd9378-sdw.yaml b/Documentation/devicetree/bindings/sound/qcom,wcd9378-sdw.yaml
> index 62d85b1dca7f2..03ee4a4deea61 100644
> --- a/Documentation/devicetree/bindings/sound/qcom,wcd9378-sdw.yaml
> +++ b/Documentation/devicetree/bindings/sound/qcom,wcd9378-sdw.yaml

[ ... ]

> @@ -58,24 +69,93 @@ properties:
>    vdd-mic-bias-supply:
>      description: Mic bias supply.
>  
> +  qcom,micbias1-microvolt:
> +    description: micbias1 voltage
> +    minimum: 1800000
> +    maximum: 2850000
> +
> +  qcom,micbias2-microvolt:
> +    description: micbias2 voltage
> +    minimum: 1800000
> +    maximum: 2850000
> +
> +  qcom,micbias3-microvolt:
> +    description: micbias3 voltage
> +    minimum: 1800000
> +    maximum: 2850000
> +
>    '#sound-dai-cells':
>      const: 1
>  
>  required:
>    - compatible
>    - reg
> -  - qcom,sdca-compliant
> -  - qcom,port-mapping
> -  - reset-gpios
> -  - vdd-buck-supply
> -  - vdd-rxtx-supply
> -  - vdd-io-supply
> -  - vdd-mic-bias-supply
> -  - '#sound-dai-cells'
> +
> +allOf:
> +  - $ref: dai-common.yaml#
> +
> +  # The device reaching the control register space owns the codec-wide
> +  # resources and exposes the DAIs. A data-only device describes nothing
> +  # but its own data path.
> +  - if:
> +      anyOf:
> +        - required:
> +            - qcom,sdca-compliant
> +        - required:
> +            - qcom,rx-device
> +    then:
> +      required:
> +        - qcom,port-mapping
> +        - reset-gpios
> +        - vdd-buck-supply
> +        - vdd-rxtx-supply
> +        - vdd-io-supply
> +        - vdd-mic-bias-supply
> +        - '#sound-dai-cells'
> +    else:
> +      properties:
> +        reset-gpios: false
> +        vdd-buck-supply: false
> +        vdd-rxtx-supply: false
> +        vdd-io-supply: false
> +        vdd-mic-bias-supply: false
> +        '#sound-dai-cells': false

[Severity: Low]
Should qcom,port-mapping remain in the top-level required list?

Moving it into the then branch leaves qcom,port-mapping optional for the
non-SDCA playback (RX) peer device, which hits the else branch even though
it needs qcom,port-mapping to describe its data path.

-- 
Sashiko AI review · https://sashiko.dev/#/patchset/20261127-b4-wcd9378-v3-v3-0-397e5ba2da55@oss.qualcomm.com?part=1

  reply	other threads:[~2026-11-27 14:01 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2026-11-27 13:51 [PATCH v3 0/2] ASoC: codecs: wcd9378: add non-SDCA (mobile) mode support Ravi Hothi
2026-11-27 13:51 ` [PATCH v3 1/2] ASoC: dt-bindings: qcom,wcd9378-sdw: add non-SDCA (mobile) mode Ravi Hothi
2026-11-27 14:01   ` sashiko-bot [this message]
2026-11-27 13:51 ` [PATCH v3 2/2] ASoC: codecs: wcd9378: add non-SDCA (mobile) mode support Ravi Hothi

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=sashiko-outbox-237528@kernel.org \
    --to=sashiko-bot@kernel.org \
    --cc=conor+dt@kernel.org \
    --cc=devicetree@vger.kernel.org \
    --cc=linux-sound@vger.kernel.org \
    --cc=ravi.hothi@oss.qualcomm.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