summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDenys Drozdov <denys.drozdov@toradex.com>2021-12-23 17:38:51 +0200
committerDenys Drozdov <denys.drozdov@toradex.com>2021-12-28 13:56:51 +0200
commitc6cd9677dbcd514ff4d4c3ecbcf10ea91eaaefae (patch)
treead5298327c27af568a682a3ff29ec902f6fe04e8
parent5a3492a7008609e9b45c0081145324a08dbda882 (diff)
ARM: dts: imx7s: define speed_grade for cpufreq OPP table
imx-cpufreq-dt driver needs speed_grade to be defined for correct probe and registration. The speed grade is defined by two speed grading bits present in OCOTP fuses. It fixes the following error: root@colibri-imx7-02951832:~# dmesg | grep cpufreq [ 2.222317] imx-cpufreq-dt: probe of imx-cpufreq-dt failed with error -2 For all imx7s parts speed grade is fixed at 800mhz. Signed-off-by: Denys Drozdov <denys.drozdov@toradex.com>
-rw-r--r--arch/arm/boot/dts/imx7s.dtsi3
1 files changed, 3 insertions, 0 deletions
diff --git a/arch/arm/boot/dts/imx7s.dtsi b/arch/arm/boot/dts/imx7s.dtsi
index 33d3f4d04746..9ebb7be72867 100644
--- a/arch/arm/boot/dts/imx7s.dtsi
+++ b/arch/arm/boot/dts/imx7s.dtsi
@@ -61,6 +61,9 @@
clock-latency = <61036>; /* two CLK32 periods */
clocks = <&clks IMX7D_CLK_ARM>;
operating-points-v2 = <&cpu0_opp_table>;
+ #cooling-cells = <2>;
+ nvmem-cells = <&cpu_speed_grade>;
+ nvmem-cell-names = "speed_grade";
};
};