Lines Matching +full:light +full:- +full:sensor
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".
69 "^(light|heavy|oc1)$":
84 nvidia,cpu-throt-percent:
91 nvidia,cpu-throt-level:
99 - 0
101 - 1
103 - 2
105 - 3
107 nvidia,gpu-throt-level:
116 - 0
118 - 1
120 - 2
122 - 3
126 nvidia,count-threshold:
133 nvidia,polarity-active-low:
138 nvidia,alarm-filter:
145 nvidia,throttle-period-us:
152 $ref: /schemas/types.yaml#/definitions/uint32-matrix
162 - the "critical" type trip points will be used to set the temperature at
168 - the "hot" type trip points will be set to SOCTHERM hardware as the
173 - description: sensor ID
175 - description: CPU sensor
177 - description: MEM sensor
179 - description: GPU sensor
181 - description: PLLX sensor
183 - description: temperature threshold (in millidegree Celsius)
186 - compatible
187 - reg
188 - reg-names
189 - interrupts
190 - interrupt-names
191 - clocks
192 - clock-names
193 - resets
194 - reset-names
195 - "#thermal-sensor-cells"
198 - $ref: thermal-sensor.yaml
199 - if:
204 - nvidia,tegra124-soctherm
205 - nvidia,tegra210-soctherm
210 - description: SOCTHERM register set
211 - description: clock and reset controller registers
213 reg-names:
215 - const: soctherm-reg
216 - const: car-reg
222 - description: SOCTHERM register set
223 - description: CCROC registers
225 reg-names:
227 - const: soctherm-reg
228 - const: ccroc-reg
233 - |
234 #include <dt-bindings/clock/tegra124-car.h>
235 #include <dt-bindings/interrupt-controller/arm-gic.h>
236 #include <dt-bindings/thermal/tegra124-soctherm.h>
239 compatible = "nvidia,tegra124-soctherm";
242 reg-names = "soctherm-reg", "car-reg";
245 interrupt-names = "thermal", "edp";
248 clock-names = "tsensor", "soctherm";
250 reset-names = "soctherm";
252 #thermal-sensor-cells = <1>;
257 throttle-cfgs {
265 nvidia,cpu-throt-percent = <85>;
266 nvidia,gpu-throt-level = <TEGRA_SOCTHERM_THROT_LEVEL_HIGH>;
268 #cooling-cells = <2>;
272 * When the "light" cooling device triggered,
276 light {
278 nvidia,cpu-throt-percent = <50>;
279 nvidia,gpu-throt-level = <TEGRA_SOCTHERM_THROT_LEVEL_LOW>;
281 #cooling-cells = <2>;
292 nvidia,polarity-active-low;
293 nvidia,count-threshold = <100>;
294 nvidia,alarm-filter = <5100000>;
295 nvidia,throttle-period-us = <0>;
296 nvidia,cpu-throt-percent = <75>;
297 nvidia,gpu-throt-level = <TEGRA_SOCTHERM_THROT_LEVEL_MED>;
302 # referring to Tegra132's "reg", "reg-names" and "throttle-cfgs"
303 - |
304 thermal-sensor@700e2000 {
305 compatible = "nvidia,tegra132-soctherm";
308 reg-names = "soctherm-reg", "ccroc-reg";
311 interrupt-names = "thermal", "edp";
314 clock-names = "tsensor", "soctherm";
316 reset-names = "soctherm";
317 #thermal-sensor-cells = <1>;
319 throttle-cfgs {
326 nvidia,cpu-throt-level = <TEGRA_SOCTHERM_THROT_LEVEL_HIGH>;
328 #cooling-cells = <2>;
332 * When the "light" cooling device triggered,
335 light {
337 nvidia,cpu-throt-level = <TEGRA_SOCTHERM_THROT_LEVEL_MED>;
339 #cooling-cells = <2>;
351 - |
352 thermal-zones {
353 cpu-thermal {
354 polling-delay-passive = <1000>;
355 polling-delay = <1000>;
357 thermal-sensors = <&soctherm TEGRA124_SOCTHERM_SENSOR_CPU>;
360 cpu_shutdown_trip: shutdown-trip {
366 cpu_throttle_trip: throttle-trip {
373 cooling-maps {
376 cooling-device = <&throttle_heavy 1 1>;