aboutsummaryrefslogtreecommitdiffstats
path: root/arch/arm
diff options
context:
space:
mode:
authorLinus Torvalds <torvalds@linux-foundation.org>2014-12-17 13:16:27 -0500
committerLinus Torvalds <torvalds@linux-foundation.org>2014-12-17 13:16:27 -0500
commit2efda9042d76fcab0fb87b7ee8d84da52bf122b0 (patch)
treef390199ae330fbe20b3c9d8fe1021d909f752421 /arch/arm
parent0b4954c46943e8f15b9379eed4f133c874a0bc66 (diff)
parent2707dbd09a859b7205917f9baf9d0192944ac46c (diff)
Merge branch 'next' of git://git.kernel.org/pub/scm/linux/kernel/git/rzhang/linux
Pull thermal management update from Zhang Rui: "Summary: - of-thermal extension to allow drivers to register and use its functionality in a better way, without exploiting thermal core. From Lukasz Majewski. - Fix a bug in intel_soc_dts_thermal driver which calls a sleep function in interrupt handler. From Maurice Petallo. - add a thermal UAPI header file for exporting the thermal generic netlink information to user-space. From Florian Fainelli. - First round of refactoring in Exynos driver. Bartlomiej and Lukasz are attempting to make it lean and easier to understand. - New thermal driver for Rockchip (rk3288), with support for DT thermal. From Caesar Wang. - New thermal driver for Nvidia, Tegra124 SOCTHERM driver, with support for DT thermal. From Mikko Perttunen. - New cooling device, based on common clock framework. From Eduardo Valentin. - a couple of small fixes in thermal core framework. From Srinivas Pandruvada, Javi Merino, Luis Henriques. - Dropping Armada A375-Z1 SoC thermal support as the chip is not in the market, armada folks decided to drop its support. - a couple of small fixes and cleanups in int340x thermal driver" * 'next' of git://git.kernel.org/pub/scm/linux/kernel/git/rzhang/linux: (58 commits) thermal: provide an UAPI header file Thermal/int340x: Clear the error value of the last acpi_bus_get_device() call thermal/powerclamp: add id for braswell cpu thermal: Intel SoC DTS: Don't do thermal zone update inside spin_lock Thermal: fix platform_no_drv_owner.cocci warnings Thermal/int340x: avoid unnecessary pointer casting thermal: int3403: Delete a check before thermal_zone_device_unregister() thermal/int3400: export uuids thermal: of: Extend current of-thermal.c code to allow setting emulated temp thermal: of: Extend of-thermal to export table of trip points thermal: of: Rename struct __thermal_trip to struct thermal_trip thermal: of: Extend of-thermal.c to provide check if trip point is valid thermal: of: Extend of-thermal.c to provide number of trip points thermal: Fix error path in thermal_init() thermal: lock the thermal zone when switching governors thermal: core: ignore invalid trip temperature thermal: armada: Remove support for A375-Z1 SoC thermal: rockchip: add driver for thermal dt-bindings: document Rockchip thermal thermal: exynos: remove exynos_tmu_data.h include ...
Diffstat (limited to 'arch/arm')
-rw-r--r--arch/arm/boot/dts/tegra124-jetson-tk1.dts44
-rw-r--r--arch/arm/boot/dts/tegra124.dtsi47
2 files changed, 91 insertions, 0 deletions
diff --git a/arch/arm/boot/dts/tegra124-jetson-tk1.dts b/arch/arm/boot/dts/tegra124-jetson-tk1.dts
index 51b373ff1065..4eb540be368f 100644
--- a/arch/arm/boot/dts/tegra124-jetson-tk1.dts
+++ b/arch/arm/boot/dts/tegra124-jetson-tk1.dts
@@ -1942,4 +1942,48 @@
1942 <&tegra_car TEGRA124_CLK_EXTERN1>; 1942 <&tegra_car TEGRA124_CLK_EXTERN1>;
1943 clock-names = "pll_a", "pll_a_out0", "mclk"; 1943 clock-names = "pll_a", "pll_a_out0", "mclk";
1944 }; 1944 };
1945
1946 thermal-zones {
1947 cpu {
1948 trips {
1949 trip@0 {
1950 temperature = <101000>;
1951 hysteresis = <0>;
1952 type = "critical";
1953 };
1954 };
1955
1956 cooling-maps {
1957 /* There are currently no cooling maps because there are no cooling devices */
1958 };
1959 };
1960
1961 mem {
1962 trips {
1963 trip@0 {
1964 temperature = <101000>;
1965 hysteresis = <0>;
1966 type = "critical";
1967 };
1968 };
1969
1970 cooling-maps {
1971 /* There are currently no cooling maps because there are no cooling devices */
1972 };
1973 };
1974
1975 gpu {
1976 trips {
1977 trip@0 {
1978 temperature = <101000>;
1979 hysteresis = <0>;
1980 type = "critical";
1981 };
1982 };
1983
1984 cooling-maps {
1985 /* There are currently no cooling maps because there are no cooling devices */
1986 };
1987 };
1988 };
1945}; 1989};
diff --git a/arch/arm/boot/dts/tegra124.dtsi b/arch/arm/boot/dts/tegra124.dtsi
index 3ad2e3cf2999..4be06c6ea0c8 100644
--- a/arch/arm/boot/dts/tegra124.dtsi
+++ b/arch/arm/boot/dts/tegra124.dtsi
@@ -4,6 +4,7 @@
4#include <dt-bindings/pinctrl/pinctrl-tegra.h> 4#include <dt-bindings/pinctrl/pinctrl-tegra.h>
5#include <dt-bindings/pinctrl/pinctrl-tegra-xusb.h> 5#include <dt-bindings/pinctrl/pinctrl-tegra-xusb.h>
6#include <dt-bindings/interrupt-controller/arm-gic.h> 6#include <dt-bindings/interrupt-controller/arm-gic.h>
7#include <dt-bindings/thermal/tegra124-soctherm.h>
7 8
8#include "skeleton.dtsi" 9#include "skeleton.dtsi"
9 10
@@ -657,6 +658,18 @@
657 status = "disabled"; 658 status = "disabled";
658 }; 659 };
659 660
661 soctherm: thermal-sensor@0,700e2000 {
662 compatible = "nvidia,tegra124-soctherm";
663 reg = <0x0 0x700e2000 0x0 0x1000>;
664 interrupts = <GIC_SPI 48 IRQ_TYPE_LEVEL_HIGH>;
665 clocks = <&tegra_car TEGRA124_CLK_TSENSOR>,
666 <&tegra_car TEGRA124_CLK_SOC_THERM>;
667 clock-names = "tsensor", "soctherm";
668 resets = <&tegra_car 78>;
669 reset-names = "soctherm";
670 #thermal-sensor-cells = <1>;
671 };
672
660 ahub@0,70300000 { 673 ahub@0,70300000 {
661 compatible = "nvidia,tegra124-ahub"; 674 compatible = "nvidia,tegra124-ahub";
662 reg = <0x0 0x70300000 0x0 0x200>, 675 reg = <0x0 0x70300000 0x0 0x200>,
@@ -898,6 +911,40 @@
898 }; 911 };
899 }; 912 };
900 913
914 thermal-zones {
915 cpu {
916 polling-delay-passive = <1000>;
917 polling-delay = <1000>;
918
919 thermal-sensors =
920 <&soctherm TEGRA124_SOCTHERM_SENSOR_CPU>;
921 };
922
923 mem {
924 polling-delay-passive = <1000>;
925 polling-delay = <1000>;
926
927 thermal-sensors =
928 <&soctherm TEGRA124_SOCTHERM_SENSOR_MEM>;
929 };
930
931 gpu {
932 polling-delay-passive = <1000>;
933 polling-delay = <1000>;
934
935 thermal-sensors =
936 <&soctherm TEGRA124_SOCTHERM_SENSOR_GPU>;
937 };
938
939 pllx {
940 polling-delay-passive = <1000>;
941 polling-delay = <1000>;
942
943 thermal-sensors =
944 <&soctherm TEGRA124_SOCTHERM_SENSOR_PLLX>;
945 };
946 };
947
901 timer { 948 timer {
902 compatible = "arm,armv7-timer"; 949 compatible = "arm,armv7-timer";
903 interrupts = <GIC_PPI 13 950 interrupts = <GIC_PPI 13