Commit | Line | Data |
---|---|---|
76cc1887 KM |
1 | * Renesas R-Car Thermal |
2 | ||
3 | Required properties: | |
8b477ea5 KM |
4 | - compatible : "renesas,thermal-<soctype>", |
5 | "renesas,rcar-gen2-thermal" (with thermal-zone) or | |
6 | "renesas,rcar-thermal" (without thermal-zone) as fallback. | |
fa313103 | 7 | Examples with soctypes are: |
2771d000 | 8 | - "renesas,thermal-r8a73a4" (R-Mobile APE6) |
fa313103 GU |
9 | - "renesas,thermal-r8a7779" (R-Car H1) |
10 | - "renesas,thermal-r8a7790" (R-Car H2) | |
689bd24c GU |
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) | |
76cc1887 KM |
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 | ||
fa313103 GU |
25 | thermal@ffc48000 { |
26 | compatible = "renesas,thermal-r8a7779", "renesas,rcar-thermal"; | |
27 | reg = <0xffc48000 0x38>; | |
76cc1887 KM |
28 | }; |
29 | ||
30 | Example (interrupt support): | |
31 | ||
32 | thermal@e61f0000 { | |
fa313103 | 33 | compatible = "renesas,thermal-r8a73a4", "renesas,rcar-thermal"; |
76cc1887 KM |
34 | reg = <0xe61f0000 0x14 |
35 | 0xe61f0100 0x38 | |
36 | 0xe61f0200 0x38 | |
37 | 0xe61f0300 0x38>; | |
fa313103 | 38 | interrupts = <0 69 IRQ_TYPE_LEVEL_HIGH>; |
76cc1887 | 39 | }; |
8b477ea5 KM |
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 | }; |