Merge tag 'for_linus' of git://git.kernel.org/pub/scm/linux/kernel/git/mst/vhost
[cris-mirror.git] / Documentation / devicetree / bindings / thermal / rcar-thermal.txt
blob349e635f2d87e0a8421bcaaea1ef18e12b73dff2
1 * Renesas R-Car Thermal
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 fallback.
7                           Examples with soctypes are:
8                             - "renesas,thermal-r8a73a4" (R-Mobile APE6)
9                             - "renesas,thermal-r8a7743" (RZ/G1M)
10                             - "renesas,thermal-r8a7779" (R-Car H1)
11                             - "renesas,thermal-r8a7790" (R-Car H2)
12                             - "renesas,thermal-r8a7791" (R-Car M2-W)
13                             - "renesas,thermal-r8a7792" (R-Car V2H)
14                             - "renesas,thermal-r8a7793" (R-Car M2-N)
15 - reg                   : Address range of the thermal registers.
16                           The 1st reg will be recognized as common register
17                           if it has "interrupts".
19 Option properties:
21 - interrupts            : use interrupt
23 Example (non interrupt support):
25 thermal@ffc48000 {
26         compatible = "renesas,thermal-r8a7779", "renesas,rcar-thermal";
27         reg = <0xffc48000 0x38>;
30 Example (interrupt support):
32 thermal@e61f0000 {
33         compatible = "renesas,thermal-r8a73a4", "renesas,rcar-thermal";
34         reg = <0xe61f0000 0x14
35                 0xe61f0100 0x38
36                 0xe61f0200 0x38
37                 0xe61f0300 0x38>;
38         interrupts = <0 69 IRQ_TYPE_LEVEL_HIGH>;
41 Example (with thermal-zone):
43 thermal-zones {
44         cpu_thermal: cpu-thermal {
45                 polling-delay-passive   = <1000>;
46                 polling-delay           = <5000>;
48                 thermal-sensors = <&thermal>;
50                 trips {
51                         cpu-crit {
52                                 temperature     = <115000>;
53                                 hysteresis      = <0>;
54                                 type            = "critical";
55                         };
56                 };
57                 cooling-maps {
58                 };
59         };
62 thermal: thermal@e61f0000 {
63         compatible =    "renesas,thermal-r8a7790",
64                         "renesas,rcar-gen2-thermal",
65                         "renesas,rcar-thermal";
66         reg = <0 0xe61f0000 0 0x14>, <0 0xe61f0100 0 0x38>;
67         interrupts = <0 69 IRQ_TYPE_LEVEL_HIGH>;
68         clocks = <&mstp5_clks R8A7790_CLK_THERMAL>;
69         power-domains = <&cpg_clocks>;
70         #thermal-sensor-cells = <0>;