Add alias naming for cpu pause cooling device. Add alias naming for cpu hotplug cooling device. Add changes for cpufreq driver node. Change-Id: I9cbb6beceff0a83976672df3783d49ab3add6e40
		
			
				
	
	
		
			600 lines
		
	
	
		
			11 KiB
		
	
	
	
		
			Plaintext
		
	
	
	
	
	
			
		
		
	
	
			600 lines
		
	
	
		
			11 KiB
		
	
	
	
		
			Plaintext
		
	
	
	
	
	
#include <dt-bindings/thermal/thermal_qti.h>
 | 
						|
 | 
						|
&msm_gpu {
 | 
						|
	#cooling-cells = <2>;
 | 
						|
};
 | 
						|
 | 
						|
&soc {
 | 
						|
	tsens0: thermal-sensor@c263000 {
 | 
						|
		compatible = "qcom,tsens-v2";
 | 
						|
		reg = <0x0c263000 0x1ff>, /* TM */
 | 
						|
			<0x0c222000 0x1ff>; /* SROT */
 | 
						|
		#qcom,sensors = <16>;
 | 
						|
		interrupts = <GIC_SPI 506 IRQ_TYPE_LEVEL_HIGH>,
 | 
						|
			     <GIC_SPI 508 IRQ_TYPE_LEVEL_HIGH>;
 | 
						|
		interrupt-names = "uplow","critical";
 | 
						|
		#thermal-sensor-cells = <1>;
 | 
						|
	};
 | 
						|
 | 
						|
	qcom,cpu-pause {
 | 
						|
		compatible = "qcom,thermal-pause";
 | 
						|
 | 
						|
		cpu0_pause: cpu0-pause {
 | 
						|
			qcom,cpus = <&CPU0>;
 | 
						|
			qcom,cdev-alias = "thermal-pause-1";
 | 
						|
			#cooling-cells = <2>;
 | 
						|
		};
 | 
						|
 | 
						|
		cpu1_pause: cpu1-pause {
 | 
						|
			qcom,cpus = <&CPU1>;
 | 
						|
			qcom,cdev-alias = "thermal-pause-2";
 | 
						|
			#cooling-cells = <2>;
 | 
						|
		};
 | 
						|
 | 
						|
		cpu2_pause: cpu2-pause {
 | 
						|
			qcom,cpus = <&CPU2>;
 | 
						|
			qcom,cdev-alias = "thermal-pause-4";
 | 
						|
			#cooling-cells = <2>;
 | 
						|
		};
 | 
						|
 | 
						|
		cpu3_pause: cpu3-pause {
 | 
						|
			qcom,cpus = <&CPU3>;
 | 
						|
			qcom,cdev-alias = "thermal-pause-8";
 | 
						|
			#cooling-cells = <2>;
 | 
						|
		};
 | 
						|
 | 
						|
		/* Thermal-engine cooling devices */
 | 
						|
		pause-cpu0 {
 | 
						|
			qcom,cpus = <&CPU0>;
 | 
						|
			qcom,cdev-alias = "pause-cpu0";
 | 
						|
		};
 | 
						|
 | 
						|
		pause-cpu1 {
 | 
						|
			qcom,cpus = <&CPU1>;
 | 
						|
			qcom,cdev-alias = "pause-cpu1";
 | 
						|
		};
 | 
						|
 | 
						|
		pause-cpu2 {
 | 
						|
			qcom,cpus = <&CPU2>;
 | 
						|
			qcom,cdev-alias = "pause-cpu2";
 | 
						|
		};
 | 
						|
 | 
						|
		pause-cpu3 {
 | 
						|
			qcom,cpus = <&CPU3>;
 | 
						|
			qcom,cdev-alias = "pause-cpu3";
 | 
						|
		};
 | 
						|
	};
 | 
						|
 | 
						|
	qcom,cpu-hotplug {
 | 
						|
		compatible = "qcom,cpu-hotplug";
 | 
						|
 | 
						|
		cpu0_hotplug: cpu0-hotplug {
 | 
						|
			qcom,cpu = <&CPU0>;
 | 
						|
			qcom,cdev-alias = "cpu-hotplug0";
 | 
						|
			#cooling-cells = <2>;
 | 
						|
		};
 | 
						|
 | 
						|
		cpu1_hotplug: cpu1-hotplug {
 | 
						|
			qcom,cpu = <&CPU1>;
 | 
						|
			qcom,cdev-alias = "cpu-hotplug1";
 | 
						|
			#cooling-cells = <2>;
 | 
						|
		};
 | 
						|
 | 
						|
		cpu2_hotplug: cpu2-hotplug {
 | 
						|
			qcom,cpu = <&CPU2>;
 | 
						|
			qcom,cdev-alias = "cpu-hotplug2";
 | 
						|
			#cooling-cells = <2>;
 | 
						|
		};
 | 
						|
 | 
						|
		cpu3_hotplug: cpu3-hotplug {
 | 
						|
			qcom,cpu = <&CPU3>;
 | 
						|
			qcom,cdev-alias = "cpu-hotplug3";
 | 
						|
			#cooling-cells = <2>;
 | 
						|
		};
 | 
						|
	};
 | 
						|
 | 
						|
	thermal_ddr_freq_table: thermal-ddr-freq-table {
 | 
						|
		qcom,freq-tbl = < 2133000 >;
 | 
						|
	};
 | 
						|
 | 
						|
	ddr_cdev: qcom,ddr-cdev {
 | 
						|
		compatible = "qcom,ddr-cooling-device";
 | 
						|
		#cooling-cells = <2>;
 | 
						|
		qcom,freq-table = <&thermal_ddr_freq_table>;
 | 
						|
		qcom,bus-width = <4>;
 | 
						|
		interconnects = <&mc_virt MASTER_LLCC &mc_virt SLAVE_EBI1>;
 | 
						|
	};
 | 
						|
 | 
						|
	qmi_tmd: qmi-tmd-devices {
 | 
						|
		compatible = "qcom,qmi-cooling-devices";
 | 
						|
		cdsp {
 | 
						|
			qcom,instance-id = <QMI_CDSP_INST_ID>;
 | 
						|
 | 
						|
			cdsp_sw: cdsp {
 | 
						|
				qcom,qmi-dev-name = "cdsp_sw";
 | 
						|
				#cooling-cells = <2>;
 | 
						|
			};
 | 
						|
 | 
						|
			cdsp_hw: cdsp_hw {
 | 
						|
				qcom,qmi-dev-name = "cdsp_hw";
 | 
						|
				#cooling-cells = <2>;
 | 
						|
			};
 | 
						|
		};
 | 
						|
	};
 | 
						|
 | 
						|
	qcom,cpufreq-cdev {
 | 
						|
		compatible = "qcom,cpufreq-cdev";
 | 
						|
		cpu-cluster0 {
 | 
						|
			qcom,cpus = <&CPU0 &CPU1 &CPU2 &CPU3>;
 | 
						|
		};
 | 
						|
	};
 | 
						|
 | 
						|
	qcom,devfreq-cdev {
 | 
						|
		compatible = "qcom,devfreq-cdev";
 | 
						|
		qcom,devfreq = <&msm_gpu>;
 | 
						|
	};
 | 
						|
 | 
						|
	qcom,userspace-cdev {
 | 
						|
		compatible = "qcom,userspace-cooling-devices";
 | 
						|
 | 
						|
		display_fps: display-fps {
 | 
						|
			qcom,max-level = <3>;
 | 
						|
			#cooling-cells = <2>;
 | 
						|
		};
 | 
						|
	};
 | 
						|
};
 | 
						|
 | 
						|
