Commit d148e3fe authored by Keerthy's avatar Keerthy Committed by Vignesh Raghavendra
Browse files

arm64: dts: ti: j721s2: Add VTM node



VTM stands for Voltage Thermal Management. Add the thermal zones.
Six sensors mapping to six thermal zones. Main0, Main1, Main2, Main3,
WKUP1 & WKUP2 domains respectively.

Signed-off-by: default avatarKeerthy <j-keerthy@ti.com>
[bb@ti.com: rebased on v6.3-rc1]
Signed-off-by: default avatarBryan Brattlof <bb@ti.com>
Link: https://lore.kernel.org/r/20230405215328.3755561-8-bb@ti.com


Signed-off-by: default avatarVignesh Raghavendra <vigneshr@ti.com>
parent 4aa6586a
Loading
Loading
Loading
Loading
+8 −0
Original line number Diff line number Diff line
@@ -423,4 +423,12 @@ ospi1: spi@47050000 {
			status = "disabled"; /* Needs pinmux */
		};
	};

	wkup_vtm0: temperature-sensor@42040000 {
		compatible = "ti,j7200-vtm";
		reg = <0x00 0x42040000 0x0 0x350>,
		      <0x00 0x42050000 0x0 0x350>;
		power-domains = <&k3_pds 154 TI_SCI_PD_SHARED>;
		#thermal-sensor-cells = <1>;
	};
};
+101 −0
Original line number Diff line number Diff line
// SPDX-License-Identifier: GPL-2.0

#include <dt-bindings/thermal/thermal.h>

wkup0_thermal: wkup0-thermal {
	polling-delay-passive = <250>; /* milliseconds */
	polling-delay = <500>; /* milliseconds */
	thermal-sensors = <&wkup_vtm0 0>;

	trips {
		wkup0_crit: wkup0-crit {
			temperature = <125000>; /* milliCelsius */
			hysteresis = <2000>; /* milliCelsius */
			type = "critical";
		};
	};
};

wkup1_thermal: wkup1-thermal {
	polling-delay-passive = <250>; /* milliseconds */
	polling-delay = <500>; /* milliseconds */
	thermal-sensors = <&wkup_vtm0 1>;

	trips {
		wkup1_crit: wkup1-crit {
			temperature = <125000>; /* milliCelsius */
			hysteresis = <2000>; /* milliCelsius */
			type = "critical";
		};
	};
};

main0_thermal: main0-thermal {
	polling-delay-passive = <250>; /* milliseconds */
	polling-delay = <500>; /* milliseconds */
	thermal-sensors = <&wkup_vtm0 2>;

	trips {
		main0_crit: main0-crit {
			temperature = <125000>; /* milliCelsius */
			hysteresis = <2000>; /* milliCelsius */
			type = "critical";
		};
	};
};

main1_thermal: main1-thermal {
	polling-delay-passive = <250>; /* milliseconds */
	polling-delay = <500>; /* milliseconds */
	thermal-sensors = <&wkup_vtm0 3>;

	trips {
		main1_crit: main1-crit {
			temperature = <125000>; /* milliCelsius */
			hysteresis = <2000>; /* milliCelsius */
			type = "critical";
		};
	};
};

main2_thermal: main2-thermal {
	polling-delay-passive = <250>; /* milliseconds */
	polling-delay = <500>; /* milliseconds */
	thermal-sensors = <&wkup_vtm0 4>;

	trips {
		main2_crit: main2-crit {
			temperature = <125000>; /* milliCelsius */
			hysteresis = <2000>; /* milliCelsius */
			type = "critical";
		};
	};
};

main3_thermal: main3-thermal {
	polling-delay-passive = <250>; /* milliseconds */
	polling-delay = <500>; /* milliseconds */
	thermal-sensors = <&wkup_vtm0 5>;

	trips {
		main3_crit: main3-crit {
			temperature = <125000>; /* milliCelsius */
			hysteresis = <2000>; /* milliCelsius */
			type = "critical";
		};
	};
};

main4_thermal: main4-thermal {
	polling-delay-passive = <250>; /* milliseconds */
	polling-delay = <500>; /* milliseconds */
	thermal-sensors = <&wkup_vtm0 6>;

	trips {
		main4_crit: main4-crit {
			temperature = <125000>; /* milliCelsius */
			hysteresis = <2000>; /* milliCelsius */
			type = "critical";
		};
	};
};
+4 −0
Original line number Diff line number Diff line
@@ -164,6 +164,10 @@ cbass_mcu_wakeup: bus@28380000 {
		};

	};

	thermal_zones: thermal-zones {
		#include "k3-j721s2-thermal.dtsi"
	};
};

/* Now include peripherals from each bus segment */