Skip to content

Commit 45a4187

Browse files
Saravana Kannanvireshk
authored andcommitted
dt-bindings: opp: Introduce opp-peak-kBps and opp-avg-kBps bindings
Interconnects often quantify their performance points in terms of bandwidth. So, add opp-peak-kBps (required) and opp-avg-kBps (optional) to allow specifying Bandwidth OPP tables in DT. opp-peak-kBps is a required property that replaces opp-hz for Bandwidth OPP tables. opp-avg-kBps is an optional property that can be used in Bandwidth OPP tables. Signed-off-by: Saravana Kannan <[email protected]> Signed-off-by: Georgi Djakov <[email protected]> Reviewed-by: Sibi Sankar <[email protected]> Reviewed-by: Rob Herring <[email protected]> Signed-off-by: Viresh Kumar <[email protected]>
1 parent ae83d0b commit 45a4187

File tree

2 files changed

+18
-3
lines changed

2 files changed

+18
-3
lines changed

Documentation/devicetree/bindings/opp/opp.txt

Lines changed: 14 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -83,9 +83,14 @@ properties.
8383

8484
Required properties:
8585
- opp-hz: Frequency in Hz, expressed as a 64-bit big-endian integer. This is a
86-
required property for all device nodes but devices like power domains. The
87-
power domain nodes must have another (implementation dependent) property which
88-
uniquely identifies the OPP nodes.
86+
required property for all device nodes, unless another "required" property to
87+
uniquely identify the OPP nodes exists. Devices like power domains must have
88+
another (implementation dependent) property.
89+
90+
- opp-peak-kBps: Peak bandwidth in kilobytes per second, expressed as an array
91+
of 32-bit big-endian integers. Each element of the array represents the
92+
peak bandwidth value of each interconnect path. The number of elements should
93+
match the number of interconnect paths.
8994

9095
Optional properties:
9196
- opp-microvolt: voltage in micro Volts.
@@ -132,6 +137,12 @@ Optional properties:
132137
- opp-level: A value representing the performance level of the device,
133138
expressed as a 32-bit integer.
134139

140+
- opp-avg-kBps: Average bandwidth in kilobytes per second, expressed as an array
141+
of 32-bit big-endian integers. Each element of the array represents the
142+
average bandwidth value of each interconnect path. The number of elements
143+
should match the number of interconnect paths. This property is only
144+
meaningful in OPP tables where opp-peak-kBps is present.
145+
135146
- clock-latency-ns: Specifies the maximum possible transition latency (in
136147
nanoseconds) for switching to this OPP from any other OPP.
137148

Documentation/devicetree/bindings/property-units.txt

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -41,3 +41,7 @@ Temperature
4141
Pressure
4242
----------------------------------------
4343
-kpascal : kilopascal
44+
45+
Throughput
46+
----------------------------------------
47+
-kBps : kilobytes per second

0 commit comments

Comments
 (0)