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 = "NVIDIA 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	spi@70410000 {
786		status = "okay";
787
788		flash@0 {
789			compatible = "spi-nor";
790			reg = <0>;
791			spi-max-frequency = <104000000>;
792			spi-tx-bus-width = <2>;
793			spi-rx-bus-width = <2>;
794		};
795	};
796
797	clk32k_in: clock@0 {
798		compatible = "fixed-clock";
799		clock-frequency = <32768>;
800		#clock-cells = <0>;
801	};
802
803	cpus {
804		cpu@0 {
805			enable-method = "psci";
806		};
807
808		cpu@1 {
809			enable-method = "psci";
810		};
811
812		cpu@2 {
813			enable-method = "psci";
814		};
815
816		cpu@3 {
817			enable-method = "psci";
818		};
819
820		idle-states {
821			cpu-sleep {
822				status = "okay";
823			};
824		};
825	};
826
827	fan: fan {
828		compatible = "pwm-fan";
829		pwms = <&pwm 3 45334>;
830
831		cooling-levels = <0 64 128 255>;
832		#cooling-cells = <2>;
833	};
834
835	thermal-zones {
836		cpu {
837			trips {
838				cpu_trip_critical: critical {
839					temperature = <96500>;
840					hysteresis = <0>;
841					type = "critical";
842				};
843
844				cpu_trip_hot: hot {
845					temperature = <70000>;
846					hysteresis = <2000>;
847					type = "hot";
848				};
849
850				cpu_trip_active: active {
851					temperature = <50000>;
852					hysteresis = <2000>;
853					type = "active";
854				};
855
856				cpu_trip_passive: passive {
857					temperature = <30000>;
858					hysteresis = <2000>;
859					type = "passive";
860				};
861			};
862
863			cooling-maps {
864				cpu-critical {
865					cooling-device = <&fan 3 3>;
866					trip = <&cpu_trip_critical>;
867				};
868
869				cpu-hot {
870					cooling-device = <&fan 2 2>;
871					trip = <&cpu_trip_hot>;
872				};
873
874				cpu-active {
875					cooling-device = <&fan 1 1>;
876					trip = <&cpu_trip_active>;
877				};
878
879				cpu-passive {
880					cooling-device = <&fan 0 0>;
881					trip = <&cpu_trip_passive>;
882				};
883			};
884		};
885	};
886
887	gpio-keys {
888		compatible = "gpio-keys";
889
890		power {
891			label = "Power";
892			gpios = <&gpio TEGRA_GPIO(X, 5) GPIO_ACTIVE_LOW>;
893			linux,input-type = <EV_KEY>;
894			linux,code = <KEY_POWER>;
895			debounce-interval = <30>;
896			wakeup-event-action = <EV_ACT_ASSERTED>;
897			wakeup-source;
898		};
899
900		force-recovery {
901			label = "Force Recovery";
902			gpios = <&gpio TEGRA_GPIO(X, 6) GPIO_ACTIVE_LOW>;
903			linux,input-type = <EV_KEY>;
904			linux,code = <BTN_1>;
905			debounce-interval = <30>;
906		};
907	};
908
909	psci {
910		compatible = "arm,psci-1.0";
911		method = "smc";
912	};
913
914	vdd_5v0_sys: regulator@0 {
915		compatible = "regulator-fixed";
916
917		regulator-name = "VDD_5V0_SYS";
918		regulator-min-microvolt = <5000000>;
919		regulator-max-microvolt = <5000000>;
920		regulator-always-on;
921		regulator-boot-on;
922	};
923
924	vdd_3v3_sys: regulator@1 {
925		compatible = "regulator-fixed";
926
927		regulator-name = "VDD_3V3_SYS";
928		regulator-min-microvolt = <3300000>;
929		regulator-max-microvolt = <3300000>;
930		regulator-enable-ramp-delay = <240>;
931		regulator-disable-ramp-delay = <11340>;
932		regulator-always-on;
933		regulator-boot-on;
934
935		gpio = <&pmic 3 GPIO_ACTIVE_HIGH>;
936		enable-active-high;
937
938		vin-supply = <&vdd_5v0_sys>;
939	};
940
941	vdd_3v3_sd: regulator@2 {
942		compatible = "regulator-fixed";
943
944		regulator-name = "VDD_3V3_SD";
945		regulator-min-microvolt = <3300000>;
946		regulator-max-microvolt = <3300000>;
947
948		gpio = <&gpio TEGRA_GPIO(Z, 3) GPIO_ACTIVE_HIGH>;
949		enable-active-high;
950
951		vin-supply = <&vdd_3v3_sys>;
952	};
953
954	vdd_hdmi: regulator@3 {
955		compatible = "regulator-fixed";
956
957		regulator-name = "VDD_HDMI_5V0";
958		regulator-min-microvolt = <5000000>;
959		regulator-max-microvolt = <5000000>;
960
961		vin-supply = <&vdd_5v0_sys>;
962	};
963
964	vdd_hub_3v3: regulator@4 {
965		compatible = "regulator-fixed";
966
967		regulator-name = "VDD_HUB_3V3";
968		regulator-min-microvolt = <3300000>;
969		regulator-max-microvolt = <3300000>;
970
971		gpio = <&gpio TEGRA_GPIO(A, 6) GPIO_ACTIVE_HIGH>;
972		enable-active-high;
973
974		vin-supply = <&vdd_5v0_sys>;
975	};
976
977	vdd_cpu: regulator@5 {
978		compatible = "regulator-fixed";
979
980		regulator-name = "VDD_CPU";
981		regulator-min-microvolt = <5000000>;
982		regulator-max-microvolt = <5000000>;
983		regulator-always-on;
984		regulator-boot-on;
985
986		gpio = <&pmic 5 GPIO_ACTIVE_HIGH>;
987		enable-active-high;
988
989		vin-supply = <&vdd_5v0_sys>;
990	};
991
992	vdd_gpu: regulator@6 {
993		compatible = "pwm-regulator";
994		pwms = <&pwm 1 8000>;
995
996		regulator-name = "VDD_GPU";
997		regulator-min-microvolt = <710000>;
998		regulator-max-microvolt = <1320000>;
999		regulator-ramp-delay = <80>;
1000		regulator-enable-ramp-delay = <2000>;
1001		regulator-settling-time-us = <160>;
1002
1003		enable-gpios = <&pmic 6 GPIO_ACTIVE_HIGH>;
1004		vin-supply = <&vdd_5v0_sys>;
1005	};
1006
1007	avdd_io_edp_1v05: regulator@7 {
1008		compatible = "regulator-fixed";
1009
1010		regulator-name = "AVDD_IO_EDP_1V05";
1011		regulator-min-microvolt = <1050000>;
1012		regulator-max-microvolt = <1050000>;
1013
1014		gpio = <&pmic 7 GPIO_ACTIVE_HIGH>;
1015		enable-active-high;
1016
1017		vin-supply = <&avdd_1v05_pll>;
1018	};
1019
1020	vdd_5v0_usb: regulator@8 {
1021		compatible = "regulator-fixed";
1022
1023		regulator-name = "VDD_5V_USB";
1024		regulator-min-microvolt = <50000000>;
1025		regulator-max-microvolt = <50000000>;
1026
1027		vin-supply = <&vdd_5v0_sys>;
1028	};
1029
1030	sound {
1031		compatible = "nvidia,tegra210-audio-graph-card";
1032		status = "okay";
1033
1034		dais = /* FE */
1035		       <&admaif1_port>, <&admaif2_port>, <&admaif3_port>,
1036		       <&admaif4_port>, <&admaif5_port>, <&admaif6_port>,
1037		       <&admaif7_port>, <&admaif8_port>, <&admaif9_port>,
1038		       <&admaif10_port>,
1039		       /* Router */
1040		       <&xbar_i2s3_port>, <&xbar_i2s4_port>,
1041		       <&xbar_dmic1_port>, <&xbar_dmic2_port>,
1042		       /* I/O DAP Ports */
1043		       <&i2s3_port>, <&i2s4_port>,
1044		       <&dmic1_port>, <&dmic2_port>;
1045
1046		label = "NVIDIA Jetson Nano APE";
1047	};
1048};
1049