From: sashiko-bot@kernel.org
To: "Md Shofiqul Islam" <shofiqtest@gmail.com>
Cc: robh@kernel.org, conor+dt@kernel.org, devicetree@vger.kernel.org
Subject: Re: [PATCH v2 3/3] dt-bindings: iio: accel: convert lis302 binding to YAML schema (v2)
Date: Thu, 11 Jun 2026 15:52:16 +0000 [thread overview]
Message-ID: <20260611155217.0B3741F00893@smtp.kernel.org> (raw)
In-Reply-To: <20260611154105.3727-4-shofiqtest@gmail.com>
Thank you for your contribution! Sashiko AI review found 4 potential issue(s) to consider:
- [Medium] The `st,lis302dl` compatible string causes a dual-schema validation conflict.
- [Medium] The properties `st,click-double-{x,y,z}` were incorrectly omitted during the YAML schema conversion.
- [Medium] The schema fails to document the upstream legacy typo `st,click-click-time-limit`, causing validation failures.
- [Medium] The `compatible` property incorrectly rejects upstream fallback combinations by strictly requiring a single exact match.
--
commit a5b5cff978006324100603bf6453cf1d3ceba157
Author: Md Shofiqul Islam <shofiqtest@gmail.com>
dt-bindings: iio: accel: convert lis302 binding to YAML schema (v2)
Replace the plain text lis302.txt with a YAML schema for the
LIS302DL/LIS3LV02D accelerometer family.
> diff --git a/Documentation/devicetree/bindings/iio/accel/st,lis302dl.yaml b/Documentation/devicetree/bindings/iio/accel/st,lis302dl.yaml
> new file mode 100644
> index 0000000000000..8a19aa1085215
> --- /dev/null
> +++ b/Documentation/devicetree/bindings/iio/accel/st,lis302dl.yaml
> @@ -0,0 +1,320 @@
[ ... ]
> +properties:
> + compatible:
> + oneOf:
> + - description: I2C variant (original part)
> + const: st,lis302dl
[Severity: Medium]
Since this compatible string is also present in the existing
Documentation/devicetree/bindings/iio/st,st-sensors.yaml, does adding it here
cause a dual-schema validation conflict?
If device tree nodes use st,lis302dl and include the legacy properties
introduced in this new schema, they might fail dt_binding_check validation
against st,st-sensors.yaml because that schema strictly restricts properties.
> + - description: I2C variant (larger range)
> + const: st,lis3lv02d
> + - description: SPI variant; including the bus type in the compatible
> + string is a legacy naming error, do not copy for new bindings
> + const: st,lis302dl-spi
[Severity: Medium]
Will this strict oneOf and const definition incorrectly reject valid upstream
device trees that use a multiple-string fallback array?
Numerous upstream device trees (e.g., am335x-evm.dts, omap3-gta04a3.dts)
use a fallback array like:
compatible = "st,lis331dlh", "st,lis3lv02d";
A const rule fails against an array, which will cause these boards to fail
schema validation.
Should this be rewritten to support items lists?
[ ... ]
> + st,click-single-x:
> + type: boolean
> + deprecated: true
> + description: Enable single-click detection on X axis.
> +
> + st,click-single-y:
> + type: boolean
> + deprecated: true
> + description: Enable single-click detection on Y axis.
> +
> + st,click-single-z:
> + type: boolean
> + deprecated: true
> + description: Enable single-click detection on Z axis.
[Severity: Medium]
Were the properties st,click-double-{x,y,z} omitted from this conversion?
The original lis302.txt binding defined these properties, and the driver at
drivers/misc/lis3lv02d/lis3lv02d.c actively parses them via
of_property_read_bool().
Since the new schema specifies unevaluatedProperties: false, any device tree
correctly utilizing the double-click properties will now fail schema validation.
[ ... ]
> + st,click-thresh-y:
> + $ref: /schemas/types.yaml#/definitions/uint32
> + deprecated: true
> + description: See st,click-thresh-x.
> +
> + st,click-thresh-z:
> + $ref: /schemas/types.yaml#/definitions/uint32
> + deprecated: true
> + description: See st,click-thresh-x.
> +
> + st,click-time-limit:
> + $ref: /schemas/types.yaml#/definitions/uint32
> + deprecated: true
> + description: Click time limit in 0.5ms steps (0-127).
[Severity: Medium]
Does the schema need to document the legacy typo st,click-click-time-limit
to prevent validation failures?
The conversion correctly maps this to st,click-time-limit, but upstream
device trees (e.g., arch/arm/boot/dts/ti/omap/omap3-gta04a3.dts) still use the
misspelled property.
Because unevaluatedProperties is set to false, dt_binding_check will now fail
for those boards.
Should this typo be accommodated similarly to how the st,click-thresh-x typo
was handled?
--
Sashiko AI review · https://sashiko.dev/#/patchset/20260611154105.3727-1-shofiqtest@gmail.com?part=3
next prev parent reply other threads:[~2026-06-11 15:52 UTC|newest]
Thread overview: 12+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-06-11 15:41 [PATCH v2 0/3] lis302dl/lis3lv02d: fix click thresholds and add legacy YAML binding Md Shofiqul Islam
2026-06-11 15:41 ` [PATCH v2 1/3] misc: lis3lv02d: set default click detection thresholds Md Shofiqul Islam
2026-06-11 15:52 ` sashiko-bot
2026-06-12 14:21 ` Linus Walleij
2026-06-12 17:35 ` Jonathan Cameron
2026-06-11 15:41 ` [PATCH v2 2/3] dt-bindings: iio: st,st-sensors: remove lis302dl and lis3lv02d from deprecated list Md Shofiqul Islam
2026-06-12 9:07 ` Krzysztof Kozlowski
2026-06-11 15:41 ` [PATCH v2 3/3] dt-bindings: iio: accel: convert lis302 binding to YAML schema (v2) Md Shofiqul Islam
2026-06-11 15:52 ` sashiko-bot [this message]
2026-06-11 17:10 ` Conor Dooley
2026-06-12 9:10 ` Krzysztof Kozlowski
2026-06-12 14:16 ` Linus Walleij
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=20260611155217.0B3741F00893@smtp.kernel.org \
--to=sashiko-bot@kernel.org \
--cc=conor+dt@kernel.org \
--cc=devicetree@vger.kernel.org \
--cc=robh@kernel.org \
--cc=sashiko-reviews@lists.linux.dev \
--cc=shofiqtest@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 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.