1 Generic OPP (Operating Performance Points) Bindings
2 ----------------------------------------------------
4 Devices work at voltage-current-frequency combinations and some implementations
5 have the liberty of choosing these. These combinations are called Operating
6 Performance Points aka OPPs. This document defines bindings for these OPPs
7 applicable across wide range of devices. For illustration purpose, this document
10 This document contain multiple versions of OPP binding and only one of them
11 should be used per device.
13 Binding 1: operating-points
14 ============================
16 This binding only supports voltage-frequency pairs.
19 - operating-points: An array of 2-tuples items, and each item consists
20 of frequency and voltage like <freq-kHz vol-uV>.
21 freq: clock frequency in kHz
22 vol: voltage in microvolt
27 compatible = "arm,cortex-a9";
29 next-level-cache = <&L2>;
39 Binding 2: operating-points-v2
40 ============================
42 * Property: operating-points-v2
44 Devices supporting OPPs must set their "operating-points-v2" property with
45 phandle to a OPP table in their DT node. The OPP core will use this phandle to
46 find the operating points for the device.
48 If required, this can be extended for SoC vendor specfic bindings. Such bindings
49 should be documented as Documentation/devicetree/bindings/power/<vendor>-opp.txt
50 and should have a compatible description like: "operating-points-v2-<vendor>".
54 This describes the OPPs belonging to a device. This node can have following
58 - compatible: Allow OPPs to express their compatibility. It should be:
59 "operating-points-v2".
61 - OPP nodes: One or more OPP nodes describing voltage-current-frequency
62 combinations. Their name isn't significant but their phandle can be used to
66 - opp-shared: Indicates that device nodes using this OPP Table Node's phandle
67 switch their DVFS state together, i.e. they share clock/voltage/current lines.
68 Missing property means devices have independent clock/voltage/current lines,
69 but they share OPP tables.
74 This defines voltage-current-frequency combinations along with other related
78 - opp-hz: Frequency in Hz
81 - opp-microvolt: voltage in micro Volts.
83 A single regulator's voltage is specified with an array of size one or three.
84 Single entry is for target voltage and three entries are for <target min max>
87 Entries for multiple regulators must be present in the same order as
88 regulators are specified in device's DT node.
90 - opp-microamp: The maximum current drawn by the device in microamperes
91 considering system specific parameters (such as transients, process, aging,
92 maximum operating temperature range etc.) as necessary. This may be used to
93 set the most efficient regulator operating mode.
95 Should only be set if opp-microvolt is set for the OPP.
97 Entries for multiple regulators must be present in the same order as
98 regulators are specified in device's DT node. If this property isn't required
99 for few regulators, then this should be marked as zero for them. If it isn't
100 required for any regulator, then this property need not be present.
102 - clock-latency-ns: Specifies the maximum possible transition latency (in
103 nanoseconds) for switching to this OPP from any other OPP.
105 - turbo-mode: Marks the OPP to be used only for turbo modes. Turbo mode is
106 available on some platforms, where the device can run over its operating
107 frequency for a short duration of time limited by the device's power, current
110 - status: Marks the node enabled/disabled.
112 Example 1: Single cluster Dual-core ARM cortex A9, switch DVFS states together.
116 #address-cells = <1>;
120 compatible = "arm,cortex-a9";
122 next-level-cache = <&L2>;
123 clocks = <&clk_controller 0>;
125 cpu-supply = <&cpu_supply0>;
126 operating-points-v2 = <&cpu0_opp_table>;
130 compatible = "arm,cortex-a9";
132 next-level-cache = <&L2>;
133 clocks = <&clk_controller 0>;
135 cpu-supply = <&cpu_supply0>;
136 operating-points-v2 = <&cpu0_opp_table>;
140 cpu0_opp_table: opp_table0 {
141 compatible = "operating-points-v2";
145 opp-hz = <1000000000>;
146 opp-microvolt = <970000 975000 985000>;
147 opp-microamp = <70000>;
148 clock-latency-ns = <300000>;
151 opp-hz = <1100000000>;
152 opp-microvolt = <980000 1000000 1010000>;
153 opp-microamp = <80000>;
154 clock-latency-ns = <310000>;
157 opp-hz = <1200000000>;
158 opp-microvolt = <1025000>;
159 clock-latency-ns = <290000>;
165 Example 2: Single cluster, Quad-core Qualcom-krait, switches DVFS states
170 #address-cells = <1>;
174 compatible = "qcom,krait";
176 next-level-cache = <&L2>;
177 clocks = <&clk_controller 0>;
179 cpu-supply = <&cpu_supply0>;
180 operating-points-v2 = <&cpu_opp_table>;
184 compatible = "qcom,krait";
186 next-level-cache = <&L2>;
187 clocks = <&clk_controller 1>;
189 cpu-supply = <&cpu_supply1>;
190 operating-points-v2 = <&cpu_opp_table>;
194 compatible = "qcom,krait";
196 next-level-cache = <&L2>;
197 clocks = <&clk_controller 2>;
199 cpu-supply = <&cpu_supply2>;
200 operating-points-v2 = <&cpu_opp_table>;
204 compatible = "qcom,krait";
206 next-level-cache = <&L2>;
207 clocks = <&clk_controller 3>;
209 cpu-supply = <&cpu_supply3>;
210 operating-points-v2 = <&cpu_opp_table>;
214 cpu_opp_table: opp_table {
215 compatible = "operating-points-v2";
218 * Missing opp-shared property means CPUs switch DVFS states
223 opp-hz = <1000000000>;
224 opp-microvolt = <970000 975000 985000>;
225 opp-microamp = <70000>;
226 clock-latency-ns = <300000>;
229 opp-hz = <1100000000>;
230 opp-microvolt = <980000 1000000 1010000>;
231 opp-microamp = <80000>;
232 clock-latency-ns = <310000>;
235 opp-hz = <1200000000>;
236 opp-microvolt = <1025000>;
237 opp-microamp = <90000;
238 lock-latency-ns = <290000>;
244 Example 3: Dual-cluster, Dual-core per cluster. CPUs within a cluster switch
249 #address-cells = <1>;
253 compatible = "arm,cortex-a7";
255 next-level-cache = <&L2>;
256 clocks = <&clk_controller 0>;
258 cpu-supply = <&cpu_supply0>;
259 operating-points-v2 = <&cluster0_opp>;
263 compatible = "arm,cortex-a7";
265 next-level-cache = <&L2>;
266 clocks = <&clk_controller 0>;
268 cpu-supply = <&cpu_supply0>;
269 operating-points-v2 = <&cluster0_opp>;
273 compatible = "arm,cortex-a15";
275 next-level-cache = <&L2>;
276 clocks = <&clk_controller 1>;
278 cpu-supply = <&cpu_supply1>;
279 operating-points-v2 = <&cluster1_opp>;
283 compatible = "arm,cortex-a15";
285 next-level-cache = <&L2>;
286 clocks = <&clk_controller 1>;
288 cpu-supply = <&cpu_supply1>;
289 operating-points-v2 = <&cluster1_opp>;
293 cluster0_opp: opp_table0 {
294 compatible = "operating-points-v2";
298 opp-hz = <1000000000>;
299 opp-microvolt = <970000 975000 985000>;
300 opp-microamp = <70000>;
301 clock-latency-ns = <300000>;
304 opp-hz = <1100000000>;
305 opp-microvolt = <980000 1000000 1010000>;
306 opp-microamp = <80000>;
307 clock-latency-ns = <310000>;
310 opp-hz = <1200000000>;
311 opp-microvolt = <1025000>;
312 opp-microamp = <90000>;
313 clock-latency-ns = <290000>;
318 cluster1_opp: opp_table1 {
319 compatible = "operating-points-v2";
323 opp-hz = <1300000000>;
324 opp-microvolt = <1045000 1050000 1055000>;
325 opp-microamp = <95000>;
326 clock-latency-ns = <400000>;
329 opp-hz = <1400000000>;
330 opp-microvolt = <1075000>;
331 opp-microamp = <100000>;
332 clock-latency-ns = <400000>;
335 opp-hz = <1500000000>;
336 opp-microvolt = <1010000 1100000 1110000>;
337 opp-microamp = <95000>;
338 clock-latency-ns = <400000>;
344 Example 4: Handling multiple regulators
349 compatible = "arm,cortex-a7";
352 cpu-supply = <&cpu_supply0>, <&cpu_supply1>, <&cpu_supply2>;
353 operating-points-v2 = <&cpu0_opp_table>;
357 cpu0_opp_table: opp_table0 {
358 compatible = "operating-points-v2";
362 opp-hz = <1000000000>;
363 opp-microvolt = <970000>, /* Supply 0 */
364 <960000>, /* Supply 1 */
365 <960000>; /* Supply 2 */
366 opp-microamp = <70000>, /* Supply 0 */
367 <70000>, /* Supply 1 */
368 <70000>; /* Supply 2 */
369 clock-latency-ns = <300000>;
375 opp-hz = <1000000000>;
376 opp-microvolt = <970000 975000 985000>, /* Supply 0 */
377 <960000 965000 975000>, /* Supply 1 */
378 <960000 965000 975000>; /* Supply 2 */
379 opp-microamp = <70000>, /* Supply 0 */
380 <70000>, /* Supply 1 */
381 <70000>; /* Supply 2 */
382 clock-latency-ns = <300000>;
388 opp-hz = <1000000000>;
389 opp-microvolt = <970000 975000 985000>, /* Supply 0 */
390 <960000 965000 975000>, /* Supply 1 */
391 <960000 965000 975000>; /* Supply 2 */
392 opp-microamp = <70000>, /* Supply 0 */
393 <0>, /* Supply 1 doesn't need this */
394 <70000>; /* Supply 2 */
395 clock-latency-ns = <300000>;