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
51be9b887fSThierry Reding		memory-controller@2c00000 {
52be9b887fSThierry Reding			status = "okay";
53be9b887fSThierry Reding		};
54be9b887fSThierry Reding
55b8656c67SMikko Perttunen		serial@3110000 {
56b8656c67SMikko Perttunen			status = "okay";
57b8656c67SMikko Perttunen		};
58b8656c67SMikko Perttunen
59b8656c67SMikko Perttunen		/* SDMMC1 (SD/MMC) */
60b8656c67SMikko Perttunen		sdhci@3400000 {
61b8656c67SMikko Perttunen			cd-gpios = <&gpio TEGRA194_MAIN_GPIO(A, 0) GPIO_ACTIVE_LOW>;
62b8656c67SMikko Perttunen		};
63b8656c67SMikko Perttunen
64b8656c67SMikko Perttunen		/* SDMMC4 (eMMC) */
65b8656c67SMikko Perttunen		sdhci@3460000 {
66b8656c67SMikko Perttunen			status = "okay";
67b8656c67SMikko Perttunen			bus-width = <8>;
68b8656c67SMikko Perttunen			non-removable;
69b8656c67SMikko Perttunen
70b8656c67SMikko Perttunen			vqmmc-supply = <&vdd_1v8ls>;
71b8656c67SMikko Perttunen			vmmc-supply = <&vdd_emmc_3v3>;
72b8656c67SMikko Perttunen		};
73b8656c67SMikko Perttunen
743ae50e83SThierry Reding		rtc@c2a0000 {
753ae50e83SThierry Reding			status = "okay";
763ae50e83SThierry Reding		};
773ae50e83SThierry Reding
78b8656c67SMikko Perttunen		pmc@c360000 {
79b8656c67SMikko Perttunen			nvidia,invert-interrupt;
80b8656c67SMikko Perttunen		};
81b8656c67SMikko Perttunen	};
82b8656c67SMikko Perttunen
83b8656c67SMikko Perttunen	bpmp {
84b8656c67SMikko Perttunen		i2c {
85b8656c67SMikko Perttunen			status = "okay";
86b8656c67SMikko Perttunen
87b8656c67SMikko Perttunen			pmic: pmic@3c {
88b8656c67SMikko Perttunen				compatible = "maxim,max20024";
89b8656c67SMikko Perttunen				reg = <0x3c>;
90b8656c67SMikko Perttunen
91b8656c67SMikko Perttunen				interrupts = <GIC_SPI 209 IRQ_TYPE_LEVEL_HIGH>;
92b8656c67SMikko Perttunen				#interrupt-cells = <2>;
93b8656c67SMikko Perttunen				interrupt-controller;
94b8656c67SMikko Perttunen
95b8656c67SMikko Perttunen				#gpio-cells = <2>;
96b8656c67SMikko Perttunen				gpio-controller;
97b8656c67SMikko Perttunen
98b8656c67SMikko Perttunen				pinctrl-names = "default";
99b8656c67SMikko Perttunen				pinctrl-0 = <&max20024_default>;
100b8656c67SMikko Perttunen
101b8656c67SMikko Perttunen				max20024_default: pinmux {
102b8656c67SMikko Perttunen					gpio0 {
103b8656c67SMikko Perttunen						pins = "gpio0";
104b8656c67SMikko Perttunen						function = "gpio";
105b8656c67SMikko Perttunen					};
106b8656c67SMikko Perttunen
107b8656c67SMikko Perttunen					gpio1 {
108b8656c67SMikko Perttunen						pins = "gpio1";
109b8656c67SMikko Perttunen						function = "fps-out";
110b8656c67SMikko Perttunen						maxim,active-fps-source = <MAX77620_FPS_SRC_DEF>;
111b8656c67SMikko Perttunen					};
112b8656c67SMikko Perttunen
113b8656c67SMikko Perttunen					gpio2 {
114b8656c67SMikko Perttunen						pins = "gpio2";
115b8656c67SMikko Perttunen						function = "fps-out";
116b8656c67SMikko Perttunen						maxim,active-fps-source = <MAX77620_FPS_SRC_DEF>;
117b8656c67SMikko Perttunen					};
118b8656c67SMikko Perttunen
119b8656c67SMikko Perttunen					gpio3 {
120b8656c67SMikko Perttunen						pins = "gpio3";
121b8656c67SMikko Perttunen						function = "fps-out";
122b8656c67SMikko Perttunen						maxim,active-fps-source = <MAX77620_FPS_SRC_DEF>;
123b8656c67SMikko Perttunen					};
124b8656c67SMikko Perttunen
125b8656c67SMikko Perttunen					gpio4 {
126b8656c67SMikko Perttunen						pins = "gpio4";
127b8656c67SMikko Perttunen						function = "32k-out1";
128b8656c67SMikko Perttunen						drive-push-pull = <1>;
129b8656c67SMikko Perttunen					};
130b8656c67SMikko Perttunen
131b8656c67SMikko Perttunen					gpio6 {
132b8656c67SMikko Perttunen						pins = "gpio6";
133b8656c67SMikko Perttunen						function = "gpio";
134b8656c67SMikko Perttunen						drive-push-pull = <1>;
135b8656c67SMikko Perttunen					};
136b8656c67SMikko Perttunen
137b8656c67SMikko Perttunen					gpio7 {
138b8656c67SMikko Perttunen						pins = "gpio7";
139b8656c67SMikko Perttunen						function = "gpio";
140b8656c67SMikko Perttunen						drive-push-pull = <0>;
141b8656c67SMikko Perttunen					};
142b8656c67SMikko Perttunen				};
143b8656c67SMikko Perttunen
144b8656c67SMikko Perttunen				fps {
145b8656c67SMikko Perttunen					fps0 {
146b8656c67SMikko Perttunen						maxim,fps-event-source = <MAX77620_FPS_EVENT_SRC_EN0>;
147b8656c67SMikko Perttunen						maxim,shutdown-fps-time-period-us = <640>;
148b8656c67SMikko Perttunen					};
149b8656c67SMikko Perttunen
150b8656c67SMikko Perttunen					fps1 {
151b8656c67SMikko Perttunen						maxim,fps-event-source = <MAX77620_FPS_EVENT_SRC_EN1>;
152b8656c67SMikko Perttunen						maxim,shutdown-fps-time-period-us = <640>;
153b8656c67SMikko Perttunen						maxim,device-state-on-disabled-event = <MAX77620_FPS_INACTIVE_STATE_SLEEP>;
154b8656c67SMikko Perttunen					};
155b8656c67SMikko Perttunen
156b8656c67SMikko Perttunen					fps2 {
157b8656c67SMikko Perttunen						maxim,fps-event-source = <MAX77620_FPS_EVENT_SRC_EN0>;
158b8656c67SMikko Perttunen						maxim,shutdown-fps-time-period-us = <640>;
159b8656c67SMikko Perttunen					};
160b8656c67SMikko Perttunen				};
161b8656c67SMikko Perttunen
162b8656c67SMikko Perttunen				regulators {
163b8656c67SMikko Perttunen					in-sd0-supply = <&vdd_5v0_sys>;
164b8656c67SMikko Perttunen					in-sd1-supply = <&vdd_5v0_sys>;
165b8656c67SMikko Perttunen					in-sd2-supply = <&vdd_5v0_sys>;
166b8656c67SMikko Perttunen					in-sd3-supply = <&vdd_5v0_sys>;
167b8656c67SMikko Perttunen					in-sd4-supply = <&vdd_5v0_sys>;
168b8656c67SMikko Perttunen
169b8656c67SMikko Perttunen					in-ldo0-1-supply = <&vdd_5v0_sys>;
170b8656c67SMikko Perttunen					in-ldo2-supply = <&vdd_5v0_sys>;
171b8656c67SMikko Perttunen					in-ldo3-5-supply = <&vdd_5v0_sys>;
172b8656c67SMikko Perttunen					in-ldo4-6-supply = <&vdd_5v0_sys>;
173b8656c67SMikko Perttunen					in-ldo7-8-supply = <&vdd_1v8ls>;
174b8656c67SMikko Perttunen
17533c038e4SThierry Reding					vdd_1v0: sd0 {
176c90b8f15SThierry Reding						regulator-name = "VDDIO_SYS_1V0";
177b8656c67SMikko Perttunen						regulator-min-microvolt = <1000000>;
178b8656c67SMikko Perttunen						regulator-max-microvolt = <1000000>;
179b8656c67SMikko Perttunen						regulator-always-on;
180b8656c67SMikko Perttunen						regulator-boot-on;
181b8656c67SMikko Perttunen					};
182b8656c67SMikko Perttunen
18333c038e4SThierry Reding					vdd_1v8hs: sd1 {
184c90b8f15SThierry Reding						regulator-name = "VDDIO_SYS_1V8HS";
185b8656c67SMikko Perttunen						regulator-min-microvolt = <1800000>;
186b8656c67SMikko Perttunen						regulator-max-microvolt = <1800000>;
187b8656c67SMikko Perttunen						regulator-always-on;
188b8656c67SMikko Perttunen						regulator-boot-on;
189b8656c67SMikko Perttunen					};
190b8656c67SMikko Perttunen
191b8656c67SMikko Perttunen					vdd_1v8ls: sd2 {
192c90b8f15SThierry Reding						regulator-name = "VDDIO_SYS_1V8LS";
193b8656c67SMikko Perttunen						regulator-min-microvolt = <1800000>;
194b8656c67SMikko Perttunen						regulator-max-microvolt = <1800000>;
195b8656c67SMikko Perttunen						regulator-always-on;
196b8656c67SMikko Perttunen						regulator-boot-on;
197b8656c67SMikko Perttunen					};
198b8656c67SMikko Perttunen
199a586c88eSVidya Sagar					vdd_1v8ao: sd3 {
200c90b8f15SThierry Reding						regulator-name = "VDDIO_AO_1V8";
201b8656c67SMikko Perttunen						regulator-min-microvolt = <1800000>;
202b8656c67SMikko Perttunen						regulator-max-microvolt = <1800000>;
203b8656c67SMikko Perttunen						regulator-always-on;
204b8656c67SMikko Perttunen						regulator-boot-on;
205b8656c67SMikko Perttunen					};
206b8656c67SMikko Perttunen
207b8656c67SMikko Perttunen					sd4 {
208b8656c67SMikko Perttunen						regulator-name = "VDD_DDR_1V1";
209b8656c67SMikko Perttunen						regulator-min-microvolt = <1100000>;
210b8656c67SMikko Perttunen						regulator-max-microvolt = <1100000>;
211b8656c67SMikko Perttunen						regulator-always-on;
212b8656c67SMikko Perttunen						regulator-boot-on;
213b8656c67SMikko Perttunen					};
214b8656c67SMikko Perttunen
215b8656c67SMikko Perttunen					ldo0 {
216b8656c67SMikko Perttunen						regulator-name = "VDD_RTC";
217b8656c67SMikko Perttunen						regulator-min-microvolt = <800000>;
218b8656c67SMikko Perttunen						regulator-max-microvolt = <800000>;
219b8656c67SMikko Perttunen						regulator-always-on;
220b8656c67SMikko Perttunen						regulator-boot-on;
221b8656c67SMikko Perttunen					};
222b8656c67SMikko Perttunen
223b8656c67SMikko Perttunen					ldo2 {
224c90b8f15SThierry Reding						regulator-name = "VDDIO_AO_3V3";
225b8656c67SMikko Perttunen						regulator-min-microvolt = <3300000>;
226b8656c67SMikko Perttunen						regulator-max-microvolt = <3300000>;
227b8656c67SMikko Perttunen						regulator-always-on;
228b8656c67SMikko Perttunen						regulator-boot-on;
229b8656c67SMikko Perttunen					};
230b8656c67SMikko Perttunen
231b8656c67SMikko Perttunen					vdd_emmc_3v3: ldo3 {
232b8656c67SMikko Perttunen						regulator-name = "VDD_EMMC_3V3";
233b8656c67SMikko Perttunen						regulator-min-microvolt = <3300000>;
234b8656c67SMikko Perttunen						regulator-max-microvolt = <3300000>;
235b8656c67SMikko Perttunen					};
236b8656c67SMikko Perttunen
237b8656c67SMikko Perttunen					ldo5 {
238b8656c67SMikko Perttunen						regulator-name = "VDD_USB_3V3";
239b8656c67SMikko Perttunen						regulator-min-microvolt = <3300000>;
240b8656c67SMikko Perttunen						regulator-max-microvolt = <3300000>;
241b8656c67SMikko Perttunen					};
242b8656c67SMikko Perttunen
243b8656c67SMikko Perttunen					ldo6 {
244b8656c67SMikko Perttunen						regulator-name = "VDD_SDIO_3V3";
245b8656c67SMikko Perttunen						regulator-min-microvolt = <3300000>;
246b8656c67SMikko Perttunen						regulator-max-microvolt = <3300000>;
247b8656c67SMikko Perttunen					};
248b8656c67SMikko Perttunen
249b8656c67SMikko Perttunen					ldo7 {
250c90b8f15SThierry Reding						regulator-name = "AVDD_CSI_1V2";
251b8656c67SMikko Perttunen						regulator-min-microvolt = <1200000>;
252b8656c67SMikko Perttunen						regulator-max-microvolt = <1200000>;
253b8656c67SMikko Perttunen					};
254b8656c67SMikko Perttunen				};
255b8656c67SMikko Perttunen			};
2568b457812SThierry Reding
2578b457812SThierry Reding			temperature-sensor@4c {
2588b457812SThierry Reding				compatible = "ti,tmp451";
2598b457812SThierry Reding				reg = <0x4c>;
2608b457812SThierry Reding
2618b457812SThierry Reding				interrupt-parent = <&gpio>;
2628b457812SThierry Reding				interrupts = <TEGRA194_MAIN_GPIO(H, 2)
2638b457812SThierry Reding					      IRQ_TYPE_LEVEL_LOW>;
26473207330SJon Hunter				vcc-supply = <&vdd_1v8ls>;
2658b457812SThierry Reding
2668b457812SThierry Reding				#thermal-sensor-cells = <1>;
2678b457812SThierry Reding			};
268b8656c67SMikko Perttunen		};
269b8656c67SMikko Perttunen	};
270b8656c67SMikko Perttunen
271b8656c67SMikko Perttunen	regulators {
272b8656c67SMikko Perttunen		compatible = "simple-bus";
273b8656c67SMikko Perttunen		#address-cells = <1>;
274b8656c67SMikko Perttunen		#size-cells = <0>;
275b8656c67SMikko Perttunen
276b8656c67SMikko Perttunen		vdd_5v0_sys: regulator@0 {
277b8656c67SMikko Perttunen			compatible = "regulator-fixed";
278b8656c67SMikko Perttunen			reg = <0>;
279b8656c67SMikko Perttunen
280b8656c67SMikko Perttunen			regulator-name = "VIN_SYS_5V0";
281b8656c67SMikko Perttunen			regulator-min-microvolt = <5000000>;
282b8656c67SMikko Perttunen			regulator-max-microvolt = <5000000>;
283b8656c67SMikko Perttunen			regulator-always-on;
284b8656c67SMikko Perttunen			regulator-boot-on;
285b8656c67SMikko Perttunen		};
28633c038e4SThierry Reding
28733c038e4SThierry Reding		vdd_hdmi: regulator@1 {
28833c038e4SThierry Reding			compatible = "regulator-fixed";
28933c038e4SThierry Reding			reg = <1>;
29033c038e4SThierry Reding
29133c038e4SThierry Reding			regulator-name = "VDD_5V0_HDMI_CON";
29233c038e4SThierry Reding			regulator-min-microvolt = <5000000>;
29333c038e4SThierry Reding			regulator-max-microvolt = <5000000>;
29433c038e4SThierry Reding			gpio = <&gpio TEGRA194_MAIN_GPIO(A, 3) GPIO_ACTIVE_HIGH>;
29533c038e4SThierry Reding			enable-active-high;
29633c038e4SThierry Reding		};
29709a0774aSVidya Sagar
29809a0774aSVidya Sagar		vdd_3v3_pcie: regulator@2 {
29909a0774aSVidya Sagar			compatible = "regulator-fixed";
30009a0774aSVidya Sagar			reg = <2>;
30109a0774aSVidya Sagar
30209a0774aSVidya Sagar			regulator-name = "PEX_3V3";
30309a0774aSVidya Sagar			regulator-min-microvolt = <3300000>;
30409a0774aSVidya Sagar			regulator-max-microvolt = <3300000>;
30509a0774aSVidya Sagar			gpio = <&gpio TEGRA194_MAIN_GPIO(Z, 2) GPIO_ACTIVE_HIGH>;
30609a0774aSVidya Sagar			regulator-boot-on;
30709a0774aSVidya Sagar			enable-active-high;
30809a0774aSVidya Sagar		};
30909a0774aSVidya Sagar
31009a0774aSVidya Sagar		vdd_12v_pcie: regulator@3 {
31109a0774aSVidya Sagar			compatible = "regulator-fixed";
31209a0774aSVidya Sagar			reg = <3>;
31309a0774aSVidya Sagar
31409a0774aSVidya Sagar			regulator-name = "VDD_12V";
31509a0774aSVidya Sagar			regulator-min-microvolt = <1200000>;
31609a0774aSVidya Sagar			regulator-max-microvolt = <1200000>;
317d440538eSJon Hunter			gpio = <&gpio TEGRA194_MAIN_GPIO(A, 1) GPIO_ACTIVE_HIGH>;
31809a0774aSVidya Sagar			regulator-boot-on;
31909a0774aSVidya Sagar		};
320b8656c67SMikko Perttunen	};
321b8656c67SMikko Perttunen};
322