Skip to content

of-thermal hardware trip points + Tegra124 SOCTHERM driver

Mikko Perttunen linux-arm-kernel linux-pm linux-tegra lkml 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest6 patches 23 repliesIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/6thermal: of: Add support for hardware-tracked trip pointsdrivers/thermal/of-thermal.c include/linux/thermal.h+95 -58 replies
2/6of: Add bindings for nvidia,tegra124-socthermDocumentation/devicetree/bindings/thermal/tegra-soctherm.txt include/dt-bindings/thermal/tegra124-soctherm.h+47 -01 reply
3/6ARM: tegra: Add thermal trip points for Jetson TK1arch/arm/boot/dts/tegra124-jetson-tk1.dts+32 -01 reply
4/6ARM: tegra: Add soctherm and thermal zones to Tegra124 device treearch/arm/boot/dts/tegra124.dtsi+48 -04 replies
5/6clk: tegra: Add soctherm and tsensor clocks to Tegra124 init tabledrivers/clk/tegra/clk-tegra124.c+2 -01 reply
6/6thermal: Add Tegra SOCTHERM thermal management driverdrivers/thermal/Kconfig drivers/thermal/Makefile drivers/thermal/tegra_soctherm.c+561 -07 replies

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.

Read the v1 thread

Cover letter [PATCH 0/6] of-thermal hardware trip points + Tegra124 SOCTHERM driver

Hi everyone,

this series adds support for hardware-tracked thermal trip points for the device tree thermal framework and introduces a new Tegra124 thermal driver that uses them.

Hardware-tracked trip points are trip points that do not need to be polled; the hardware gives an interrupt when the trip point is reached. The device tree thermal framework has not previously given the sensor driver any information about set trip points, so using these has been impossible. This series adds a new callback from of-thermal to the driver to allow telling the driver about trip points. The driver only needs to track two trip points, the framework ensures that the current temperature lies between those two. Behavior for drivers that do not include this callback is unchanged.

The Tegra124 SOCTHERM thermal driver that is included exposes four thermal zones (the thermctl thermal zones) with hardware-tracked trip point support. While the hardware supports four tracked trip points, only one is used.

Mikko Perttunen (6):
thermal: of: Add support for hardware-tracked trip points
of: Add bindings for nvidia,tegra124-soctherm
ARM: tegra: Add thermal trip points for Jetson TK1
ARM: tegra: Add soctherm and thermal zones to Tegra124 device tree
clk: tegra: Add soctherm and tsensor clocks to Tegra124 init table
thermal: Add Tegra SOCTHERM thermal management driver

 .../devicetree/bindings/thermal/tegra-soctherm.txt |  32 ++
 arch/arm/boot/dts/tegra124-jetson-tk1.dts          |  32 ++
 arch/arm/boot/dts/tegra124.dtsi                    |  48 ++
 drivers/clk/tegra/clk-tegra124.c                   |   2 +
 drivers/thermal/Kconfig                            |   7 +
 drivers/thermal/Makefile                           |   1 +
 drivers/thermal/of-thermal.c                       |  97 +++-
 drivers/thermal/tegra_soctherm.c                   | 553 +++++++++++++++++++++
 include/dt-bindings/thermal/tegra124-soctherm.h    |  15 +
 include/linux/thermal.h                            |   3 +-
 10 files changed, 785 insertions(+), 5 deletions(-)
 create mode 100644 Documentation/devicetree/bindings/thermal/tegra-soctherm.txt
 create mode 100644 drivers/thermal/tegra_soctherm.c
 create mode 100644 include/dt-bindings/thermal/tegra124-soctherm.h
Signature · 1 line
1.8.1.5