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 --- .../boot/dts/exynos/exynos5433-tm2-common.dtsi | 4 ++++ arch/arm64/boot/dts/exynos/exynos5433-tmu.dtsi | 14 +++++++++----- arch/arm64/boot/dts/exynos/exynos5433.dtsi | 6 ++++++ 3 files changed, 19 insertions(+), 5 deletions(-)
diff --git a/arch/arm64/boot/dts/exynos/exynos5433-tm2-common.dtsi b/arch/arm64/boot/dts/exynos/exynos5433-tm2-common.dtsi index 6380d2751d15..d94bd6a8c140 100644 --- a/arch/arm64/boot/dts/exynos/exynos5433-tm2-common.dtsi +++ b/arch/arm64/boot/dts/exynos/exynos5433-tm2-common.dtsi @@ -1276,6 +1276,10 @@ status = "okay"; };
+&vtsens { + status = "okay"; +}; + &usbdrd30 { vdd33-supply = <&ldo10_reg>; vdd10-supply = <&ldo6_reg>; diff --git a/arch/arm64/boot/dts/exynos/exynos5433-tmu.dtsi b/arch/arm64/boot/dts/exynos/exynos5433-tmu.dtsi index c3f6dac6743a..6057c9101f0e 100644 --- a/arch/arm64/boot/dts/exynos/exynos5433-tmu.dtsi +++ b/arch/arm64/boot/dts/exynos/exynos5433-tmu.dtsi @@ -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"; }; }; diff --git a/arch/arm64/boot/dts/exynos/exynos5433.dtsi b/arch/arm64/boot/dts/exynos/exynos5433.dtsi index 2131f12364cb..7527d579114d 100644 --- a/arch/arm64/boot/dts/exynos/exynos5433.dtsi +++ b/arch/arm64/boot/dts/exynos/exynos5433.dtsi @@ -678,6 +678,12 @@ status = "disabled"; };
+ vtsens: vtsens@0 { + compatible = "thermal,virt-tsens"; + #thermal-sensor-cells = <0>; + status = "disabled"; + }; + mct@101c0000 { compatible = "samsung,exynos4210-mct"; reg = <0x101c0000 0x800>;