Merge tag 'v4.20' into next
[sfrench/cifs-2.6.git] / Documentation / devicetree / bindings / thermal / rcar-thermal.txt
1 * Renesas R-Car Thermal
2
3 Required properties:
4 - compatible            : "renesas,thermal-<soctype>",
5                            "renesas,rcar-gen2-thermal" (with thermal-zone) or
6                            "renesas,rcar-thermal" (without thermal-zone) as
7                            fallback except R-Car V3M/D3.
8                           Examples with soctypes are:
9                             - "renesas,thermal-r8a73a4" (R-Mobile APE6)
10                             - "renesas,thermal-r8a7743" (RZ/G1M)
11                             - "renesas,thermal-r8a7744" (RZ/G1N)
12                             - "renesas,thermal-r8a7779" (R-Car H1)
13                             - "renesas,thermal-r8a7790" (R-Car H2)
14                             - "renesas,thermal-r8a7791" (R-Car M2-W)
15                             - "renesas,thermal-r8a7792" (R-Car V2H)
16                             - "renesas,thermal-r8a7793" (R-Car M2-N)
17                             - "renesas,thermal-r8a77970" (R-Car V3M)
18                             - "renesas,thermal-r8a77995" (R-Car D3)
19 - reg                   : Address range of the thermal registers.
20                           The 1st reg will be recognized as common register
21                           if it has "interrupts".
22
23 Option properties:
24
25 - interrupts            : If present should contain 3 interrupts for
26                           R-Car V3M/D3 or 1 interrupt otherwise.
27
28 Example (non interrupt support):
29
30 thermal@ffc48000 {
31         compatible = "renesas,thermal-r8a7779", "renesas,rcar-thermal";
32         reg = <0xffc48000 0x38>;
33 };
34
35 Example (interrupt support):
36
37 thermal@e61f0000 {
38         compatible = "renesas,thermal-r8a73a4", "renesas,rcar-thermal";
39         reg = <0xe61f0000 0x14
40                 0xe61f0100 0x38
41                 0xe61f0200 0x38
42                 0xe61f0300 0x38>;
43         interrupts = <0 69 IRQ_TYPE_LEVEL_HIGH>;
44 };
45
46 Example (with thermal-zone):
47
48 thermal-zones {
49         cpu_thermal: cpu-thermal {
50                 polling-delay-passive   = <1000>;
51                 polling-delay           = <5000>;
52
53                 thermal-sensors = <&thermal>;
54
55                 trips {
56                         cpu-crit {
57                                 temperature     = <115000>;
58                                 hysteresis      = <0>;
59                                 type            = "critical";
60                         };
61                 };
62                 cooling-maps {
63                 };
64         };
65 };
66
67 thermal: thermal@e61f0000 {
68         compatible =    "renesas,thermal-r8a7790",
69                         "renesas,rcar-gen2-thermal",
70                         "renesas,rcar-thermal";
71         reg = <0 0xe61f0000 0 0x14>, <0 0xe61f0100 0 0x38>;
72         interrupts = <0 69 IRQ_TYPE_LEVEL_HIGH>;
73         clocks = <&mstp5_clks R8A7790_CLK_THERMAL>;
74         power-domains = <&cpg_clocks>;
75         #thermal-sensor-cells = <0>;
76 };