ARM64: t210: hawkeye: provide commands for power off from bootrom
[linux-3.10.git] / arch / arm64 / boot / dts / tegra210-platforms / tegra210-hawkeye-power-tree-p2290-1100-a00.dtsi
1 /*
2  * Copyright (c) 2014-2015, NVIDIA CORPORATION.  All rights reserved.
3  *
4  * This program is free software; you can redistribute it and/or modify
5  * it under the terms of the GNU General Public License as published by
6  * the Free Software Foundation; either version 2 of the License, or
7  * (at your option) any later version.
8  *
9  * This program is distributed in the hope that it will be useful, but WITHOUT
10  * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
11  * FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License for
12  * more details.
13  */
14
15 #include "tegra210-hawkeye-pmic-p2290-1100-a00.dtsi"
16 #include "tegra210-hawkeye-fixed-p2290-1100-a00.dtsi"
17 #include "tegra210-ers-power-dvfs-e2174-1101-a00.dtsi"
18
19 / {
20
21         dfll-ovr@70110000 {
22                 status = "disabled";
23         };
24
25         dfll-max77621@70110000 {
26                 status = "okay";
27         };
28
29         pwm_regulators {
30                 pwm-regulator@0 {
31                         status = "disabled";
32                 };
33
34                 pwm-regulator@1 {
35                         status = "disabled";
36                 };
37         };
38
39         i2c@7000d000 {
40                 max77620@3c {
41                         regulators {
42                                 ldo0 {
43                                         regulator-enable-ramp-delay = <78>;
44                                         regulator-disable-ramp-delay = <2280>;
45                                         regulator-ramp-delay = <100000>;
46                                         regulator-ramp-delay-scale = <650>;
47                                 };
48
49                                 ldo2 {
50                                         regulator-enable-ramp-delay = <200>;
51                                         regulator-disable-ramp-delay = <3300>;
52                                         regulator-ramp-delay = <100000>;
53                                         regulator-ramp-delay-scale = <600>;
54                                 };
55
56                                 ldo3 {
57                                         regulator-enable-ramp-delay = <156>;
58                                         regulator-disable-ramp-delay = <5430>;
59                                         regulator-ramp-delay = <100000>;
60                                         regulator-ramp-delay-scale = <550>;
61                                 };
62
63                                 ldo4 {
64                                         regulator-enable-ramp-delay = <20>;
65                                         regulator-disable-ramp-delay = <390>;
66                                         regulator-ramp-delay = <100000>;
67                                         regulator-ramp-delay-scale = <200>;
68                                 };
69
70                                 ldo5 {
71                                         regulator-enable-ramp-delay = <440>;
72                                         regulator-disable-ramp-delay = <7650>;
73                                         regulator-ramp-delay = <100000>;
74                                         regulator-ramp-delay-scale = <1400>;
75                                 };
76
77                                 ldo6 {
78                                         regulator-enable-ramp-delay = <162>;
79                                         regulator-disable-ramp-delay = <4500>;
80                                         regulator-ramp-delay = <100000>;
81                                         regulator-ramp-delay-scale = <900>;
82                                 };
83
84                                 ldo7 {
85                                         regulator-enable-ramp-delay = <74>;
86                                         regulator-disable-ramp-delay = <7125>;
87                                         regulator-ramp-delay = <100000>;
88                                         regulator-ramp-delay-scale = <700>;
89                                 };
90
91                                 ldo8 {
92                                         regulator-enable-ramp-delay = <26>;
93                                         regulator-disable-ramp-delay = <1575>;
94                                         regulator-ramp-delay = <100000>;
95                                         regulator-ramp-delay-scale = <250>;
96                                 };
97                         };
98                 };
99         };
100
101         regulators {
102                 regulator@4 {
103                         regulator-enable-ramp-delay = <1300>;
104                         regulator-disable-ramp-delay = <2800>;
105                 };
106
107                 regulator@3 {
108                         regulator-enable-ramp-delay = <160>;
109                         regulator-disable-ramp-delay = <2000>;
110                 };
111
112                 regulator@5 {
113                         regulator-enable-ramp-delay = <200>;
114                         regulator-disable-ramp-delay = <2800>;
115                 };
116
117                 regulator@6 {
118                         regulator-enable-ramp-delay = <1400>;
119                 };
120
121                 regulator@9 {
122                         regulator-enable-ramp-delay = <500>;
123                         regulator-disable-ramp-delay = <4500>;
124                 };
125
126                 regulator@12 {
127                         regulator-enable-ramp-delay = <200>;
128                         regulator-disable-ramp-delay = <8000>;
129                 };
130
131                 regulator@13 {
132                         regulator-enable-ramp-delay = <600>;
133                         regulator-disable-ramp-delay = <3000>;
134                 };
135         };
136
137         dvfs_rails {
138                 vdd-cpu-rail-ovr@0 {
139                         status = "disabled";
140                 };
141
142                 vdd-gpu-rail-ovr@1 {
143                         status = "disabled";
144                 };
145
146                 vdd-cpu-rail-max77621@2 {
147                         status = "okay";
148                 };
149
150                 vdd-gpu-rail-max77621@3 {
151                         status = "okay";
152                 };
153         };
154
155         cpuidle {
156                 vdd-cpu-supply = <&cpu_max77621_reg>;
157                 cc4-microvolt = <618750>;
158         };
159
160         i2c@546c0000 {
161                 bus-pullup-supply = <&en_vdd_cam>;
162         };
163
164         spi@7000da00 {
165                 spi-touch-raydium19x12@0 {
166                         avdd-supply = <&max77620_ldo5>;
167                         dvdd-supply = <&max77620_ldo6>;
168                 };
169                 spi-touch-sharp19x12@0 {
170                         avdd-supply = <&max77620_ldo5>;
171                         dvdd-supply = <&max77620_ldo6>;
172                 };
173         };
174
175         udc@7d000000 {
176                 avdd_usb-supply = <&vdd_3v3>;
177                 avdd_pll_utmip-supply = <&max77620_sd3>;
178                 usb_bat_chg-supply = <&battery_charger>;
179         };
180
181         otg@7d000000 {
182                 usb_vbus-supply = <&usb0_vbus>;
183                 usb_bat_chg-supply = <&battery_charger>;
184         };
185
186         ehci@7d000000 {
187                 avdd_usb-supply = <&vdd_3v3>;
188                 avdd_pll_utmip-supply = <&max77620_sd3>;
189                 usb_vbus-supply = <&usb0_vbus>;
190         };
191
192         modem {
193                 vdd-supply = <&tps61280>;
194         };
195
196         sdhci@700b0600 {
197                 vddio_sdmmc-supply = <&max77620_sd3>; /* SDMMC4 for EMMC on hawkeye */
198                 vddio_sd_slot-supply = <&vdd_3v3>;
199         };
200
201         sdhci@700b0400 {
202                 vddio_sdmmc-supply = <&max77620_ldo2>; /* SDMMC3 for SD card on hawkeye */
203                 vddio_sd_slot-supply = <&vdd_sdcard>;
204         };
205
206         sdhci@700b0200 {
207                 vddio_sdmmc-supply = <&max77620_sd3>; /* SDMMC2 for Wifi on hawkeye */
208                 vddio_sd_slot-supply = <&vdd_3v3>;
209         };
210
211         sdhci@700b0000 {
212                 vddio_sdmmc-supply = <&max77620_sd3>; /* SDMMC1 for 2nd Wifi on hawkeye */
213                 vddio_sd_slot-supply = <&vdd_3v3>;
214         };
215
216         host1x {
217                 /* tegradc.0 */
218                 dc@54200000 {
219                         avdd_dsi_csi-supply = <&mipi_1v2>;
220                         avdd_lcd-supply = <&vdd_lcd_3v0>;
221                         dvdd_lcd-supply = <&vdd_lcd_1v8>;
222                 };
223
224                 /* tegradc.1 */
225                 dc@54240000 {
226                         avdd_hdmi-supply = <&max77620_ldo8>;
227                         avdd_hdmi_pll-supply = <&max77620_sd3>;
228                         vdd_hdmi_5v0-supply = <&vdd_hdmi>;
229                 };
230
231                 vi {
232                         avdd_dsi_csi-supply = <&mipi_1v2>;
233                 };
234
235                 vii2c {
236                         avdd_dsi_csi-supply = <&mipi_1v2>;
237                 };
238         };
239
240         bluedroid_pm {
241                 avdd-supply = <&battery_reg>;
242                 dvdd-supply = <&max77620_sd3>;
243         };
244
245         pmc-iopower {
246                 iopower-sys-supply = <&max77620_sd3>;
247                 iopower-uart-supply = <&max77620_sd3>;
248                 iopower-audio-supply = <&max77620_sd3>;
249                 iopower-cam-supply = <&max77620_sd3>;
250                 iopower-pex-ctrl-supply = <&max77620_sd3>;
251                 iopower-sdmmc1-supply = <&max77620_sd3>;
252                 iopower-sdmmc3-supply = <&max77620_ldo2>;
253                 iopower-sdmmc4-supply = <&max77620_sd3>;
254                 iopower-audio-hv-supply = <&max77620_sd3>;
255                 iopower-debug-supply = <&max77620_sd3>;
256                 iopower-dmic-supply = <&max77620_sd3>;
257                 iopower-gpio-supply = <&max77620_sd3>;
258                 iopower-spi-supply = <&max77620_sd3>;
259                 iopower-spi-hv-supply = <&max77620_sd3>;
260                 iopower-sdmmc2-supply = <&max77620_sd3>;
261                 iopower-dp-supply = <&max77620_sd3>;
262         };
263
264         thermal-zones {
265                 PMIC-Die-max77621-0 {
266                         status = "okay";
267                 };
268
269                 PMIC-Die-max77621-1 {
270                         status = "okay";
271                 };
272
273                 PMIC-Die-tps61280 {
274                         status = "okay";
275                 };
276         };
277
278         sound {
279                 spkvdd-supply = <&vdd_sys_boost>;
280                 dbvdd-supply = <&vdd_sys_boost>;
281                 avdd-supply = <&vdd_sys_boost>;
282                 dmicvdd-supply = <&max77620_sd3>;
283         };
284
285         pmc@7000e400 {
286                 bootrom-commands {
287                         reset-commands {
288                                 nvidia,command-retries-count = <2>;
289                                 nvidia,delay-between-commands-us = <10>;
290                                 nvidia,wait-before-start-bus-clear-us = <10>;
291                                 #address-cells = <1>;
292                                 #size-cells = <0>;
293                                 commands@4-003c {
294                                         nvidia,command-names = "pmic-rails";
295                                         reg = <0x3c>;
296                                         nvidia,enable-8bit-register;
297                                         nvidia,enable-8bit-data;
298                                         nvidia,controller-type-i2c;
299                                         nvidia,controller-id = <4>;
300                                         nvidia,enable-controller-reset;
301                                         nvidia,write-commands = <0x00000016 0x00000020>;
302                                 };
303                         };
304                         power-off-commands {
305                                 nvidia,command-retries-count = <2>;
306                                 nvidia,delay-between-commands-us = <10>;
307                                 nvidia,wait-before-start-bus-clear-us = <10>;
308                                 #address-cells = <1>;
309                                 #size-cells = <0>;
310                                 commands@4-003c {
311                                         nvidia,command-names = "pmic-rails";
312                                         reg = <0x3c>;
313                                         nvidia,enable-8bit-register;
314                                         nvidia,enable-8bit-data;
315                                         nvidia,controller-type-i2c;
316                                         nvidia,controller-id = <4>;
317                                         nvidia,enable-controller-reset;
318                                         nvidia,write-commands = <0x3B 0x01
319                                                                 0x42 0x5B
320                                                                 0x41 0xF8>;
321                                 };
322                         };
323                 };
324         };
325 };