OSDN Git Service

ARM: dts: imx7d: use operating-points-v2 for cpu
authorAnson Huang <Anson.Huang@nxp.com>
Wed, 16 May 2018 04:48:17 +0000 (12:48 +0800)
committerShawn Guo <shawnguo@kernel.org>
Sun, 20 May 2018 12:47:58 +0000 (20:47 +0800)
This patch uses "operating-points-v2" instead of
"operating-points" to be more fit with cpufreq-dt
driver.

Signed-off-by: Anson Huang <Anson.Huang@nxp.com>
Signed-off-by: Shawn Guo <shawnguo@kernel.org>
arch/arm/boot/dts/imx7d.dtsi

index 4c9877e..f579fe5 100644 (file)
@@ -9,12 +9,8 @@
 / {
        cpus {
                cpu0: cpu@0 {
-                       operating-points = <
-                               /* KHz  uV */
-                               996000  1075000
-                               792000  975000
-                       >;
                        clock-frequency = <996000000>;
+                       operating-points-v2 = <&cpu0_opp_table>;
                };
 
                cpu1: cpu@1 {
                        device_type = "cpu";
                        reg = <1>;
                        clock-frequency = <996000000>;
+                       operating-points-v2 = <&cpu0_opp_table>;
+               };
+       };
+
+       cpu0_opp_table: opp-table {
+               compatible = "operating-points-v2";
+               opp-shared;
+
+               opp-792000000 {
+                       opp-hz = /bits/ 64 <792000000>;
+                       opp-microvolt = <975000>;
+                       clock-latency-ns = <150000>;
+               };
+
+               opp-996000000 {
+                       opp-hz = /bits/ 64 <996000000>;
+                       opp-microvolt = <1075000>;
+                       clock-latency-ns = <150000>;
+                       opp-suspend;
                };
        };