]> rtime.felk.cvut.cz Git - sojka/nv-tegra/linux-3.10.git/blob - arch/arm64/boot/dts/tegra210-platforms/tegra210-jetson-cv-power-tree-p2597-2180-a00.dtsi
ARM64: dts: change FPS source for LDO0 and LDO1
[sojka/nv-tegra/linux-3.10.git] / arch / arm64 / boot / dts / tegra210-platforms / tegra210-jetson-cv-power-tree-p2597-2180-a00.dtsi
1 /*
2  * Copyright (c) 2015-2016, 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
16 #include <dt-bindings/padctrl/tegra210-pads.h>
17 #include "tegra210-jetson-common-power-tree-p2530-0930-e03.dtsi"
18
19 / {
20
21         i2c@7000d000 {
22                 max77620@3c {
23                         low-battery-monitor {
24                                 maxim,low-battery-shutdown-enable;
25                         };
26
27                         pinmux@0 {
28                                 pin_gpio1 {
29                                         maxim,fps-source = <FPS_SRC_NONE>;
30                                         maxim,fps-power-up-period = <0>;
31                                         maxim,fps-power-down-period = <7>;
32                                 };
33
34                                 pin_gpio2 {
35                                         pins = "gpio2";
36                                         maxim,fps-source = <FPS_SRC_0>;
37                                         maxim,fps-power-up-period = <0>;
38                                         maxim,fps-power-down-period = <7>;
39                                 };
40
41                                 pin_gpio3 {
42                                         pins = "gpio3";
43                                         maxim,fps-source = <FPS_SRC_0>;
44                                         maxim,fps-power-up-period = <4>;
45                                         maxim,fps-power-down-period = <3>;
46                                 };
47                         };
48
49                         fps {
50                                 fps@0 {
51                                         maxim,fps-time-period = <1280>;
52                                 };
53
54                                 fps@1 {
55                                         maxim,fps-time-period = <1280>;
56                                 };
57                         };
58
59                         regulators {
60                                 sd0 {
61                                         maxim,fps-source = <FPS_SRC_1>;
62                                         maxim,fps-power-up-period = <1>;
63                                         maxim,fps-power-down-period = <6>;
64                                         regulator-ramp-delay = <27500>;
65                                 };
66
67                                 sd1 {
68                                         maxim,fps-source = <FPS_SRC_0>;
69                                         maxim,fps-power-up-period = <5>;
70                                         maxim,fps-power-down-period = <2>;
71                                         regulator-ramp-delay = <27500>;
72                                 };
73
74                                 sd2 {
75                                         maxim,fps-source = <FPS_SRC_1>;
76                                         maxim,fps-power-up-period = <2>;
77                                         maxim,fps-power-down-period = <5>;
78                                         regulator-ramp-delay = <27500>;
79                                 };
80
81                                 sd3 {
82                                         maxim,fps-source = <FPS_SRC_0>;
83                                         maxim,fps-power-up-period = <3>;
84                                         maxim,fps-power-down-period = <4>;
85                                         regulator-ramp-delay = <27500>;
86                                 };
87
88                                 sd4 {
89                                         maxim,fps-source = <FPS_SRC_NONE>;
90                                         maxim,fps-power-up-period = <0>;
91                                         maxim,fps-power-down-period = <7>;
92                                         regulator-ramp-delay = <27500>;
93                                 };
94
95                                 ldo0 {
96                                         maxim,fps-source = <FPS_SRC_NONE>;
97                                         maxim,suspend-fps-source = <FPS_SRC_1>;
98                                         maxim,fps-power-up-period = <0>;
99                                         maxim,fps-power-down-period = <7>;
100                                         regulator-enable-ramp-delay = <84>;
101                                         regulator-disable-ramp-delay = <14700>;
102                                         regulator-ramp-delay = <100000>;
103                                         regulator-ramp-delay-scale = <750>;
104                                 };
105
106                                 ldo1 {
107                                         maxim,fps-source = <FPS_SRC_0>;
108                                         maxim,suspend-fps-source = <FPS_SRC_1>;
109                                         maxim,fps-power-up-period = <0>;
110                                         maxim,fps-power-down-period = <3>;
111                                         regulator-enable-ramp-delay = <34>;
112                                         regulator-disable-ramp-delay = <660>;
113                                         regulator-ramp-delay = <100000>;
114                                         regulator-ramp-delay-scale = <350>;
115                                 };
116
117                                 ldo2 {
118                                         regulator-name = "vddio-sdmmc1";
119                                         maxim,fps-source = <FPS_SRC_NONE>;
120                                         maxim,fps-power-up-period = <0>;
121                                         maxim,fps-power-down-period = <7>;
122                                         regulator-enable-ramp-delay = <300>;
123                                         regulator-disable-ramp-delay = <64000>;
124                                         regulator-ramp-delay = <100000>;
125                                         regulator-ramp-delay-scale = <950>;
126                                 };
127
128                                 ldo3 {
129                                         maxim,fps-source = <FPS_SRC_NONE>;
130                                         maxim,fps-power-up-period = <0>;
131                                         maxim,fps-power-down-period = <7>;
132                                         regulator-ramp-delay = <100000>;
133                                 };
134
135                                 ldo4 {
136                                         maxim,fps-source = <FPS_SRC_0>;
137                                         maxim,fps-power-up-period = <1>;
138                                         maxim,fps-power-down-period = <6>;
139                                         regulator-enable-ramp-delay = <23>;
140                                         regulator-disable-ramp-delay = <1100>;
141                                         regulator-ramp-delay = <100000>;
142                                         regulator-ramp-delay-scale = <250>;
143                                         regulator-disable-active-discharge;
144                                 };
145
146                                 ldo5 {
147                                         maxim,fps-source = <FPS_SRC_NONE>;
148                                         maxim,fps-power-up-period = <0>;
149                                         maxim,fps-power-down-period = <7>;
150                                         regulator-ramp-delay = <100000>;
151                                 };
152
153                                 ldo6 {
154                                         /delete-property/ regulator-always-on;
155                                         /delete-property/ regulator-boot-on;
156                                         regulator-boot-off;
157                                         maxim,fps-source = <FPS_SRC_NONE>;
158                                         maxim,fps-power-up-period = <0>;
159                                         maxim,fps-power-down-period = <7>;
160                                         regulator-ramp-delay = <100000>;
161                                 };
162
163                                 ldo7 {
164                                         maxim,fps-source = <FPS_SRC_1>;
165                                         maxim,fps-power-up-period = <3>;
166                                         maxim,fps-power-down-period = <4>;
167                                         regulator-enable-ramp-delay = <124>;
168                                         regulator-disable-ramp-delay = <24000>;
169                                         regulator-ramp-delay = <100000>;
170                                         regulator-ramp-delay-scale = <1200>;
171                                 };
172
173                                 ldo8 {
174                                         maxim,fps-source = <FPS_SRC_1>;
175                                         maxim,fps-power-up-period = <6>;
176                                         maxim,fps-power-down-period = <1>;
177                                         regulator-enable-ramp-delay = <93>;
178                                         regulator-disable-ramp-delay = <10000>;
179                                         regulator-ramp-delay = <100000>;
180                                         regulator-ramp-delay-scale = <900>;
181                                 };
182
183                         };
184                 };
185         };
186
187         regulators {
188                 compatible = "simple-bus";
189                 device_type = "fixed-regulators";
190                 #address-cells = <1>;
191                 #size-cells = <0>;
192
193                 max77620_gpio7: regulator@2 {
194                         regulator-min-microvolt = <1050000>;
195                         regulator-max-microvolt = <1050000>;
196                         vin-supply = <&max77620_ldo7>;
197                 };
198
199                 en_vdd_sd: regulator@4 {
200                         gpio = <&gpio TEGRA_GPIO(Z, 3) 0>;
201                 };
202
203                 en_vdd_cam: regulator@5 {
204                         gpio = <&tca9539_77 9 1>;
205                 };
206
207                 vdd_hdmi: regulator@7 {
208                         gpio = <&tca9539_74 12 1>;
209                         vin-supply = <&vdd_3v3>;
210                 };
211
212                 vdd_fan: regulator@13 {
213                         gpio = <&tca9539_74 4 0>;
214                 };
215
216                 en_vdd_ts_1v8: regulator@201 {
217                         compatible = "regulator-fixed-sync";
218                         reg = <201>;
219                         regulator-name = "en-vdd-ts-1v8";
220                         regulator-min-microvolt = <1800000>;
221                         regulator-max-microvolt = <1800000>;
222                         gpio = <&tca9539_74 1 1>;
223                         enable-active-high;
224                 };
225
226                 en_vdd_ts_hv_3v3: regulator@202 {
227                         compatible = "regulator-fixed-sync";
228                         reg = <202>;
229                         regulator-name = "en-vdd-ts-hv-3v3";
230                         regulator-min-microvolt = <3300000>;
231                         regulator-max-microvolt = <3300000>;
232                         gpio = <&tca9539_74 2 1>;
233                         enable-active-high;
234                 };
235
236                 en_avdd_disp_3v3: regulator@203 {
237                         compatible = "regulator-fixed-sync";
238                         reg = <203>;
239                         regulator-name = "en-vdd-disp-3v3";
240                         regulator-min-microvolt = <3300000>;
241                         regulator-max-microvolt = <3300000>;
242                         regulator-boot-on;
243                         gpio = <&tca9539_74 3 1>;
244                         enable-active-high;
245                 };
246
247
248                 en_mdm_pwr_3v7: regulator@204 {
249                         compatible = "regulator-fixed-sync";
250                         reg = <204>;
251                         regulator-name = "en-mdm-pwr-3v7";
252                         regulator-min-microvol = <3700000>;
253                         regulator-max-microvol = <3700000>;
254                         gpio = <&tca9539_74 7 1>;
255                         enable-active-high;
256                 };
257
258                 en_dvdd_disp_1v8: regulator@205 {
259                         compatible = "regulator-fixed-sync";
260                         reg = <205>;
261                         regulator-name = "en-vdd-disp-1v8";
262                         regulator-min-microvolt = <1800000>;
263                         regulator-max-microvolt = <1800000>;
264                         regulator-boot-on;
265                         gpio = <&tca9539_74 9 1>;
266                         enable-active-high;
267                 };
268
269                 en_vdd_cam_hv_2v8: regulator@206 {
270                         compatible = "regulator-fixed-sync";
271                         reg = <206>;
272                         regulator-name = "en-vdd-cam-hv-2v8";
273                         regulator-min-microvol = <2800000>;
274                         regulator-max-microvol = <2800000>;
275                         gpio = <&tca9539_74 13 1>;
276                         enable-active-high;
277                         consumers {
278                                 c0 {
279                                         regulator-consumer-supply = "vana";
280                                 };
281                         };
282                 };
283
284                 en_vdd_eth_5v0: regulator@207 {
285                         compatible = "regulator-fixed-sync";
286                         reg = <207>;
287                         regulator-name = "rtl-5v0";
288                         regulator-min-microvol = <5000000>;
289                         regulator-max-microvol = <5000000>;
290                         gpio = <&gpio TEGRA_GPIO(H, 1) 0>;
291                         enable-active-high;
292                 };
293
294                 en_usb_vbus2: regulator@208 {
295                         compatible = "regulator-fixed-sync";
296                         reg = <208>;
297                         regulator-name = "en-usb-vbus2";
298                         regulator-min-microvol = <5000000>;
299                         regulator-max-microvol = <5000000>;
300                         gpio = <&gpio TEGRA_GPIO(CC, 5) 0>;
301                         enable-active-high;
302                 };
303
304                 en_vdd_cam_1v2: regulator@209 {
305                         compatible = "regulator-fixed-sync";
306                         reg = <209>;
307                         regulator-name = "en-vdd-cam-1v2";
308                         regulator-min-microvol = <1200000>;
309                         regulator-max-microvol = <1200000>;
310                         vin-supply = <&vdd_3v3>;
311                         gpio = <&tca9539_77 3 1>;
312                         enable-active-high;
313                 };
314
315                 en_vdd_vcm_2v8: regulator@210 {
316                         compatible = "regulator-fixed-sync";
317                         reg = <210>;
318                         regulator-name = "en-vdd-vcm-2v8";
319                         regulator-min-microvol = <2800000>;
320                         regulator-max-microvol = <2800000>;
321                         vin-supply = <&vdd_3v3>;
322                         enable-active-high;
323                 };
324
325                 en_vdd_cam_1v2_alt: regulator@211 {
326                         compatible = "regulator-fixed-sync";
327                         reg = <211>;
328                         regulator-name = "en-vdd-cam-1v2-alt";
329                         regulator-min-microvol = <1200000>;
330                         regulator-max-microvol = <1200000>;
331                         gpio = <&tca9539_77 10 1>;
332                         enable-active-high;
333                 };
334         };
335
336         host1x {
337                 dc@54200000 {
338                         avdd_dsi_csi-supply = <&max77620_ldo0>;
339                         avdd_lcd-supply = <&en_avdd_disp_3v3>;
340                         dvdd_lcd-supply = <&en_dvdd_disp_1v8>;
341                         vdd_lcd_bl_en-supply = <&lcd_bl_en>;
342                         vdd_lcd_bl-supply = <&vdd_3v3>;
343
344                         /* eDP */
345                         vdd_ds_1v8-supply  = <&en_dvdd_disp_1v8>;
346                         avdd_io_edp-supply = <&max77620_gpio7>;
347                 };
348
349                 i2c@546c0000 {
350                         bus-pullup-supply = <&max77620_sd3>;
351                         avdd_dsi_csi-supply = <&max77620_sd3>;
352                 };
353                 vi {
354                         avdd_dsi_csi-supply = <&max77620_ldo0>;
355                 };
356         };
357
358         pwm-fan {
359                 vdd-fan-supply = <&vdd_fan>;
360         };
361
362         otg@7d000000 {
363                 usb_vbus-supply = <&usb_vbus1>;
364         };
365
366         xusb@70090000 {
367                 usb_vbus1-supply = <&en_vdd_eth_5v0>;
368                 usb_vbus2-supply = <&en_usb_vbus2>;
369         };
370
371         spi@7000da00 {
372                 spi-touch19x12@0 {
373                         avdd-supply = <&en_vdd_ts_hv_3v3>;
374                         dvdd-supply = <&en_vdd_ts_1v8>;
375                 };
376         };
377
378         pmc-iopower {
379                 iopower-sys-supply = <&max77620_sd3>;
380                 iopower-uart-supply = <&max77620_sd3>;
381                 iopower-audio-supply = <&max77620_sd3>;
382                 iopower-cam-supply = <&max77620_sd3>;
383                 iopower-pex-ctrl-supply = <&max77620_sd3>;
384                 iopower-sdmmc1-supply = <&max77620_ldo2>;
385                 iopower-sdmmc3-supply = <&max77620_sd3>;
386                 iopower-sdmmc4-supply = <&max77620_sd3>;
387                 iopower-audio-hv-supply = <&max77620_sd3>;
388                 iopower-debug-supply = <&max77620_sd3>;
389                 iopower-dmic-supply = <&max77620_sd3>;
390                 iopower-gpio-supply = <&max77620_sd3>;
391                 iopower-spi-supply = <&max77620_sd3>;
392                 iopower-spi-hv-supply = <&max77620_sd3>;
393                 iopower-sdmmc2-supply = <&max77620_sd3>;
394                 iopower-dp-supply = <&max77620_sd3>;
395         };
396
397         pmc@7000e400 {
398                 io-pad-defaults {
399                         audio-hv {
400                                 nvidia,io-pad-init-voltage = <IO_PAD_VOLTAGE_1_8V>;
401                         };
402
403                         spi-hv {
404                                 nvidia,io-pad-init-voltage = <IO_PAD_VOLTAGE_1_8V>;
405                         };
406
407                         gpio {
408                                 nvidia,io-pad-init-voltage = <IO_PAD_VOLTAGE_1_8V>;
409                         };
410                         sdmmc3 {
411                                 nvidia,io-pad-init-voltage = <IO_PAD_VOLTAGE_1_8V>;
412                         };
413                 };
414         };
415 };