arm64: dts: imx8qm: Add A72 cluster cpufreq support
authorAnson Huang <Anson.Huang@nxp.com>
Thu, 31 Oct 2019 09:34:50 +0000 (17:34 +0800)
committerDong Aisheng <aisheng.dong@nxp.com>
Mon, 14 Dec 2020 03:20:30 +0000 (11:20 +0800)
Add A72 cluster OPP table to support cpufreq.

Signed-off-by: Anson Huang <Anson.Huang@nxp.com>
arch/arm64/boot/dts/freescale/imx8qm.dtsi

index ab5abb6..bccee59 100755 (executable)
                        device_type = "cpu";
                        compatible = "arm,cortex-a72", "arm,armv8";
                        reg = <0x0 0x100>;
+                       clocks = <&clk IMX_SC_R_A72 IMX_SC_PM_CLK_CPU>;
                        enable-method = "psci";
                        next-level-cache = <&A72_L2>;
+                       operating-points-v2 = <&a72_opp_table>;
                        #cooling-cells = <2>;
                };
 
                        device_type = "cpu";
                        compatible = "arm,cortex-a72", "arm,armv8";
                        reg = <0x0 0x101>;
+                       clocks = <&clk IMX_SC_R_A72 IMX_SC_PM_CLK_CPU>;
                        enable-method = "psci";
                        next-level-cache = <&A72_L2>;
+                       operating-points-v2 = <&a72_opp_table>;
                        #cooling-cells = <2>;
                };
 
                };
        };
 
-       a53_opp_table: opp-table {
+       a53_opp_table: a53-opp-table {
                compatible = "operating-points-v2";
                opp-shared;
 
                };
        };
 
+       a72_opp_table: a72-opp-table {
+               compatible = "operating-points-v2";
+               opp-shared;
+
+               opp-600000000 {
+                       opp-hz = /bits/ 64 <600000000>;
+                       opp-microvolt = <1000000>;
+                       clock-latency-ns = <150000>;
+               };
+
+               opp-1056000000 {
+                       opp-hz = /bits/ 64 <1056000000>;
+                       opp-microvolt = <1000000>;
+                       clock-latency-ns = <150000>;
+               };
+
+               opp-1296000000 {
+                       opp-hz = /bits/ 64 <1296000000>;
+                       opp-microvolt = <1100000>;
+                       clock-latency-ns = <150000>;
+               };
+
+               opp-1596000000 {
+                       opp-hz = /bits/ 64 <1596000000>;
+                       opp-microvolt = <1100000>;
+                       clock-latency-ns = <150000>;
+                       opp-suspend;
+               };
+       };
+
        gic: interrupt-controller@51a00000 {
                compatible = "arm,gic-v3";
                reg = <0x0 0x51a00000 0 0x10000>, /* GIC Dist */