Lines Matching +full:level +full:- +full:triggered
1 # SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
3 ---
4 $id: http://devicetree.org/schemas/thermal/nvidia,tegra124-soctherm.yaml#
5 $schema: http://devicetree.org/meta-schemas/core.yaml#
10 - Thierry Reding <thierry.reding@gmail.com>
11 - Jon Hunter <jonathanh@nvidia.com>
14 polled or interrupt-based thermal monitoring, CPU and GPU throttling based
21 - nvidia,tegra124-soctherm
22 - nvidia,tegra132-soctherm
23 - nvidia,tegra210-soctherm
28 reg-names:
33 - description: module interrupt
34 - description: EDP interrupt
36 interrupt-names:
38 - const: thermal
39 - const: edp
43 - description: thermal sensor clock
44 - description: module clock
46 clock-names:
48 - const: tsensor
49 - const: soctherm
53 - description: module reset
55 reset-names:
57 - const: soctherm
59 "#thermal-sensor-cells":
62 throttle-cfgs:
63 $ref: thermal-cooling-devices.yaml
64 description: A sub-node which is a container of configuration for each
66 Throttle event sub-nodes must be named as "light" or "heavy".
74 "#cooling-cells":
89 nvidia,cpu-throt-percent:
96 nvidia,cpu-throt-level:
98 description: This property is only for Tegra132, it is the level
104 - 0
106 - 1
108 - 2
110 - 3
112 nvidia,gpu-throt-level:
115 level of pulse skippers, which used to throttle clock
121 - 0
123 - 1
125 - 2
127 - 3
131 nvidia,count-threshold:
134 for triggering an interrupt. Interrupts are not triggered if the
138 nvidia,polarity-active-low:
143 nvidia,alarm-filter:
150 nvidia,throttle-period-us:
157 $ref: /schemas/types.yaml#/definitions/uint32-matrix
167 - the "critical" type trip points will be used to set the temperature at
173 - the "hot" type trip points will be set to SOCTHERM hardware as the
178 - description: sensor ID
180 - description: CPU sensor
182 - description: MEM sensor
184 - description: GPU sensor
186 - description: PLLX sensor
188 - description: temperature threshold (in millidegree Celsius)
191 - compatible
192 - reg
193 - reg-names
194 - interrupts
195 - interrupt-names
196 - clocks
197 - clock-names
198 - resets
199 - reset-names
202 - $ref: thermal-sensor.yaml
203 - if:
208 - nvidia,tegra124-soctherm
209 - nvidia,tegra210-soctherm
214 - description: SOCTHERM register set
215 - description: clock and reset controller registers
217 reg-names:
219 - const: soctherm-reg
220 - const: car-reg
226 - description: SOCTHERM register set
227 - description: CCROC registers
229 reg-names:
231 - const: soctherm-reg
232 - const: ccroc-reg
237 - |
238 #include <dt-bindings/clock/tegra124-car.h>
239 #include <dt-bindings/interrupt-controller/arm-gic.h>
240 #include <dt-bindings/thermal/tegra124-soctherm.h>
243 compatible = "nvidia,tegra124-soctherm";
246 reg-names = "soctherm-reg", "car-reg";
249 interrupt-names = "thermal", "edp";
252 clock-names = "tsensor", "soctherm";
254 reset-names = "soctherm";
256 #thermal-sensor-cells = <1>;
261 throttle-cfgs {
263 * When the "heavy" cooling device triggered,
265 * skip gpu clock's pulse in 85% level
269 nvidia,cpu-throt-percent = <85>;
270 nvidia,gpu-throt-level = <TEGRA_SOCTHERM_THROT_LEVEL_HIGH>;
272 #cooling-cells = <2>;
276 * When the "light" cooling device triggered,
278 * skip gpu clock's pulse in 50% level
282 nvidia,cpu-throt-percent = <50>;
283 nvidia,gpu-throt-level = <TEGRA_SOCTHERM_THROT_LEVEL_LOW>;
285 #cooling-cells = <2>;
289 * If these two devices are triggered in same time, the HW throttle
296 nvidia,polarity-active-low;
297 nvidia,count-threshold = <100>;
298 nvidia,alarm-filter = <5100000>;
299 nvidia,throttle-period-us = <0>;
300 nvidia,cpu-throt-percent = <75>;
301 nvidia,gpu-throt-level = <TEGRA_SOCTHERM_THROT_LEVEL_MED>;
306 # referring to Tegra132's "reg", "reg-names" and "throttle-cfgs"
307 - |
308 thermal-sensor@700e2000 {
309 compatible = "nvidia,tegra132-soctherm";
312 reg-names = "soctherm-reg", "ccroc-reg";
315 interrupt-names = "thermal", "edp";
318 clock-names = "tsensor", "soctherm";
320 reset-names = "soctherm";
321 #thermal-sensor-cells = <1>;
323 throttle-cfgs {
325 * When the "heavy" cooling device triggered,
326 * the HW will skip cpu clock's pulse in HIGH level
330 nvidia,cpu-throt-level = <TEGRA_SOCTHERM_THROT_LEVEL_HIGH>;
332 #cooling-cells = <2>;
336 * When the "light" cooling device triggered,
337 * the HW will skip cpu clock's pulse in MED level
341 nvidia,cpu-throt-level = <TEGRA_SOCTHERM_THROT_LEVEL_MED>;
343 #cooling-cells = <2>;
347 * If these two devices are triggered in same time, the HW throttle
355 - |
356 thermal-zones {
357 cpu-thermal {
358 polling-delay-passive = <1000>;
359 polling-delay = <1000>;
361 thermal-sensors = <&soctherm TEGRA124_SOCTHERM_SENSOR_CPU>;
364 cpu_shutdown_trip: shutdown-trip {
370 cpu_throttle_trip: throttle-trip {
377 cooling-maps {
380 cooling-device = <&throttle_heavy 1 1>;