From: Eduard Bostina <egbostina@gmail.com>
To: daniel.baluta@nxp.com, simona.toaca@nxp.com, egbostina@gmail.com,
goledhruva@gmail.com, m-chawdhry@ti.com,
Rob Herring <robh@kernel.org>,
Krzysztof Kozlowski <krzk+dt@kernel.org>,
Conor Dooley <conor+dt@kernel.org>,
Mark Brown <broonie@kernel.org>,
devicetree@vger.kernel.org, linux-kernel@vger.kernel.org
Cc: Conor Dooley <conor.dooley@microchip.com>
Subject: [PATCH v2] dt-bindings: arm: omap: Convert Counter-32K to DT schema
Date: Sat, 6 Jun 2026 15:36:19 +0300 [thread overview]
Message-ID: <20260606123624.14298-1-egbostina@gmail.com> (raw)
Convert the Texas Instruments OMAP Counter-32K bindings to DT schema.
During the conversion, two updates were made to reflect actual hardware
usage and resolve dtbs_check warnings:
- 'ti,hwmods' has been made optional. While a search confirms it is no
longer used, it is kept to maintain backwards compatibility.
- Added the 'ti,am4372-counter32k' compatible string. This is used
alongside the generic 'ti,omap-counter32k' fallback in AM437x device
trees and is retained for backward compatibility with other software
stacks that may rely on it.
Acked-by: Conor Dooley <conor.dooley@microchip.com>
Signed-off-by: Eduard Bostina <egbostina@gmail.com>
---
Changes in v2:
- Removed the unused 'counter32k:' label from the example.
- Clarified in the commit message that 'ti,am4372-counter32k' is used
alongside the generic fallback.
.../devicetree/bindings/arm/omap/counter.txt | 15 -------
.../bindings/arm/omap/ti,omap-counter32k.yaml | 41 +++++++++++++++++++
2 files changed, 41 insertions(+), 15 deletions(-)
delete mode 100644 Documentation/devicetree/bindings/arm/omap/counter.txt
create mode 100644 Documentation/devicetree/bindings/arm/omap/ti,omap-counter32k.yaml
diff --git a/Documentation/devicetree/bindings/arm/omap/counter.txt b/Documentation/devicetree/bindings/arm/omap/counter.txt
deleted file mode 100644
index 5bd8aa091..000000000
--- a/Documentation/devicetree/bindings/arm/omap/counter.txt
+++ /dev/null
@@ -1,15 +0,0 @@
-OMAP Counter-32K bindings
-
-Required properties:
-- compatible: Must be "ti,omap-counter32k" for OMAP controllers
-- reg: Contains timer register address range (base address and length)
-- ti,hwmods: Name of the hwmod associated to the counter, which is typically
- "counter_32k"
-
-Example:
-
-counter32k: counter@4a304000 {
- compatible = "ti,omap-counter32k";
- reg = <0x4a304000 0x20>;
- ti,hwmods = "counter_32k";
-};
diff --git a/Documentation/devicetree/bindings/arm/omap/ti,omap-counter32k.yaml b/Documentation/devicetree/bindings/arm/omap/ti,omap-counter32k.yaml
new file mode 100644
index 000000000..ef2730c34
--- /dev/null
+++ b/Documentation/devicetree/bindings/arm/omap/ti,omap-counter32k.yaml
@@ -0,0 +1,41 @@
+# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
+%YAML 1.2
+---
+$id: http://devicetree.org/schemas/arm/omap/ti,omap-counter32k.yaml#
+$schema: http://devicetree.org/meta-schemas/core.yaml#
+
+title: Texas Instruments OMAP Counter-32K
+
+maintainers:
+ - Eduard Bostina <egbostina@gmail.com>
+
+properties:
+ compatible:
+ oneOf:
+ - const: ti,omap-counter32k
+ - items:
+ - const: ti,am4372-counter32k
+ - const: ti,omap-counter32k
+
+ reg:
+ maxItems: 1
+
+ ti,hwmods:
+ description: Name of the hwmod associated to the counter
+ $ref: /schemas/types.yaml#/definitions/string-array
+ items:
+ - const: counter_32k
+
+required:
+ - compatible
+ - reg
+
+additionalProperties: false
+
+examples:
+ - |
+ counter@4a304000 {
+ compatible = "ti,omap-counter32k";
+ reg = <0x4a304000 0x20>;
+ ti,hwmods = "counter_32k";
+ };
--
2.54.0
reply other threads:[~2026-06-06 12:37 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
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=20260606123624.14298-1-egbostina@gmail.com \
--to=egbostina@gmail.com \
--cc=broonie@kernel.org \
--cc=conor+dt@kernel.org \
--cc=conor.dooley@microchip.com \
--cc=daniel.baluta@nxp.com \
--cc=devicetree@vger.kernel.org \
--cc=goledhruva@gmail.com \
--cc=krzk+dt@kernel.org \
--cc=linux-kernel@vger.kernel.org \
--cc=m-chawdhry@ti.com \
--cc=robh@kernel.org \
--cc=simona.toaca@nxp.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
all inboxes | Powered by JetHome®