sysedp: Jetson-CV: Scale back reactive capping
[linux-3.10.git] / arch / arm64 / boot / dts / tegra210-platforms / tegra210-p2180-common.dtsi
1 /*
2  * arch/arm64/boot/dts/tegra210-platforms/tegra210-p2180-common.dtsi
3  *
4  * Copyright (c) 2015, NVIDIA CORPORATION.  All rights reserved.
5  *
6  * This program is free software; you can redistribute it and/or modify
7  * it under the terms of the GNU General Public License as published by
8  * the Free Software Foundation; version 2 of the License.
9  *
10  * This program is distributed in the hope that it will be useful, but WITHOUT
11  * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
12  * FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License for
13  * more details.
14  *
15  * You should have received a copy of the GNU General Public License along
16  * with this program; if not, write to the Free Software Foundation, Inc.,
17  * 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301, USA.
18  *
19  */
20
21 #include "tegra210-platforms/tegra210-thermal-nct72-p2530.dtsi"
22 #include "tegra210-platforms/tegra210-thermal-Tboard-Tdiode.dtsi"
23 #include "tegra210-platforms/tegra210-ers-clk-init.dtsi"
24
25 / {
26         #address-cells = <2>;
27         #size-cells = <2>;
28
29         chosen {
30                 fastboot-instructions = "Tap on power button to navigate menu options.\nHold down power button for 2 sec and release for selecting an option\n";
31         };
32
33         pmc@7000e400 {
34                 nvidia,invert-interrupt;
35         };
36
37         sdhci@700b0600 {
38                 max-clk-limit = <200000000>;
39                 uhs-mask = <0x0>;
40                 built-in;
41                 power-off-rail;
42                 pll_source = "pll_p", "pll_c4_out2";
43                 status = "okay";
44         };
45
46         sdhci@700b0400 {
47                 mmc-ocr-mask = <0>;
48                 default-drv-type = <1>;
49                 uhs-mask = <0x1c>;
50                 power-off-rail;
51                 nvidia,update-pinctrl-settings;
52                 pinctrl-names = "sdmmc_schmitt_enable", "sdmmc_schmitt_disable", "sdmmc_clk_schmitt_enable", "sdmmc_clk_schmitt_disable", "sdmmc_drv_code", "sdmmc_default_drv_code";
53                 pinctrl-0 = <&sdmmc3_schmitt_enable_state>;
54                 pinctrl-1 = <&sdmmc3_schmitt_disable_state>;
55                 pinctrl-2 = <&sdmmc3_clk_schmitt_enable_state>;
56                 pinctrl-3 = <&sdmmc3_clk_schmitt_disable_state>;
57                 pinctrl-4 = <&sdmmc3_drv_code_1_8V>;
58                 pinctrl-5 = <&sdmmc3_default_drv_code_3_3V>;
59                 status = "disabled";
60         };
61
62         sdhci@700b0200 {
63                 nvidia,is-ddr-tap-delay;
64                 nvidia,ddr-tap-delay = <0>;
65                 uhs-mask = <0x8>;
66                 power-off-rail;
67                 status = "okay";
68         };
69
70         sdhci@700b0000 {
71                 uhs-mask = <0xc>;
72                 power-off-rail;
73                 nvidia,update-pinctrl-settings;
74                 pinctrl-names = "sdmmc_schmitt_enable", "sdmmc_schmitt_disable", "sdmmc_clk_schmitt_enable", "sdmmc_clk_schmitt_disable", "sdmmc_drv_code", "sdmmc_default_drv_code";
75                 pinctrl-0 = <&sdmmc1_schmitt_enable_state>;
76                 pinctrl-1 = <&sdmmc1_schmitt_disable_state>;
77                 pinctrl-2 = <&sdmmc1_clk_schmitt_enable_state>;
78                 pinctrl-3 = <&sdmmc1_clk_schmitt_disable_state>;
79                 pinctrl-4 = <&sdmmc1_drv_code_1_8V>;
80                 pinctrl-5 = <&sdmmc1_default_drv_code_3_3V>;
81                 nvidia,sd-device;
82                 status = "okay";
83         };
84
85         memory@80000000 {
86                 device_type = "memory";
87                 reg = < 0x0 0x80000000 0x0 0x80000000 >;
88         };
89
90         adma@702e2000  {
91                 interrupts = <0 24 0x04
92                               0 25 0x04
93                               0 26 0x04
94                               0 27 0x04
95                               0 28 0x04
96                               0 29 0x04
97                               0 30 0x04
98                               0 31 0x04
99                               0 32 0x04
100                               0 33 0x04>;
101                 dma-channels = <10>;
102                 status = "okay";
103         };
104
105
106         ahub {
107                 i2s@702d1000 {
108                         pinctrl-names = "dap_active", "dap_inactive";
109                         pinctrl-0 = <>;
110                         pinctrl-1 = <>;
111                         regulator-supplies = "vdd-1v8-audio-hv", "vdd-1v8-audio-hv-bias";
112                         vdd-1v8-audio-hv-supply = <&max77620_sd3>;
113                         vdd-1v8-audio-hv-bias-supply = <&max77620_sd3>;
114                 };
115
116                 i2s@702d1300 {
117                         pinctrl-names = "dap_active", "dap_inactive";
118                         pinctrl-0 = <>;
119                         pinctrl-1 = <>;
120                         regulator-supplies = "vddio-dmic";
121                         vddio-dmic-supply = <&max77620_sd3>;
122                 };
123         };
124
125         wifi-antenna-tuning {
126                 status = "disabled";
127         };
128
129         thermal-zones {
130                 CPU-therm {
131                         thermal-zone-params {
132                                 governor-name = "pid_thermal_gov";
133                                 max_err_temp = <9000>;
134                                 max_err_gain = <1000>;
135                                 gain_p = <1000>;
136                                 gain_d = <0>;
137                                 up_compensation = <20>;
138                                 down_compensation = <20>;
139                         };
140                         trips {
141                                 cpu_critical {
142                                         temperature = <102500>;
143                                         hysteresis = <0>;
144                                         type = "critical";
145                                         writable;
146                                 };
147                                 cpu_heavy {
148                                         temperature = <98500>;
149                                         hysteresis = <0>;
150                                         type = "hot";
151                                         writable;
152                                 };
153                                 cpu_throttle {
154                                         temperature = <89000>;
155                                         hysteresis = <0>;
156                                         type = "passive";
157                                         writable;
158                                 };
159                         };
160                         cooling-maps {
161                                 map0 {
162                                         trip = <&{/thermal-zones/CPU-therm/trips/cpu_critical}>;
163                                         cdev-type = "tegra-shutdown";
164                                         cooling-device = <&{/soctherm@0x700E2000/throttle@critical}
165                                                 THERMAL_NO_LIMIT THERMAL_NO_LIMIT>;
166                                 };
167                                 map1 {
168                                         trip = <&{/thermal-zones/CPU-therm/trips/cpu_heavy}>;
169                                         cdev-type = "tegra-heavy";
170                                         cooling-device = <&{/soctherm@0x700E2000/throttle@heavy}
171                                                 THERMAL_NO_LIMIT THERMAL_NO_LIMIT>;
172                                 };
173                                 map2 {
174                                         trip = <&{/thermal-zones/CPU-therm/trips/cpu_throttle}>;
175                                         cdev-type = "cpu-balanced";
176                                         cooling-device = <&{/bthrot_cdev/cpu_balanced}
177                                                 THERMAL_NO_LIMIT THERMAL_NO_LIMIT>;
178                                 };
179                         };
180                 };
181                 GPU-therm {
182                         thermal-zone-params {
183                                 governor-name = "pid_thermal_gov";
184                                 max_err_temp = <9000>;
185                                 max_err_gain = <1000>;
186                                 gain_p = <1000>;
187                                 gain_d = <0>;
188                                 up_compensation = <20>;
189                                 down_compensation = <20>;
190                         };
191                         trips {
192                                 gpu_critical {
193                                         temperature = <103000>;
194                                         hysteresis = <0>;
195                                         type = "critical";
196                                         writable;
197                                 };
198                                 gpu_heavy {
199                                         temperature = <100000>;
200                                         hysteresis = <0>;
201                                         type = "hot";
202                                         writable;
203                                 };
204                                 gpu_throttle {
205                                         temperature = <90500>;
206                                         hysteresis = <0>;
207                                         type = "passive";
208                                         writable;
209                                 };
210                         };
211                         cooling-maps {
212                                 map0 {
213                                         trip = <&{/thermal-zones/GPU-therm/trips/gpu_critical}>;
214                                         cdev-type = "tegra-shutdown";
215                                         cooling-device = <&{/soctherm@0x700E2000/throttle@critical}
216                                                 THERMAL_NO_LIMIT THERMAL_NO_LIMIT>;
217                                 };
218                                 map1 {
219                                         trip = <&{/thermal-zones/GPU-therm/trips/gpu_heavy}>;
220                                         cdev-type = "tegra-heavy";
221                                         cooling-device = <&{/soctherm@0x700E2000/throttle@heavy}
222                                                 THERMAL_NO_LIMIT THERMAL_NO_LIMIT>;
223                                 };
224                                 map2 {
225                                         trip = <&{/thermal-zones/GPU-therm/trips/gpu_throttle}>;
226                                         cdev-type = "gpu-balanced";
227                                         cooling-device = <&{/bthrot_cdev/gpu_balanced}
228                                                 THERMAL_NO_LIMIT THERMAL_NO_LIMIT>;
229                                 };
230                         };
231                 };
232                 LCPU-therm {
233                         thermal-zone-params {
234                                 governor-name = "pid_thermal_gov";
235                                 max_err_temp = <9000>;
236                                 max_err_gain = <1000>;
237                                 gain_p = <1000>;
238                                 gain_d = <0>;
239                                 up_compensation = <20>;
240                                 down_compensation = <20>;
241                         };
242                 };
243                 PLL-therm {
244                         thermal-zone-params {
245                                 governor-name = "pid_thermal_gov";
246                                 max_err_temp = <9000>;
247                                 max_err_gain = <1000>;
248                                 gain_p = <1000>;
249                                 gain_d = <0>;
250                                 up_compensation = <20>;
251                                 down_compensation = <20>;
252                         };
253                 };
254
255                 Tboard_tegra {
256                         status = "okay";
257                 };
258                 Tdiode_tegra {
259                         status = "okay";
260                 };
261         };
262
263 };
264