xref: /linux/Documentation/devicetree/bindings/thermal/ti,j72xx-thermal.yaml (revision a985dceccd82850b93d392ae9c4d5748f40c3e2a)
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
784e85359SKrzysztof Kozlowskititle: Texas Instruments J72XX VTM (DTS)
8031c2952SKeerthy
9031c2952SKeerthymaintainers:
10031c2952SKeerthy  - Keerthy <j-keerthy@ti.com>
11031c2952SKeerthy
12effe8db0SBryan Brattlofdescription: |
13effe8db0SBryan Brattlof  The TI K3 family of SoCs typically have a Voltage & Thermal
14effe8db0SBryan Brattlof  Management (VTM) device to control up to 8 temperature diode
15effe8db0SBryan Brattlof  sensors to measure silicon junction temperatures from different
16effe8db0SBryan Brattlof  hotspots of the chip as well as provide temperature, interrupt
17effe8db0SBryan Brattlof  and alerting information.
18effe8db0SBryan Brattlof
19effe8db0SBryan Brattlof  The following polynomial equation can then be used to convert
20effe8db0SBryan Brattlof  value returned by this device into a temperature in Celsius
21effe8db0SBryan Brattlof
22effe8db0SBryan Brattlof  Temp(C) = (-9.2627e-12) * x^4 + (6.0373e-08) * x^3 + \
23effe8db0SBryan Brattlof            (-1.7058e-04) * x^2 + (3.2512e-01) * x   + (-4.9003e+01)
24effe8db0SBryan Brattlof
25*a985dcecSKrzysztof Kozlowski$ref: thermal-sensor.yaml#
26*a985dcecSKrzysztof Kozlowski
27031c2952SKeerthyproperties:
28031c2952SKeerthy  compatible:
29031c2952SKeerthy    enum:
30031c2952SKeerthy      - ti,j721e-vtm
31031c2952SKeerthy      - ti,j7200-vtm
32031c2952SKeerthy
33031c2952SKeerthy  reg:
34031c2952SKeerthy    items:
35031c2952SKeerthy      - description: VTM cfg1 register space
36031c2952SKeerthy      - description: VTM cfg2 register space
37effe8db0SBryan Brattlof      - description: |
38effe8db0SBryan Brattlof          A software trimming method must be applied to some Jacinto
39effe8db0SBryan Brattlof          devices to function properly. This eFuse region provides
40effe8db0SBryan Brattlof          the information needed for these SoCs to report
41effe8db0SBryan Brattlof          temperatures accurately.
42c4026d3eSBryan Brattlof    minItems: 2
43031c2952SKeerthy
44031c2952SKeerthy  power-domains:
45031c2952SKeerthy    maxItems: 1
46031c2952SKeerthy
47031c2952SKeerthy  "#thermal-sensor-cells":
48031c2952SKeerthy    const: 1
49031c2952SKeerthy
50c4026d3eSBryan BrattlofallOf:
51c4026d3eSBryan Brattlof  - if:
52c4026d3eSBryan Brattlof      properties:
53c4026d3eSBryan Brattlof        compatible:
54c4026d3eSBryan Brattlof          contains:
55c4026d3eSBryan Brattlof            const: ti,j721e-vtm
56c4026d3eSBryan Brattlof    then:
57c4026d3eSBryan Brattlof      properties:
58c4026d3eSBryan Brattlof        reg:
59c4026d3eSBryan Brattlof          minItems: 3
60c4026d3eSBryan Brattlof    else:
61c4026d3eSBryan Brattlof      properties:
62c4026d3eSBryan Brattlof        reg:
63c4026d3eSBryan Brattlof          maxItems: 2
64c4026d3eSBryan Brattlof
65031c2952SKeerthyrequired:
66031c2952SKeerthy  - compatible
67031c2952SKeerthy  - reg
68031c2952SKeerthy  - power-domains
69031c2952SKeerthy
70*a985dcecSKrzysztof KozlowskiunevaluatedProperties: false
71031c2952SKeerthy
72031c2952SKeerthyexamples:
73031c2952SKeerthy  - |
74031c2952SKeerthy    #include <dt-bindings/soc/ti,sci_pm_domain.h>
75031c2952SKeerthy    wkup_vtm0: thermal-sensor@42040000 {
76031c2952SKeerthy        compatible = "ti,j721e-vtm";
77031c2952SKeerthy        reg = <0x42040000 0x350>,
78031c2952SKeerthy              <0x42050000 0x350>,
79031c2952SKeerthy              <0x43000300 0x10>;
80031c2952SKeerthy        power-domains = <&k3_pds 154 TI_SCI_PD_EXCLUSIVE>;
81031c2952SKeerthy        #thermal-sensor-cells = <1>;
82031c2952SKeerthy    };
83031c2952SKeerthy
84031c2952SKeerthy    mpu_thermal: mpu-thermal {
85031c2952SKeerthy        polling-delay-passive = <250>; /* milliseconds */
86031c2952SKeerthy        polling-delay = <500>; /* milliseconds */
87031c2952SKeerthy        thermal-sensors = <&wkup_vtm0 0>;
88031c2952SKeerthy
89031c2952SKeerthy        trips {
90031c2952SKeerthy            mpu_crit: mpu-crit {
91031c2952SKeerthy                temperature = <125000>; /* milliCelsius */
92031c2952SKeerthy                hysteresis = <2000>; /* milliCelsius */
93031c2952SKeerthy                type = "critical";
94031c2952SKeerthy            };
95031c2952SKeerthy        };
96031c2952SKeerthy    };
97031c2952SKeerthy...
98