Devicetree
 help / color / mirror / Atom feed
From: sashiko-bot@kernel.org
To: "Bhargav Joshi" <j.bhargav.u@gmail.com>
Cc: conor+dt@kernel.org, linux-rtc@vger.kernel.org, robh@kernel.org,
	devicetree@vger.kernel.org,
	"Alexandre Belloni" <alexandre.belloni@bootlin.com>
Subject: Re: [PATCH 3/3] dt-bindings: rtc: ti,omap-rtc: Convert to DT schema
Date: Fri, 24 Jul 2026 09:26:16 +0000	[thread overview]
Message-ID: <20260724092617.22DA91F000E9@smtp.kernel.org> (raw)
In-Reply-To: <20260724-ti-omap-rtc-v1-3-ffef78853cd6@gmail.com>

Thank you for your contribution! Sashiko AI review found 2 potential issue(s) to consider:
- [Low] The legacy text binding file `rtc-omap.txt` was not removed during the conversion to the new YAML DT schema.
- [Low] The schema unconditionally allows `system-power-controller` and `ext-wakeup` properties for all hardware variants, lacking required conditional constraints.
--

--- Patch [3]: [PATCH 3/3] dt-bindings: rtc: ti,omap-rtc: Convert to DT schema ---
commit d0c7ea3e6873301494678b3cfd1db8646ed9ff66
Author: Bhargav Joshi <j.bhargav.u@gmail.com>

dt-bindings: rtc: ti,omap-rtc: Convert to DT schema

Convert the Texas Instruments OMAP Real Time Clock (RTC) binding from
the legacy text format to the DT schema. Mark 'ti,hwmods' as deprecated
as it is no longer used, it is kept to support legacy boards.

> diff --git a/Documentation/devicetree/bindings/rtc/ti,omap-rtc.yaml b/Documentation/devicetree/bindings/rtc/ti,omap-rtc.yaml
> new file mode 100644
> index 0000000000000..eeea1bab65309
> --- /dev/null
> +++ b/Documentation/devicetree/bindings/rtc/ti,omap-rtc.yaml

[Severity: Low]
Should this conversion also delete the legacy text binding? It appears
Documentation/devicetree/bindings/rtc/rtc-omap.txt was left in the tree,
which leaves duplicate binding documentation.

> @@ -0,0 +1,129 @@
> +# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)

[ ... ]

> +  interrupts:
> +    minItems: 2
> +    maxItems: 2
> +
> +  system-power-controller:
> +    type: boolean
> +    description:
> +      Indicates that this RTC controls system power via the pmic_power_en pin.

[Severity: Low]
Does this schema unconditionally allow system-power-controller for all
hardware variants?

For instance, the ti,da830-rtc variant doesn't appear to support PMIC mode.
Should there be an allOf / if-then block restricting this property to
ti,am3352-rtc and ti,am4372-rtc?

[ ... ]

> +  ti,hwmods:
> +    $ref: /schemas/types.yaml#/definitions/string
> +    description:
> +      Name of the hwmod associated with the RTC.
> +    const: rtc
> +    deprecated: true
> +
> +patternProperties:
> +  "^ext-wakeup(-[0-9]+)?$":
> +    type: object
> +
> +    description:
> +      Child node describing external wakeup pin configuration.

[Severity: Low]
Similar to the system-power-controller property, should this subnode also be
restricted to variants that support it? 

Without an allOf / if-then block, it seems device trees configured with
ext-wakeup for older hardware like ti,da830-rtc will silently pass schema
validation.

-- 
Sashiko AI review · https://sashiko.dev/#/patchset/20260724-ti-omap-rtc-v1-0-ffef78853cd6@gmail.com?part=3

      reply	other threads:[~2026-07-24  9:26 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2026-07-24  9:15 [PATCH 0/3] dt-bindings: rtc: ti,omap-rtc: Convert to DT schema and cleanups Bhargav Joshi
2026-07-24  9:15 ` [PATCH 1/3] ARM: dts: ti: am57xx-idk-common: Remove unused ext-clk-src property Bhargav Joshi
2026-07-24  9:20   ` sashiko-bot
2026-07-24  9:15 ` [PATCH 2/3] ARM: dts: ti: am335x-shc: Remove unused ti,no-init property Bhargav Joshi
2026-07-24  9:24   ` sashiko-bot
2026-07-24  9:15 ` [PATCH 3/3] dt-bindings: rtc: ti,omap-rtc: Convert to DT schema Bhargav Joshi
2026-07-24  9:26   ` sashiko-bot [this message]

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=20260724092617.22DA91F000E9@smtp.kernel.org \
    --to=sashiko-bot@kernel.org \
    --cc=alexandre.belloni@bootlin.com \
    --cc=conor+dt@kernel.org \
    --cc=devicetree@vger.kernel.org \
    --cc=j.bhargav.u@gmail.com \
    --cc=linux-rtc@vger.kernel.org \
    --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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox