From: sashiko-bot@kernel.org
To: "Pramod Maurya" <pramod.nexgen@gmail.com>
Cc: conor+dt@kernel.org, robh@kernel.org, devicetree@vger.kernel.org,
krzk+dt@kernel.org
Subject: Re: [PATCH v3] dt-bindings: iio: adc: Convert xilinx-xadc bindings to YAML schema
Date: Mon, 11 May 2026 20:55:24 +0000 [thread overview]
Message-ID: <20260511205525.04A49C2BCB0@smtp.kernel.org> (raw)
In-Reply-To: <20260510120141.118057-1-pramod.nexgen@gmail.com>
Thank you for your contribution! Sashiko AI review found 3 potential issue(s) to consider:
- [Low] Invalid scalar constraints and missing length bounds on the `reg` property inside channel nodes.
- [Low] Fixed-string property `^xlnx,channels$` is defined in `patternProperties` instead of `properties`.
- [Low] Redundant `type: boolean` declaration for the `xlnx,bipolar` property.
--
commit eb30bdd7a415cc66765c82f5a5300f2adb66fb3c
Author: Pramod Maurya <pramod.nexgen@gmail.com>
dt-bindings: iio: adc: Convert xilinx-xadc bindings to YAML schema
This commit converts the Xilinx XADC and UltraScale System Monitor device
tree bindings from the legacy plain-text format to a YAML schema. The new
schema covers the same hardware and compatible strings while enabling
automated validation with dt-schema.
> diff --git a/Documentation/devicetree/bindings/iio/adc/xlnx,xadc.yaml b/Documentation/devicetree/bindings/iio/adc/xlnx,xadc.yaml
> new file mode 100644
> index 0000000000000..ab6f16109aebd
> --- /dev/null
> +++ b/Documentation/devicetree/bindings/iio/adc/xlnx,xadc.yaml
[ ... ]
> +patternProperties:
> + "^xlnx,channels$":
Is it intentional to place "^xlnx,channels$" in patternProperties? Since this
is a fixed string without any variable or wildcard components, defining it
under patternProperties bypasses explicit property tracking in dt-schema and
usually triggers a dt_binding_check linter warning. Should this be placed in
the properties block instead?
> + type: object
> + description:
> + List of external channels connected to the ADC. If this property is
> + absent, no external channels are assumed to be connected.
[ ... ]
> + patternProperties:
> + "^channel@([0-9a-f]|10)$":
> + type: object
> + description:
> + Represents an external channel connected to the ADC.
> +
> + properties:
> + reg:
> + description: |
> + Pair of pins the channel is connected to.
> + 0: VP/VN
> + 1: VAUXP[0]/VAUXN[0]
> + 2: VAUXP[1]/VAUXN[1]
> + ...
> + 16: VAUXP[15]/VAUXN[15]
> + minimum: 0
> + maximum: 16
Will this fail dt_binding_check validation? The reg property is intrinsically
an array type in device tree schemas. Applying scalar JSON schema validation
keywords like minimum and maximum directly to an array type is invalid.
Since the node name regex ^channel@([0-9a-f]|10)$ already enforces bounds on
the unit address, should the scalar bounds be removed and replaced with
maxItems: 1?
> +
> + xlnx,bipolar:
> + $ref: /schemas/types.yaml#/definitions/flag
> + type: boolean
This isn't a bug, but the type: boolean declaration here appears redundant.
The reference to /schemas/types.yaml#/definitions/flag intrinsically defines
the node as a boolean-typed property without a value. Can the type: boolean
line be removed to align with standard dt-schema linting rules?
--
Sashiko AI review · https://sashiko.dev/#/patchset/20260510120141.118057-1-pramod.nexgen@gmail.com?part=1
next prev parent reply other threads:[~2026-05-11 20:55 UTC|newest]
Thread overview: 14+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-05-10 8:32 [PATCH v3] dt-bindings: iio: adc: Convert xilinx-xadc bindings to YAML schema Pramod Maurya
2026-05-10 9:43 ` Rob Herring (Arm)
2026-05-10 12:01 ` Pramod Maurya
2026-05-11 16:15 ` Jonathan Cameron
2026-05-11 16:24 ` David Lechner
2026-05-12 12:14 ` Rob Herring
2026-05-12 13:58 ` David Lechner
2026-05-12 14:10 ` Michal Simek
2026-05-12 14:16 ` David Lechner
2026-05-12 14:21 ` Michal Simek
2026-05-12 14:13 ` David Lechner
2026-05-11 16:17 ` Jonathan Cameron
2026-05-11 20:55 ` sashiko-bot [this message]
2026-05-11 20:32 ` sashiko-bot
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=20260511205525.04A49C2BCB0@smtp.kernel.org \
--to=sashiko-bot@kernel.org \
--cc=conor+dt@kernel.org \
--cc=devicetree@vger.kernel.org \
--cc=krzk+dt@kernel.org \
--cc=pramod.nexgen@gmail.com \
--cc=robh@kernel.org \
--cc=sashiko@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