Skip to contentSkip to conversation

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

PATCH Applied Frank Li 4 participants 7 messages May 23, 2025 – Jul 25, 2025

Subsystems (3)
lore
Share & tools
lore

Frank Li

author maintainer
#0 lore raw

PATCH v2 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")

---
change in v2
- add kk review tag
- add missed )

---
 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
author maintainer
#1 lore raw
Quoted 4 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.

Quoted 8 lines

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")

Daniel Lezcano Or Rob

Krzysztof Kozlowski already reviewed. Could you place pick this one?

Frank

Quoted 36 lines

---
change in v2
- add kk review tag
- add missed )

---
 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 -3
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>,
--

2.34.1

#2 lore raw
Quoted 10 lines · Frank Li
Quoted 9 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.

Quoted 7 lines
Quoted 3 lines
Fixes 8fc30d8f8e86 ("dt-bindings: timer: fsl,ftm-timer: Convert to dtschema")

Daniel Lezcano Or Rob

Krzysztof Kozlowski already reviewed. Could you place pick this one?

Just FYI,
I review either through DT patchwork or my own email client. In the first case I mark the patch as done in DT patchwork, thus Rob will not see it. If you want Rob to pick it up, please resend with a note in changelog --- for Tob.

Best regards,
Krzysztof

#3 lore raw
In reply to Frank Li
Quoted 10 lines · Frank Li
Quoted 9 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.

Quoted 7 lines
Quoted 3 lines
Fixes 8fc30d8f8e86 ("dt-bindings: timer: fsl,ftm-timer: Convert to dtschema")

Daniel Lezcano Or Rob

Krzysztof Kozlowski already reviewed. Could you place pick this one?

Yes

Signature · 5 lines
<http://www.linaro.org/> Linaro.org │ Open source software for ARM SoCs

Follow Linaro:  <http://www.facebook.com/pages/Linaro> Facebook |
<http://twitter.com/#!/linaroorg> Twitter |
<http://www.linaro.org/linaro-blog/> Blog
#4 lore raw
In reply to Frank Li
Quoted 7 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.

Quoted 6 lines

Update examples.

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

---

Applied, thanks

Signature · 5 lines
 <http://www.linaro.org/> Linaro.org │ Open source software for ARM SoCs

Follow Linaro:  <http://www.facebook.com/pages/Linaro> Facebook |
<http://twitter.com/#!/linaroorg> Twitter |
<http://www.linaro.org/linaro-blog/> Blog
merge bot Applied
#5 lore raw
In reply to Frank Li
The following commit has been merged into the timers/clocksource branch of tip:

The following commit has been merged into the timers/clocksource branch of tip:

Commit-ID:     4532c1172869819d5b7e63d7ad12cf3f3e5f3946
Gitweb:        https://git.kernel.org/tip/4532c1172869819d5b7e63d7ad12cf3f3e5f3946
Author:        Frank Li <[email protected]>
AuthorDate:    Fri, 23 May 2025 10:14:37 -04:00
Committer:     Daniel Lezcano <[email protected]>
CommitterDate: Mon, 14 Jul 2025 18:14:42 +02:00

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 0e4a8dd..e3b61b6 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>,
merge bot Applied
#6 lore raw

[tip: timers/clocksource] dt-bindings: timer: fsl,ftm-timer: Use 'items' for 'reg'

In reply to Frank Li
The following commit has been merged into the timers/clocksource branch of tip:

The following commit has been merged into the timers/clocksource branch of tip:

Commit-ID:     a06b35eac655563ac7f184f2be5b580bbe8ecc44
Gitweb:        https://git.kernel.org/tip/a06b35eac655563ac7f184f2be5b580bbe8ecc44
Author:        Frank Li <[email protected]>
AuthorDate:    Fri, 23 May 2025 10:14:37 -04:00
Committer:     Ingo Molnar <[email protected]>
CommitterDate: Fri, 25 Jul 2025 12:03:14 +02:00

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 existing DTS drivers provide two 'reg' MMIO spaces. So change this driver to use 'items' to describe the 'reg' property.

Update examples as well.

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 0e4a8dd..e3b61b6 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>,