Skip to contentSkip to conversation

dt-bindings: timer: fsl,ftm-timer: use items for reg

PATCH Superseded Frank Li 2 participants 2 messages May 22, 2025 – May 23, 2025

Subsystems (3)

v1 of 2 Superseded Latest is v2 →

lore
Share & tools
lore

Frank Li

author maintainer
#0 lore raw

PATCH 1/1 dt-bindings: timer: fsl,ftm-timer: use items for reg

The original txt binding doc is:
reg : Specifies base physical address and size of the register sets for
the clock event device and clock source device.

And existed dts provide two reg MMIO spaces. So change to use items to descript reg property.

Update examples.

Fixes 8fc30d8f8e86 ("dt-bindings: timer: fsl,ftm-timer: Convert to dtschema"
---
 Documentation/devicetree/bindings/timer/fsl,ftm-timer.yaml | 7 +++++--
 1 file changed, 5 insertions(+), 2 deletions(-)
Documentation/devicetree/bindings/timer/fsl,ftm-timer.yaml +5 -2
index 0e4a8ddc3de32..e3b61b62521e8 100644
@@ -14,7 +14,9 @@ properties:
     const: fsl,ftm-timer
 
   reg:
-    maxItems: 1
+    items:
+      - description: clock event device
+      - description: clock source device
 
   interrupts:
     maxItems: 1
@@ -50,7 +52,8 @@ examples:
 
     ftm@400b8000 {
         compatible = "fsl,ftm-timer";
-        reg = <0x400b8000 0x1000>;
+        reg = <0x400b8000 0x1000>,
+              <0x400b9000 0x1000>;
         interrupts = <0 44 IRQ_TYPE_LEVEL_HIGH>;
         clock-names = "ftm-evt", "ftm-src", "ftm-evt-counter-en", "ftm-src-counter-en";
         clocks = <&clks VF610_CLK_FTM2>, <&clks VF610_CLK_FTM3>,
Signature · 1 line
2.34.1
Reviewed-by on v1 1/1
#1 lore raw
Quoted 10 lines · Frank Li

The original txt binding doc is:
reg : Specifies base physical address and size of the register sets for
the clock event device and clock source device.

And existed dts provide two reg MMIO spaces. So change to use items to descript reg property.

Update examples.

Fixes 8fc30d8f8e86 ("dt-bindings: timer: fsl,ftm-timer: Convert to dtschema"

Missing )

Best regards,
Krzysztof