From: sashiko-bot@kernel.org
To: "Olivier Moysan" <olivier.moysan@foss.st.com>
Cc: robh@kernel.org, devicetree@vger.kernel.org, conor+dt@kernel.org
Subject: Re: [PATCH 1/3] dt-bindings: iio: adc: add bindings for stm32 mdf filter
Date: Thu, 01 Oct 2026 15:06:05 +0000 [thread overview]
Message-ID: <20261001150606.3F78F1F000FF@smtp.kernel.org> (raw)
In-Reply-To: <20261001145702.2628429-2-olivier.moysan@foss.st.com>
Thank you for your contribution! Sashiko AI review found 2 potential issue(s) to consider:
- [Low] dt-bindings: invalid decimal-only regex for sitf and filter unit addresses
- [Low] dt-bindings: faulty regex in mdf-dai and channel patternProperties
--
commit 0433e9502551ab7438d761bd69f15064435b1ccc
Author: Olivier Moysan <olivier.moysan@foss.st.com>
dt-bindings: iio: adc: add bindings for stm32 mdf filter
Add bindings that describes STM32 MDF settings to support
digital filtering for Pulse Density Modulation (PDM) microphones
and analog sigma delta modulators.
> diff --git a/Documentation/devicetree/bindings/iio/adc/st,stm32-mdf-adc.yaml b/Documentation/devicetree/bindings/iio/adc/st,stm32-mdf-adc.yaml
> new file mode 100644
> index 0000000000000..f2fbc3e150e8c
> --- /dev/null
> +++ b/Documentation/devicetree/bindings/iio/adc/st,stm32-mdf-adc.yaml
[ ... ]
> +patternProperties:
> + "^sitf@[0-9]+$":
[Severity: Low]
Is this regex overly restrictive? Device tree unit addresses commonly contain
hexadecimal characters, so an address like sitf@1a0 would fail to match this
pattern.
Since the top-level schema has additionalProperties: false, valid nodes might
be rejected. Would "^sitf@[0-9a-f]+$" be more appropriate?
> + type: object
> + description: Serial interface child node
[ ... ]
> + "^filter@[0-9]+$":
[Severity: Low]
Similarly, does this restrict filter unit addresses strictly to decimal digits?
A node with a hexadecimal offset, such as filter@1e4, would not match this
pattern and would fail schema validation.
> + type: object
> + description: Digital filter path child node
[ ... ]
> + patternProperties:
> + "^channel@([0-7])$":
[Severity: Low]
Does this capture group differ from the allOf constraint key? The allOf section
later in the file uses "^channel@[0-7]$".
Mismatches in literal keys can sometimes interfere with schema aggregation
tools that rely on exact string matching to properly merge subschemas.
> + type: object
> + $ref: adc.yaml
[ ... ]
> + then:
> + patternProperties:
> + "^mdf-dai+$":
[Severity: Low]
Could this regex pattern be a typo? The '+' quantifier applies to the character
'i' rather than matching multiple child nodes or strictly matching the string.
If it is meant to match exactly one string, would "^mdf-dai$" be intended?
> + type: object
> + description: child node
--
Sashiko AI review · https://sashiko.dev/#/patchset/20261001145702.2628429-1-olivier.moysan@foss.st.com?part=1
next prev parent reply other threads:[~2026-10-01 15:06 UTC|newest]
Thread overview: 23+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-10-01 14:56 [PATCH 0/3] iio: adc: stm32: add mdf support for stm32mp2 Olivier Moysan
2026-10-01 14:56 ` [PATCH 1/3] dt-bindings: iio: adc: add bindings for stm32 mdf filter Olivier Moysan
2026-10-01 15:06 ` sashiko-bot [this message]
2026-10-01 16:25 ` Rob Herring (Arm)
2026-10-01 18:32 ` Conor Dooley
2026-10-07 9:01 ` Olivier MOYSAN
2026-10-07 13:47 ` Rob Herring
2026-10-07 16:02 ` Olivier MOYSAN
2026-10-08 10:11 ` Conor Dooley
2026-10-08 16:37 ` Olivier MOYSAN
2026-10-09 19:12 ` Conor Dooley
2026-10-12 12:56 ` Olivier MOYSAN
2026-10-02 9:22 ` Krzysztof Kozlowski
2026-10-06 15:48 ` Olivier MOYSAN
2026-10-06 15:59 ` Krzysztof Kozlowski
2026-10-02 9:34 ` Krzysztof Kozlowski
2026-10-06 16:04 ` Olivier MOYSAN
2026-10-01 14:56 ` [PATCH 2/3] iio: adc: add stm32 mdf support Olivier Moysan
2026-10-01 15:16 ` sashiko-bot
2026-10-01 19:13 ` Andy Shevchenko
2026-10-02 9:31 ` Krzysztof Kozlowski
2026-10-01 14:56 ` [PATCH 3/3] ASoC: stm32: add mdf dai support Olivier Moysan
2026-10-02 9:24 ` Krzysztof Kozlowski
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=20261001150606.3F78F1F000FF@smtp.kernel.org \
--to=sashiko-bot@kernel.org \
--cc=conor+dt@kernel.org \
--cc=devicetree@vger.kernel.org \
--cc=olivier.moysan@foss.st.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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.