1d5b0e70fSEmmanuel Vadot# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) 2d5b0e70fSEmmanuel Vadot%YAML 1.2 3d5b0e70fSEmmanuel Vadot--- 4d5b0e70fSEmmanuel Vadot$id: http://devicetree.org/schemas/thermal/ti,j72xx-thermal.yaml# 5d5b0e70fSEmmanuel Vadot$schema: http://devicetree.org/meta-schemas/core.yaml# 6d5b0e70fSEmmanuel Vadot 7*8bab661aSEmmanuel Vadottitle: Texas Instruments J72XX VTM (DTS) 8d5b0e70fSEmmanuel Vadot 9d5b0e70fSEmmanuel Vadotmaintainers: 10d5b0e70fSEmmanuel Vadot - Keerthy <j-keerthy@ti.com> 11d5b0e70fSEmmanuel Vadot 12*8bab661aSEmmanuel Vadotdescription: | 13*8bab661aSEmmanuel Vadot The TI K3 family of SoCs typically have a Voltage & Thermal 14*8bab661aSEmmanuel Vadot Management (VTM) device to control up to 8 temperature diode 15*8bab661aSEmmanuel Vadot sensors to measure silicon junction temperatures from different 16*8bab661aSEmmanuel Vadot hotspots of the chip as well as provide temperature, interrupt 17*8bab661aSEmmanuel Vadot and alerting information. 18*8bab661aSEmmanuel Vadot 19*8bab661aSEmmanuel Vadot The following polynomial equation can then be used to convert 20*8bab661aSEmmanuel Vadot value returned by this device into a temperature in Celsius 21*8bab661aSEmmanuel Vadot 22*8bab661aSEmmanuel Vadot Temp(C) = (-9.2627e-12) * x^4 + (6.0373e-08) * x^3 + \ 23*8bab661aSEmmanuel Vadot (-1.7058e-04) * x^2 + (3.2512e-01) * x + (-4.9003e+01) 24*8bab661aSEmmanuel Vadot 25d5b0e70fSEmmanuel Vadotproperties: 26d5b0e70fSEmmanuel Vadot compatible: 27d5b0e70fSEmmanuel Vadot enum: 28d5b0e70fSEmmanuel Vadot - ti,j721e-vtm 29d5b0e70fSEmmanuel Vadot - ti,j7200-vtm 30d5b0e70fSEmmanuel Vadot 31d5b0e70fSEmmanuel Vadot reg: 32d5b0e70fSEmmanuel Vadot items: 33d5b0e70fSEmmanuel Vadot - description: VTM cfg1 register space 34d5b0e70fSEmmanuel Vadot - description: VTM cfg2 register space 35*8bab661aSEmmanuel Vadot - description: | 36*8bab661aSEmmanuel Vadot A software trimming method must be applied to some Jacinto 37*8bab661aSEmmanuel Vadot devices to function properly. This eFuse region provides 38*8bab661aSEmmanuel Vadot the information needed for these SoCs to report 39*8bab661aSEmmanuel Vadot temperatures accurately. 40*8bab661aSEmmanuel Vadot minItems: 2 41d5b0e70fSEmmanuel Vadot 42d5b0e70fSEmmanuel Vadot power-domains: 43d5b0e70fSEmmanuel Vadot maxItems: 1 44d5b0e70fSEmmanuel Vadot 45d5b0e70fSEmmanuel Vadot "#thermal-sensor-cells": 46d5b0e70fSEmmanuel Vadot const: 1 47d5b0e70fSEmmanuel Vadot 48*8bab661aSEmmanuel VadotallOf: 49*8bab661aSEmmanuel Vadot - if: 50*8bab661aSEmmanuel Vadot properties: 51*8bab661aSEmmanuel Vadot compatible: 52*8bab661aSEmmanuel Vadot contains: 53*8bab661aSEmmanuel Vadot const: ti,j721e-vtm 54*8bab661aSEmmanuel Vadot then: 55*8bab661aSEmmanuel Vadot properties: 56*8bab661aSEmmanuel Vadot reg: 57*8bab661aSEmmanuel Vadot minItems: 3 58*8bab661aSEmmanuel Vadot else: 59*8bab661aSEmmanuel Vadot properties: 60*8bab661aSEmmanuel Vadot reg: 61*8bab661aSEmmanuel Vadot maxItems: 2 62*8bab661aSEmmanuel Vadot 63d5b0e70fSEmmanuel Vadotrequired: 64d5b0e70fSEmmanuel Vadot - compatible 65d5b0e70fSEmmanuel Vadot - reg 66d5b0e70fSEmmanuel Vadot - power-domains 67d5b0e70fSEmmanuel Vadot - "#thermal-sensor-cells" 68d5b0e70fSEmmanuel Vadot 69d5b0e70fSEmmanuel VadotadditionalProperties: false 70d5b0e70fSEmmanuel Vadot 71d5b0e70fSEmmanuel Vadotexamples: 72d5b0e70fSEmmanuel Vadot - | 73d5b0e70fSEmmanuel Vadot #include <dt-bindings/soc/ti,sci_pm_domain.h> 74d5b0e70fSEmmanuel Vadot wkup_vtm0: thermal-sensor@42040000 { 75d5b0e70fSEmmanuel Vadot compatible = "ti,j721e-vtm"; 76d5b0e70fSEmmanuel Vadot reg = <0x42040000 0x350>, 77d5b0e70fSEmmanuel Vadot <0x42050000 0x350>, 78d5b0e70fSEmmanuel Vadot <0x43000300 0x10>; 79d5b0e70fSEmmanuel Vadot power-domains = <&k3_pds 154 TI_SCI_PD_EXCLUSIVE>; 80d5b0e70fSEmmanuel Vadot #thermal-sensor-cells = <1>; 81d5b0e70fSEmmanuel Vadot }; 82d5b0e70fSEmmanuel Vadot 83d5b0e70fSEmmanuel Vadot mpu_thermal: mpu-thermal { 84d5b0e70fSEmmanuel Vadot polling-delay-passive = <250>; /* milliseconds */ 85d5b0e70fSEmmanuel Vadot polling-delay = <500>; /* milliseconds */ 86d5b0e70fSEmmanuel Vadot thermal-sensors = <&wkup_vtm0 0>; 87d5b0e70fSEmmanuel Vadot 88d5b0e70fSEmmanuel Vadot trips { 89d5b0e70fSEmmanuel Vadot mpu_crit: mpu-crit { 90d5b0e70fSEmmanuel Vadot temperature = <125000>; /* milliCelsius */ 91d5b0e70fSEmmanuel Vadot hysteresis = <2000>; /* milliCelsius */ 92d5b0e70fSEmmanuel Vadot type = "critical"; 93d5b0e70fSEmmanuel Vadot }; 94d5b0e70fSEmmanuel Vadot }; 95d5b0e70fSEmmanuel Vadot }; 96d5b0e70fSEmmanuel Vadot... 97