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 {
112b6b3940SThierry Reding		ethernet0 = "/cbb@0/ethernet@2490000";
12eef97c2aSThierry Reding		sdhci0 = "/cbb@0/sdhci@3460000";
13eef97c2aSThierry Reding		sdhci1 = "/cbb@0/sdhci@3400000";
146ab6a4d2SMikko Perttunen		serial0 = &tcu;
15b8656c67SMikko Perttunen		i2c0 = "/bpmp/i2c";
16eef97c2aSThierry Reding		i2c1 = "/cbb@0/i2c@3160000";
17eef97c2aSThierry Reding		i2c2 = "/cbb@0/i2c@c240000";
18eef97c2aSThierry Reding		i2c3 = "/cbb@0/i2c@3180000";
19eef97c2aSThierry Reding		i2c4 = "/cbb@0/i2c@3190000";
20eef97c2aSThierry Reding		i2c5 = "/cbb@0/i2c@31c0000";
21eef97c2aSThierry Reding		i2c6 = "/cbb@0/i2c@c250000";
22eef97c2aSThierry Reding		i2c7 = "/cbb@0/i2c@31e0000";
23b8656c67SMikko Perttunen	};
24b8656c67SMikko Perttunen
25b8656c67SMikko Perttunen	chosen {
26b8656c67SMikko Perttunen		bootargs = "console=ttyS0,115200n8";
27b8656c67SMikko Perttunen		stdout-path = "serial0:115200n8";
28b8656c67SMikko Perttunen	};
29b8656c67SMikko Perttunen
30eef97c2aSThierry Reding	cbb@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>;
36f89b58ceSMikko Perttunen			phy-mode = "rgmii";
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>;
47f89b58ceSMikko Perttunen				};
48f89b58ceSMikko Perttunen			};
49f89b58ceSMikko Perttunen		};
50f89b58ceSMikko Perttunen
51b8656c67SMikko Perttunen		serial@3110000 {
52b8656c67SMikko Perttunen			status = "okay";
53b8656c67SMikko Perttunen		};
54b8656c67SMikko Perttunen
55b8656c67SMikko Perttunen		/* SDMMC1 (SD/MMC) */
56b8656c67SMikko Perttunen		sdhci@3400000 {
57b8656c67SMikko Perttunen			cd-gpios = <&gpio TEGRA194_MAIN_GPIO(A, 0) GPIO_ACTIVE_LOW>;
58b8656c67SMikko Perttunen		};
59b8656c67SMikko Perttunen
60b8656c67SMikko Perttunen		/* SDMMC4 (eMMC) */
61b8656c67SMikko Perttunen		sdhci@3460000 {
62b8656c67SMikko Perttunen			status = "okay";
63b8656c67SMikko Perttunen			bus-width = <8>;
64b8656c67SMikko Perttunen			non-removable;
65b8656c67SMikko Perttunen
66b8656c67SMikko Perttunen			vqmmc-supply = <&vdd_1v8ls>;
67b8656c67SMikko Perttunen			vmmc-supply = <&vdd_emmc_3v3>;
68b8656c67SMikko Perttunen		};
69b8656c67SMikko Perttunen
703ae50e83SThierry Reding		rtc@c2a0000 {
713ae50e83SThierry Reding			status = "okay";
723ae50e83SThierry Reding		};
733ae50e83SThierry Reding
74b8656c67SMikko Perttunen		pmc@c360000 {
75b8656c67SMikko Perttunen			nvidia,invert-interrupt;
76b8656c67SMikko Perttunen		};
77b8656c67SMikko Perttunen	};
78b8656c67SMikko Perttunen
79b8656c67SMikko Perttunen	bpmp {
80b8656c67SMikko Perttunen		i2c {
81b8656c67SMikko Perttunen			status = "okay";
82b8656c67SMikko Perttunen
83b8656c67SMikko Perttunen			pmic: pmic@3c {
84b8656c67SMikko Perttunen				compatible = "maxim,max20024";
85b8656c67SMikko Perttunen				reg = <0x3c>;
86b8656c67SMikko Perttunen
87b8656c67SMikko Perttunen				interrupts = <GIC_SPI 209 IRQ_TYPE_LEVEL_HIGH>;
88b8656c67SMikko Perttunen				#interrupt-cells = <2>;
89b8656c67SMikko Perttunen				interrupt-controller;
90b8656c67SMikko Perttunen
91b8656c67SMikko Perttunen				#gpio-cells = <2>;
92b8656c67SMikko Perttunen				gpio-controller;
93b8656c67SMikko Perttunen
94b8656c67SMikko Perttunen				pinctrl-names = "default";
95b8656c67SMikko Perttunen				pinctrl-0 = <&max20024_default>;
96b8656c67SMikko Perttunen
97b8656c67SMikko Perttunen				max20024_default: pinmux {
98b8656c67SMikko Perttunen					gpio0 {
99b8656c67SMikko Perttunen						pins = "gpio0";
100b8656c67SMikko Perttunen						function = "gpio";
101b8656c67SMikko Perttunen					};
102b8656c67SMikko Perttunen
103b8656c67SMikko Perttunen					gpio1 {
104b8656c67SMikko Perttunen						pins = "gpio1";
105b8656c67SMikko Perttunen						function = "fps-out";
106b8656c67SMikko Perttunen						maxim,active-fps-source = <MAX77620_FPS_SRC_DEF>;
107b8656c67SMikko Perttunen					};
108b8656c67SMikko Perttunen
109b8656c67SMikko Perttunen					gpio2 {
110b8656c67SMikko Perttunen						pins = "gpio2";
111b8656c67SMikko Perttunen						function = "fps-out";
112b8656c67SMikko Perttunen						maxim,active-fps-source = <MAX77620_FPS_SRC_DEF>;
113b8656c67SMikko Perttunen					};
114b8656c67SMikko Perttunen
115b8656c67SMikko Perttunen					gpio3 {
116b8656c67SMikko Perttunen						pins = "gpio3";
117b8656c67SMikko Perttunen						function = "fps-out";
118b8656c67SMikko Perttunen						maxim,active-fps-source = <MAX77620_FPS_SRC_DEF>;
119b8656c67SMikko Perttunen					};
120b8656c67SMikko Perttunen
121b8656c67SMikko Perttunen					gpio4 {
122b8656c67SMikko Perttunen						pins = "gpio4";
123b8656c67SMikko Perttunen						function = "32k-out1";
124b8656c67SMikko Perttunen						drive-push-pull = <1>;
125b8656c67SMikko Perttunen					};
126b8656c67SMikko Perttunen
127b8656c67SMikko Perttunen					gpio6 {
128b8656c67SMikko Perttunen						pins = "gpio6";
129b8656c67SMikko Perttunen						function = "gpio";
130b8656c67SMikko Perttunen						drive-push-pull = <1>;
131b8656c67SMikko Perttunen					};
132b8656c67SMikko Perttunen
133b8656c67SMikko Perttunen					gpio7 {
134b8656c67SMikko Perttunen						pins = "gpio7";
135b8656c67SMikko Perttunen						function = "gpio";
136b8656c67SMikko Perttunen						drive-push-pull = <0>;
137b8656c67SMikko Perttunen					};
138b8656c67SMikko Perttunen				};
139b8656c67SMikko Perttunen
140b8656c67SMikko Perttunen				fps {
141b8656c67SMikko Perttunen					fps0 {
142b8656c67SMikko Perttunen						maxim,fps-event-source = <MAX77620_FPS_EVENT_SRC_EN0>;
143b8656c67SMikko Perttunen						maxim,shutdown-fps-time-period-us = <640>;
144b8656c67SMikko Perttunen					};
145b8656c67SMikko Perttunen
146b8656c67SMikko Perttunen					fps1 {
147b8656c67SMikko Perttunen						maxim,fps-event-source = <MAX77620_FPS_EVENT_SRC_EN1>;
148b8656c67SMikko Perttunen						maxim,shutdown-fps-time-period-us = <640>;
149b8656c67SMikko Perttunen						maxim,device-state-on-disabled-event = <MAX77620_FPS_INACTIVE_STATE_SLEEP>;
150b8656c67SMikko Perttunen					};
151b8656c67SMikko Perttunen
152b8656c67SMikko Perttunen					fps2 {
153b8656c67SMikko Perttunen						maxim,fps-event-source = <MAX77620_FPS_EVENT_SRC_EN0>;
154b8656c67SMikko Perttunen						maxim,shutdown-fps-time-period-us = <640>;
155b8656c67SMikko Perttunen					};
156b8656c67SMikko Perttunen				};
157b8656c67SMikko Perttunen
158b8656c67SMikko Perttunen				regulators {
159b8656c67SMikko Perttunen					in-sd0-supply = <&vdd_5v0_sys>;
160b8656c67SMikko Perttunen					in-sd1-supply = <&vdd_5v0_sys>;
161b8656c67SMikko Perttunen					in-sd2-supply = <&vdd_5v0_sys>;
162b8656c67SMikko Perttunen					in-sd3-supply = <&vdd_5v0_sys>;
163b8656c67SMikko Perttunen					in-sd4-supply = <&vdd_5v0_sys>;
164b8656c67SMikko Perttunen
165b8656c67SMikko Perttunen					in-ldo0-1-supply = <&vdd_5v0_sys>;
166b8656c67SMikko Perttunen					in-ldo2-supply = <&vdd_5v0_sys>;
167b8656c67SMikko Perttunen					in-ldo3-5-supply = <&vdd_5v0_sys>;
168b8656c67SMikko Perttunen					in-ldo4-6-supply = <&vdd_5v0_sys>;
169b8656c67SMikko Perttunen					in-ldo7-8-supply = <&vdd_1v8ls>;
170b8656c67SMikko Perttunen
17133c038e4SThierry Reding					vdd_1v0: sd0 {
172b8656c67SMikko Perttunen						regulator-name = "VDD_1V0";
173b8656c67SMikko Perttunen						regulator-min-microvolt = <1000000>;
174b8656c67SMikko Perttunen						regulator-max-microvolt = <1000000>;
175b8656c67SMikko Perttunen						regulator-always-on;
176b8656c67SMikko Perttunen						regulator-boot-on;
177b8656c67SMikko Perttunen					};
178b8656c67SMikko Perttunen
17933c038e4SThierry Reding					vdd_1v8hs: sd1 {
180b8656c67SMikko Perttunen						regulator-name = "VDD_1V8HS";
181b8656c67SMikko Perttunen						regulator-min-microvolt = <1800000>;
182b8656c67SMikko Perttunen						regulator-max-microvolt = <1800000>;
183b8656c67SMikko Perttunen						regulator-always-on;
184b8656c67SMikko Perttunen						regulator-boot-on;
185b8656c67SMikko Perttunen					};
186b8656c67SMikko Perttunen
187b8656c67SMikko Perttunen					vdd_1v8ls: sd2 {
188b8656c67SMikko Perttunen						regulator-name = "VDD_1V8LS";
189b8656c67SMikko Perttunen						regulator-min-microvolt = <1800000>;
190b8656c67SMikko Perttunen						regulator-max-microvolt = <1800000>;
191b8656c67SMikko Perttunen						regulator-always-on;
192b8656c67SMikko Perttunen						regulator-boot-on;
193b8656c67SMikko Perttunen					};
194b8656c67SMikko Perttunen
195a586c88eSVidya Sagar					vdd_1v8ao: sd3 {
196b8656c67SMikko Perttunen						regulator-name = "VDD_1V8AO";
197b8656c67SMikko Perttunen						regulator-min-microvolt = <1800000>;
198b8656c67SMikko Perttunen						regulator-max-microvolt = <1800000>;
199b8656c67SMikko Perttunen						regulator-always-on;
200b8656c67SMikko Perttunen						regulator-boot-on;
201b8656c67SMikko Perttunen					};
202b8656c67SMikko Perttunen
203b8656c67SMikko Perttunen					sd4 {
204b8656c67SMikko Perttunen						regulator-name = "VDD_DDR_1V1";
205b8656c67SMikko Perttunen						regulator-min-microvolt = <1100000>;
206b8656c67SMikko Perttunen						regulator-max-microvolt = <1100000>;
207b8656c67SMikko Perttunen						regulator-always-on;
208b8656c67SMikko Perttunen						regulator-boot-on;
209b8656c67SMikko Perttunen					};
210b8656c67SMikko Perttunen
211b8656c67SMikko Perttunen					ldo0 {
212b8656c67SMikko Perttunen						regulator-name = "VDD_RTC";
213b8656c67SMikko Perttunen						regulator-min-microvolt = <800000>;
214b8656c67SMikko Perttunen						regulator-max-microvolt = <800000>;
215b8656c67SMikko Perttunen						regulator-always-on;
216b8656c67SMikko Perttunen						regulator-boot-on;
217b8656c67SMikko Perttunen					};
218b8656c67SMikko Perttunen
219b8656c67SMikko Perttunen					ldo2 {
220b8656c67SMikko Perttunen						regulator-name = "VDD_AO_3V3";
221b8656c67SMikko Perttunen						regulator-min-microvolt = <3300000>;
222b8656c67SMikko Perttunen						regulator-max-microvolt = <3300000>;
223b8656c67SMikko Perttunen						regulator-always-on;
224b8656c67SMikko Perttunen						regulator-boot-on;
225b8656c67SMikko Perttunen					};
226b8656c67SMikko Perttunen
227b8656c67SMikko Perttunen					vdd_emmc_3v3: ldo3 {
228b8656c67SMikko Perttunen						regulator-name = "VDD_EMMC_3V3";
229b8656c67SMikko Perttunen						regulator-min-microvolt = <3300000>;
230b8656c67SMikko Perttunen						regulator-max-microvolt = <3300000>;
231b8656c67SMikko Perttunen					};
232b8656c67SMikko Perttunen
233b8656c67SMikko Perttunen					ldo5 {
234b8656c67SMikko Perttunen						regulator-name = "VDD_USB_3V3";
235b8656c67SMikko Perttunen						regulator-min-microvolt = <3300000>;
236b8656c67SMikko Perttunen						regulator-max-microvolt = <3300000>;
237b8656c67SMikko Perttunen					};
238b8656c67SMikko Perttunen
239b8656c67SMikko Perttunen					ldo6 {
240b8656c67SMikko Perttunen						regulator-name = "VDD_SDIO_3V3";
241b8656c67SMikko Perttunen						regulator-min-microvolt = <3300000>;
242b8656c67SMikko Perttunen						regulator-max-microvolt = <3300000>;
243b8656c67SMikko Perttunen					};
244b8656c67SMikko Perttunen
245b8656c67SMikko Perttunen					ldo7 {
246b8656c67SMikko Perttunen						regulator-name = "VDD_CSI_1V2";
247b8656c67SMikko Perttunen						regulator-min-microvolt = <1200000>;
248b8656c67SMikko Perttunen						regulator-max-microvolt = <1200000>;
249b8656c67SMikko Perttunen					};
250b8656c67SMikko Perttunen				};
251b8656c67SMikko Perttunen			};
2528b457812SThierry Reding
2538b457812SThierry Reding			temperature-sensor@4c {
2548b457812SThierry Reding				compatible = "ti,tmp451";
2558b457812SThierry Reding				reg = <0x4c>;
2568b457812SThierry Reding
2578b457812SThierry Reding				interrupt-parent = <&gpio>;
2588b457812SThierry Reding				interrupts = <TEGRA194_MAIN_GPIO(H, 2)
2598b457812SThierry Reding					      IRQ_TYPE_LEVEL_LOW>;
26073207330SJon Hunter				vcc-supply = <&vdd_1v8ls>;
2618b457812SThierry Reding
2628b457812SThierry Reding				#thermal-sensor-cells = <1>;
2638b457812SThierry Reding			};
264b8656c67SMikko Perttunen		};
265b8656c67SMikko Perttunen	};
266b8656c67SMikko Perttunen
267b8656c67SMikko Perttunen	regulators {
268b8656c67SMikko Perttunen		compatible = "simple-bus";
269b8656c67SMikko Perttunen		#address-cells = <1>;
270b8656c67SMikko Perttunen		#size-cells = <0>;
271b8656c67SMikko Perttunen
272b8656c67SMikko Perttunen		vdd_5v0_sys: regulator@0 {
273b8656c67SMikko Perttunen			compatible = "regulator-fixed";
274b8656c67SMikko Perttunen			reg = <0>;
275b8656c67SMikko Perttunen
276b8656c67SMikko Perttunen			regulator-name = "VIN_SYS_5V0";
277b8656c67SMikko Perttunen			regulator-min-microvolt = <5000000>;
278b8656c67SMikko Perttunen			regulator-max-microvolt = <5000000>;
279b8656c67SMikko Perttunen			regulator-always-on;
280b8656c67SMikko Perttunen			regulator-boot-on;
281b8656c67SMikko Perttunen		};
28233c038e4SThierry Reding
28333c038e4SThierry Reding		vdd_hdmi: regulator@1 {
28433c038e4SThierry Reding			compatible = "regulator-fixed";
28533c038e4SThierry Reding			reg = <1>;
28633c038e4SThierry Reding
28733c038e4SThierry Reding			regulator-name = "VDD_5V0_HDMI_CON";
28833c038e4SThierry Reding			regulator-min-microvolt = <5000000>;
28933c038e4SThierry Reding			regulator-max-microvolt = <5000000>;
29033c038e4SThierry Reding			gpio = <&gpio TEGRA194_MAIN_GPIO(A, 3) GPIO_ACTIVE_HIGH>;
29133c038e4SThierry Reding			enable-active-high;
29233c038e4SThierry Reding		};
29309a0774aSVidya Sagar
29409a0774aSVidya Sagar		vdd_3v3_pcie: regulator@2 {
29509a0774aSVidya Sagar			compatible = "regulator-fixed";
29609a0774aSVidya Sagar			reg = <2>;
29709a0774aSVidya Sagar
29809a0774aSVidya Sagar			regulator-name = "PEX_3V3";
29909a0774aSVidya Sagar			regulator-min-microvolt = <3300000>;
30009a0774aSVidya Sagar			regulator-max-microvolt = <3300000>;
30109a0774aSVidya Sagar			gpio = <&gpio TEGRA194_MAIN_GPIO(Z, 2) GPIO_ACTIVE_HIGH>;
30209a0774aSVidya Sagar			regulator-boot-on;
30309a0774aSVidya Sagar			enable-active-high;
30409a0774aSVidya Sagar		};
30509a0774aSVidya Sagar
30609a0774aSVidya Sagar		vdd_12v_pcie: regulator@3 {
30709a0774aSVidya Sagar			compatible = "regulator-fixed";
30809a0774aSVidya Sagar			reg = <3>;
30909a0774aSVidya Sagar
31009a0774aSVidya Sagar			regulator-name = "VDD_12V";
31109a0774aSVidya Sagar			regulator-min-microvolt = <1200000>;
31209a0774aSVidya Sagar			regulator-max-microvolt = <1200000>;
313d440538eSJon Hunter			gpio = <&gpio TEGRA194_MAIN_GPIO(A, 1) GPIO_ACTIVE_HIGH>;
31409a0774aSVidya Sagar			regulator-boot-on;
31509a0774aSVidya Sagar		};
316b8656c67SMikko Perttunen	};
317b8656c67SMikko Perttunen};
318