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