1b8656c67SMikko Perttunen// SPDX-License-Identifier: GPL-2.0
2b8656c67SMikko Perttunen#include "tegra194.dtsi"
3b8656c67SMikko Perttunen
4b8656c67SMikko Perttunen#include <dt-bindings/mfd/max77620.h>
5b8656c67SMikko Perttunen
6b8656c67SMikko Perttunen/ {
7f85d82e5SThierry Reding	model = "NVIDIA Jetson AGX Xavier";
8b8656c67SMikko Perttunen	compatible = "nvidia,p2888", "nvidia,tegra194";
9b8656c67SMikko Perttunen
10b8656c67SMikko Perttunen	aliases {
118b3aee8fSThierry Reding		ethernet0 = "/bus@0/ethernet@2490000";
12b8656c67SMikko Perttunen		i2c0 = "/bpmp/i2c";
138b3aee8fSThierry Reding		i2c1 = "/bus@0/i2c@3160000";
148b3aee8fSThierry Reding		i2c2 = "/bus@0/i2c@c240000";
158b3aee8fSThierry Reding		i2c3 = "/bus@0/i2c@3180000";
168b3aee8fSThierry Reding		i2c4 = "/bus@0/i2c@3190000";
178b3aee8fSThierry Reding		i2c5 = "/bus@0/i2c@31c0000";
188b3aee8fSThierry Reding		i2c6 = "/bus@0/i2c@c250000";
198b3aee8fSThierry Reding		i2c7 = "/bus@0/i2c@31e0000";
207d6dbb7bSThierry Reding		mmc0 = "/bus@0/mmc@3460000";
217d6dbb7bSThierry Reding		mmc1 = "/bus@0/mmc@3400000";
227d6dbb7bSThierry Reding		serial0 = &tcu;
23b8656c67SMikko Perttunen	};
24b8656c67SMikko Perttunen
25b8656c67SMikko Perttunen	chosen {
26b8656c67SMikko Perttunen		bootargs = "console=ttyS0,115200n8";
27b8656c67SMikko Perttunen		stdout-path = "serial0:115200n8";
28b8656c67SMikko Perttunen	};
29b8656c67SMikko Perttunen
308b3aee8fSThierry Reding	bus@0 {
31f89b58ceSMikko Perttunen		ethernet@2490000 {
32f89b58ceSMikko Perttunen			status = "okay";
33f89b58ceSMikko Perttunen
34f89b58ceSMikko Perttunen			phy-reset-gpios = <&gpio TEGRA194_MAIN_GPIO(G, 5) GPIO_ACTIVE_LOW>;
35f89b58ceSMikko Perttunen			phy-handle = <&phy>;
36bba25915SJon Hunter			phy-mode = "rgmii-id";
37f89b58ceSMikko Perttunen
38f89b58ceSMikko Perttunen			mdio {
39f89b58ceSMikko Perttunen				#address-cells = <1>;
40f89b58ceSMikko Perttunen				#size-cells = <0>;
41f89b58ceSMikko Perttunen
42f89b58ceSMikko Perttunen				phy: phy@0 {
43f89b58ceSMikko Perttunen					compatible = "ethernet-phy-ieee802.3-c22";
44f89b58ceSMikko Perttunen					reg = <0x0>;
45f89b58ceSMikko Perttunen					interrupt-parent = <&gpio>;
46f89b58ceSMikko Perttunen					interrupts = <TEGRA194_MAIN_GPIO(G, 4) IRQ_TYPE_LEVEL_LOW>;
47a10b9a20SThierry Reding					#phy-cells = <0>;
48f89b58ceSMikko Perttunen				};
49f89b58ceSMikko Perttunen			};
50f89b58ceSMikko Perttunen		};
51f89b58ceSMikko Perttunen
52be9b887fSThierry Reding		memory-controller@2c00000 {
53be9b887fSThierry Reding			status = "okay";
54be9b887fSThierry Reding		};
55be9b887fSThierry Reding
56b8656c67SMikko Perttunen		serial@3110000 {
57b8656c67SMikko Perttunen			status = "okay";
58b8656c67SMikko Perttunen		};
59b8656c67SMikko Perttunen
60228f1e6aSThierry Reding		i2c@3160000 {
61228f1e6aSThierry Reding			status = "okay";
62228f1e6aSThierry Reding
63228f1e6aSThierry Reding			eeprom@50 {
64228f1e6aSThierry Reding				compatible = "atmel,24c02";
65228f1e6aSThierry Reding				reg = <0x50>;
66228f1e6aSThierry Reding
67228f1e6aSThierry Reding				vcc-supply = <&vdd_1v8ls>;
68228f1e6aSThierry Reding				address-width = <8>;
69228f1e6aSThierry Reding				pagesize = <8>;
70228f1e6aSThierry Reding				size = <256>;
71228f1e6aSThierry Reding				read-only;
72228f1e6aSThierry Reding			};
73228f1e6aSThierry Reding		};
74228f1e6aSThierry Reding
75b8656c67SMikko Perttunen		/* SDMMC1 (SD/MMC) */
7667bb17f6SThierry Reding		mmc@3400000 {
77b8656c67SMikko Perttunen			cd-gpios = <&gpio TEGRA194_MAIN_GPIO(A, 0) GPIO_ACTIVE_LOW>;
78b8656c67SMikko Perttunen		};
79b8656c67SMikko Perttunen
80b8656c67SMikko Perttunen		/* SDMMC4 (eMMC) */
8167bb17f6SThierry Reding		mmc@3460000 {
82b8656c67SMikko Perttunen			status = "okay";
83b8656c67SMikko Perttunen			bus-width = <8>;
84b8656c67SMikko Perttunen			non-removable;
85b8656c67SMikko Perttunen
86b8656c67SMikko Perttunen			vqmmc-supply = <&vdd_1v8ls>;
87b8656c67SMikko Perttunen			vmmc-supply = <&vdd_emmc_3v3>;
88b8656c67SMikko Perttunen		};
89b8656c67SMikko Perttunen
9092f37c0aSJC Kuo		padctl@3520000 {
9192f37c0aSJC Kuo			avdd-usb-supply = <&vdd_usb_3v3>;
9292f37c0aSJC Kuo			vclamp-usb-supply = <&vdd_1v8ao>;
9392f37c0aSJC Kuo
9492f37c0aSJC Kuo			ports {
9592f37c0aSJC Kuo				usb2-1 {
9692f37c0aSJC Kuo					vbus-supply = <&vdd_5v0_sys>;
9792f37c0aSJC Kuo				};
9892f37c0aSJC Kuo
9992f37c0aSJC Kuo				usb2-3 {
10092f37c0aSJC Kuo					vbus-supply = <&vdd_5v_sata>;
10192f37c0aSJC Kuo				};
10292f37c0aSJC Kuo
10392f37c0aSJC Kuo				usb3-0 {
10492f37c0aSJC Kuo					vbus-supply = <&vdd_5v0_sys>;
10592f37c0aSJC Kuo				};
10692f37c0aSJC Kuo
10792f37c0aSJC Kuo				usb3-3 {
10892f37c0aSJC Kuo					vbus-supply = <&vdd_5v0_sys>;
10992f37c0aSJC Kuo				};
11092f37c0aSJC Kuo			};
11192f37c0aSJC Kuo		};
11292f37c0aSJC Kuo
1133ae50e83SThierry Reding		rtc@c2a0000 {
1143ae50e83SThierry Reding			status = "okay";
1153ae50e83SThierry Reding		};
1163ae50e83SThierry Reding
117b8656c67SMikko Perttunen		pmc@c360000 {
118b8656c67SMikko Perttunen			nvidia,invert-interrupt;
119b8656c67SMikko Perttunen		};
120b8656c67SMikko Perttunen	};
121b8656c67SMikko Perttunen
122b8656c67SMikko Perttunen	bpmp {
123b8656c67SMikko Perttunen		i2c {
124b8656c67SMikko Perttunen			status = "okay";
125b8656c67SMikko Perttunen
126b8656c67SMikko Perttunen			pmic: pmic@3c {
127b8656c67SMikko Perttunen				compatible = "maxim,max20024";
128b8656c67SMikko Perttunen				reg = <0x3c>;
129b8656c67SMikko Perttunen
1304012ab12SJon Hunter				interrupt-parent = <&pmc>;
1314012ab12SJon Hunter				interrupts = <24 IRQ_TYPE_LEVEL_LOW>;
132b8656c67SMikko Perttunen				#interrupt-cells = <2>;
133b8656c67SMikko Perttunen				interrupt-controller;
134b8656c67SMikko Perttunen
135b8656c67SMikko Perttunen				#gpio-cells = <2>;
136b8656c67SMikko Perttunen				gpio-controller;
137b8656c67SMikko Perttunen
138b8656c67SMikko Perttunen				pinctrl-names = "default";
139b8656c67SMikko Perttunen				pinctrl-0 = <&max20024_default>;
140b8656c67SMikko Perttunen
141b8656c67SMikko Perttunen				max20024_default: pinmux {
142b8656c67SMikko Perttunen					gpio0 {
143b8656c67SMikko Perttunen						pins = "gpio0";
144b8656c67SMikko Perttunen						function = "gpio";
145b8656c67SMikko Perttunen					};
146b8656c67SMikko Perttunen
147b8656c67SMikko Perttunen					gpio1 {
148b8656c67SMikko Perttunen						pins = "gpio1";
149b8656c67SMikko Perttunen						function = "fps-out";
150b8656c67SMikko Perttunen						maxim,active-fps-source = <MAX77620_FPS_SRC_DEF>;
151b8656c67SMikko Perttunen					};
152b8656c67SMikko Perttunen
153b8656c67SMikko Perttunen					gpio2 {
154b8656c67SMikko Perttunen						pins = "gpio2";
155b8656c67SMikko Perttunen						function = "fps-out";
156b8656c67SMikko Perttunen						maxim,active-fps-source = <MAX77620_FPS_SRC_DEF>;
157b8656c67SMikko Perttunen					};
158b8656c67SMikko Perttunen
159b8656c67SMikko Perttunen					gpio3 {
160b8656c67SMikko Perttunen						pins = "gpio3";
161b8656c67SMikko Perttunen						function = "fps-out";
162b8656c67SMikko Perttunen						maxim,active-fps-source = <MAX77620_FPS_SRC_DEF>;
163b8656c67SMikko Perttunen					};
164b8656c67SMikko Perttunen
165b8656c67SMikko Perttunen					gpio4 {
166b8656c67SMikko Perttunen						pins = "gpio4";
167b8656c67SMikko Perttunen						function = "32k-out1";
168b8656c67SMikko Perttunen						drive-push-pull = <1>;
169b8656c67SMikko Perttunen					};
170b8656c67SMikko Perttunen
171b8656c67SMikko Perttunen					gpio6 {
172b8656c67SMikko Perttunen						pins = "gpio6";
173b8656c67SMikko Perttunen						function = "gpio";
174b8656c67SMikko Perttunen						drive-push-pull = <1>;
175b8656c67SMikko Perttunen					};
176b8656c67SMikko Perttunen
177b8656c67SMikko Perttunen					gpio7 {
178b8656c67SMikko Perttunen						pins = "gpio7";
179b8656c67SMikko Perttunen						function = "gpio";
180b8656c67SMikko Perttunen						drive-push-pull = <0>;
181b8656c67SMikko Perttunen					};
182b8656c67SMikko Perttunen				};
183b8656c67SMikko Perttunen
184b8656c67SMikko Perttunen				fps {
185b8656c67SMikko Perttunen					fps0 {
186b8656c67SMikko Perttunen						maxim,fps-event-source = <MAX77620_FPS_EVENT_SRC_EN0>;
187b8656c67SMikko Perttunen						maxim,shutdown-fps-time-period-us = <640>;
188b8656c67SMikko Perttunen					};
189b8656c67SMikko Perttunen
190b8656c67SMikko Perttunen					fps1 {
191b8656c67SMikko Perttunen						maxim,fps-event-source = <MAX77620_FPS_EVENT_SRC_EN1>;
192b8656c67SMikko Perttunen						maxim,shutdown-fps-time-period-us = <640>;
193b8656c67SMikko Perttunen						maxim,device-state-on-disabled-event = <MAX77620_FPS_INACTIVE_STATE_SLEEP>;
194b8656c67SMikko Perttunen					};
195b8656c67SMikko Perttunen
196b8656c67SMikko Perttunen					fps2 {
197b8656c67SMikko Perttunen						maxim,fps-event-source = <MAX77620_FPS_EVENT_SRC_EN0>;
198b8656c67SMikko Perttunen						maxim,shutdown-fps-time-period-us = <640>;
199b8656c67SMikko Perttunen					};
200b8656c67SMikko Perttunen				};
201b8656c67SMikko Perttunen
202b8656c67SMikko Perttunen				regulators {
203b8656c67SMikko Perttunen					in-sd0-supply = <&vdd_5v0_sys>;
204b8656c67SMikko Perttunen					in-sd1-supply = <&vdd_5v0_sys>;
205b8656c67SMikko Perttunen					in-sd2-supply = <&vdd_5v0_sys>;
206b8656c67SMikko Perttunen					in-sd3-supply = <&vdd_5v0_sys>;
207b8656c67SMikko Perttunen					in-sd4-supply = <&vdd_5v0_sys>;
208b8656c67SMikko Perttunen
209b8656c67SMikko Perttunen					in-ldo0-1-supply = <&vdd_5v0_sys>;
210b8656c67SMikko Perttunen					in-ldo2-supply = <&vdd_5v0_sys>;
211b8656c67SMikko Perttunen					in-ldo3-5-supply = <&vdd_5v0_sys>;
212b8656c67SMikko Perttunen					in-ldo4-6-supply = <&vdd_5v0_sys>;
213b8656c67SMikko Perttunen					in-ldo7-8-supply = <&vdd_1v8ls>;
214b8656c67SMikko Perttunen
21533c038e4SThierry Reding					vdd_1v0: sd0 {
216c90b8f15SThierry Reding						regulator-name = "VDDIO_SYS_1V0";
217b8656c67SMikko Perttunen						regulator-min-microvolt = <1000000>;
218b8656c67SMikko Perttunen						regulator-max-microvolt = <1000000>;
219b8656c67SMikko Perttunen						regulator-always-on;
220b8656c67SMikko Perttunen						regulator-boot-on;
221b8656c67SMikko Perttunen					};
222b8656c67SMikko Perttunen
22333c038e4SThierry Reding					vdd_1v8hs: sd1 {
224c90b8f15SThierry Reding						regulator-name = "VDDIO_SYS_1V8HS";
225b8656c67SMikko Perttunen						regulator-min-microvolt = <1800000>;
226b8656c67SMikko Perttunen						regulator-max-microvolt = <1800000>;
227b8656c67SMikko Perttunen						regulator-always-on;
228b8656c67SMikko Perttunen						regulator-boot-on;
229b8656c67SMikko Perttunen					};
230b8656c67SMikko Perttunen
231b8656c67SMikko Perttunen					vdd_1v8ls: sd2 {
232c90b8f15SThierry Reding						regulator-name = "VDDIO_SYS_1V8LS";
233b8656c67SMikko Perttunen						regulator-min-microvolt = <1800000>;
234b8656c67SMikko Perttunen						regulator-max-microvolt = <1800000>;
235b8656c67SMikko Perttunen						regulator-always-on;
236b8656c67SMikko Perttunen						regulator-boot-on;
237b8656c67SMikko Perttunen					};
238b8656c67SMikko Perttunen
239a586c88eSVidya Sagar					vdd_1v8ao: sd3 {
240c90b8f15SThierry Reding						regulator-name = "VDDIO_AO_1V8";
241b8656c67SMikko Perttunen						regulator-min-microvolt = <1800000>;
242b8656c67SMikko Perttunen						regulator-max-microvolt = <1800000>;
243b8656c67SMikko Perttunen						regulator-always-on;
244b8656c67SMikko Perttunen						regulator-boot-on;
245b8656c67SMikko Perttunen					};
246b8656c67SMikko Perttunen
247b8656c67SMikko Perttunen					sd4 {
248b8656c67SMikko Perttunen						regulator-name = "VDD_DDR_1V1";
249b8656c67SMikko Perttunen						regulator-min-microvolt = <1100000>;
250b8656c67SMikko Perttunen						regulator-max-microvolt = <1100000>;
251b8656c67SMikko Perttunen						regulator-always-on;
252b8656c67SMikko Perttunen						regulator-boot-on;
253b8656c67SMikko Perttunen					};
254b8656c67SMikko Perttunen
255b8656c67SMikko Perttunen					ldo0 {
256b8656c67SMikko Perttunen						regulator-name = "VDD_RTC";
257b8656c67SMikko Perttunen						regulator-min-microvolt = <800000>;
258b8656c67SMikko Perttunen						regulator-max-microvolt = <800000>;
259b8656c67SMikko Perttunen						regulator-always-on;
260b8656c67SMikko Perttunen						regulator-boot-on;
261b8656c67SMikko Perttunen					};
262b8656c67SMikko Perttunen
263b8656c67SMikko Perttunen					ldo2 {
264c90b8f15SThierry Reding						regulator-name = "VDDIO_AO_3V3";
265b8656c67SMikko Perttunen						regulator-min-microvolt = <3300000>;
266b8656c67SMikko Perttunen						regulator-max-microvolt = <3300000>;
267b8656c67SMikko Perttunen						regulator-always-on;
268b8656c67SMikko Perttunen						regulator-boot-on;
269b8656c67SMikko Perttunen					};
270b8656c67SMikko Perttunen
271b8656c67SMikko Perttunen					vdd_emmc_3v3: ldo3 {
272b8656c67SMikko Perttunen						regulator-name = "VDD_EMMC_3V3";
273b8656c67SMikko Perttunen						regulator-min-microvolt = <3300000>;
274b8656c67SMikko Perttunen						regulator-max-microvolt = <3300000>;
275b8656c67SMikko Perttunen					};
276b8656c67SMikko Perttunen
27792f37c0aSJC Kuo					vdd_usb_3v3: ldo5 {
278b8656c67SMikko Perttunen						regulator-name = "VDD_USB_3V3";
279b8656c67SMikko Perttunen						regulator-min-microvolt = <3300000>;
280b8656c67SMikko Perttunen						regulator-max-microvolt = <3300000>;
281b8656c67SMikko Perttunen					};
282b8656c67SMikko Perttunen
283b8656c67SMikko Perttunen					ldo6 {
284b8656c67SMikko Perttunen						regulator-name = "VDD_SDIO_3V3";
285b8656c67SMikko Perttunen						regulator-min-microvolt = <3300000>;
286b8656c67SMikko Perttunen						regulator-max-microvolt = <3300000>;
287b8656c67SMikko Perttunen					};
288b8656c67SMikko Perttunen
289b8656c67SMikko Perttunen					ldo7 {
290c90b8f15SThierry Reding						regulator-name = "AVDD_CSI_1V2";
291b8656c67SMikko Perttunen						regulator-min-microvolt = <1200000>;
292b8656c67SMikko Perttunen						regulator-max-microvolt = <1200000>;
293b8656c67SMikko Perttunen					};
294b8656c67SMikko Perttunen				};
295b8656c67SMikko Perttunen			};
2968b457812SThierry Reding
2978b457812SThierry Reding			temperature-sensor@4c {
2988b457812SThierry Reding				compatible = "ti,tmp451";
2998b457812SThierry Reding				reg = <0x4c>;
3008b457812SThierry Reding
3018b457812SThierry Reding				interrupt-parent = <&gpio>;
3028b457812SThierry Reding				interrupts = <TEGRA194_MAIN_GPIO(H, 2)
3038b457812SThierry Reding					      IRQ_TYPE_LEVEL_LOW>;
30473207330SJon Hunter				vcc-supply = <&vdd_1v8ls>;
3058b457812SThierry Reding
3068b457812SThierry Reding				#thermal-sensor-cells = <1>;
3078b457812SThierry Reding			};
308b8656c67SMikko Perttunen		};
309b8656c67SMikko Perttunen	};
310b8656c67SMikko Perttunen
311b8656c67SMikko Perttunen	vdd_5v0_sys: regulator@0 {
312b8656c67SMikko Perttunen		compatible = "regulator-fixed";
313b8656c67SMikko Perttunen		regulator-name = "VIN_SYS_5V0";
314b8656c67SMikko Perttunen		regulator-min-microvolt = <5000000>;
315b8656c67SMikko Perttunen		regulator-max-microvolt = <5000000>;
316b8656c67SMikko Perttunen		regulator-always-on;
317b8656c67SMikko Perttunen		regulator-boot-on;
318b8656c67SMikko Perttunen	};
31933c038e4SThierry Reding
32033c038e4SThierry Reding	vdd_hdmi: regulator@1 {
32133c038e4SThierry Reding		compatible = "regulator-fixed";
32233c038e4SThierry Reding		regulator-name = "VDD_5V0_HDMI_CON";
32333c038e4SThierry Reding		regulator-min-microvolt = <5000000>;
32433c038e4SThierry Reding		regulator-max-microvolt = <5000000>;
32533c038e4SThierry Reding		gpio = <&gpio TEGRA194_MAIN_GPIO(A, 3) GPIO_ACTIVE_HIGH>;
32633c038e4SThierry Reding		enable-active-high;
32733c038e4SThierry Reding	};
32809a0774aSVidya Sagar
32909a0774aSVidya Sagar	vdd_3v3_pcie: regulator@2 {
33009a0774aSVidya Sagar		compatible = "regulator-fixed";
33109a0774aSVidya Sagar		regulator-name = "PEX_3V3";
33209a0774aSVidya Sagar		regulator-min-microvolt = <3300000>;
33309a0774aSVidya Sagar		regulator-max-microvolt = <3300000>;
33409a0774aSVidya Sagar		gpio = <&gpio TEGRA194_MAIN_GPIO(Z, 2) GPIO_ACTIVE_HIGH>;
33509a0774aSVidya Sagar		regulator-boot-on;
33609a0774aSVidya Sagar		enable-active-high;
33709a0774aSVidya Sagar	};
33809a0774aSVidya Sagar
33909a0774aSVidya Sagar	vdd_12v_pcie: regulator@3 {
34009a0774aSVidya Sagar		compatible = "regulator-fixed";
34109a0774aSVidya Sagar		regulator-name = "VDD_12V";
34209a0774aSVidya Sagar		regulator-min-microvolt = <1200000>;
34309a0774aSVidya Sagar		regulator-max-microvolt = <1200000>;
344d440538eSJon Hunter		gpio = <&gpio TEGRA194_MAIN_GPIO(A, 1) GPIO_ACTIVE_HIGH>;
34509a0774aSVidya Sagar		regulator-boot-on;
34609a0774aSVidya Sagar	};
34792f37c0aSJC Kuo
34892f37c0aSJC Kuo	vdd_5v_sata: regulator@4 {
34992f37c0aSJC Kuo		compatible = "regulator-fixed";
35092f37c0aSJC Kuo		regulator-name = "VDD_5V_SATA";
35192f37c0aSJC Kuo		regulator-min-microvolt = <5000000>;
35292f37c0aSJC Kuo		regulator-max-microvolt = <5000000>;
35392f37c0aSJC Kuo		gpio = <&gpio TEGRA194_MAIN_GPIO(Z, 1) GPIO_ACTIVE_HIGH>;
35492f37c0aSJC Kuo		enable-active-high;
35592f37c0aSJC Kuo	};
356b8656c67SMikko Perttunen};
357