Merge tag 'fbdev-v5.0-rc3' of git://github.com/bzolnier/linux
[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/E3/D3 and RZ/G2E.
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-r8a774c0" (RZ/G2E)
13                             - "renesas,thermal-r8a7779" (R-Car H1)
14                             - "renesas,thermal-r8a7790" (R-Car H2)
15                             - "renesas,thermal-r8a7791" (R-Car M2-W)
16                             - "renesas,thermal-r8a7792" (R-Car V2H)
17                             - "renesas,thermal-r8a7793" (R-Car M2-N)
18                             - "renesas,thermal-r8a77970" (R-Car V3M)
19                             - "renesas,thermal-r8a77990" (R-Car E3)
20                             - "renesas,thermal-r8a77995" (R-Car D3)
21 - reg                   : Address range of the thermal registers.
22                           The 1st reg will be recognized as common register
23                           if it has "interrupts".
24
25 Option properties:
26
27 - interrupts            : If present should contain 3 interrupts for
28                           R-Car V3M/E3/D3 and RZ/G2E or 1 interrupt otherwise.
29
30 Example (non interrupt support):
31
32 thermal@ffc48000 {
33         compatible = "renesas,thermal-r8a7779", "renesas,rcar-thermal";
34         reg = <0xffc48000 0x38>;
35 };
36
37 Example (interrupt support):
38
39 thermal@e61f0000 {
40         compatible = "renesas,thermal-r8a73a4", "renesas,rcar-thermal";
41         reg = <0xe61f0000 0x14
42                 0xe61f0100 0x38
43                 0xe61f0200 0x38
44                 0xe61f0300 0x38>;
45         interrupts = <0 69 IRQ_TYPE_LEVEL_HIGH>;
46 };
47
48 Example (with thermal-zone):
49
50 thermal-zones {
51         cpu_thermal: cpu-thermal {
52                 polling-delay-passive   = <1000>;
53                 polling-delay           = <5000>;
54
55                 thermal-sensors = <&thermal>;
56
57                 trips {
58                         cpu-crit {
59                                 temperature     = <115000>;
60                                 hysteresis      = <0>;
61                                 type            = "critical";
62                         };
63                 };
64                 cooling-maps {
65                 };
66         };
67 };
68
69 thermal: thermal@e61f0000 {
70         compatible =    "renesas,thermal-r8a7790",
71                         "renesas,rcar-gen2-thermal",
72                         "renesas,rcar-thermal";
73         reg = <0 0xe61f0000 0 0x14>, <0 0xe61f0100 0 0x38>;
74         interrupts = <0 69 IRQ_TYPE_LEVEL_HIGH>;
75         clocks = <&mstp5_clks R8A7790_CLK_THERMAL>;
76         power-domains = <&cpg_clocks>;
77         #thermal-sensor-cells = <0>;
78 };