diff mbox series

[SRU,Bionic,v2,3/5] ARM: dts: imx7d: use operating-points-v2 for cpu

Message ID 20190819034240.6569-4-shrirang.bagul@canonical.com
State New
Headers show
Series Support cpufreq, thermal sensors & cooling cells on iMX6Q based Nitrogen6x board | expand

Commit Message

Shrirang Bagul Aug. 19, 2019, 3:42 a.m. UTC
From: Anson Huang <Anson.Huang@nxp.com>

BugLink: https://bugs.launchpad.net/bugs/1840437

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>
(cherry picked from commit bce48c92a641c1f1a4795a37d57168fd08fecc3b)
Signed-off-by: Shrirang Bagul <shrirang.bagul@canonical.com>
---
 arch/arm/boot/dts/imx7d.dtsi | 25 ++++++++++++++++++++-----
 1 file changed, 20 insertions(+), 5 deletions(-)
diff mbox series

Patch

diff --git a/arch/arm/boot/dts/imx7d.dtsi b/arch/arm/boot/dts/imx7d.dtsi
index fdf5076a60d4..5534f1b880c1 100644
--- a/arch/arm/boot/dts/imx7d.dtsi
+++ b/arch/arm/boot/dts/imx7d.dtsi
@@ -47,12 +47,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 {
@@ -65,6 +61,25 @@ 
 				792000	975000
 			>;
 			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;
 		};
 	};