]> git.proxmox.com Git - mirror_ubuntu-focal-kernel.git/blob - Documentation/devicetree/bindings/thermal/rcar-thermal.txt
Merge branch 'topic/livepatch' of git://git.kernel.org/pub/scm/linux/kernel/git/power...
[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 - "renesas,thermal-r8a7794" (R-Car E2)
15 - reg : Address range of the thermal registers.
16 The 1st reg will be recognized as common register
17 if it has "interrupts".
18
19 Option properties:
20
21 - interrupts : use interrupt
22
23 Example (non interrupt support):
24
25 thermal@ffc48000 {
26 compatible = "renesas,thermal-r8a7779", "renesas,rcar-thermal";
27 reg = <0xffc48000 0x38>;
28 };
29
30 Example (interrupt support):
31
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>;
39 };
40
41 Example (with thermal-zone):
42
43 thermal-zones {
44 cpu_thermal: cpu-thermal {
45 polling-delay-passive = <1000>;
46 polling-delay = <5000>;
47
48 thermal-sensors = <&thermal>;
49
50 trips {
51 cpu-crit {
52 temperature = <115000>;
53 hysteresis = <0>;
54 type = "critical";
55 };
56 };
57 cooling-maps {
58 };
59 };
60 };
61
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>;
71 };