[SRU][Bionic][PATCH v3 3/6] ARM: dts: imx7d: use operating-points-v2 for cpu
Shrirang Bagul
shrirang.bagul at canonical.com
Mon Aug 19 12:14:04 UTC 2019
From: Anson Huang <Anson.Huang at 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 at nxp.com>
Signed-off-by: Shawn Guo <shawnguo at kernel.org>
(cherry picked from commit bce48c92a641c1f1a4795a37d57168fd08fecc3b)
Signed-off-by: Shrirang Bagul <shrirang.bagul at canonical.com>
---
arch/arm/boot/dts/imx7d.dtsi | 25 ++++++++++++++++++++-----
1 file changed, 20 insertions(+), 5 deletions(-)
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 at 0 {
- operating-points = <
- /* KHz uV */
- 996000 1075000
- 792000 975000
- >;
clock-frequency = <996000000>;
+ operating-points-v2 = <&cpu0_opp_table>;
};
cpu1: cpu at 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;
};
};
--
2.17.1
More information about the kernel-team
mailing list