1031c2952SKeerthy# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
2031c2952SKeerthy%YAML 1.2
3031c2952SKeerthy---
4031c2952SKeerthy$id: http://devicetree.org/schemas/thermal/ti,j72xx-thermal.yaml#
5031c2952SKeerthy$schema: http://devicetree.org/meta-schemas/core.yaml#
6031c2952SKeerthy
7031c2952SKeerthytitle: Texas Instruments J72XX VTM (DTS) binding
8031c2952SKeerthy
9031c2952SKeerthymaintainers:
10031c2952SKeerthy  - Keerthy <j-keerthy@ti.com>
11031c2952SKeerthy
12*effe8db0SBryan Brattlofdescription: |
13*effe8db0SBryan Brattlof  The TI K3 family of SoCs typically have a Voltage & Thermal
14*effe8db0SBryan Brattlof  Management (VTM) device to control up to 8 temperature diode
15*effe8db0SBryan Brattlof  sensors to measure silicon junction temperatures from different
16*effe8db0SBryan Brattlof  hotspots of the chip as well as provide temperature, interrupt
17*effe8db0SBryan Brattlof  and alerting information.
18*effe8db0SBryan Brattlof
19*effe8db0SBryan Brattlof  The following polynomial equation can then be used to convert
20*effe8db0SBryan Brattlof  value returned by this device into a temperature in Celsius
21*effe8db0SBryan Brattlof
22*effe8db0SBryan Brattlof  Temp(C) = (-9.2627e-12) * x^4 + (6.0373e-08) * x^3 + \
23*effe8db0SBryan Brattlof            (-1.7058e-04) * x^2 + (3.2512e-01) * x   + (-4.9003e+01)
24*effe8db0SBryan Brattlof
25031c2952SKeerthyproperties:
26031c2952SKeerthy  compatible:
27031c2952SKeerthy    enum:
28031c2952SKeerthy      - ti,j721e-vtm
29031c2952SKeerthy      - ti,j7200-vtm
30031c2952SKeerthy
31031c2952SKeerthy  reg:
32031c2952SKeerthy    items:
33031c2952SKeerthy      - description: VTM cfg1 register space
34031c2952SKeerthy      - description: VTM cfg2 register space
35*effe8db0SBryan Brattlof      - description: |
36*effe8db0SBryan Brattlof          A software trimming method must be applied to some Jacinto
37*effe8db0SBryan Brattlof          devices to function properly. This eFuse region provides
38*effe8db0SBryan Brattlof          the information needed for these SoCs to report
39*effe8db0SBryan Brattlof          temperatures accurately.
40031c2952SKeerthy
41031c2952SKeerthy  power-domains:
42031c2952SKeerthy    maxItems: 1
43031c2952SKeerthy
44031c2952SKeerthy  "#thermal-sensor-cells":
45031c2952SKeerthy    const: 1
46031c2952SKeerthy
47031c2952SKeerthyrequired:
48031c2952SKeerthy  - compatible
49031c2952SKeerthy  - reg
50031c2952SKeerthy  - power-domains
51031c2952SKeerthy  - "#thermal-sensor-cells"
52031c2952SKeerthy
53031c2952SKeerthyadditionalProperties: false
54031c2952SKeerthy
55031c2952SKeerthyexamples:
56031c2952SKeerthy  - |
57031c2952SKeerthy    #include <dt-bindings/soc/ti,sci_pm_domain.h>
58031c2952SKeerthy    wkup_vtm0: thermal-sensor@42040000 {
59031c2952SKeerthy        compatible = "ti,j721e-vtm";
60031c2952SKeerthy        reg = <0x42040000 0x350>,
61031c2952SKeerthy              <0x42050000 0x350>,
62031c2952SKeerthy              <0x43000300 0x10>;
63031c2952SKeerthy        power-domains = <&k3_pds 154 TI_SCI_PD_EXCLUSIVE>;
64031c2952SKeerthy        #thermal-sensor-cells = <1>;
65031c2952SKeerthy    };
66031c2952SKeerthy
67031c2952SKeerthy    mpu_thermal: mpu-thermal {
68031c2952SKeerthy        polling-delay-passive = <250>; /* milliseconds */
69031c2952SKeerthy        polling-delay = <500>; /* milliseconds */
70031c2952SKeerthy        thermal-sensors = <&wkup_vtm0 0>;
71031c2952SKeerthy
72031c2952SKeerthy        trips {
73031c2952SKeerthy            mpu_crit: mpu-crit {
74031c2952SKeerthy                temperature = <125000>; /* milliCelsius */
75031c2952SKeerthy                hysteresis = <2000>; /* milliCelsius */
76031c2952SKeerthy                type = "critical";
77031c2952SKeerthy            };
78031c2952SKeerthy        };
79031c2952SKeerthy    };
80031c2952SKeerthy...
81