aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorViresh Kumar <viresh.kumar@linaro.org>2015-11-10 21:40:57 -0500
committerRafael J. Wysocki <rafael.j.wysocki@intel.com>2015-11-23 17:38:36 -0500
commit754dcf35f34698661801ae1d391efa02affe83a7 (patch)
treee56298491cad8c59bc9d13509385fdd0e37aa215
parentaf87a39a5f7cf6ef252b1aec3e2e6508a40e51f1 (diff)
PM / OPP: Rename OPP nodes as opp@<opp-hz>
It would be better to name OPP nodes as opp@<opp-hz> as that will ensure that multiple DT nodes don't contain the same frequency. Of course we expect the writer to name the node with its opp-hz frequency and not any other frequency. And that will let the compile error out if multiple nodes are using the same opp-hz frequency. Suggested-by: Stephen Boyd <sboyd@codeaurora.org> Reviewed-by: Stephen Boyd <sboyd@codeaurora.org> Acked-by: Rob Herring <robh@kernel.org> Signed-off-by: Viresh Kumar <viresh.kumar@linaro.org> Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
-rw-r--r--Documentation/devicetree/bindings/opp/opp.txt38
1 files changed, 19 insertions, 19 deletions
diff --git a/Documentation/devicetree/bindings/opp/opp.txt b/Documentation/devicetree/bindings/opp/opp.txt
index 24eac9a97749..601256fe8c0d 100644
--- a/Documentation/devicetree/bindings/opp/opp.txt
+++ b/Documentation/devicetree/bindings/opp/opp.txt
@@ -177,20 +177,20 @@ Example 1: Single cluster Dual-core ARM cortex A9, switch DVFS states together.
177 compatible = "operating-points-v2"; 177 compatible = "operating-points-v2";
178 opp-shared; 178 opp-shared;
179 179
180 opp00 { 180 opp@1000000000 {
181 opp-hz = /bits/ 64 <1000000000>; 181 opp-hz = /bits/ 64 <1000000000>;
182 opp-microvolt = <970000 975000 985000>; 182 opp-microvolt = <970000 975000 985000>;
183 opp-microamp = <70000>; 183 opp-microamp = <70000>;
184 clock-latency-ns = <300000>; 184 clock-latency-ns = <300000>;
185 opp-suspend; 185 opp-suspend;
186 }; 186 };
187 opp01 { 187 opp@1100000000 {
188 opp-hz = /bits/ 64 <1100000000>; 188 opp-hz = /bits/ 64 <1100000000>;
189 opp-microvolt = <980000 1000000 1010000>; 189 opp-microvolt = <980000 1000000 1010000>;
190 opp-microamp = <80000>; 190 opp-microamp = <80000>;
191 clock-latency-ns = <310000>; 191 clock-latency-ns = <310000>;
192 }; 192 };
193 opp02 { 193 opp@1200000000 {
194 opp-hz = /bits/ 64 <1200000000>; 194 opp-hz = /bits/ 64 <1200000000>;
195 opp-microvolt = <1025000>; 195 opp-microvolt = <1025000>;
196 clock-latency-ns = <290000>; 196 clock-latency-ns = <290000>;
@@ -256,20 +256,20 @@ independently.
256 * independently. 256 * independently.
257 */ 257 */
258 258
259 opp00 { 259 opp@1000000000 {
260 opp-hz = /bits/ 64 <1000000000>; 260 opp-hz = /bits/ 64 <1000000000>;
261 opp-microvolt = <970000 975000 985000>; 261 opp-microvolt = <970000 975000 985000>;
262 opp-microamp = <70000>; 262 opp-microamp = <70000>;
263 clock-latency-ns = <300000>; 263 clock-latency-ns = <300000>;
264 opp-suspend; 264 opp-suspend;
265 }; 265 };
266 opp01 { 266 opp@1100000000 {
267 opp-hz = /bits/ 64 <1100000000>; 267 opp-hz = /bits/ 64 <1100000000>;
268 opp-microvolt = <980000 1000000 1010000>; 268 opp-microvolt = <980000 1000000 1010000>;
269 opp-microamp = <80000>; 269 opp-microamp = <80000>;
270 clock-latency-ns = <310000>; 270 clock-latency-ns = <310000>;
271 }; 271 };
272 opp02 { 272 opp@1200000000 {
273 opp-hz = /bits/ 64 <1200000000>; 273 opp-hz = /bits/ 64 <1200000000>;
274 opp-microvolt = <1025000>; 274 opp-microvolt = <1025000>;
275 opp-microamp = <90000; 275 opp-microamp = <90000;
@@ -332,20 +332,20 @@ DVFS state together.
332 compatible = "operating-points-v2"; 332 compatible = "operating-points-v2";
333 opp-shared; 333 opp-shared;
334 334
335 opp00 { 335 opp@1000000000 {
336 opp-hz = /bits/ 64 <1000000000>; 336 opp-hz = /bits/ 64 <1000000000>;
337 opp-microvolt = <970000 975000 985000>; 337 opp-microvolt = <970000 975000 985000>;
338 opp-microamp = <70000>; 338 opp-microamp = <70000>;
339 clock-latency-ns = <300000>; 339 clock-latency-ns = <300000>;
340 opp-suspend; 340 opp-suspend;
341 }; 341 };
342 opp01 { 342 opp@1100000000 {
343 opp-hz = /bits/ 64 <1100000000>; 343 opp-hz = /bits/ 64 <1100000000>;
344 opp-microvolt = <980000 1000000 1010000>; 344 opp-microvolt = <980000 1000000 1010000>;
345 opp-microamp = <80000>; 345 opp-microamp = <80000>;
346 clock-latency-ns = <310000>; 346 clock-latency-ns = <310000>;
347 }; 347 };
348 opp02 { 348 opp@1200000000 {
349 opp-hz = /bits/ 64 <1200000000>; 349 opp-hz = /bits/ 64 <1200000000>;
350 opp-microvolt = <1025000>; 350 opp-microvolt = <1025000>;
351 opp-microamp = <90000>; 351 opp-microamp = <90000>;
@@ -358,20 +358,20 @@ DVFS state together.
358 compatible = "operating-points-v2"; 358 compatible = "operating-points-v2";
359 opp-shared; 359 opp-shared;
360 360
361 opp10 { 361 opp@1300000000 {
362 opp-hz = /bits/ 64 <1300000000>; 362 opp-hz = /bits/ 64 <1300000000>;
363 opp-microvolt = <1045000 1050000 1055000>; 363 opp-microvolt = <1045000 1050000 1055000>;
364 opp-microamp = <95000>; 364 opp-microamp = <95000>;
365 clock-latency-ns = <400000>; 365 clock-latency-ns = <400000>;
366 opp-suspend; 366 opp-suspend;
367 }; 367 };
368 opp11 { 368 opp@1400000000 {
369 opp-hz = /bits/ 64 <1400000000>; 369 opp-hz = /bits/ 64 <1400000000>;
370 opp-microvolt = <1075000>; 370 opp-microvolt = <1075000>;
371 opp-microamp = <100000>; 371 opp-microamp = <100000>;
372 clock-latency-ns = <400000>; 372 clock-latency-ns = <400000>;
373 }; 373 };
374 opp12 { 374 opp@1500000000 {
375 opp-hz = /bits/ 64 <1500000000>; 375 opp-hz = /bits/ 64 <1500000000>;
376 opp-microvolt = <1010000 1100000 1110000>; 376 opp-microvolt = <1010000 1100000 1110000>;
377 opp-microamp = <95000>; 377 opp-microamp = <95000>;
@@ -398,7 +398,7 @@ Example 4: Handling multiple regulators
398 compatible = "operating-points-v2"; 398 compatible = "operating-points-v2";
399 opp-shared; 399 opp-shared;
400 400
401 opp00 { 401 opp@1000000000 {
402 opp-hz = /bits/ 64 <1000000000>; 402 opp-hz = /bits/ 64 <1000000000>;
403 opp-microvolt = <970000>, /* Supply 0 */ 403 opp-microvolt = <970000>, /* Supply 0 */
404 <960000>, /* Supply 1 */ 404 <960000>, /* Supply 1 */
@@ -411,7 +411,7 @@ Example 4: Handling multiple regulators
411 411
412 /* OR */ 412 /* OR */
413 413
414 opp00 { 414 opp@1000000000 {
415 opp-hz = /bits/ 64 <1000000000>; 415 opp-hz = /bits/ 64 <1000000000>;
416 opp-microvolt = <970000 975000 985000>, /* Supply 0 */ 416 opp-microvolt = <970000 975000 985000>, /* Supply 0 */
417 <960000 965000 975000>, /* Supply 1 */ 417 <960000 965000 975000>, /* Supply 1 */
@@ -424,7 +424,7 @@ Example 4: Handling multiple regulators
424 424
425 /* OR */ 425 /* OR */
426 426
427 opp00 { 427 opp@1000000000 {
428 opp-hz = /bits/ 64 <1000000000>; 428 opp-hz = /bits/ 64 <1000000000>;
429 opp-microvolt = <970000 975000 985000>, /* Supply 0 */ 429 opp-microvolt = <970000 975000 985000>, /* Supply 0 */
430 <960000 965000 975000>, /* Supply 1 */ 430 <960000 965000 975000>, /* Supply 1 */
@@ -456,7 +456,7 @@ Example 5: opp-supported-hw
456 status = "okay"; 456 status = "okay";
457 opp-shared; 457 opp-shared;
458 458
459 opp00 { 459 opp@600000000 {
460 /* 460 /*
461 * Supports all substrate and process versions for 0xF 461 * Supports all substrate and process versions for 0xF
462 * cuts, i.e. only first four cuts. 462 * cuts, i.e. only first four cuts.
@@ -467,7 +467,7 @@ Example 5: opp-supported-hw
467 ... 467 ...
468 }; 468 };
469 469
470 opp01 { 470 opp@800000000 {
471 /* 471 /*
472 * Supports: 472 * Supports:
473 * - cuts: only one, 6th cut (represented by 6th bit). 473 * - cuts: only one, 6th cut (represented by 6th bit).
@@ -499,7 +499,7 @@ Example 6: opp-microvolt-<name>, opp-microamp-<name>:
499 compatible = "operating-points-v2"; 499 compatible = "operating-points-v2";
500 opp-shared; 500 opp-shared;
501 501
502 opp00 { 502 opp@1000000000 {
503 opp-hz = /bits/ 64 <1000000000>; 503 opp-hz = /bits/ 64 <1000000000>;
504 opp-microvolt-slow = <900000 915000 925000>; 504 opp-microvolt-slow = <900000 915000 925000>;
505 opp-microvolt-fast = <970000 975000 985000>; 505 opp-microvolt-fast = <970000 975000 985000>;
@@ -507,7 +507,7 @@ Example 6: opp-microvolt-<name>, opp-microamp-<name>:
507 opp-microamp-fast = <71000>; 507 opp-microamp-fast = <71000>;
508 }; 508 };
509 509
510 opp01 { 510 opp@1200000000 {
511 opp-hz = /bits/ 64 <1200000000>; 511 opp-hz = /bits/ 64 <1200000000>;
512 opp-microvolt-slow = <900000 915000 925000>, /* Supply vcc0 */ 512 opp-microvolt-slow = <900000 915000 925000>, /* Supply vcc0 */
513 <910000 925000 935000>; /* Supply vcc1 */ 513 <910000 925000 935000>; /* Supply vcc1 */