DT: arm64: exynos: add support fot container thermal zone
authorLukasz Luba <l.luba@partner.samsung.com>
Tue, 14 Aug 2018 15:46:15 +0000 (17:46 +0200)
committerLukasz Luba <l.luba@partner.samsung.com>
Fri, 17 May 2019 07:15:37 +0000 (09:15 +0200)
Add basic support for new type of thermal zone - container
with new virtual temperature sensor.

Signed-off-by: Lukasz Luba <l.luba@partner.samsung.com>
arch/arm64/boot/dts/exynos/exynos5433-tm2-common.dtsi
arch/arm64/boot/dts/exynos/exynos5433-tmu.dtsi
arch/arm64/boot/dts/exynos/exynos5433.dtsi

index 6380d2751d15334a02729afe9636061155e60adf..d94bd6a8c1401033ad716070b12eb13919bce7d9 100644 (file)
        status = "okay";
 };
 
+&vtsens {
+       status = "okay";
+};
+
 &usbdrd30 {
        vdd33-supply = <&ldo10_reg>;
        vdd10-supply = <&ldo6_reg>;
index c3f6dac6743a9c82f042afddd3cdcae53d2bac0b..6057c9101f0e9ffb70db2201657d7dd1d67e2e48 100644 (file)
@@ -291,19 +291,23 @@ thermal-zones {
        };
 
        soc_thermal_ipa: soc-thermal-ipa {
-               thermal-sensors = <&tmu_atlas0>;
+               container;
+               thermal-sensors = <&vtsens>;
+               #thermal-subzone-cells = <1>;
+               subzones = <&apollo_thermal 50 &atlas0_thermal 100 &g3d_thermal 100>;
                polling-delay = <100>;
                polling-delay-passive = <1000>;
                sustainable-power = <2500>;
+
                trips {
                        threshold: threshold {
-                               temperature = <55000>;  /* millicelsius */
-                               hysteresis = <1000>;    /* millicelsius */
+                               temperature = <55000>;
+                               hysteresis = <1000>;
                                type = "passive";
                        };
                        target: target {
-                               temperature = <70000>;  /* millicelsius */
-                               hysteresis = <1000>;    /* millicelsius */
+                               temperature = <70000>;
+                               hysteresis = <1000>;
                                type = "passive";
                        };
                };
index 2131f12364cb23906047495bbfae29e5084c3420..7527d579114dbfa2922ca69d7bfd89a4f3ba7f0e 100644 (file)
                        status = "disabled";
                };
 
+               vtsens: vtsens@0 {
+                       compatible = "thermal,virt-tsens";
+                       #thermal-sensor-cells = <0>;
+                       status = "disabled";
+               };
+
                mct@101c0000 {
                        compatible = "samsung,exynos4210-mct";
                        reg = <0x101c0000 0x800>;