Skip to contentSkip to conversation

dt-bindings: opp: Allow 'clock-latency' with dynamically populated OPPs

PATCH Applied Rob Herring (Arm) 2 participants 2 messages Nov 3 – Nov 4

Subsystems (2)
lore
Share & tools
lore

Rob Herring (Arm)

author maintainer
#0 lore raw

PATCH 1/1 dt-bindings: opp: Allow 'clock-latency' with dynamically populated OPPs

Tegra210 builds its CPU OPP table at runtime from fuse-derived process and speedo values and built-in CVB coefficients. Its CPU node therefore has clock-latency without a static operating-points property. The OPP core still reads that latency when initializing the table.

Fixes 80728bfa8c79 ("dt-bindings: arm/cpus: Add missing properties")
---
 Documentation/devicetree/bindings/opp/opp-v1.yaml | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
Documentation/devicetree/bindings/opp/opp-v1.yaml +2 -2
index 61c080e50859..3dca8f7f146d 100644
@@ -24,7 +24,8 @@ properties:
   clock-latency:
     $ref: /schemas/types.yaml#/definitions/uint32
     description:
-      The latency in nanoseconds for clock changes. Use OPP tables for new
+      The latency in nanoseconds for clock changes. This also applies when
+      operating points are populated dynamically. Use OPP tables for new
       designs instead.
 
   voltage-tolerance:
@@ -41,7 +42,6 @@ properties:
         - description: Voltage for OPP in uV
 
 dependencies:
-  clock-latency: [ operating-points ]
   voltage-tolerance: [ operating-points ]
 
 additionalProperties: true
Signature · 1 line
2.53.0
Applied
#1 lore raw
Quoted 26 lines · Rob Herring (Arm)

Tegra210 builds its CPU OPP table at runtime from fuse-derived process and speedo values and built-in CVB coefficients. Its CPU node therefore has clock-latency without a static operating-points property. The OPP core still reads that latency when initializing the table.

Fixes 80728bfa8c79 ("dt-bindings: arm/cpus: Add missing properties")
---
 Documentation/devicetree/bindings/opp/opp-v1.yaml | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
Documentation/devicetree/bindings/opp/opp-v1.yaml +2 -1
index 61c080e50859..3dca8f7f146d 100644
@@ -24,7 +24,8 @@ properties:
   clock-latency:
     $ref: /schemas/types.yaml#/definitions/uint32
     description:
-      The latency in nanoseconds for clock changes. Use OPP tables for new
+      The latency in nanoseconds for clock changes. This also applies when
+      operating points are populated dynamically. Use OPP tables for new
       designs instead.
 
   voltage-tolerance:

Documentation/devicetree/bindings/opp/opp-v1.yaml properties: · line 47

Quoted 7 lines
Documentation/devicetree/bindings/opp/opp-v1.yaml +0 -1
@@ -41,7 +42,6 @@ properties:
         - description: Voltage for OPP in uV
 
 dependencies:
-  clock-latency: [ operating-points ]
   voltage-tolerance: [ operating-points ]
 
 additionalProperties: true

Applied. Thanks.

Signature · 1 line
viresh