Commit d70c0fce6719d55750540bd46ed254197fbdc4c0
Committed by
Stefano Babic
1 parent
5ef5b6d46f
Exists in
smarc_8mq_lf_v2020.04
and in
10 other branches
imx: imx8dx/qxp: enable thermal
Add thermal dts node Enable thermal in defconfig Signed-off-by: Peng Fan <peng.fan@nxp.com>
Showing 2 changed files with 58 additions and 0 deletions Side-by-side Diff
arch/arm/dts/fsl-imx8dx.dtsi
... | ... | @@ -11,6 +11,7 @@ |
11 | 11 | #include <dt-bindings/input/input.h> |
12 | 12 | #include <dt-bindings/pinctrl/pads-imx8qxp.h> |
13 | 13 | #include <dt-bindings/gpio/gpio.h> |
14 | +#include <dt-bindings/thermal/thermal.h> | |
14 | 15 | |
15 | 16 | / { |
16 | 17 | model = "Freescale i.MX8DX"; |
... | ... | @@ -542,6 +543,61 @@ |
542 | 543 | fsl,num-rx-queues=<3>; |
543 | 544 | power-domains = <&pd_conn_enet1>; |
544 | 545 | status = "disabled"; |
546 | + }; | |
547 | + | |
548 | + tsens: thermal-sensor { | |
549 | + compatible = "nxp,imx8qxp-sc-tsens"; | |
550 | + /* number of the temp sensor on the chip */ | |
551 | + tsens-num = <2>; | |
552 | + #thermal-sensor-cells = <1>; | |
553 | + }; | |
554 | + | |
555 | + thermal_zones: thermal-zones { | |
556 | + /* cpu thermal */ | |
557 | + cpu-thermal0 { | |
558 | + polling-delay-passive = <250>; | |
559 | + polling-delay = <2000>; | |
560 | + /*the slope and offset of the temp sensor */ | |
561 | + thermal-sensors = <&tsens 0>; | |
562 | + trips { | |
563 | + cpu_alert0: trip0 { | |
564 | + temperature = <107000>; | |
565 | + hysteresis = <2000>; | |
566 | + type = "passive"; | |
567 | + }; | |
568 | + cpu_crit0: trip1 { | |
569 | + temperature = <127000>; | |
570 | + hysteresis = <2000>; | |
571 | + type = "critical"; | |
572 | + }; | |
573 | + }; | |
574 | + cooling-maps { | |
575 | + map0 { | |
576 | + trip = <&cpu_alert0>; | |
577 | + cooling-device = | |
578 | + <&A35_0 THERMAL_NO_LIMIT THERMAL_NO_LIMIT>; | |
579 | + }; | |
580 | + }; | |
581 | + }; | |
582 | + | |
583 | + drc-thermal0 { | |
584 | + polling-delay-passive = <250>; | |
585 | + polling-delay = <2000>; | |
586 | + thermal-sensors = <&tsens 1>; | |
587 | + status = "disabled"; | |
588 | + trips { | |
589 | + drc_alert0: trip0 { | |
590 | + temperature = <107000>; | |
591 | + hysteresis = <2000>; | |
592 | + type = "passive"; | |
593 | + }; | |
594 | + drc_crit0: trip1 { | |
595 | + temperature = <127000>; | |
596 | + hysteresis = <2000>; | |
597 | + type = "critical"; | |
598 | + }; | |
599 | + }; | |
600 | + }; | |
545 | 601 | }; |
546 | 602 | }; |
547 | 603 |