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

Commit f4970c1c authored by qctecmdr's avatar qctecmdr Committed by Gerrit - the friendly Code Review server
Browse files

Merge "ARM: dts: msm: Configure Policy engine for lahaina"

parents e5d75e87 0a0cf60d
Loading
Loading
Loading
Loading
+52 −0
Original line number Diff line number Diff line
@@ -17,6 +17,27 @@
	};
};

&soc {
	mx_sdpm@0x00636000 {
		compatible = "qcom,sdpm";
		reg = <0x00636000 0x1000>;
		clock-names = "cam_cc_ipe", "video_cc_mvs0", "gcc_gp1";
		clocks = <&clock_camcc CAM_CC_IPE_0_CLK_SRC>,
			<&clock_videocc VIDEO_CC_MVS0_CLK_SRC>,
			<&clock_gcc GCC_GP1_CLK_SRC>;
		cam_cc_ipe-supply = <&cam_cc_ipe_0_gdsc>;
		video_cc_mvs0-supply = <&video_cc_mvs0_gdsc>;
		csr-id = <1 3 5>;
	};

	mx_pe: mx_rdpm_pe@0x00637000 {
		compatible = "qcom,policy-engine";
		#thermal-sensor-cells = <0>;
		reg = <0x00637000 0x1000>;
		interrupts = <GIC_SPI 237 IRQ_TYPE_LEVEL_HIGH>;
	};
};

&cpufreq_hw {
	qcom,cpu-isolation {
		compatible = "qcom,cpu-isolate";
@@ -1120,5 +1141,36 @@
		};
	};

	mx-pe-step {
		polling-delay-passive = <0>;
		polling-delay = <0>;
		thermal-sensors = <&mx_pe>;
		thermal-governor = "step_wise";
		trips {
			mx_pe_config1: mx-pe-config1 {
				temperature = <1>;
				hysteresis = <1>;
				type = "passive";
			};

			mx_pe_config2: mx-pe-config2 {
				temperature = <2>;
				hysteresis = <1>;
				type = "passive";
			};
		};

		cooling-maps {
			mx_pe_cdev_1 {
				trip = <&mx_pe_config1>;
				cooling-device = <&cdsp_sw 1 1>;
			};

			mx_pe_cdev_2 {
				trip = <&mx_pe_config2>;
				cooling-device = <&msm_gpu 1 1>;
			};
		};
	};
};