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		ahub@702d0800 {
641			status = "okay";
642
643			admaif@702d0000 {
644				status = "okay";
645			};
646
647			i2s@702d1200 {
648				status = "okay";
649
650				ports {
651					#address-cells = <1>;
652					#size-cells = <0>;
653
654					port@0 {
655						reg = <0>;
656
657						i2s3_cif_ep: endpoint {
658							remote-endpoint = <&xbar_i2s3_ep>;
659						};
660					};
661
662					i2s3_port: port@1 {
663						reg = <1>;
664
665						i2s3_dap_ep: endpoint {
666							dai-format = "i2s";
667							/* Placeholder for external Codec */
668						};
669					};
670				};
671			};
672
673			i2s@702d1300 {
674				status = "okay";
675
676				ports {
677					#address-cells = <1>;
678					#size-cells = <0>;
679
680					port@0 {
681						reg = <0>;
682
683						i2s4_cif_ep: endpoint {
684							remote-endpoint = <&xbar_i2s4_ep>;
685						};
686					};
687
688					i2s4_port: port@1 {
689						reg = <1>;
690
691						i2s4_dap_ep: endpoint@0 {
692							dai-format = "i2s";
693							/* Placeholder for external Codec */
694						};
695					};
696				};
697			};
698
699			dmic@702d4000 {
700				status = "okay";
701
702				ports {
703					#address-cells = <1>;
704					#size-cells = <0>;
705
706					port@0 {
707						reg = <0>;
708
709						dmic1_cif_ep: endpoint@0 {
710							remote-endpoint = <&xbar_dmic1_ep>;
711						};
712					};
713
714					dmic1_port: port@1 {
715						reg = <1>;
716
717						dmic1_dap_ep: endpoint@0 {
718							/* Placeholder for external Codec */
719						};
720					};
721				};
722			};
723
724			dmic@702d4100 {
725				status = "okay";
726
727				ports {
728					#address-cells = <1>;
729					#size-cells = <0>;
730
731					port@0 {
732						reg = <0>;
733
734						dmic2_cif_ep: endpoint@0 {
735							remote-endpoint = <&xbar_dmic2_ep>;
736						};
737					};
738
739					dmic2_port: port@1 {
740						reg = <1>;
741
742						dmic2_dap_ep: endpoint@0 {
743							/* Placeholder for external Codec */
744						};
745					};
746				};
747			};
748
749			ports {
750				xbar_i2s3_port: port@c {
751					reg = <0xc>;
752
753					xbar_i2s3_ep: endpoint {
754						remote-endpoint = <&i2s3_cif_ep>;
755					};
756				};
757
758				xbar_i2s4_port: port@d {
759					reg = <0xd>;
760
761					xbar_i2s4_ep: endpoint {
762						remote-endpoint = <&i2s4_cif_ep>;
763					};
764				};
765
766				xbar_dmic1_port: port@f {
767					reg = <0xf>;
768
769					xbar_dmic1_ep: endpoint {
770						remote-endpoint = <&dmic1_cif_ep>;
771					};
772				};
773
774				xbar_dmic2_port: port@10 {
775					reg = <0x10>;
776
777					xbar_dmic2_ep: endpoint {
778						remote-endpoint = <&dmic2_cif_ep>;
779					};
780				};
781			};
782		};
783	};
784
785	clk32k_in: clock@0 {
786		compatible = "fixed-clock";
787		clock-frequency = <32768>;
788		#clock-cells = <0>;
789	};
790
791	cpus {
792		cpu@0 {
793			enable-method = "psci";
794		};
795
796		cpu@1 {
797			enable-method = "psci";
798		};
799
800		cpu@2 {
801			enable-method = "psci";
802		};
803
804		cpu@3 {
805			enable-method = "psci";
806		};
807
808		idle-states {
809			cpu-sleep {
810				status = "okay";
811			};
812		};
813	};
814
815	fan: fan {
816		compatible = "pwm-fan";
817		pwms = <&pwm 3 45334>;
818
819		cooling-levels = <0 64 128 255>;
820		#cooling-cells = <2>;
821	};
822
823	thermal-zones {
824		cpu {
825			trips {
826				cpu_trip_critical: critical {
827					temperature = <96500>;
828					hysteresis = <0>;
829					type = "critical";
830				};
831
832				cpu_trip_hot: hot {
833					temperature = <70000>;
834					hysteresis = <2000>;
835					type = "hot";
836				};
837
838				cpu_trip_active: active {
839					temperature = <50000>;
840					hysteresis = <2000>;
841					type = "active";
842				};
843
844				cpu_trip_passive: passive {
845					temperature = <30000>;
846					hysteresis = <2000>;
847					type = "passive";
848				};
849			};
850
851			cooling-maps {
852				cpu-critical {
853					cooling-device = <&fan 3 3>;
854					trip = <&cpu_trip_critical>;
855				};
856
857				cpu-hot {
858					cooling-device = <&fan 2 2>;
859					trip = <&cpu_trip_hot>;
860				};
861
862				cpu-active {
863					cooling-device = <&fan 1 1>;
864					trip = <&cpu_trip_active>;
865				};
866
867				cpu-passive {
868					cooling-device = <&fan 0 0>;
869					trip = <&cpu_trip_passive>;
870				};
871			};
872		};
873	};
874
875	gpio-keys {
876		compatible = "gpio-keys";
877
878		power {
879			label = "Power";
880			gpios = <&gpio TEGRA_GPIO(X, 5) GPIO_ACTIVE_LOW>;
881			linux,input-type = <EV_KEY>;
882			linux,code = <KEY_POWER>;
883			debounce-interval = <30>;
884			wakeup-event-action = <EV_ACT_ASSERTED>;
885			wakeup-source;
886		};
887
888		force-recovery {
889			label = "Force Recovery";
890			gpios = <&gpio TEGRA_GPIO(X, 6) GPIO_ACTIVE_LOW>;
891			linux,input-type = <EV_KEY>;
892			linux,code = <BTN_1>;
893			debounce-interval = <30>;
894		};
895	};
896
897	psci {
898		compatible = "arm,psci-1.0";
899		method = "smc";
900	};
901
902	vdd_5v0_sys: regulator@0 {
903		compatible = "regulator-fixed";
904
905		regulator-name = "VDD_5V0_SYS";
906		regulator-min-microvolt = <5000000>;
907		regulator-max-microvolt = <5000000>;
908		regulator-always-on;
909		regulator-boot-on;
910	};
911
912	vdd_3v3_sys: regulator@1 {
913		compatible = "regulator-fixed";
914
915		regulator-name = "VDD_3V3_SYS";
916		regulator-min-microvolt = <3300000>;
917		regulator-max-microvolt = <3300000>;
918		regulator-enable-ramp-delay = <240>;
919		regulator-disable-ramp-delay = <11340>;
920		regulator-always-on;
921		regulator-boot-on;
922
923		gpio = <&pmic 3 GPIO_ACTIVE_HIGH>;
924		enable-active-high;
925
926		vin-supply = <&vdd_5v0_sys>;
927	};
928
929	vdd_3v3_sd: regulator@2 {
930		compatible = "regulator-fixed";
931
932		regulator-name = "VDD_3V3_SD";
933		regulator-min-microvolt = <3300000>;
934		regulator-max-microvolt = <3300000>;
935
936		gpio = <&gpio TEGRA_GPIO(Z, 3) GPIO_ACTIVE_HIGH>;
937		enable-active-high;
938
939		vin-supply = <&vdd_3v3_sys>;
940	};
941
942	vdd_hdmi: regulator@3 {
943		compatible = "regulator-fixed";
944
945		regulator-name = "VDD_HDMI_5V0";
946		regulator-min-microvolt = <5000000>;
947		regulator-max-microvolt = <5000000>;
948
949		vin-supply = <&vdd_5v0_sys>;
950	};
951
952	vdd_hub_3v3: regulator@4 {
953		compatible = "regulator-fixed";
954
955		regulator-name = "VDD_HUB_3V3";
956		regulator-min-microvolt = <3300000>;
957		regulator-max-microvolt = <3300000>;
958
959		gpio = <&gpio TEGRA_GPIO(A, 6) GPIO_ACTIVE_HIGH>;
960		enable-active-high;
961
962		vin-supply = <&vdd_5v0_sys>;
963	};
964
965	vdd_cpu: regulator@5 {
966		compatible = "regulator-fixed";
967
968		regulator-name = "VDD_CPU";
969		regulator-min-microvolt = <5000000>;
970		regulator-max-microvolt = <5000000>;
971		regulator-always-on;
972		regulator-boot-on;
973
974		gpio = <&pmic 5 GPIO_ACTIVE_HIGH>;
975		enable-active-high;
976
977		vin-supply = <&vdd_5v0_sys>;
978	};
979
980	vdd_gpu: regulator@6 {
981		compatible = "pwm-regulator";
982		pwms = <&pwm 1 8000>;
983
984		regulator-name = "VDD_GPU";
985		regulator-min-microvolt = <710000>;
986		regulator-max-microvolt = <1320000>;
987		regulator-ramp-delay = <80>;
988		regulator-enable-ramp-delay = <2000>;
989		regulator-settling-time-us = <160>;
990
991		enable-gpios = <&pmic 6 GPIO_ACTIVE_HIGH>;
992		vin-supply = <&vdd_5v0_sys>;
993	};
994
995	avdd_io_edp_1v05: regulator@7 {
996		compatible = "regulator-fixed";
997
998		regulator-name = "AVDD_IO_EDP_1V05";
999		regulator-min-microvolt = <1050000>;
1000		regulator-max-microvolt = <1050000>;
1001
1002		gpio = <&pmic 7 GPIO_ACTIVE_HIGH>;
1003		enable-active-high;
1004
1005		vin-supply = <&avdd_1v05_pll>;
1006	};
1007
1008	vdd_5v0_usb: regulator@8 {
1009		compatible = "regulator-fixed";
1010
1011		regulator-name = "VDD_5V_USB";
1012		regulator-min-microvolt = <50000000>;
1013		regulator-max-microvolt = <50000000>;
1014
1015		vin-supply = <&vdd_5v0_sys>;
1016	};
1017
1018	sound {
1019		compatible = "nvidia,tegra210-audio-graph-card";
1020		status = "okay";
1021
1022		dais = /* FE */
1023		       <&admaif1_port>, <&admaif2_port>, <&admaif3_port>,
1024		       <&admaif4_port>, <&admaif5_port>, <&admaif6_port>,
1025		       <&admaif7_port>, <&admaif8_port>, <&admaif9_port>,
1026		       <&admaif10_port>,
1027		       /* Router */
1028		       <&xbar_i2s3_port>, <&xbar_i2s4_port>,
1029		       <&xbar_dmic1_port>, <&xbar_dmic2_port>,
1030		       /* I/O DAP Ports */
1031		       <&i2s3_port>, <&i2s4_port>,
1032		       <&dmic1_port>, <&dmic2_port>;
1033
1034		label = "jetson-nano-ape";
1035	};
1036};
1037