]> git.ipfire.org Git - thirdparty/linux.git/commitdiff
arm64: tegra: Enable thermal support on Jetson Orin Nano
authorThierry Reding <treding@nvidia.com>
Fri, 9 Jun 2023 11:48:38 +0000 (13:48 +0200)
committerThierry Reding <treding@nvidia.com>
Fri, 9 Jun 2023 15:44:26 +0000 (17:44 +0200)
Enable the TJ thermal zone and hook up cooling maps for the PWM-
controlled fan and two trip points.

Acked-by: Jon Hunter <jonathanh@nvidia.com>
Signed-off-by: Thierry Reding <treding@nvidia.com>
arch/arm64/boot/dts/nvidia/tegra234-p3768-0000+p3767-0005.dts

index ba66c1845f75911c6b6bcbae72b9f27ff533e25a..9b86aa6f7dbe197d5c531e0a0f0152fe1e63bc67 100644 (file)
 / {
        compatible = "nvidia,p3768-0000+p3767-0005", "nvidia,p3767-0005", "nvidia,tegra234";
        model = "NVIDIA Jetson Orin Nano Developer Kit";
+
+       pwm-fan {
+               cooling-levels = <0 187 255>;
+       };
+
+       thermal-zones {
+               tj-thermal {
+                       cooling-maps {
+                               map-active-0 {
+                                       cooling-device = <&fan 0 1>;
+                                       trip = <&tj_trip_active0>;
+                               };
+
+                               map-active-1 {
+                                       cooling-device = <&fan 1 2>;
+                                       trip = <&tj_trip_active1>;
+                               };
+                       };
+               };
+       };
 };