Linux Sound subsystem development
 help / color / mirror / Atom feed
From: sashiko-bot@kernel.org
To: "Lorena Tanase" <tanaselorena3@gmail.com>
Cc: linux-sound@vger.kernel.org, devicetree@vger.kernel.org,
	robh@kernel.org, conor+dt@kernel.org
Subject: Re: [PATCH v2] ASoC: dt-bindings: wm8741: Convert to DT schema
Date: Mon, 09 Nov 2026 17:07:37 +0000	[thread overview]
Message-ID: <sashiko-outbox-205275@kernel.org> (raw)
In-Reply-To: <20261109165522.6663-1-tanaselorena3@gmail.com>

Thank you for your contribution! Sashiko AI review found 4 potential
issues to consider:
- [Medium] ASoC: dt-bindings: wm8741: diff-mode placed at root level of
  YAML schema
- [Medium] ASoC: dt-bindings: wm8741: invalid example bus addressing and
  trailing spaces
- [Low] ASoC: dt-bindings: wm8741: missing supplies, DAI, and SPI
  properties in schema
- [Low] ASoC: dt-bindings: wm8741: dangling sound/wm* file entry in
  MAINTAINERS
--

commit 9c3870a4814d3bc22a021bf5687bbcb6d6e76c1c
Author: Lorena Tanase <tanaselorena3@gmail.com>

ASoC: dt-bindings: wm8741: Convert to DT schema

This commit converts the Wolfson Microelectronics wm8741 audio codec device
tree binding from plain text to yaml schema format.

> diff --git a/Documentation/devicetree/bindings/sound/wlf,wm8741.yaml b/Documentation/devicetree/bindings/sound/wlf,wm8741.yaml
> new file mode 100644
> index 0000000000000..a9a7fc2414bb6
> --- /dev/null
> +++ b/Documentation/devicetree/bindings/sound/wlf,wm8741.yaml
> @@ -0,0 +1,40 @@
[ ... ]
> +properties:
> +  compatible:
> +    const: wlf,wm8741
> +
> +  reg:
> +    maxItems: 1

[Severity: Low]
Should this schema also document the regulator supplies, #sound-dai-cells,
and spi peripheral properties?

Both wm8741_i2c_probe() and wm8741_spi_probe() in sound/soc/codecs/wm8741.c
request the avdd and dvdd supplies via devm_regulator_bulk_get(), and the
device supports both i2c and spi buses:

sound/soc/codecs/wm8741.c:
static const char *wm8741_supply_names[WM8741_NUM_SUPPLIES] = {
	"AVDD",
	"DVDD",
};

Because the schema sets additionalProperties: false, device tree nodes for
wlf,wm8741 that specify avdd-supply, dvdd-supply, #sound-dai-cells, or spi
properties such as spi-max-frequency will fail dtbs_check unless those
properties and refs to dai-common.yaml# and
/schemas/spi/spi-peripheral-props.yaml# (with unevaluatedProperties: false)
are included.

> +
> +diff-mode:
> +  description: diferential output mode
> +  $ref: /schemas/types.yaml#/definitions/uint32
> +  enum: [0, 1, 2, 3]
> +
> +required:
> +  - compatible
> +  - reg
> +
> +additionalProperties: false

[Severity: Medium]
Is diff-mode placed at the root of the document instead of indented under
properties?

At column 0, diff-mode is rejected by dt-doc-validate as an unknown
top-level keyword during make dt_binding_check, and any node using
diff-mode (including the example below) fails validation against
additionalProperties: false.

Compared to wm8741.txt, this entry also drops default: 0 and the
descriptions of the four mode values (0 = stereo, 1 = mono left,
2 = stereo reversed, 3 = mono right), and misspells differential as
diferential.

> +
> +examples:
> +  - |
> +    wm8903: codec@1a {
> +      compatible = "wlf,wm8741";
> +      reg = <0x1a>;
> +
> +      diff-mode = <3>;    
> +    };

[Severity: Medium]
Should codec@1a in the example be wrapped in an i2c or spi bus node?

Without a parent bus node setting #address-cells = <1> and
#size-cells = <0>, dt-extract-example uses the default root cell sizes of 1
and 1, causing dtc to fail on reg = <0x1a> with a reg_format error during
make dt_binding_check.

The diff-mode = <3>; line also has four trailing spaces that cause yamllint
to fail, and the node uses an unused wm8903 label with 2-space indentation
instead of standard 4-space example indentation.

> diff --git a/Documentation/devicetree/bindings/sound/wm8741.txt b/Documentation/devicetree/bindings/sound/wm8741.txt
> deleted file mode 100644
> index b69e196c741c4..0000000000000
> --- a/Documentation/devicetree/bindings/sound/wm8741.txt
> +++ /dev/null

[Severity: Low]
Does removing Documentation/devicetree/bindings/sound/wm8741.txt leave a
dangling file pattern in the maintainers file?

wm8741.txt was the last file matching
Documentation/devicetree/bindings/sound/wm*, while the new yaml file is
already covered by Documentation/devicetree/bindings/sound/wlf,*.yaml, so
get_maintainer.pl --self-test=patterns will warn unless the sound/wm* entry
is removed.

-- 
Sashiko AI review · https://sashiko.dev/#/patchset/20261109165522.6663-1-tanaselorena3@gmail.com?part=1

  reply	other threads:[~2026-11-09 17:07 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2026-11-09 16:55 [PATCH v2] ASoC: dt-bindings: wm8741: Convert to DT schema Lorena Tanase
2026-11-09 17:07 ` sashiko-bot [this message]
2026-11-10  8:09 ` Krzysztof Kozlowski
2026-11-10  8:09 ` Krzysztof Kozlowski
2026-11-10 18:15 ` 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=sashiko-outbox-205275@kernel.org \
    --to=sashiko-bot@kernel.org \
    --cc=conor+dt@kernel.org \
    --cc=devicetree@vger.kernel.org \
    --cc=linux-sound@vger.kernel.org \
    --cc=robh@kernel.org \
    --cc=sashiko-reviews@lists.linux.dev \
    --cc=tanaselorena3@gmail.com \
    /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