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

Commit 3ae5c765 authored by Santosh Mardi's avatar Santosh Mardi
Browse files

ARM: dts: msm: add support for DDR bw vote on sdxpoorwills target



To scale ddr based on the effective frequency of core enable
cpubw node, cpubw node will scale ddr based on the cpu core
frequency.

Change-Id: Iad5e98d60caa5516d98820b9d4563c7d2200ae94
Signed-off-by: default avatarSantosh Mardi <gsantosh@codeaurora.org>
parent 202aa1fb
Loading
Loading
Loading
Loading
+27 −0
Original line number Original line Diff line number Diff line
@@ -19,6 +19,8 @@
#include <dt-bindings/regulator/qcom,rpmh-regulator.h>
#include <dt-bindings/regulator/qcom,rpmh-regulator.h>
#include <dt-bindings/clock/qcom,aop-qmp.h>
#include <dt-bindings/clock/qcom,aop-qmp.h>


#define MHZ_TO_MBPS(mhz, w) ((mhz * 1000000 * w) / (1024 * 1024))

/ {
/ {
	model = "Qualcomm Technologies, Inc. SDX POORWILLS";
	model = "Qualcomm Technologies, Inc. SDX POORWILLS";
	compatible = "qcom,sdxpoorwills";
	compatible = "qcom,sdxpoorwills";
@@ -218,6 +220,31 @@
				< 1497600 >;
				< 1497600 >;
	};
	};


	cpubw: qcom,cpubw {
		compatible = "qcom,devbw";
		governor = "cpufreq";
		qcom,src-dst-ports = <1 512>;
		qcom,active-only;
		qcom,bw-tbl =
			< MHZ_TO_MBPS(200, 2) >, /*   381 MB/s */
			< MHZ_TO_MBPS(470, 2) >, /*   896 MB/s */
			< MHZ_TO_MBPS(547, 2) >, /*  1043 MB/s */
			< MHZ_TO_MBPS(691, 2) >, /*  1317 MB/s */
			< MHZ_TO_MBPS(806, 2) >, /*  1537 MB/s */
			< MHZ_TO_MBPS(940, 2) >, /*  1792 MB/s */
			< MHZ_TO_MBPS(1383, 2) >; /* 2637 MB/s */
	};

	devfreq_compute: qcom,devfreq-compute {
		compatible = "qcom,arm-cpu-mon";
		qcom,cpulist = <&CPU0>;
		qcom,target-dev = <&cpubw>;
		qcom,core-dev-table =
				<  153600 MHZ_TO_MBPS(200, 2) >,
				<  576000 MHZ_TO_MBPS(691, 2) >,
				< 1497600 MHZ_TO_MBPS(1383, 2)>;
	};

	clock_gcc: qcom,gcc@100000 {
	clock_gcc: qcom,gcc@100000 {
		compatible = "qcom,gcc-sdxpoorwills", "syscon";
		compatible = "qcom,gcc-sdxpoorwills", "syscon";
		reg = <0x100000 0x1f0000>;
		reg = <0x100000 0x1f0000>;