Devicetree
 help / color / mirror / Atom feed
From: sashiko-bot@kernel.org
To: "Teja Sai Charan B" <tejaasaye@gmail.com>
Cc: conor+dt@kernel.org, devicetree@vger.kernel.org, robh@kernel.org
Subject: Re: [PATCH] dt-bindings: rtc: Convert rtc-cmos binding to YAML
Date: Tue, 19 May 2026 10:09:30 +0000	[thread overview]
Message-ID: <20260519100930.91C54C2BCB3@smtp.kernel.org> (raw)
In-Reply-To: <20260519095929.76011-1-tejaasaye@gmail.com>

Thank you for your contribution! Sashiko AI review found 1 potential issue(s) to consider:
- [Medium] The schema restricts the `compatible` property to strictly `"motorola,mc146818"`, causing `dtbs_check` validation failures for existing in-tree device trees.
--

commit 2e9837eab33637d478720ff763bc9b81afee1cf3
Author: Teja Sai Charan Bellamkonda <tejaasaye@gmail.com>

dt-bindings: rtc: Convert rtc-cmos binding to YAML

This commit converts the rtc-cmos devicetree bindings from plain text to the
dt schema format.

> diff --git a/Documentation/devicetree/bindings/rtc/rtc-cmos.yaml b/Documentation/devicetree/bindings/rtc/rtc-cmos.yaml
> new file mode 100644
> --- /dev/null
> +++ b/Documentation/devicetree/bindings/rtc/rtc-cmos.yaml
[ ... ]
> +properties:
> +  compatible:
> +    const: motorola,mc146818
> +
> +  reg:

Will this strict constraint cause dtbs_check validation failures for existing
in-tree device trees?

Looking at arch/x86/platform/ce4100/falconfalls.dts, the RTC node defines a
fallback compatible array:

	rtc@70 {
		compatible = "intel,ce4100-rtc", "motorola,mc146818";
		...
	};

Since the schema uses const instead of allowing an array, it appears this
might reject configurations containing the intel,ce4100-rtc variant. Should
the compatible property use a oneOf block to permit both the exact string
and the fallback array?

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

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

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2026-05-19  9:59 [PATCH] dt-bindings: rtc: Convert rtc-cmos binding to YAML Teja Sai Charan B
2026-05-19 10:09 ` sashiko-bot [this message]
2026-05-19 16:37 ` 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=20260519100930.91C54C2BCB3@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=tejaasaye@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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox