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