Lines Matching +full:sw +full:- +full:reset +full:- +full:number
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
24 - nvidia,tegra210b01-soctherm
29 reg-names:
34 - description: module interrupt
35 - description: EDP interrupt
37 interrupt-names:
39 - const: thermal
40 - const: edp
44 - description: thermal sensor clock
45 - description: module clock
47 clock-names:
49 - const: tsensor
50 - const: soctherm
54 - description: module reset
56 reset-names:
58 - const: soctherm
60 "#thermal-sensor-cells":
63 throttle-cfgs:
64 $ref: thermal-cooling-devices.yaml
65 description: A sub-node which is a container of configuration for each
67 Throttle event sub-nodes must be named as "light" or "heavy".
75 "#cooling-cells":
83 SW need to set priorities for various throttle, the HW arbiter
86 target frequency. SW needs to ensure that critical thermal
90 nvidia,cpu-throt-percent:
97 nvidia,cpu-throt-level:
105 - 0
107 - 1
109 - 2
111 - 3
113 nvidia,gpu-throt-level:
122 - 0
124 - 1
126 - 2
128 - 3
132 nvidia,count-threshold:
134 description: Specifies the number of OC events that are required
139 nvidia,polarity-active-low:
144 nvidia,alarm-filter:
146 description: Number of clocks to filter event. When the filter
151 nvidia,throttle-period-us:
152 description: Specifies the number of microseconds for which
158 $ref: /schemas/types.yaml#/definitions/uint32-matrix
162 Management IC, which can be configured to reset or shutdown the device.
168 - the "critical" type trip points will be used to set the temperature at
174 - the "hot" type trip points will be set to SOCTHERM hardware as the
179 - description: sensor ID
181 - description: CPU sensor
183 - description: MEM sensor
185 - description: GPU sensor
187 - description: PLLX sensor
189 - description: temperature threshold (in millidegree Celsius)
192 - compatible
193 - reg
194 - reg-names
195 - interrupts
196 - interrupt-names
197 - clocks
198 - clock-names
199 - resets
200 - reset-names
203 - $ref: thermal-sensor.yaml
204 - if:
209 - nvidia,tegra124-soctherm
210 - nvidia,tegra210-soctherm
211 - nvidia,tegra210b01-soctherm
216 - description: SOCTHERM register set
217 - description: clock and reset controller registers
219 reg-names:
221 - const: soctherm-reg
222 - const: car-reg
228 - description: SOCTHERM register set
229 - description: CCROC registers
231 reg-names:
233 - const: soctherm-reg
234 - const: ccroc-reg
239 - |
240 #include <dt-bindings/clock/tegra124-car.h>
241 #include <dt-bindings/interrupt-controller/arm-gic.h>
242 #include <dt-bindings/thermal/tegra124-soctherm.h>
245 compatible = "nvidia,tegra124-soctherm";
248 reg-names = "soctherm-reg", "car-reg";
251 interrupt-names = "thermal", "edp";
254 clock-names = "tsensor", "soctherm";
256 reset-names = "soctherm";
258 #thermal-sensor-cells = <1>;
263 throttle-cfgs {
271 nvidia,cpu-throt-percent = <85>;
272 nvidia,gpu-throt-level = <TEGRA_SOCTHERM_THROT_LEVEL_HIGH>;
274 #cooling-cells = <2>;
284 nvidia,cpu-throt-percent = <50>;
285 nvidia,gpu-throt-level = <TEGRA_SOCTHERM_THROT_LEVEL_LOW>;
287 #cooling-cells = <2>;
298 nvidia,polarity-active-low;
299 nvidia,count-threshold = <100>;
300 nvidia,alarm-filter = <5100000>;
301 nvidia,throttle-period-us = <0>;
302 nvidia,cpu-throt-percent = <75>;
303 nvidia,gpu-throt-level = <TEGRA_SOCTHERM_THROT_LEVEL_MED>;
308 # referring to Tegra132's "reg", "reg-names" and "throttle-cfgs"
309 - |
310 thermal-sensor@700e2000 {
311 compatible = "nvidia,tegra132-soctherm";
314 reg-names = "soctherm-reg", "ccroc-reg";
317 interrupt-names = "thermal", "edp";
320 clock-names = "tsensor", "soctherm";
322 reset-names = "soctherm";
323 #thermal-sensor-cells = <1>;
325 throttle-cfgs {
332 nvidia,cpu-throt-level = <TEGRA_SOCTHERM_THROT_LEVEL_HIGH>;
334 #cooling-cells = <2>;
343 nvidia,cpu-throt-level = <TEGRA_SOCTHERM_THROT_LEVEL_MED>;
345 #cooling-cells = <2>;
357 - |
358 thermal-zones {
359 cpu-thermal {
360 polling-delay-passive = <1000>;
361 polling-delay = <1000>;
363 thermal-sensors = <&soctherm TEGRA124_SOCTHERM_SENSOR_CPU>;
366 cpu_shutdown_trip: shutdown-trip {
372 cpu_throttle_trip: throttle-trip {
379 cooling-maps {
382 cooling-device = <&throttle_heavy 1 1>;