Re: [PATCH v2 3/3] dt-bindings: iio: accel: convert lis302 binding to YAML schema (v2)

From: Krzysztof Kozlowski

Date: Fri Jun 12 2026 - 05:10:37 EST


On Thu, Jun 11, 2026 at 06:41:05PM +0300, Md Shofiqul Islam wrote:
> Replace the plain text lis302.txt with a YAML schema for the
> LIS302DL/LIS3LV02D accelerometer family.

There is no "YAML schema". There is DT schema. See submitting patches
doc in DT dir.

...

> +description: |
> + WARNING: This is a legacy binding for hardware that predates modern DT
> + practices. It is documented as-found in upstream board files. Do NOT use
> + this as a template for new drivers or bindings.
> +
> + The driver lives in drivers/misc/lis3lv02d, not in IIO. Many properties
> + listed here represent run-time driver configuration that would normally not
> + appear in device tree. They are documented here only because existing
> + upstream board DTS files use them.
> +
> + Compatibles st,lis302dl-spi and st,lis3lv02d were previously listed as
> + deprecated in st,st-sensors.yaml. They are moved here with their actual
> + hardware configuration so validation works correctly.
> +
> +maintainers:
> + - Linus Walleij <linus.walleij@xxxxxxxxxx>
> +
> +properties:
> + compatible:
> + oneOf:
> + - description: I2C variant (original part)
> + const: st,lis302dl

This wasn't in the old binding. You need to explain in the commit msg
changes done to the binding during conversion.

> + - 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

Best regards,
Krzysztof