Commit d7a3aa26 authored by Peng Fan's avatar Peng Fan Committed by Frank Li
Browse files

ARM: dts: imx7ulp: Add CPU clock and OPP table support



Add missing CPU clock definitions and operating-points-v2 table for the
Cortex-A7 on i.MX7ULP to enable proper CPU frequency scaling and
integration with the cpufreq/OPP frameworks.

Signed-off-by: default avatarPeng Fan <peng.fan@nxp.com>
Signed-off-by: default avatarFrank Li <Frank.Li@nxp.com>
parent 137c291f
Loading
Loading
Loading
Loading
+28 −0
Original line number Diff line number Diff line
@@ -41,6 +41,34 @@ cpu0: cpu@f00 {
			compatible = "arm,cortex-a7";
			device_type = "cpu";
			reg = <0xf00>;
			clocks = <&smc1 IMX7ULP_CLK_ARM>,
				 <&scg1 IMX7ULP_CLK_CORE>,
				 <&scg1 IMX7ULP_CLK_SYS_SEL>,
				 <&scg1 IMX7ULP_CLK_HSRUN_CORE>,
				 <&scg1 IMX7ULP_CLK_HSRUN_SYS_SEL>,
				 <&scg1 IMX7ULP_CLK_FIRC>;
			clock-names = "arm", "core", "scs_sel",
				      "hsrun_core", "hsrun_scs_sel",
				      "firc";
			operating-points-v2 = <&cpu0_opp_table>;
		};
	};

	cpu0_opp_table: opp-table {
		compatible = "operating-points-v2";
		opp-shared;

		opp-500210000 {
			opp-hz = /bits/ 64 <500210000>;
			opp-microvolt = <1025000>;
			clock-latency-ns = <150000>;
			opp-suspend;
		};

		opp-720000000 {
			opp-hz = /bits/ 64 <720000000>;
			opp-microvolt = <1125000>;
			clock-latency-ns = <150000>;
		};
	};