Merge tag 'timers-urgent-2020-12-27' of git://git.kernel.org/pub/scm/linux/kernel...
[linux-2.6-microblaze.git] / arch / arm64 / boot / dts / nvidia / tegra210-p3450-0000.dts
1 // SPDX-License-Identifier: GPL-2.0
2 /dts-v1/;
3
4 #include <dt-bindings/input/gpio-keys.h>
5 #include <dt-bindings/input/linux-event-codes.h>
6 #include <dt-bindings/mfd/max77620.h>
7
8 #include "tegra210.dtsi"
9
10 / {
11         model = "NVIDIA Jetson Nano Developer Kit";
12         compatible = "nvidia,p3450-0000", "nvidia,tegra210";
13
14         aliases {
15                 ethernet = "/pcie@1003000/pci@2,0/ethernet@0,0";
16                 rtc0 = "/i2c@7000d000/pmic@3c";
17                 rtc1 = "/rtc@7000e000";
18                 serial0 = &uarta;
19         };
20
21         chosen {
22                 stdout-path = "serial0:115200n8";
23         };
24
25         memory@80000000 {
26                 device_type = "memory";
27                 reg = <0x0 0x80000000 0x1 0x0>;
28         };
29
30         pcie@1003000 {
31                 status = "okay";
32
33                 avdd-pll-uerefe-supply = <&vdd_pex_1v05>;
34                 hvddio-pex-supply = <&vdd_1v8>;
35                 dvddio-pex-supply = <&vdd_pex_1v05>;
36                 dvdd-pex-pll-supply = <&vdd_pex_1v05>;
37                 hvdd-pex-pll-e-supply = <&vdd_1v8>;
38                 vddio-pex-ctl-supply = <&vdd_1v8>;
39
40                 pci@1,0 {
41                         phys = <&{/padctl@7009f000/pads/pcie/lanes/pcie-1}>,
42                                <&{/padctl@7009f000/pads/pcie/lanes/pcie-2}>,
43                                <&{/padctl@7009f000/pads/pcie/lanes/pcie-3}>,
44                                <&{/padctl@7009f000/pads/pcie/lanes/pcie-4}>;
45                         phy-names = "pcie-0", "pcie-1", "pcie-2", "pcie-3";
46                         nvidia,num-lanes = <4>;
47                         status = "okay";
48                 };
49
50                 pci@2,0 {
51                         phys = <&{/padctl@7009f000/pads/pcie/lanes/pcie-0}>;
52                         phy-names = "pcie-0";
53                         status = "okay";
54
55                         ethernet@0,0 {
56                                 reg = <0x000000 0 0 0 0>;
57                                 local-mac-address = [ 00 00 00 00 00 00 ];
58                         };
59                 };
60         };
61
62         host1x@50000000 {
63                 dpaux@54040000 {
64                         status = "okay";
65                 };
66
67                 vi@54080000 {
68                         status = "okay";
69
70                         avdd-dsi-csi-supply = <&vdd_sys_1v2>;
71
72                         csi@838 {
73                                 status = "okay";
74                         };
75                 };
76
77                 sor@54540000 {
78                         status = "okay";
79
80                         avdd-io-hdmi-dp-supply = <&avdd_io_edp_1v05>;
81                         vdd-hdmi-dp-pll-supply = <&vdd_1v8>;
82
83                         nvidia,xbar-cfg = <2 1 0 3 4>;
84                         nvidia,dpaux = <&dpaux>;
85                 };
86
87                 sor@54580000 {
88                         status = "okay";
89
90                         avdd-io-hdmi-dp-supply = <&avdd_1v05>;
91                         vdd-hdmi-dp-pll-supply = <&vdd_1v8>;
92                         hdmi-supply = <&vdd_hdmi>;
93
94                         nvidia,ddc-i2c-bus = <&hdmi_ddc>;
95                         nvidia,hpd-gpio = <&gpio TEGRA_GPIO(CC, 1)
96                                            GPIO_ACTIVE_LOW>;
97                         nvidia,xbar-cfg = <0 1 2 3 4>;
98                 };
99
100                 dpaux@545c0000 {
101                         status = "okay";
102                 };
103
104                 i2c@546c0000 {
105                         status = "okay";
106                 };
107         };
108
109         gpu@57000000 {
110                 vdd-supply = <&vdd_gpu>;
111                 status = "okay";
112         };
113
114         pinmux@700008d4 {
115                 dvfs_pwm_active_state: dvfs_pwm_active {
116                         dvfs_pwm_pbb1 {
117                                 nvidia,pins = "dvfs_pwm_pbb1";
118                                 nvidia,tristate = <TEGRA_PIN_DISABLE>;
119                         };
120                 };
121
122                 dvfs_pwm_inactive_state: dvfs_pwm_inactive {
123                         dvfs_pwm_pbb1 {
124                                 nvidia,pins = "dvfs_pwm_pbb1";
125                                 nvidia,tristate = <TEGRA_PIN_ENABLE>;
126                         };
127                 };
128         };
129
130         /* debug port */
131         serial@70006000 {
132                 status = "okay";
133         };
134
135         pwm@7000a000 {
136                 status = "okay";
137         };
138
139         i2c@7000c500 {
140                 status = "okay";
141                 clock-frequency = <100000>;
142
143                 eeprom@50 {
144                         compatible = "atmel,24c02";
145                         reg = <0x50>;
146
147                         label = "module";
148                         vcc-supply = <&vdd_1v8>;
149                         address-width = <8>;
150                         pagesize = <8>;
151                         size = <256>;
152                         read-only;
153                 };
154
155                 eeprom@57 {
156                         compatible = "atmel,24c02";
157                         reg = <0x57>;
158
159                         label = "system";
160                         vcc-supply = <&vdd_1v8>;
161                         address-width = <8>;
162                         pagesize = <8>;
163                         size = <256>;
164                         read-only;
165                 };
166         };
167
168         hdmi_ddc: i2c@7000c700 {
169                 status = "okay";
170                 clock-frequency = <100000>;
171         };
172
173         i2c@7000d000 {
174                 status = "okay";
175                 clock-frequency = <400000>;
176
177                 pmic: pmic@3c {
178                         compatible = "maxim,max77620";
179                         reg = <0x3c>;
180                         interrupt-parent = <&tegra_pmc>;
181                         interrupts = <51 IRQ_TYPE_LEVEL_LOW>;
182
183                         #interrupt-cells = <2>;
184                         interrupt-controller;
185
186                         #gpio-cells = <2>;
187                         gpio-controller;
188
189                         pinctrl-names = "default";
190                         pinctrl-0 = <&max77620_default>;
191
192                         max77620_default: pinmux {
193                                 gpio0 {
194                                         pins = "gpio0";
195                                         function = "gpio";
196                                 };
197
198                                 gpio1 {
199                                         pins = "gpio1";
200                                         function = "fps-out";
201                                         drive-push-pull = <1>;
202                                         maxim,active-fps-source = <MAX77620_FPS_SRC_NONE>;
203                                         maxim,active-fps-power-up-slot = <0>;
204                                         maxim,active-fps-power-down-slot = <7>;
205                                 };
206
207                                 gpio2 {
208                                         pins = "gpio2";
209                                         function = "fps-out";
210                                         drive-open-drain = <1>;
211                                         maxim,active-fps-source = <MAX77620_FPS_SRC_0>;
212                                         maxim,active-fps-power-up-slot = <0>;
213                                         maxim,active-fps-power-down-slot = <7>;
214                                 };
215
216                                 gpio3 {
217                                         pins = "gpio3";
218                                         function = "fps-out";
219                                         drive-open-drain = <1>;
220                                         maxim,active-fps-source = <MAX77620_FPS_SRC_0>;
221                                         maxim,active-fps-power-up-slot = <4>;
222                                         maxim,active-fps-power-down-slot = <3>;
223                                 };
224
225                                 gpio4 {
226                                         pins = "gpio4";
227                                         function = "32k-out1";
228                                 };
229
230                                 gpio5_6_7 {
231                                         pins = "gpio5", "gpio6", "gpio7";
232                                         function = "gpio";
233                                         drive-push-pull = <1>;
234                                 };
235                         };
236
237                         fps {
238                                 fps0 {
239                                         maxim,fps-event-source = <MAX77620_FPS_EVENT_SRC_EN0>;
240                                         maxim,suspend-fps-time-period-us = <5120>;
241                                 };
242
243                                 fps1 {
244                                         maxim,fps-event-source = <MAX77620_FPS_EVENT_SRC_EN1>;
245                                         maxim,suspend-fps-time-period-us = <5120>;
246                                 };
247
248                                 fps2 {
249                                         maxim,fps-event-source = <MAX77620_FPS_EVENT_SRC_EN0>;
250                                 };
251                         };
252
253                         regulators {
254                                 in-ldo0-1-supply = <&vdd_pre>;
255                                 in-ldo2-supply = <&vdd_3v3_sys>;
256                                 in-ldo3-5-supply = <&vdd_1v8>;
257                                 in-ldo4-6-supply = <&vdd_5v0_sys>;
258                                 in-ldo7-8-supply = <&vdd_pre>;
259                                 in-sd0-supply = <&vdd_5v0_sys>;
260                                 in-sd1-supply = <&vdd_5v0_sys>;
261                                 in-sd2-supply = <&vdd_5v0_sys>;
262                                 in-sd3-supply = <&vdd_5v0_sys>;
263
264                                 vdd_soc: sd0 {
265                                         regulator-name = "VDD_SOC";
266                                         regulator-min-microvolt = <1000000>;
267                                         regulator-max-microvolt = <1170000>;
268                                         regulator-enable-ramp-delay = <146>;
269                                         regulator-disable-ramp-delay = <4080>;
270                                         regulator-ramp-delay = <27500>;
271                                         regulator-ramp-delay-scale = <300>;
272                                         regulator-always-on;
273                                         regulator-boot-on;
274
275                                         maxim,active-fps-source = <MAX77620_FPS_SRC_1>;
276                                         maxim,active-fps-power-up-slot = <1>;
277                                         maxim,active-fps-power-down-slot = <6>;
278                                 };
279
280                                 vdd_ddr: sd1 {
281                                         regulator-name = "VDD_DDR_1V1_PMIC";
282                                         regulator-min-microvolt = <1150000>;
283                                         regulator-max-microvolt = <1150000>;
284                                         regulator-enable-ramp-delay = <176>;
285                                         regulator-disable-ramp-delay = <145800>;
286                                         regulator-ramp-delay = <27500>;
287                                         regulator-ramp-delay-scale = <300>;
288                                         regulator-always-on;
289                                         regulator-boot-on;
290
291                                         maxim,active-fps-source = <MAX77620_FPS_SRC_0>;
292                                         maxim,active-fps-power-up-slot = <5>;
293                                         maxim,active-fps-power-down-slot = <2>;
294                                 };
295
296                                 vdd_pre: sd2 {
297                                         regulator-name = "VDD_PRE_REG_1V35";
298                                         regulator-min-microvolt = <1350000>;
299                                         regulator-max-microvolt = <1350000>;
300                                         regulator-enable-ramp-delay = <176>;
301                                         regulator-disable-ramp-delay = <32000>;
302                                         regulator-ramp-delay = <27500>;
303                                         regulator-ramp-delay-scale = <350>;
304                                         regulator-always-on;
305                                         regulator-boot-on;
306
307                                         maxim,active-fps-source = <MAX77620_FPS_SRC_1>;
308                                         maxim,active-fps-power-up-slot = <2>;
309                                         maxim,active-fps-power-down-slot = <5>;
310                                 };
311
312                                 vdd_1v8: sd3 {
313                                         regulator-name = "VDD_1V8";
314                                         regulator-min-microvolt = <1800000>;
315                                         regulator-max-microvolt = <1800000>;
316                                         regulator-enable-ramp-delay = <242>;
317                                         regulator-disable-ramp-delay = <118000>;
318                                         regulator-ramp-delay = <27500>;
319                                         regulator-ramp-delay-scale = <360>;
320                                         regulator-always-on;
321                                         regulator-boot-on;
322
323                                         maxim,active-fps-source = <MAX77620_FPS_SRC_0>;
324                                         maxim,active-fps-power-up-slot = <3>;
325                                         maxim,active-fps-power-down-slot = <4>;
326                                 };
327
328                                 vdd_sys_1v2: ldo0 {
329                                         regulator-name = "AVDD_SYS_1V2";
330                                         regulator-min-microvolt = <1200000>;
331                                         regulator-max-microvolt = <1200000>;
332                                         regulator-enable-ramp-delay = <26>;
333                                         regulator-disable-ramp-delay = <626>;
334                                         regulator-ramp-delay = <100000>;
335                                         regulator-ramp-delay-scale = <200>;
336                                         regulator-always-on;
337                                         regulator-boot-on;
338
339                                         maxim,active-fps-source = <MAX77620_FPS_SRC_NONE>;
340                                         maxim,active-fps-power-up-slot = <0>;
341                                         maxim,active-fps-power-down-slot = <7>;
342                                 };
343
344                                 vdd_pex_1v05: ldo1 {
345                                         regulator-name = "VDD_PEX_1V05";
346                                         regulator-min-microvolt = <1050000>;
347                                         regulator-max-microvolt = <1050000>;
348                                         regulator-enable-ramp-delay = <22>;
349                                         regulator-disable-ramp-delay = <650>;
350                                         regulator-ramp-delay = <100000>;
351                                         regulator-ramp-delay-scale = <200>;
352
353                                         maxim,active-fps-source = <MAX77620_FPS_SRC_NONE>;
354                                         maxim,active-fps-power-up-slot = <0>;
355                                         maxim,active-fps-power-down-slot = <7>;
356                                 };
357
358                                 vddio_sdmmc: ldo2 {
359                                         regulator-name = "VDDIO_SDMMC";
360                                         regulator-min-microvolt = <1800000>;
361                                         regulator-max-microvolt = <3300000>;
362                                         regulator-enable-ramp-delay = <62>;
363                                         regulator-disable-ramp-delay = <650>;
364                                         regulator-ramp-delay = <100000>;
365                                         regulator-ramp-delay-scale = <200>;
366
367                                         maxim,active-fps-source = <MAX77620_FPS_SRC_NONE>;
368                                         maxim,active-fps-power-up-slot = <0>;
369                                         maxim,active-fps-power-down-slot = <7>;
370                                 };
371
372                                 ldo3 {
373                                         status = "disabled";
374                                 };
375
376                                 vdd_rtc: ldo4 {
377                                         regulator-name = "VDD_RTC";
378                                         regulator-min-microvolt = <850000>;
379                                         regulator-max-microvolt = <1100000>;
380                                         regulator-enable-ramp-delay = <22>;
381                                         regulator-disable-ramp-delay = <610>;
382                                         regulator-ramp-delay = <100000>;
383                                         regulator-ramp-delay-scale = <200>;
384                                         regulator-disable-active-discharge;
385                                         regulator-always-on;
386                                         regulator-boot-on;
387
388                                         maxim,active-fps-source = <MAX77620_FPS_SRC_0>;
389                                         maxim,active-fps-power-up-slot = <1>;
390                                         maxim,active-fps-power-down-slot = <6>;
391                                 };
392
393                                 ldo5 {
394                                         status = "disabled";
395                                 };
396
397                                 ldo6 {
398                                         status = "disabled";
399                                 };
400
401                                 avdd_1v05_pll: ldo7 {
402                                         regulator-name = "AVDD_1V05_PLL";
403                                         regulator-min-microvolt = <1050000>;
404                                         regulator-max-microvolt = <1050000>;
405                                         regulator-enable-ramp-delay = <24>;
406                                         regulator-disable-ramp-delay = <2768>;
407                                         regulator-ramp-delay = <100000>;
408                                         regulator-ramp-delay-scale = <200>;
409
410                                         maxim,active-fps-source = <MAX77620_FPS_SRC_1>;
411                                         maxim,active-fps-power-up-slot = <3>;
412                                         maxim,active-fps-power-down-slot = <4>;
413                                 };
414
415                                 avdd_1v05: ldo8 {
416                                         regulator-name = "AVDD_SATA_HDMI_DP_1V05";
417                                         regulator-min-microvolt = <1050000>;
418                                         regulator-max-microvolt = <1050000>;
419                                         regulator-enable-ramp-delay = <22>;
420                                         regulator-disable-ramp-delay = <1160>;
421                                         regulator-ramp-delay = <100000>;
422                                         regulator-ramp-delay-scale = <200>;
423
424                                         maxim,active-fps-source = <MAX77620_FPS_SRC_1>;
425                                         maxim,active-fps-power-up-slot = <6>;
426                                         maxim,active-fps-power-down-slot = <1>;
427                                 };
428                         };
429                 };
430         };
431
432         pmc@7000e400 {
433                 nvidia,invert-interrupt;
434                 nvidia,suspend-mode = <0>;
435                 nvidia,cpu-pwr-good-time = <0>;
436                 nvidia,cpu-pwr-off-time = <0>;
437                 nvidia,core-pwr-good-time = <4587 3876>;
438                 nvidia,core-pwr-off-time = <39065>;
439                 nvidia,core-power-req-active-high;
440                 nvidia,sys-clock-req-active-high;
441         };
442
443         hda@70030000 {
444                 nvidia,model = "jetson-nano-hda";
445
446                 status = "okay";
447         };
448
449         usb@70090000 {
450                 phys = <&{/padctl@7009f000/pads/usb2/lanes/usb2-0}>,
451                        <&{/padctl@7009f000/pads/usb2/lanes/usb2-1}>,
452                        <&{/padctl@7009f000/pads/usb2/lanes/usb2-2}>,
453                        <&{/padctl@7009f000/pads/pcie/lanes/pcie-6}>;
454                 phy-names = "usb2-0", "usb2-1", "usb2-2", "usb3-0";
455
456                 avdd-usb-supply = <&vdd_3v3_sys>;
457                 dvddio-pex-supply = <&vdd_pex_1v05>;
458                 hvddio-pex-supply = <&vdd_1v8>;
459                 /* these really belong to the XUSB pad controller */
460                 avdd-pll-utmip-supply = <&vdd_1v8>;
461                 avdd-pll-uerefe-supply = <&vdd_pex_1v05>;
462                 dvdd-usb-ss-pll-supply = <&vdd_pex_1v05>;
463                 hvdd-usb-ss-pll-e-supply = <&vdd_1v8>;
464
465                 status = "okay";
466         };
467
468         padctl@7009f000 {
469                 status = "okay";
470
471                 avdd-pll-utmip-supply = <&vdd_1v8>;
472                 avdd-pll-uerefe-supply = <&vdd_pex_1v05>;
473                 dvdd-pex-pll-supply = <&vdd_pex_1v05>;
474                 hvdd-pex-pll-e-supply = <&vdd_1v8>;
475
476                 pads {
477                         usb2 {
478                                 status = "okay";
479
480                                 lanes {
481                                         micro_b: usb2-0 {
482                                                 nvidia,function = "xusb";
483                                                 status = "okay";
484                                         };
485
486                                         usb2-1 {
487                                                 nvidia,function = "xusb";
488                                                 status = "okay";
489                                         };
490
491                                         usb2-2 {
492                                                 nvidia,function = "xusb";
493                                                 status = "okay";
494                                         };
495                                 };
496                         };
497
498                         pcie {
499                                 status = "okay";
500
501                                 lanes {
502                                         pcie-0 {
503                                                 nvidia,function = "pcie-x1";
504                                                 status = "okay";
505                                         };
506
507                                         pcie-1 {
508                                                 nvidia,function = "pcie-x4";
509                                                 status = "okay";
510                                         };
511
512                                         pcie-2 {
513                                                 nvidia,function = "pcie-x4";
514                                                 status = "okay";
515                                         };
516
517                                         pcie-3 {
518                                                 nvidia,function = "pcie-x4";
519                                                 status = "okay";
520                                         };
521
522                                         pcie-4 {
523                                                 nvidia,function = "pcie-x4";
524                                                 status = "okay";
525                                         };
526
527                                         pcie-5 {
528                                                 nvidia,function = "usb3-ss";
529                                                 status = "okay";
530                                         };
531
532                                         pcie-6 {
533                                                 nvidia,function = "usb3-ss";
534                                                 status = "okay";
535                                         };
536                                 };
537                         };
538                 };
539
540                 ports {
541                         usb2-0 {
542                                 status = "okay";
543                                 mode = "peripheral";
544                                 usb-role-switch;
545
546                                 vbus-supply = <&vdd_5v0_usb>;
547
548                                 connector {
549                                         compatible = "gpio-usb-b-connector",
550                                                      "usb-b-connector";
551                                         label = "micro-USB";
552                                         type = "micro";
553                                         vbus-gpios = <&gpio TEGRA_GPIO(CC, 4)
554                                                       GPIO_ACTIVE_LOW>;
555                                 };
556                         };
557
558                         usb2-1 {
559                                 status = "okay";
560                                 mode = "host";
561                         };
562
563                         usb2-2 {
564                                 status = "okay";
565                                 mode = "host";
566                         };
567
568                         usb3-0 {
569                                 status = "okay";
570                                 nvidia,usb2-companion = <1>;
571                                 vbus-supply = <&vdd_hub_3v3>;
572                         };
573                 };
574         };
575
576         mmc@700b0000 {
577                 status = "okay";
578                 bus-width = <4>;
579
580                 cd-gpios = <&gpio TEGRA_GPIO(Z, 1) GPIO_ACTIVE_LOW>;
581                 disable-wp;
582
583                 vqmmc-supply = <&vddio_sdmmc>;
584                 vmmc-supply = <&vdd_3v3_sd>;
585         };
586
587         mmc@700b0400 {
588                 status = "okay";
589                 bus-width = <4>;
590
591                 vqmmc-supply = <&vdd_1v8>;
592                 vmmc-supply = <&vdd_3v3_sys>;
593
594                 non-removable;
595                 cap-sdio-irq;
596                 keep-power-in-suspend;
597                 wakeup-source;
598         };
599
600         usb@700d0000 {
601                 status = "okay";
602                 phys = <&micro_b>;
603                 phy-names = "usb2-0";
604                 avddio-usb-supply = <&vdd_3v3_sys>;
605                 hvdd-usb-supply = <&vdd_1v8>;
606         };
607
608         clock@70110000 {
609                 status = "okay";
610
611                 nvidia,cf = <6>;
612                 nvidia,ci = <0>;
613                 nvidia,cg = <2>;
614                 nvidia,droop-ctrl = <0x00000f00>;
615                 nvidia,force-mode = <1>;
616                 nvidia,sample-rate = <25000>;
617
618                 nvidia,pwm-min-microvolts = <708000>;
619                 nvidia,pwm-period-nanoseconds = <2500>; /* 2.5us */
620                 nvidia,pwm-to-pmic;
621                 nvidia,pwm-tristate-microvolts = <1000000>;
622                 nvidia,pwm-voltage-step-microvolts = <19200>;
623
624                 pinctrl-names = "dvfs_pwm_enable", "dvfs_pwm_disable";
625                 pinctrl-0 = <&dvfs_pwm_active_state>;
626                 pinctrl-1 = <&dvfs_pwm_inactive_state>;
627         };
628
629         aconnect@702c0000 {
630                 status = "okay";
631
632                 dma-controller@702e2000 {
633                         status = "okay";
634                 };
635
636                 interrupt-controller@702f9000 {
637                         status = "okay";
638                 };
639         };
640
641         clk32k_in: clock@0 {
642                 compatible = "fixed-clock";
643                 clock-frequency = <32768>;
644                 #clock-cells = <0>;
645         };
646
647         cpus {
648                 cpu@0 {
649                         enable-method = "psci";
650                 };
651
652                 cpu@1 {
653                         enable-method = "psci";
654                 };
655
656                 cpu@2 {
657                         enable-method = "psci";
658                 };
659
660                 cpu@3 {
661                         enable-method = "psci";
662                 };
663
664                 idle-states {
665                         cpu-sleep {
666                                 status = "okay";
667                         };
668                 };
669         };
670
671         fan: fan {
672                 compatible = "pwm-fan";
673                 pwms = <&pwm 3 45334>;
674
675                 cooling-levels = <0 64 128 255>;
676                 #cooling-cells = <2>;
677         };
678
679         thermal-zones {
680                 cpu {
681                         trips {
682                                 cpu_trip_critical: critical {
683                                         temperature = <96500>;
684                                         hysteresis = <0>;
685                                         type = "critical";
686                                 };
687
688                                 cpu_trip_hot: hot {
689                                         temperature = <70000>;
690                                         hysteresis = <2000>;
691                                         type = "hot";
692                                 };
693
694                                 cpu_trip_active: active {
695                                         temperature = <50000>;
696                                         hysteresis = <2000>;
697                                         type = "active";
698                                 };
699
700                                 cpu_trip_passive: passive {
701                                         temperature = <30000>;
702                                         hysteresis = <2000>;
703                                         type = "passive";
704                                 };
705                         };
706
707                         cooling-maps {
708                                 cpu-critical {
709                                         cooling-device = <&fan 3 3>;
710                                         trip = <&cpu_trip_critical>;
711                                 };
712
713                                 cpu-hot {
714                                         cooling-device = <&fan 2 2>;
715                                         trip = <&cpu_trip_hot>;
716                                 };
717
718                                 cpu-active {
719                                         cooling-device = <&fan 1 1>;
720                                         trip = <&cpu_trip_active>;
721                                 };
722
723                                 cpu-passive {
724                                         cooling-device = <&fan 0 0>;
725                                         trip = <&cpu_trip_passive>;
726                                 };
727                         };
728                 };
729         };
730
731         gpio-keys {
732                 compatible = "gpio-keys";
733
734                 power {
735                         label = "Power";
736                         gpios = <&gpio TEGRA_GPIO(X, 5) GPIO_ACTIVE_LOW>;
737                         linux,input-type = <EV_KEY>;
738                         linux,code = <KEY_POWER>;
739                         debounce-interval = <30>;
740                         wakeup-event-action = <EV_ACT_ASSERTED>;
741                         wakeup-source;
742                 };
743
744                 force-recovery {
745                         label = "Force Recovery";
746                         gpios = <&gpio TEGRA_GPIO(X, 6) GPIO_ACTIVE_LOW>;
747                         linux,input-type = <EV_KEY>;
748                         linux,code = <BTN_1>;
749                         debounce-interval = <30>;
750                 };
751         };
752
753         psci {
754                 compatible = "arm,psci-1.0";
755                 method = "smc";
756         };
757
758         vdd_5v0_sys: regulator@0 {
759                 compatible = "regulator-fixed";
760
761                 regulator-name = "VDD_5V0_SYS";
762                 regulator-min-microvolt = <5000000>;
763                 regulator-max-microvolt = <5000000>;
764                 regulator-always-on;
765                 regulator-boot-on;
766         };
767
768         vdd_3v3_sys: regulator@1 {
769                 compatible = "regulator-fixed";
770
771                 regulator-name = "VDD_3V3_SYS";
772                 regulator-min-microvolt = <3300000>;
773                 regulator-max-microvolt = <3300000>;
774                 regulator-enable-ramp-delay = <240>;
775                 regulator-disable-ramp-delay = <11340>;
776                 regulator-always-on;
777                 regulator-boot-on;
778
779                 gpio = <&pmic 3 GPIO_ACTIVE_HIGH>;
780                 enable-active-high;
781
782                 vin-supply = <&vdd_5v0_sys>;
783         };
784
785         vdd_3v3_sd: regulator@2 {
786                 compatible = "regulator-fixed";
787
788                 regulator-name = "VDD_3V3_SD";
789                 regulator-min-microvolt = <3300000>;
790                 regulator-max-microvolt = <3300000>;
791
792                 gpio = <&gpio TEGRA_GPIO(Z, 3) GPIO_ACTIVE_HIGH>;
793                 enable-active-high;
794
795                 vin-supply = <&vdd_3v3_sys>;
796         };
797
798         vdd_hdmi: regulator@3 {
799                 compatible = "regulator-fixed";
800
801                 regulator-name = "VDD_HDMI_5V0";
802                 regulator-min-microvolt = <5000000>;
803                 regulator-max-microvolt = <5000000>;
804
805                 vin-supply = <&vdd_5v0_sys>;
806         };
807
808         vdd_hub_3v3: regulator@4 {
809                 compatible = "regulator-fixed";
810
811                 regulator-name = "VDD_HUB_3V3";
812                 regulator-min-microvolt = <3300000>;
813                 regulator-max-microvolt = <3300000>;
814
815                 gpio = <&gpio TEGRA_GPIO(A, 6) GPIO_ACTIVE_HIGH>;
816                 enable-active-high;
817
818                 vin-supply = <&vdd_5v0_sys>;
819         };
820
821         vdd_cpu: regulator@5 {
822                 compatible = "regulator-fixed";
823
824                 regulator-name = "VDD_CPU";
825                 regulator-min-microvolt = <5000000>;
826                 regulator-max-microvolt = <5000000>;
827                 regulator-always-on;
828                 regulator-boot-on;
829
830                 gpio = <&pmic 5 GPIO_ACTIVE_HIGH>;
831                 enable-active-high;
832
833                 vin-supply = <&vdd_5v0_sys>;
834         };
835
836         vdd_gpu: regulator@6 {
837                 compatible = "pwm-regulator";
838                 pwms = <&pwm 1 8000>;
839
840                 regulator-name = "VDD_GPU";
841                 regulator-min-microvolt = <710000>;
842                 regulator-max-microvolt = <1320000>;
843                 regulator-ramp-delay = <80>;
844                 regulator-enable-ramp-delay = <2000>;
845                 regulator-settling-time-us = <160>;
846
847                 enable-gpios = <&pmic 6 GPIO_ACTIVE_HIGH>;
848                 vin-supply = <&vdd_5v0_sys>;
849         };
850
851         avdd_io_edp_1v05: regulator@7 {
852                 compatible = "regulator-fixed";
853
854                 regulator-name = "AVDD_IO_EDP_1V05";
855                 regulator-min-microvolt = <1050000>;
856                 regulator-max-microvolt = <1050000>;
857
858                 gpio = <&pmic 7 GPIO_ACTIVE_HIGH>;
859                 enable-active-high;
860
861                 vin-supply = <&avdd_1v05_pll>;
862         };
863
864         vdd_5v0_usb: regulator@8 {
865                 compatible = "regulator-fixed";
866
867                 regulator-name = "VDD_5V_USB";
868                 regulator-min-microvolt = <50000000>;
869                 regulator-max-microvolt = <50000000>;
870
871                 vin-supply = <&vdd_5v0_sys>;
872         };
873 };