ARM: tegra: Populate OPP table for Tegra20 Ventana
authorJon Hunter <jonathanh@nvidia.com>
Wed, 11 Nov 2020 10:38:47 +0000 (10:38 +0000)
committerThierry Reding <treding@nvidia.com>
Thu, 26 Nov 2020 18:06:46 +0000 (19:06 +0100)
Commit 9ce274630495 ("cpufreq: tegra20: Use generic cpufreq-dt driver
(Tegra30 supported now)") update the Tegra20 CPUFREQ driver to use the
generic CPUFREQ device-tree driver. Since this change CPUFREQ support
on the Tegra20 Ventana platform has been broken because the necessary
device-tree nodes with the operating point information are not populated
for this platform. Fix this by updating device-tree for Venata to
include the operating point informration for Tegra20.

Fixes: 9ce274630495 ("cpufreq: tegra20: Use generic cpufreq-dt driver (Tegra30 supported now)")
Cc: stable@vger.kernel.org
Signed-off-by: Jon Hunter <jonathanh@nvidia.com>
Signed-off-by: Thierry Reding <treding@nvidia.com>
arch/arm/boot/dts/tegra20-ventana.dts

index b158771ac0b7da018bcd60fe00f9fd0ed8c16dc1..055334ae3d2889ceb5a84a7da8723b5564027ee6 100644 (file)
@@ -3,6 +3,7 @@
 
 #include <dt-bindings/input/input.h>
 #include "tegra20.dtsi"
+#include "tegra20-cpu-opp.dtsi"
 
 / {
        model = "NVIDIA Tegra20 Ventana evaluation board";
                #clock-cells = <0>;
        };
 
+       cpus {
+               cpu0: cpu@0 {
+                       operating-points-v2 = <&cpu0_opp_table>;
+               };
+
+               cpu@1 {
+                       operating-points-v2 = <&cpu0_opp_table>;
+               };
+       };
+
        gpio-keys {
                compatible = "gpio-keys";