&thermal_zones {
 | 
						|
	aoss-0 {
 | 
						|
		polling-delay-passive = <0>;
 | 
						|
		polling-delay = <0>;
 | 
						|
		thermal-sensors = <&tsens0 0>;
 | 
						|
		trips {
 | 
						|
			thermal-engine-config {
 | 
						|
				temperature = <125000>;
 | 
						|
				hysteresis = <1000>;
 | 
						|
				type = "passive";
 | 
						|
			};
 | 
						|
 | 
						|
			reset-mon-cfg {
 | 
						|
				temperature = <115000>;
 | 
						|
				hysteresis = <5000>;
 | 
						|
				type = "passive";
 | 
						|
			};
 | 
						|
		};
 | 
						|
	};
 | 
						|
 | 
						|
	cpu-0-0 {
 | 
						|
		polling-delay-passive = <0>;
 | 
						|
		polling-delay = <0>;
 | 
						|
		thermal-sensors = <&tsens0 1>;
 | 
						|
		trips {
 | 
						|
			thermal-engine-config {
 | 
						|
				temperature = <125000>;
 | 
						|
				hysteresis = <1000>;
 | 
						|
				type = "passive";
 | 
						|
			};
 | 
						|
 | 
						|
			thermal-hal-config {
 | 
						|
				temperature = <125000>;
 | 
						|
				hysteresis = <1000>;
 | 
						|
				type = "passive";
 | 
						|
			};
 | 
						|
 | 
						|
			reset-mon-cfg {
 | 
						|
				temperature = <115000>;
 | 
						|
				hysteresis = <5000>;
 | 
						|
				type = "passive";
 | 
						|
			};
 | 
						|
 | 
						|
			cpu0_emerg0: cpu0-emerg0-cfg {
 | 
						|
				temperature = <110000>;
 | 
						|
				hysteresis = <10000>;
 | 
						|
				type = "passive";
 | 
						|
			};
 | 
						|
		};
 | 
						|
	};
 | 
						|
 | 
						|
	cpu-0-1 {
 | 
						|
		polling-delay-passive = <0>;
 | 
						|
		polling-delay = <0>;
 | 
						|
		thermal-sensors = <&tsens0 2>;
 | 
						|
		trips {
 | 
						|
			thermal-engine-config {
 | 
						|
				temperature = <125000>;
 | 
						|
				hysteresis = <1000>;
 | 
						|
				type = "passive";
 | 
						|
			};
 | 
						|
 | 
						|
			thermal-hal-config {
 | 
						|
				temperature = <125000>;
 | 
						|
				hysteresis = <1000>;
 | 
						|
				type = "passive";
 | 
						|
			};
 | 
						|
 | 
						|
			reset-mon-cfg {
 | 
						|
				temperature = <115000>;
 | 
						|
				hysteresis = <5000>;
 | 
						|
				type = "passive";
 | 
						|
			};
 | 
						|
 | 
						|
			cpu1_emerg0: cpu1-emerg0-cfg {
 | 
						|
				temperature = <110000>;
 | 
						|
				hysteresis = <10000>;
 | 
						|
				type = "passive";
 | 
						|
			};
 | 
						|
		};
 | 
						|
 | 
						|
		cooling-maps {
 | 
						|
			cpu01_cdev {
 | 
						|
				trip = <&cpu1_emerg0>;
 | 
						|
				cooling-device = <&cpu1_pause 1 1>;
 | 
						|
			};
 | 
						|
		};
 | 
						|
	};
 | 
						|
 | 
						|
	cpu-0-2 {
 | 
						|
		polling-delay-passive = <0>;
 | 
						|
		polling-delay = <0>;
 | 
						|
		thermal-sensors = <&tsens0 3>;
 | 
						|
		trips {
 | 
						|
			thermal-engine-config {
 | 
						|
				temperature = <125000>;
 | 
						|
				hysteresis = <1000>;
 | 
						|
				type = "passive";
 | 
						|
			};
 | 
						|
 | 
						|
			thermal-hal-config {
 | 
						|
				temperature = <125000>;
 | 
						|
				hysteresis = <1000>;
 | 
						|
				type = "passive";
 | 
						|
			};
 | 
						|
 | 
						|
			reset-mon-cfg {
 | 
						|
				temperature = <115000>;
 | 
						|
				hysteresis = <5000>;
 | 
						|
				type = "passive";
 | 
						|
			};
 | 
						|
 | 
						|
			cpu2_emerg0: cpu2-emerg0-cfg {
 | 
						|
				temperature = <110000>;
 | 
						|
				hysteresis = <10000>;
 | 
						|
				type = "passive";
 | 
						|
			};
 | 
						|
		};
 | 
						|
 | 
						|
		cooling-maps {
 | 
						|
			cpu02_cdev {
 | 
						|
				trip = <&cpu2_emerg0>;
 | 
						|
				cooling-device = <&cpu2_pause 1 1>;
 | 
						|
			};
 | 
						|
		};
 | 
						|
	};
 | 
						|
 | 
						|
	cpu-0-3 {
 | 
						|
		polling-delay-passive = <0>;
 | 
						|
		polling-delay = <0>;
 | 
						|
		thermal-sensors = <&tsens0 4>;
 | 
						|
		trips {
 | 
						|
			thermal-engine-config {
 | 
						|
				temperature = <125000>;
 | 
						|
				hysteresis = <1000>;
 | 
						|
				type = "passive";
 | 
						|
			};
 | 
						|
 | 
						|
			thermal-hal-config {
 | 
						|
				temperature = <125000>;
 | 
						|
				hysteresis = <1000>;
 | 
						|
				type = "passive";
 | 
						|
			};
 | 
						|
 | 
						|
			reset-mon-cfg {
 | 
						|
				temperature = <115000>;
 | 
						|
				hysteresis = <5000>;
 | 
						|
				type = "passive";
 | 
						|
			};
 | 
						|
 | 
						|
			cpu3_emerg0: cpu3-emerg0-cfg {
 | 
						|
				temperature = <110000>;
 | 
						|
				hysteresis = <10000>;
 | 
						|
				type = "passive";
 | 
						|
			};
 | 
						|
		};
 | 
						|
 | 
						|
		cooling-maps {
 | 
						|
			cpu03_cdev {
 | 
						|
				trip = <&cpu3_emerg0>;
 | 
						|
				cooling-device = <&cpu3_pause 1 1>;
 | 
						|
			};
 | 
						|
		};
 | 
						|
	};
 | 
						|
 | 
						|
	gpuss-0 {
 | 
						|
		polling-delay-passive = <10>;
 | 
						|
		polling-delay = <0>;
 | 
						|
		thermal-sensors = <&tsens0 5>;
 | 
						|
		trips {
 | 
						|
			thermal-engine-config {
 | 
						|
				temperature = <125000>;
 | 
						|
				hysteresis = <1000>;
 | 
						|
				type = "passive";
 | 
						|
			};
 | 
						|
 | 
						|
			thermal-hal-config {
 | 
						|
				temperature = <125000>;
 | 
						|
				hysteresis = <1000>;
 | 
						|
				type = "passive";
 | 
						|
			};
 | 
						|
 | 
						|
			reset-mon-cfg {
 | 
						|
				temperature = <115000>;
 | 
						|
				hysteresis = <5000>;
 | 
						|
				type = "passive";
 | 
						|
			};
 | 
						|
 | 
						|
			gpu0_tj_cfg: tj_cfg {
 | 
						|
				temperature = <95000>;
 | 
						|
				hysteresis = <5000>;
 | 
						|
				type = "passive";
 | 
						|
			};
 | 
						|
		};
 | 
						|
 | 
						|
		cooling-maps {
 | 
						|
			gpu0_cdev {
 | 
						|
				trip = <&gpu0_tj_cfg>;
 | 
						|
				cooling-device = <&msm_gpu 0 THERMAL_NO_LIMIT>;
 | 
						|
			};
 | 
						|
		};
 | 
						|
	};
 | 
						|
 | 
						|
	gpuss-1 {
 | 
						|
		polling-delay-passive = <10>;
 | 
						|
		polling-delay = <0>;
 | 
						|
		thermal-sensors = <&tsens0 6>;
 | 
						|
		trips {
 | 
						|
			thermal-engine-config {
 | 
						|
				temperature = <125000>;
 | 
						|
				hysteresis = <1000>;
 | 
						|
				type = "passive";
 | 
						|
			};
 | 
						|
 | 
						|
			thermal-hal-config {
 | 
						|
				temperature = <125000>;
 | 
						|
				hysteresis = <1000>;
 | 
						|
				type = "passive";
 | 
						|
			};
 | 
						|
 | 
						|
			reset-mon-cfg {
 | 
						|
				temperature = <115000>;
 | 
						|
				hysteresis = <5000>;
 | 
						|
				type = "passive";
 | 
						|
			};
 | 
						|
 | 
						|
			gpu1_tj_cfg: tj_cfg {
 | 
						|
				temperature = <95000>;
 | 
						|
				hysteresis = <5000>;
 | 
						|
				type = "passive";
 | 
						|
			};
 | 
						|
		};
 | 
						|
 | 
						|
		cooling-maps {
 | 
						|
			gpu1_cdev {
 | 
						|
				trip = <&gpu1_tj_cfg>;
 | 
						|
				cooling-device = <&msm_gpu 0 THERMAL_NO_LIMIT>;
 | 
						|
			};
 | 
						|
		};
 | 
						|
	};
 | 
						|
 | 
						|
	nspss-0 {
 | 
						|
		polling-delay-passive = <10>;
 | 
						|
		polling-delay = <0>;
 | 
						|
		thermal-sensors = <&tsens0 7>;
 | 
						|
		trips {
 | 
						|
			thermal-engine-config {
 | 
						|
				temperature = <125000>;
 | 
						|
				hysteresis = <1000>;
 | 
						|
				type = "passive";
 | 
						|
			};
 | 
						|
 | 
						|
			thermal-hal-config {
 | 
						|
				temperature = <125000>;
 | 
						|
				hysteresis = <1000>;
 | 
						|
				type = "passive";
 | 
						|
			};
 | 
						|
 | 
						|
			reset-mon-cfg {
 | 
						|
				temperature = <115000>;
 | 
						|
				hysteresis = <5000>;
 | 
						|
				type = "passive";
 | 
						|
			};
 | 
						|
 | 
						|
			nspss_0_config: junction-config {
 | 
						|
				temperature = <95000>;
 | 
						|
				hysteresis = <5000>;
 | 
						|
				type = "passive";
 | 
						|
			};
 | 
						|
		};
 | 
						|
 | 
						|
		cooling-maps {
 | 
						|
			nsp0_cdev {
 | 
						|
				trip = <&nspss_0_config>;
 | 
						|
				cooling-device = <&cdsp_sw THERMAL_NO_LIMIT
 | 
						|
							THERMAL_NO_LIMIT>;
 | 
						|
			};
 | 
						|
		};
 | 
						|
	};
 | 
						|
 | 
						|
	nspss-1 {
 | 
						|
		polling-delay-passive = <10>;
 | 
						|
		polling-delay = <0>;
 | 
						|
		thermal-sensors = <&tsens0 8>;
 | 
						|
		trips {
 | 
						|
			thermal-engine-config {
 | 
						|
				temperature = <125000>;
 | 
						|
				hysteresis = <1000>;
 | 
						|
				type = "passive";
 | 
						|
			};
 | 
						|
 | 
						|
			thermal-hal-config {
 | 
						|
				temperature = <125000>;
 | 
						|
				hysteresis = <1000>;
 | 
						|
				type = "passive";
 | 
						|
			};
 | 
						|
 | 
						|
			reset-mon-cfg {
 | 
						|
				temperature = <115000>;
 | 
						|
				hysteresis = <5000>;
 | 
						|
				type = "passive";
 | 
						|
			};
 | 
						|
 | 
						|
			nspss_1_config: junction-config {
 | 
						|
				temperature = <95000>;
 | 
						|
				hysteresis = <5000>;
 | 
						|
				type = "passive";
 | 
						|
			};
 | 
						|
		};
 | 
						|
 | 
						|
		cooling-maps {
 | 
						|
			nsp1_cdev {
 | 
						|
				trip = <&nspss_1_config>;
 | 
						|
				cooling-device = <&cdsp_sw THERMAL_NO_LIMIT
 | 
						|
							THERMAL_NO_LIMIT>;
 | 
						|
			};
 | 
						|
		};
 | 
						|
	};
 | 
						|
 | 
						|
	nspss-2 {
 | 
						|
		polling-delay-passive = <10>;
 | 
						|
		polling-delay = <0>;
 | 
						|
		thermal-sensors = <&tsens0 9>;
 | 
						|
		trips {
 | 
						|
			thermal-engine-config {
 | 
						|
				temperature = <125000>;
 | 
						|
				hysteresis = <1000>;
 | 
						|
				type = "passive";
 | 
						|
			};
 | 
						|
 | 
						|
			thermal-hal-config {
 | 
						|
				temperature = <125000>;
 | 
						|
				hysteresis = <1000>;
 | 
						|
				type = "passive";
 | 
						|
			};
 | 
						|
 | 
						|
			reset-mon-cfg {
 | 
						|
				temperature = <115000>;
 | 
						|
				hysteresis = <5000>;
 | 
						|
				type = "passive";
 | 
						|
			};
 | 
						|
 | 
						|
			nspss_2_config: junction-config {
 | 
						|
				temperature = <95000>;
 | 
						|
				hysteresis = <5000>;
 | 
						|
				type = "passive";
 | 
						|
			};
 | 
						|
		};
 | 
						|
 | 
						|
		cooling-maps {
 | 
						|
			nsp2_cdev {
 | 
						|
				trip = <&nspss_2_config>;
 | 
						|
				cooling-device = <&cdsp_sw THERMAL_NO_LIMIT
 | 
						|
							THERMAL_NO_LIMIT>;
 | 
						|
			};
 | 
						|
		};
 | 
						|
	};
 | 
						|
 | 
						|
	video {
 | 
						|
		polling-delay-passive = <0>;
 | 
						|
		polling-delay = <0>;
 | 
						|
		thermal-sensors = <&tsens0 10>;
 | 
						|
		trips {
 | 
						|
			thermal-engine-config {
 | 
						|
				temperature = <125000>;
 | 
						|
				hysteresis = <1000>;
 | 
						|
				type = "passive";
 | 
						|
			};
 | 
						|
 | 
						|
			reset-mon-cfg {
 | 
						|
				temperature = <115000>;
 | 
						|
				hysteresis = <5000>;
 | 
						|
				type = "passive";
 | 
						|
			};
 | 
						|
		};
 | 
						|
	};
 | 
						|
 | 
						|
	ddr {
 | 
						|
		polling-delay-passive = <10>;
 | 
						|
		polling-delay = <0>;
 | 
						|
		thermal-sensors = <&tsens0 11>;
 | 
						|
		trips {
 | 
						|
			thermal-engine-config {
 | 
						|
				temperature = <125000>;
 | 
						|
				hysteresis = <1000>;
 | 
						|
				type = "passive";
 | 
						|
			};
 | 
						|
 | 
						|
			reset-mon-cfg {
 | 
						|
				temperature = <115000>;
 | 
						|
				hysteresis = <5000>;
 | 
						|
				type = "passive";
 | 
						|
			};
 | 
						|
		};
 | 
						|
	};
 | 
						|
 | 
						|
	camera-0 {
 | 
						|
		polling-delay-passive = <0>;
 | 
						|
		polling-delay = <0>;
 | 
						|
		thermal-sensors = <&tsens0 12>;
 | 
						|
		trips {
 | 
						|
			thermal-engine-config {
 | 
						|
				temperature = <125000>;
 | 
						|
				hysteresis = <1000>;
 | 
						|
				type = "passive";
 | 
						|
			};
 | 
						|
 | 
						|
			reset-mon-cfg {
 | 
						|
				temperature = <115000>;
 | 
						|
				hysteresis = <5000>;
 | 
						|
				type = "passive";
 | 
						|
			};
 | 
						|
		};
 | 
						|
	};
 | 
						|
 | 
						|
	camera-1 {
 | 
						|
		polling-delay-passive = <0>;
 | 
						|
		polling-delay = <0>;
 | 
						|
		thermal-sensors = <&tsens0 13>;
 | 
						|
		trips {
 | 
						|
			thermal-engine-config {
 | 
						|
				temperature = <125000>;
 | 
						|
				hysteresis = <1000>;
 | 
						|
				type = "passive";
 | 
						|
			};
 | 
						|
 | 
						|
			reset-mon-cfg {
 | 
						|
				temperature = <115000>;
 | 
						|
				hysteresis = <5000>;
 | 
						|
				type = "passive";
 | 
						|
			};
 | 
						|
		};
 | 
						|
	};
 | 
						|
 | 
						|
	mdmss-0 {
 | 
						|
		polling-delay-passive = <0>;
 | 
						|
		polling-delay = <0>;
 | 
						|
		thermal-sensors = <&tsens0 14>;
 | 
						|
		trips {
 | 
						|
			thermal-engine-config {
 | 
						|
				temperature = <125000>;
 | 
						|
				hysteresis = <1000>;
 | 
						|
				type = "passive";
 | 
						|
			};
 | 
						|
 | 
						|
			reset-mon-cfg {
 | 
						|
				temperature = <115000>;
 | 
						|
				hysteresis = <5000>;
 | 
						|
				type = "passive";
 | 
						|
			};
 | 
						|
		};
 | 
						|
	};
 | 
						|
};
 |