Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 6e067ff4 authored by Linux Build Service Account's avatar Linux Build Service Account Committed by Gerrit - the friendly Code Review server
Browse files

Merge "ARM: dts: msm: Add support for CPU frequencies for SDM632"

parents 96f45f27 accc4bdc
Loading
Loading
Loading
Loading
+85 −0
Original line number Diff line number Diff line
@@ -543,3 +543,88 @@
&apc_vreg {
	status = "disabled";
};

&soc {
	/delete-node/ msm_cpufreq;
	msm_cpufreq: qcom,msm-cpufreq {
		compatible = "qcom,msm-cpufreq";
		clock-names =
			"l2_clk",
			"cpu0_clk",
			"cpu4_clk";
		clocks =
			<&clock_cpu clk_a53_cci_clk >,
			<&clock_cpu clk_a53_pwr_clk >,
			<&clock_cpu clk_a53_perf_clk >;

		qcom,governor-per-policy;

		qcom,cpufreq-table-0 =
			<  614400 >,
			<  883200 >,
			< 1036800 >,
			< 1363200 >,
			< 1536000 >,
			< 1670400 >,
			< 1785600 >;

		qcom,cpufreq-table-4 =
			<  633600 >,
			<  902400 >,
			< 1036800 >,
			< 1401600 >,
			< 1555200 >,
			< 1785600 >,
			< 1996200 >,
			< 2082800 >;
	};

	cci_cache: qcom,cci {
		compatible = "devfreq-simple-dev";
		clock-names = "devfreq_clk";
		clocks = <&clock_cpu clk_a53_cci_clk >;
		governor = "cpufreq";
		freq-tbl-khz =
			<  307200 >,
			<  403200 >,
			<  499200 >,
			<  748800 >,
			<  768000 >,
			<  787200 >;
	};

	/delete-node/ devfreq-cpufreq;
	devfreq-cpufreq {
		mincpubw-cpufreq {
			target-dev = <&mincpubw>;
			cpu-to-dev-map-0 =
				<  614400 1611>,
				< 1363200 3221>,
				< 1785600 5859>;
			cpu-to-dev-map-4 =
				<  633600 1611>,
				< 1401600 4248>,
				< 1785600 5859>,
				< 1996200 7104>,
				< 2082800 7104>;
		};

		cci-cpufreq {
			target-dev = <&cci_cache>;
			cpu-to-dev-map-0 =
				<  614400 307200>,      /* SVS   */
				<  883200 403200>,
				< 1036800 499200>,
				< 1363200 748800>,      /* NOM   */
				< 1536000 768000>,      /* NOM+  */
				< 1670400 787200>;      /* TURBO */
			cpu-to-dev-map-4 =
				<  633600 307200>,      /* SVS   */
				<  902400 403200>,
				< 1036800 499200>,
				< 1401600 748800>,      /* NOM   */
				< 1555200 768000>,      /* NOM+  */
				< 1785600 787200>;      /* TURBO */
		};
	};
};