xref: /OK3568_Linux_fs/kernel/Documentation/devicetree/bindings/thermal/socionext,uniphier-thermal.yaml (revision 4882a59341e53eb6f0b4789bf948001014eff981)
1*4882a593Smuzhiyun# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
2*4882a593Smuzhiyun%YAML 1.2
3*4882a593Smuzhiyun---
4*4882a593Smuzhiyun$id: http://devicetree.org/schemas/thermal/socionext,uniphier-thermal.yaml#
5*4882a593Smuzhiyun$schema: http://devicetree.org/meta-schemas/core.yaml#
6*4882a593Smuzhiyun
7*4882a593Smuzhiyuntitle: Socionext UniPhier thermal monitor
8*4882a593Smuzhiyun
9*4882a593Smuzhiyundescription: |
10*4882a593Smuzhiyun  This describes the devicetree bindings for thermal monitor supported by
11*4882a593Smuzhiyun  PVT(Process, Voltage and Temperature) monitoring unit implemented on
12*4882a593Smuzhiyun  Socionext UniPhier SoCs.
13*4882a593Smuzhiyun
14*4882a593Smuzhiyunmaintainers:
15*4882a593Smuzhiyun  - Kunihiko Hayashi <hayashi.kunihiko@socionext.com>
16*4882a593Smuzhiyun
17*4882a593Smuzhiyunproperties:
18*4882a593Smuzhiyun  compatible:
19*4882a593Smuzhiyun    enum:
20*4882a593Smuzhiyun      - socionext,uniphier-pxs2-thermal
21*4882a593Smuzhiyun      - socionext,uniphier-ld20-thermal
22*4882a593Smuzhiyun      - socionext,uniphier-pxs3-thermal
23*4882a593Smuzhiyun
24*4882a593Smuzhiyun  interrupts:
25*4882a593Smuzhiyun    maxItems: 1
26*4882a593Smuzhiyun
27*4882a593Smuzhiyun  "#thermal-sensor-cells":
28*4882a593Smuzhiyun    const: 0
29*4882a593Smuzhiyun
30*4882a593Smuzhiyun  socionext,tmod-calibration:
31*4882a593Smuzhiyun    $ref: /schemas/types.yaml#/definitions/uint32-array
32*4882a593Smuzhiyun    maxItems: 2
33*4882a593Smuzhiyun    description:
34*4882a593Smuzhiyun      A pair of calibrated values referred from PVT, in case that the values
35*4882a593Smuzhiyun      aren't set on SoC, like a reference board.
36*4882a593Smuzhiyun
37*4882a593Smuzhiyunrequired:
38*4882a593Smuzhiyun  - compatible
39*4882a593Smuzhiyun  - interrupts
40*4882a593Smuzhiyun  - "#thermal-sensor-cells"
41*4882a593Smuzhiyun
42*4882a593SmuzhiyunadditionalProperties: false
43*4882a593Smuzhiyun
44*4882a593Smuzhiyunexamples:
45*4882a593Smuzhiyun  - |
46*4882a593Smuzhiyun    // The UniPhier thermal should be a subnode of a "syscon" compatible node.
47*4882a593Smuzhiyun
48*4882a593Smuzhiyun    sysctrl@61840000 {
49*4882a593Smuzhiyun        compatible = "socionext,uniphier-ld20-sysctrl",
50*4882a593Smuzhiyun                     "simple-mfd", "syscon";
51*4882a593Smuzhiyun        reg = <0x61840000 0x10000>;
52*4882a593Smuzhiyun
53*4882a593Smuzhiyun        pvtctl: thermal {
54*4882a593Smuzhiyun            compatible = "socionext,uniphier-ld20-thermal";
55*4882a593Smuzhiyun            interrupts = <0 3 1>;
56*4882a593Smuzhiyun            #thermal-sensor-cells = <0>;
57*4882a593Smuzhiyun        };
58*4882a593Smuzhiyun    };
59