All of lore.kernel.org
 help / color / mirror / Atom feed
From: sashiko-bot@kernel.org
To: "Omer PALA" <palaomer100@gmail.com>
Cc: robh@kernel.org, conor+dt@kernel.org, devicetree@vger.kernel.org
Subject: Re: [PATCH] dt-bindings: iio: adc: Add dt binding to xlnx,xadc
Date: Fri, 18 Sep 2026 15:03:37 +0000	[thread overview]
Message-ID: <20260918150338.569D71F000FF@smtp.kernel.org> (raw)
In-Reply-To: <20260918145804.26957-1-palaomer100@gmail.com>

Thank you for your contribution! Sashiko AI review found 2 potential issue(s) to consider:
- [Medium] dt-bindings: missing required constraint for xlnx,external-mux-channel
- [Medium] dt-bindings: missing required constraint for #address-cells and #size-cells under xlnx,channels
--

commit 7f09f8169e0c3778bfd860a9b73695d153e538cf
Author: Omer PALA <palaomer100@gmail.com>

dt-bindings: iio: adc: Add dt binding to xlnx,xadc

This commit converts the text-based devicetree binding for the Xilinx 7
Series XADC and UltraScale/UltraScale+ System Monitor into YAML format.

> 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..6031de7630a2c
> --- /dev/null
> +++ b/Documentation/devicetree/bindings/iio/adc/xlnx,xadc.yaml
[ ... ]
> +  xlnx,channels:
> +    type: object
> +    description: List of external channels that are connected to the ADC.
> +    properties:
> +      "#address-cells":
> +        const: 1
> +      "#size-cells":
> +        const: 0
> +    patternProperties:

[Severity: Medium]
Should "#address-cells" and "#size-cells" be added to a required array for 
the xlnx,channels node? Without a required list here, schema validation 
might silently accept nodes that are missing these mandatory properties.

[ ... ]
> +allOf:
> +  - if:
> +      properties:
> +        xlnx,external-mux:
> +          const: single
> +    then:
> +      properties:
> +        xlnx,external-mux-channel:
> +          minimum: 0
> +          maximum: 16

[Severity: Medium]
Does this if-then block need a required declaration for 
xlnx,external-mux-channel? Currently, it only restricts the bounds of the 
property but doesn't mandate its presence when xlnx,external-mux is set to 
single. This could allow incomplete device trees to pass validation.

> +
> +  - if:
> +      properties:
> +        xlnx,external-mux:
> +          const: dual
> +    then:
> +      properties:
> +        xlnx,external-mux-channel:
> +          minimum: 1
> +          maximum: 8

[Severity: Medium]
Similarly, should xlnx,external-mux-channel be marked as required in this 
block when xlnx,external-mux is dual?

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

  reply	other threads:[~2026-09-18 15:03 UTC|newest]

Thread overview: 13+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2026-09-18 14:58 [PATCH] dt-bindings: iio: adc: Add dt binding to xlnx,xadc Omer PALA
2026-09-18 15:03 ` sashiko-bot [this message]
2026-09-18 17:48 ` [PATCH v2] " Omer PALA
2026-09-18 18:02   ` sashiko-bot
2026-09-18 18:58   ` [PATCH v3] " Omer PALA
2026-09-18 19:07     ` sashiko-bot
2026-09-18 19:44     ` [PATCH v4] " Omer PALA
2026-09-18 19:53       ` sashiko-bot
2026-09-18 20:32       ` [PATCH v5] " Omer PALA
2026-09-19  7:25         ` Krzysztof Kozlowski
2026-09-19  8:07           ` Omer PALA
2026-09-19  8:30             ` Krzysztof Kozlowski
2026-09-19  7:32   ` [PATCH v2] " 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=20260918150338.569D71F000FF@smtp.kernel.org \
    --to=sashiko-bot@kernel.org \
    --cc=conor+dt@kernel.org \
    --cc=devicetree@vger.kernel.org \
    --cc=palaomer100@gmail.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.