Skip to contentSkip to conversation

dt-bindings: arm: omap: Convert Counter-32K to DT schema

PATCH New Eduard Bostina 1 participant 1 message Jun 6 Device tree bindings

lore
Share & tools
lore
#0 lore raw

PATCH v2 1/1 dt-bindings: arm: omap: Convert Counter-32K to DT schema

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.

---
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
Documentation/devicetree/bindings/arm/omap/counter.txt deleted +0 -15
deleted file mode 100644
index 5bd8aa091..000000000
@@ -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";
-};
Documentation/devicetree/bindings/arm/omap/ti,omap-counter32k.yaml new file +41 -0

41 lines not on this page · raw message

Signature · 1 line
2.54.0