Skip to content

Commit 1aab6b8

Browse files
digetxdlezcano
authored andcommitted
dt-bindings: thermal: Add binding for Tegra30 thermal sensor
All NVIDIA Tegra30 SoCs have on-chip sensors which monitor temperature and voltage of the SoC. Sensors also controls CPU x2 freq throttle and emits emergency shutdown signal. TSENSOR has has two separate channels for each sensor placed in a different parts of the SoC. Add binding for the sensor hardware. Reviewed-by: Rob Herring <robh@kernel.org> Signed-off-by: Dmitry Osipenko <digetx@gmail.com> Signed-off-by: Daniel Lezcano <daniel.lezcano@linaro.org> Link: https://lore.kernel.org/r/20210616190417.32214-2-digetx@gmail.com
1 parent d8ac5bb commit 1aab6b8

1 file changed

Lines changed: 73 additions & 0 deletions

File tree

Lines changed: 73 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,73 @@
1+
# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
2+
%YAML 1.2
3+
---
4+
$id: http://devicetree.org/schemas/thermal/nvidia,tegra30-tsensor.yaml#
5+
$schema: http://devicetree.org/meta-schemas/core.yaml#
6+
7+
title: NVIDIA Tegra30 Thermal Sensor
8+
9+
maintainers:
10+
- Dmitry Osipenko <digetx@gmail.com>
11+
- Jon Hunter <jonathanh@nvidia.com>
12+
- Thierry Reding <thierry.reding@gmail.com>
13+
14+
description: |
15+
TSENSOR provides thermal and voltage sensors which monitor temperature
16+
and voltage of the chip. Sensors are placed across the die to gauge the
17+
temperature of the whole chip. The TSENSOR module:
18+
19+
Generates an interrupt to SW to lower temperature via DVFS on reaching
20+
a certain thermal/voltage threshold.
21+
22+
Generates a signal to the CAR to reduce CPU frequency by half on reaching
23+
a certain thermal/voltage threshold.
24+
25+
Generates a signal to the PMC when the temperature reaches dangerously high
26+
levels to reset the chip and sets a flag in the PMC.
27+
28+
TSENSOR has two channels which monitor two different spots of the SoC.
29+
30+
properties:
31+
compatible:
32+
const: nvidia,tegra30-tsensor
33+
34+
reg:
35+
maxItems: 1
36+
37+
clocks:
38+
maxItems: 1
39+
40+
resets:
41+
maxItems: 1
42+
43+
interrupts:
44+
maxItems: 1
45+
46+
"#thermal-sensor-cells":
47+
const: 1
48+
49+
assigned-clock-parents: true
50+
assigned-clock-rates: true
51+
assigned-clocks: true
52+
53+
required:
54+
- compatible
55+
- reg
56+
- clocks
57+
- resets
58+
- interrupts
59+
- "#thermal-sensor-cells"
60+
61+
additionalProperties: false
62+
63+
examples:
64+
- |
65+
thermal-sensor@70014000 {
66+
compatible = "nvidia,tegra30-tsensor";
67+
reg = <0x70014000 0x500>;
68+
interrupts = <0 102 4>;
69+
clocks = <&clk 100>;
70+
resets = <&rst 100>;
71+
72+
#thermal-sensor-cells = <1>;
73+
};

0 commit comments

Comments
 (0)