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

Commit bf4a0bed authored by Lukasz Majewski's avatar Lukasz Majewski Committed by Kukjin Kim
Browse files

ARM: dts: Adding CPU cooling binding for Exynos SoCs



Presented patch aims to move data necessary for correct CPU cooling device
configuration from exynos_tmu_data.c to device tree.

Signed-off-by: default avatarLukasz Majewski <l.majewski@samsung.com>
Acked-by: default avatarEduardo Valentin <edubezval@gmail.com>
Signed-off-by: default avatarKukjin Kim <kgene@kernel.org>
parent 233e274a
Loading
Loading
Loading
Loading
+15 −0
Original line number Diff line number Diff line
@@ -430,6 +430,21 @@
		status = "okay";
	};

	thermal-zones {
		cpu_thermal: cpu-thermal {
			cooling-maps {
				map0 {
				     /* Corresponds to 800MHz at freq_table */
				     cooling-device = <&cpu0 2 2>;
				};
				map1 {
				     /* Corresponds to 200MHz at freq_table */
				     cooling-device = <&cpu0 4 4>;
			       };
		       };
		};
	};

	camera {
		pinctrl-names = "default";
		pinctrl-0 = <>;
+4 −1
Original line number Diff line number Diff line
@@ -35,10 +35,13 @@
		#address-cells = <1>;
		#size-cells = <0>;

		cpu@900 {
		cpu0: cpu@900 {
			device_type = "cpu";
			compatible = "arm,cortex-a9";
			reg = <0x900>;
			cooling-min-level = <4>;
			cooling-max-level = <2>;
			#cooling-cells = <2>; /* min followed by max */
		};

		cpu@901 {
+4 −1
Original line number Diff line number Diff line
@@ -26,10 +26,13 @@
		#address-cells = <1>;
		#size-cells = <0>;

		cpu@A00 {
		cpu0: cpu@A00 {
			device_type = "cpu";
			compatible = "arm,cortex-a9";
			reg = <0xA00>;
			cooling-min-level = <13>;
			cooling-max-level = <7>;
			#cooling-cells = <2>; /* min followed by max */
		};

		cpu@A01 {
+15 −0
Original line number Diff line number Diff line
@@ -423,6 +423,21 @@
		vtmu-supply = <&ldo10_reg>;
		status = "okay";
	};

	thermal-zones {
		cpu_thermal: cpu-thermal {
			cooling-maps {
				map0 {
				     /* Corresponds to 800MHz at freq_table */
				     cooling-device = <&cpu0 7 7>;
				};
				map1 {
				     /* Corresponds to 200MHz at freq_table */
				     cooling-device = <&cpu0 13 13>;
			       };
		       };
		};
	};
};

&pinctrl_1 {
+15 −0
Original line number Diff line number Diff line
@@ -927,6 +927,21 @@
		pulldown-ohm = <100000>; /* 100K */
		io-channels = <&adc 2>;  /* Battery temperature */
	};

	thermal-zones {
		cpu_thermal: cpu-thermal {
			cooling-maps {
				map0 {
				     /* Corresponds to 800MHz at freq_table */
				     cooling-device = <&cpu0 7 7>;
				};
				map1 {
				     /* Corresponds to 200MHz at freq_table */
				     cooling-device = <&cpu0 13 13>;
			       };
		       };
		};
	};
};

&pmu_system_controller {
Loading