Devicetree
 help / color / mirror / Atom feed
From: sashiko-bot@kernel.org
To: "Udaya Kiran Challa" <challauday369@gmail.com>
Cc: krzk+dt@kernel.org, devicetree@vger.kernel.org,
	conor+dt@kernel.org, robh@kernel.org
Subject: Re: [PATCH v2] dt-bindings: rtc: epson,rx6110: Convert to DT Schema
Date: Sat, 09 May 2026 10:27:02 +0000	[thread overview]
Message-ID: <20260509102703.33ED1C2BCB2@smtp.kernel.org> (raw)
In-Reply-To: <20260509095713.5818-1-challauday369@gmail.com>

Thank you for your contribution! Sashiko AI review found 2 potential issue(s) to consider:
- [Medium] The YAML binding omits a reference to the core RTC subsystem schema (`rtc.yaml`).
- [Medium] The strict requirement for SPI-specific properties was lost during the schema conversion.
--

commit 83ad9493a42cbad1f11db8ac3498c9be50a357d1
Author: Udaya Kiran Challa <challauday369@gmail.com>

dt-bindings: rtc: epson,rx6110: Convert to DT Schema

This commit converts the Epson RX6110 Real Time Clock devicetree binding
from the legacy text format to DT schema.

> diff --git a/Documentation/devicetree/bindings/rtc/epson,rx6110.yaml b/Documentation/devicetree/bindings/rtc/epson,rx6110.yaml
> new file mode 100644
> --- /dev/null
> +++ b/Documentation/devicetree/bindings/rtc/epson,rx6110.yaml
[ ... ]
> +allOf:
> +  - $ref: /schemas/spi/spi-peripheral-props.yaml#

Should this also include a reference to rtc.yaml# in the allOf block?
Without it, since unevaluatedProperties is false, won't valid standard RTC
properties like start-year or aux-voltage-chargeable cause validation
errors? This omission appears to introduce a functional regression by
bypassing the standard nodename checks provided by the core schema.

[ ... ]
> +  spi-cpha: true
> +  spi-cpol: true
> +
> +required:
> +  - compatible
> +  - reg
> +
> +unevaluatedProperties: false

The legacy text binding listed spi-cs-high, spi-cpha, and spi-cpol as
mandatory required properties when the device operates in SPI mode.

Because they are omitted from the required list to support I2C mode, won't
misconfigured SPI nodes missing these hardware configuration flags now
silently pass validation? Would adding a conditional allOf/if block be
appropriate to enforce these properties for SPI configurations and avoid
this regression?

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

  reply	other threads:[~2026-05-09 10:27 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2026-05-09  9:47 [PATCH v2] dt-bindings: rtc: epson,rx6110: Convert to DT Schema Udaya Kiran Challa
2026-05-09 10:27 ` sashiko-bot [this message]
2026-05-09 15:51   ` Conor Dooley
  -- strict thread matches above, loose matches on Subject: below --
2026-05-09  9:00 Udaya Kiran Challa
2026-05-09 15:58 ` Conor Dooley

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=20260509102703.33ED1C2BCB2@smtp.kernel.org \
    --to=sashiko-bot@kernel.org \
    --cc=challauday369@gmail.com \
    --cc=conor+dt@kernel.org \
    --cc=devicetree@vger.kernel.org \
    --cc=krzk+dt@kernel.org \
    --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