ipq807x: add Qualcomm Atheros IPQ807x target
[openwrt/staging/jow.git] / target / linux / ipq807x / files / arch / arm64 / boot / dts / qcom / ipq8074-ac-cpu.dtsi
1 // SPDX-License-Identifier: GPL-2.0-only
2
3 #include <dt-bindings/thermal/thermal.h>
4 #include "ipq8074-cpr-regulator.dtsi"
5
6 &CPU0 {
7 cpu-supply = <&apc_vreg>;
8 voltage-tolerance = <1>;
9 };
10
11 &CPU1 {
12 cpu-supply = <&apc_vreg>;
13 voltage-tolerance = <1>;
14 };
15
16 &CPU2 {
17 cpu-supply = <&apc_vreg>;
18 voltage-tolerance = <1>;
19 };
20
21 &CPU3 {
22 cpu-supply = <&apc_vreg>;
23 voltage-tolerance = <1>;
24 };
25 &cpu0_thermal {
26 trips {
27 cpu0_passive: cpu-passive {
28 temperature = <95000>;
29 hysteresis = <2000>;
30 type = "passive";
31 };
32
33 cpu0_crit: cpu_crit {
34 temperature = <110000>;
35 hysteresis = <1000>;
36 type = "critical";
37 };
38 };
39
40 cooling-maps {
41 map0 {
42 trip = <&cpu0_passive>;
43 cooling-device = <&CPU0 THERMAL_NO_LIMIT THERMAL_NO_LIMIT>,
44 <&CPU1 THERMAL_NO_LIMIT THERMAL_NO_LIMIT>,
45 <&CPU2 THERMAL_NO_LIMIT THERMAL_NO_LIMIT>,
46 <&CPU3 THERMAL_NO_LIMIT THERMAL_NO_LIMIT>;
47 };
48 };
49 };
50
51 &cpu1_thermal {
52 trips {
53 cpu1_passive: cpu-passive {
54 temperature = <95000>;
55 hysteresis = <2000>;
56 type = "passive";
57 };
58
59 cpu1_crit: cpu_crit {
60 temperature = <110000>;
61 hysteresis = <1000>;
62 type = "critical";
63 };
64 };
65
66 cooling-maps {
67 map0 {
68 trip = <&cpu1_passive>;
69 cooling-device = <&CPU0 THERMAL_NO_LIMIT THERMAL_NO_LIMIT>,
70 <&CPU1 THERMAL_NO_LIMIT THERMAL_NO_LIMIT>,
71 <&CPU2 THERMAL_NO_LIMIT THERMAL_NO_LIMIT>,
72 <&CPU3 THERMAL_NO_LIMIT THERMAL_NO_LIMIT>;
73 };
74 };
75 };
76
77 &cpu2_thermal {
78 trips {
79 cpu2_passive: cpu-passive {
80 temperature = <95000>;
81 hysteresis = <2000>;
82 type = "passive";
83 };
84
85 cpu2_crit: cpu_crit {
86 temperature = <110000>;
87 hysteresis = <1000>;
88 type = "critical";
89 };
90 };
91
92 cooling-maps {
93 map0 {
94 trip = <&cpu2_passive>;
95 cooling-device = <&CPU0 THERMAL_NO_LIMIT THERMAL_NO_LIMIT>,
96 <&CPU1 THERMAL_NO_LIMIT THERMAL_NO_LIMIT>,
97 <&CPU2 THERMAL_NO_LIMIT THERMAL_NO_LIMIT>,
98 <&CPU3 THERMAL_NO_LIMIT THERMAL_NO_LIMIT>;
99 };
100 };
101 };
102
103 &cpu3_thermal {
104 trips {
105 cpu3_passive: cpu-passive {
106 temperature = <95000>;
107 hysteresis = <2000>;
108 type = "passive";
109 };
110
111 cpu3_crit: cpu_crit {
112 temperature = <110000>;
113 hysteresis = <1000>;
114 type = "critical";
115 };
116 };
117
118 cooling-maps {
119 map0 {
120 trip = <&cpu3_passive>;
121 cooling-device = <&CPU0 THERMAL_NO_LIMIT THERMAL_NO_LIMIT>,
122 <&CPU1 THERMAL_NO_LIMIT THERMAL_NO_LIMIT>,
123 <&CPU2 THERMAL_NO_LIMIT THERMAL_NO_LIMIT>,
124 <&CPU3 THERMAL_NO_LIMIT THERMAL_NO_LIMIT>;
125 };
126 };
127 };
128
129 &cluster_thermal {
130 trips {
131 cluster_passive: cluster-passive {
132 temperature = <95000>;
133 hysteresis = <2000>;
134 type = "passive";
135 };
136
137 cluster_crit: cluster_crit {
138 temperature = <110000>;
139 hysteresis = <1000>;
140 type = "critical";
141 };
142 };
143
144 cooling-maps {
145 map0 {
146 trip = <&cluster_passive>;
147 cooling-device = <&CPU0 THERMAL_NO_LIMIT THERMAL_NO_LIMIT>,
148 <&CPU1 THERMAL_NO_LIMIT THERMAL_NO_LIMIT>,
149 <&CPU2 THERMAL_NO_LIMIT THERMAL_NO_LIMIT>,
150 <&CPU3 THERMAL_NO_LIMIT THERMAL_NO_LIMIT>;
151 };
152 };
153 };