[PATCH] dt-bindings: timer: Add power-domains for TI timer-dm on K3

Tony Lindgren tony at atomide.com
Mon Sep 19 04:23:57 PDT 2022


On K3 SoCs, the power-domains property is needed. On the earlier SoCs,
the power-domains property is handled by the interconnect target module
parent device.

Cc: Daniel Lezcano <daniel.lezcano at linaro.org>
Cc: Grygorii Strashko <grygorii.strashko at ti.com>
Cc: Keerthy <j-keerthy at ti.com>
Cc: Nishanth Menon <nm at ti.com>
Cc: Vignesh Raghavendra <vigneshr at ti.com>
Signed-off-by: Tony Lindgren <tony at atomide.com>
---
 .../devicetree/bindings/timer/ti,timer-dm.yaml  | 17 ++++++++++++-----
 1 file changed, 12 insertions(+), 5 deletions(-)

diff --git a/Documentation/devicetree/bindings/timer/ti,timer-dm.yaml b/Documentation/devicetree/bindings/timer/ti,timer-dm.yaml
--- a/Documentation/devicetree/bindings/timer/ti,timer-dm.yaml
+++ b/Documentation/devicetree/bindings/timer/ti,timer-dm.yaml
@@ -51,6 +51,11 @@ properties:
       - const: timer_sys_ck
     minItems: 1
 
+  power-domains:
+    description:
+      Power domain if available
+    maxItems: 1
+
   interrupts:
     description:
       Interrupt if available. The timer PWM features may be usable
@@ -94,12 +99,14 @@ additionalProperties: false
 
 allOf:
   - if:
-      not:
-        properties:
-          compatible:
-            contains:
-              const: ti,am654-timer
+      properties:
+        compatible:
+          contains:
+            const: ti,am654-timer
     then:
+      required:
+        - power-domains
+    else:
       required:
         - interrupts
 
-- 
2.37.1



More information about the linux-arm-kernel mailing list